Sign In
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Post an article
Translate this page
Powered by
Microsoft® Translator
Wikis - Page Details
First published by
Markus Vilcinskas
(Microsoft)
When:
11 Jan 2011 3:09 PM
Last revision by
Craig Lussier
(Microsoft Partner)
When:
19 Feb 2012 3:11 AM
Revisions:
5
Comments:
1
Options
Subscribe to Article (RSS)
Share this
Can You Improve This Article?
Positively!
Click Sign In to add the tip, solution, correction or comment that will help other users.
Report inappropriate content using
these instructions
.
Wiki
>
TechNet Articles
>
How to Use PowerShell to Display the Permissions on the FIM Site (en-US)
How to Use PowerShell to Display the Permissions on the FIM Site (en-US)
Article
History
How to Use PowerShell to Display the Permissions on the FIM Site (en-US)
FIM ScriptBox Item
Summary
This script displays the permissions on the FIM site.
Script Code
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
#------------------------------------------------------------------------------------------------------
set-variable
-name
SPURL
-value
"http://localhost"
-option
constant
#------------------------------------------------------------------------------------------------------
[System.Reflection.Assembly]
::
LoadWithPartialName
(
"Microsoft.SharePoint"
)
|
Out-Null
Clear-Host
$spSite
=
New-Object
-TypeName
"Microsoft.SharePoint.SPSite"
-ArgumentList
$SPURL
$fimSite
=
$spSite
.
AllWebs
|
Where-Object
{
$_
.
Name
-eq
"IdentityManagement"
}
If
(
$fimSite
-eq
$null
)
{
Throw
"FIM site not found"
}
Write-Host
"Permissions on $($fimSite.Title)"
Write-Host
"============================================="
$fimSite
.
Permissions
|
Format-List
Member
,
BasePermissions
#------------------------------------------------------------------------------------------------------
Trap
{
Write-Host
"`nError: $($_.Exception.Message)`n"
-foregroundcolor
white
-backgroundcolor
darkred
Exit
}
#------------------------------------------------------------------------------------------------------
Note
To provide feedback about this script, create a post on the
FIM TechNet Forum
.
For more FIM related Windows PowerShell scripts, see the
FIM ScriptBox
.
en-US
,
FIM
,
FIM How To Script
,
FIM ScriptBox Item
,
has code
,
PowerShell