-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path1081.ps1
More file actions
6 lines (4 loc) · 815 Bytes
/
Copy path1081.ps1
File metadata and controls
6 lines (4 loc) · 815 Bytes
1
2
3
4
5
6
[void]([reflection.assembly]::LoadWithPartialName("Microsoft.office.server"))
$serverContext = [Microsoft.Office.Server.ServerContext]::Default
$upm = [Microsoft.Office.Server.UserProfiles.UserProfileManager]$serverContext
@@ $upm.psbase.properties | ? { $_.isvisibleonviewer } | select DisplayName, name, displayorder, managedpropertyname | % { "<SPSWC:ProfilePropertyCheckValue PropertyNames=""$($_.Name)"" runat=""server"" Text=""<tr><td class="ms-profilelabel"gt;$($_.DisplayName): </td><td width="65%" valign="top">""/><SPSWC:ProfilePropertyValue PropertyName=""$($_.name)"" class=""ms-profilevalue"" runat=""server"" /><SPSWC:ProfilePropertyCheckValue PropertyNames=""$($_.Name)"" runat=""server"" Text=""</td></tr>""/>" } >a.txt; ii a.txt