mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-19 08:52:05 +02:00
Updated the manuals
This commit is contained in:
@@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./list-network-shares.ps1
|
||||
✅ Network share \\LAPTOP\Public ("Public folder for file transfer") mapped to: 📂D:\Public
|
||||
✅ Network share \\LAPTOP\Public -> D:\Public ("Public folder for file transfer")
|
||||
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ Script Content
|
||||
This PowerShell script lists all network shares (aka "shared folders") of the local computer.
|
||||
.EXAMPLE
|
||||
PS> ./list-network-shares.ps1
|
||||
✅ Network share \\LAPTOP\Public ("Public folder for file transfer") mapped to: 📂D:\Public
|
||||
✅ Network share \\LAPTOP\Public -> D:\Public ("Public folder for file transfer")
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -52,7 +52,7 @@ try {
|
||||
} else {
|
||||
$shares = Get-WmiObject win32_share | where {$_.name -NotLike "*$"}
|
||||
foreach ($share in $shares) {
|
||||
Write-Output "✅ Network share \\$(hostname)\$($share.Name) (`"$($share.Description)`") mapped to: 📂$($share.Path)"
|
||||
Write-Output "✅ Network share \\$(hostname)\$($share.Name) -> $($share.Path) (`"$($share.Description)`")"
|
||||
}
|
||||
}
|
||||
exit 0 # success
|
||||
@@ -62,4 +62,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 as of 11/08/2024 12:40:18)*
|
||||
*(generated by convert-ps2md.ps1 as of 11/20/2024 11:51:56)*
|
||||
|
Reference in New Issue
Block a user