Updated list-user-accounts.ps1

This commit is contained in:
Markus Fleschutz 2024-10-14 17:28:32 +02:00
parent 68680bb618
commit e307b5c887

View File

@ -12,7 +12,11 @@
#>
try {
if ($IsLinux) {
& getent passwd
} else {
& net user
}
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"