mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-17 16:11:22 +02:00
Update the manuals in Docs/
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
## list-user-groups.ps1 - Lists the user groups on the local computer
|
||||
## The list-user-groups.ps1 PowerShell Script
|
||||
|
||||
This PowerShell script lists the user groups on the local computer.
|
||||
|
||||
@@ -31,4 +31,32 @@ Author: Markus Fleschutz | License: CC0
|
||||
## Related Links
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
## Source Code
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists the user groups on the local computer
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists the user groups on the local computer.
|
||||
.EXAMPLE
|
||||
PS> ./list-user-groups
|
||||
|
||||
Name Description
|
||||
---- -----------
|
||||
HomeUsers HomeUsers Security Group
|
||||
Ssh Users Members of this group can remotely access this computer over SSH protocol.
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-LocalGroup
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
|
||||
*Generated by convert-ps2md.ps1 using the comment-based help of list-user-groups.ps1*
|
||||
|
Reference in New Issue
Block a user