mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Updated list-user-accounts.ps1
This commit is contained in:
@ -12,7 +12,11 @@
|
||||
#>
|
||||
|
||||
try {
|
||||
& net user
|
||||
if ($IsLinux) {
|
||||
& getent passwd
|
||||
} else {
|
||||
& net user
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user