Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Last active December 4, 2018 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenjrobinson/0db2aeb1993013d8da0943740d1e04c9 to your computer and use it in GitHub Desktop.
Save darrenjrobinson/0db2aeb1993013d8da0943740d1e04c9 to your computer and use it in GitHub Desktop.
# 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