Skip to content

Commit 8d1ef5b

Browse files
author
Markus Fleschutz
committed
Updated list-network-shares.ps1
1 parent 8ed1f2b commit 8d1ef5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/list-network-shares.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
This PowerShell script lists all network shares (aka "shared folders") of the local computer.
66
.EXAMPLE
77
PS> ./list-network-shares.ps1
8-
✅ Shared folder \\LAPTOP\Public -> D:\Public ("Public folder for file transfer")
8+
✅ Shared folder \\LAPTOP\Public ("File transfer folder") -> D:\Public
99
.LINK
1010
https://github.com/fleschutz/PowerShell
1111
.NOTES
@@ -18,7 +18,7 @@ try {
1818
} else {
1919
$shares = Get-WmiObject win32_share | where {$_.name -NotLike "*$"}
2020
foreach ($share in $shares) {
21-
Write-Output "✅ Shared folder \\$(hostname)\$($share.Name) -> $($share.Path) (`"$($share.Description)`")"
21+
Write-Output "✅ Shared folder \\$(hostname)\$($share.Name) (`"$($share.Description)`") -> $($share.Path)"
2222
}
2323
}
2424
exit 0 # success

0 commit comments

Comments
 (0)