mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
18 lines
346 B
PowerShell
18 lines
346 B
PowerShell
|
|
function Get-IcingaUsers ()
|
||
|
|
{
|
||
|
|
param (
|
||
|
|
[array]$Username
|
||
|
|
);
|
||
|
|
|
||
|
|
|
||
|
|
if ($null -eq $Username) {
|
||
|
|
return Get-LocalUser;
|
||
|
|
} else {
|
||
|
|
[array]$UserInformation
|
||
|
|
foreach ($UniqueUser in $Username) {
|
||
|
|
[array]$UserInformation += Get-LocalUser -Name $UniqueUser;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return $UserInformation;
|
||
|
|
}
|