LoginSignup
3
3

More than 5 years have passed since last update.

指定したユーザーが SharePoint ファーム内のどのグループに(直接)所属しているか洗い出す 身元調査PowerShellスクリプト

Posted at

が、これだ ☟☟☟

$UserName = "琴奨菊 和弘"
Write-Host ("{0} 君の所属しているサイトSPグループが、コレだ ☟☟☟" -F $UserName )
Get-SPSite | %{ $_.AllWebs | %{ $_.Groups | %{ ($g = $_).Users | ? DisplayName -eq $UserName | %{ Write-Host $g } } } }
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3