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
<# | |
.SYNOPSIS | |
This script serves as example on how to find and run scripted sync on selected objects in MIM. | |
Queries are run against MetaVerse to find the objects and then it finds the ConnectorSpace object and runs sync. | |
#> | |
Import-Module LithnetMIISAutomation | |
$CStoSync = "ADviaPS" #The name of the ConnectorSpace you want the sync to run in. |
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
<# | |
.SYNOPSIS | |
Example script to bulk update users from CSV file. | |
The CSV file needs to have columnnames in row 1. | |
Columnnames need to correspond to the attribute name in FIM/MIM. | |
The column specified as "anchor" will not be updated all other columns will be updated based on content in csv file. | |
Multivalue and Reference data types are not supported in this version. | |
The script requires that the Lithnet Power Shell module is installed on the computer running the script. | |
The account running the script requires write permission to all attributes in the csv file except for the anchor attribute. | |
#> |
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
<# | |
.SYNOPSIS | |
Installs updates for MIM Synchronization Service and MIM Service. | |
.ToDo | |
Add support for Languagepack updates. | |
#> | |
PARAM( | |
[string]$Version = "4.5.286.0", |
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
<# | |
.SYNOPSIS | |
Clears run history in FIM Synchronization Service and stores the history. | |
.PARAMETER dayDiff | |
The Number of days to keep. | |
.PARAMETER exportDirectory | |
The folder where deleted history is saved. | |
#> |
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
<# | |
.SYNOPSIS | |
Script to update only synchronization rules. | |
#> | |
Import-Module LithnetMiisAutomation | |
$MA = "FIMService" | |
$OldSyncRules = New-MVQuery -Attribute displayName -Operator IsPresent | Get-MVObject -ObjectType synchronizationRule | |
foreach($rule in $OldSyncRules) | |
{$void = Sync-CSObject (Get-CSObject -DN ($rule.CSMVLinks.ConnectorSpaceDN) -MA $MA) -Commit} |
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
<# | |
.SYNOPSIS | |
Script to manually configure MIM 2016 Hybrid Reporting without installing the Agent as described in | |
https://docs.microsoft.com/en-us/microsoft-identity-manager/working-with-identity-manager-hybrid-reporting | |
#> | |
# Step 1. Create the EventLog to store the MIM Request Events in. | |
New-EventLog -LogName "Identity Manager Request Log" -Source "Microsoft.IdentityManagement.Service" | |
# Step 2. Add hybrid reporting setting in FIMService config file. Setting hybridReportingRequestLoggingEnabled="true" |
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
<# | |
.SYNOPSIS | |
Script to Redirect to /IdentityManagement on MIM Portal Server. | |
Defaults to expecting the only SPSite to be MIM Portal Site. | |
Intended to be run from SharePoint Management Shell. | |
Users need Read Access to RootFolder for this to work. | |
Script gives Read to Authenticated Users by default. | |
#> |
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
<# | |
.SYNOPSIS | |
Installs MIM Synchronization Service | |
Expects the MIM ISO file to install from in the MediaFolder. | |
Script will ask for ServiceAccount password. | |
Typically the SQL Server is an SQL Alias | |
Please update the Parameters region to meet your own needs. | |
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
<# | |
.SYNOPSIS | |
Script to remove values from MultiValue attribute based on search criteria. | |
#> | |
PARAM( | |
[string]$MultiValueAttribute = 'emailAlias', | |
[ValidateSet("StartsWith","EndsWith","Equals")] | |
[string]$SearchType, | |
[string]$SearchValue = '@domain.onmicrosoft.com', |
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
param ( | |
[System.Collections.ObjectModel.KeyedCollection[[string], [Microsoft.MetadirectoryServices.ConfigParameter]]] $ConfigParameters, | |
[PSCredential] $PSCredential, | |
[Microsoft.MetadirectoryServices.OpenImportConnectionRunStep] $OpenImportConnectionRunStep, | |
[Microsoft.MetadirectoryServices.Schema] [ValidateNotNull()] $Schema | |
) | |
[string]$watermark = $OpenImportConnectionRunStep.CustomData #Used if Delta Import | |
if($OpenImportConnectionRunStep.ImportType -eq 'Delta' -and !$watermark){throw ("Full Import Required. No watermark found.")} |
NewerOlder