mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 08:23:14 +01:00
Updated list-user-accounts.ps1
This commit is contained in:
parent
68680bb618
commit
e307b5c887
@ -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])"
|
||||
|
Loading…
Reference in New Issue
Block a user