Sunday, 26 January 2014

List of Users in Multiple Domain..

How to find user in multiple domain, PowerShell by default will point to parent domain and will not fetch the result in child domain.When u will get list of users containing both  parent and Child domain,PowerShell will not fetch the result for child domain.
The below is the Script which will point to both domain.



Import-Module ActiveDirectory
$erroractionpreference = “SilentlyContinue”
# Declaring variable
$a = Get-content "path of the txt file"
foreach($i in $a)
{
Get-ADuser -identity $x # Parent domain
If(!$?)
{
try {
Get-Aduser -identity $x -server Domain1
}
catch
{
Write-Host "The user is not found in parent and child domain"
}
}
}
view raw gistfile1.ps1 hosted with ❤ by GitHub

How to Use PowerShell to Find all Users Having no Manager in FIM Portal



# 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"
}
view raw gistfile1.ps1 hosted with ❤ by GitHub

Thursday, 9 January 2014

Search Scopes in FIM 2010.

Search Scopes in FIM 2010.

What is the use - To display the attribute in the main UI of the portal.
Taking as example - The Users are not showing their EmployeeID details in the main UI of the portal.

Go to Administrator , Search Scopes, All Users, Results

In Attribute type EmployeeID.
IISRESET

ServiceNow onboarding Sailpoint