Quantcast
Channel: SCSM PowerShell Cmdlets
Viewing all articles
Browse latest Browse all 306

Created Unassigned: -Name parameter on Get-UserRole can cause problems because it searches both DisplayName and Name [11857]

$
0
0
foreach(UserRole role in _mg.Security.GetUserRoles())
{
if ( r.Match(role.Name).Success || r.Match(role.DisplayName).Success)
{
WriteObject(role);
}
}

Viewing all articles
Browse latest Browse all 306

Trending Articles