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:
@@ -20,9 +20,9 @@ PS> ./list-network-shares.ps1
|
||||
|
||||
|
||||
|
||||
Name Path Description
|
||||
---- ---- -----------
|
||||
Users C:\Users
|
||||
Name Path Description
|
||||
---- ---- -----------
|
||||
Public C:\Public Public folder for file transfer
|
||||
|
||||
```
|
||||
|
||||
@@ -39,15 +39,15 @@ Script Content
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists all network shares of the local computer
|
||||
Lists the local network shares
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists all network shares of the local computer.
|
||||
.EXAMPLE
|
||||
PS> ./list-network-shares.ps1
|
||||
|
||||
Name Path Description
|
||||
---- ---- -----------
|
||||
Users C:\Users
|
||||
Name Path Description
|
||||
---- ---- -----------
|
||||
Public C:\Public Public folder for file transfer
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@@ -55,7 +55,7 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-WmiObject win32_share | where {$_.name -NotLike "*$"}
|
||||
Get-WmiObject win32_share | where {$_.name -NotLike "*$"}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@@ -63,4 +63,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-network-shares.ps1 as of 01/25/2024 13:58:39)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of list-network-shares.ps1 as of 03/27/2024 17:36:28)*
|
||||
|
Reference in New Issue
Block a user