Last active
December 4, 2018 06:14
-
-
Save darrenjrobinson/0db2aeb1993013d8da0943740d1e04c9 to your computer and use it in GitHub Desktop.
Remote Powershell to Microsoft Identity Manager. Associated blog post is here https://blog.darrenjrobinson.com/remotely-managing-your-fimmim-synchronisation-server-using-powershell-and-the-lithnet-miis-automation-powershell-module/
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
# Admin User name | |
$username = "mimdev\darrenjrobinson" | |
# MIM Sync Server | |
$mimsync = "mymimserver" | |
# If the account you're logged in as has the right permissions you can simply run | |
Enter-PSSession -ComputerName $mimsync | |
# otherwise provide the credentials for a privilaged account | |
Enter-PSSession -ComputerName $mimsync -Credential $username | |
# Get a User | |
$mvuser = Get-MVObject Person -Attribute uid -Value '@darrenjrobinson' | |
# What MA's is the user connected on ? | |
$mvuser.CSMVLinks | |
# Get Stats for the Twitter MA | |
$mastats = Get-MAStatistics -MA Twitter | |
# End Session | |
Exit-PsSession |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment