Microsoft Tech Net Link
http://social.technet.microsoft.com/wiki/contents/articles/22713.how-to-use-powershell-to-find-all-users-having-no-manager-in-fim-portal.aspx
http://social.technet.microsoft.com/wiki/contents/articles/22713.how-to-use-powershell-to-find-all-users-having-no-manager-in-fim-portal.aspx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Powershell Cmdlet to find all users in portal not having manager | |
# Load FIMAutomation module | |
if(@(Get-PSSnapin | ? { $_.Name -eq "FIMAutomation" } ).Count -eq 0) | |
{ | |
Add-PSSnapin FIMAutomation; | |
} | |
$users = Export-FIMConfig -customConfig "/Person[not(Manager=/Person)]" -Uri "http://localhost:5725" -OnlyBaseResources | |
foreach ($user in $users) | |
{ | |
$x = (($user.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "DisplayName"}).Value) | |
Write-Host "$x" | |
} |
No comments:
Post a Comment