Publish Active Directory Group membership to SharePoint Webpage

Hi Readers,

Today I am sharing a power-shell solution that can be used to publish Group Membership information to SharePoint Webpage.

Download the scripts from below link & modify the grouppublish.ps1 script.

http://gallery.technet.microsoft.com/Publish-Active-Directory-e91ef5a9

$group = “Group1” (group name for which you want to publish the membership)

$source = “C:\Scripts\PatchPilot\output1\patchpilot.html” (Path of HTML file that will be copied to sharepoint server) This is inside scripts folder

$destination = “\\spserver\c$\Scripts\report” (Sharepoint server path where you will copy the HTML file)

Below is the HTML file that will be created & copied to Sharepoint server directory

Now there is second script that will upload the html file to SharePoint site. (you can schedule this script)

Change below variables accordingly

$siteurl = “http://spsite.testlab.com/sites/PatchPilot”        ### Specify SharePoint Site

$docLibraryName = “Site List”                ### Specify Document library where file wil be uploaded

$localFolderPath = “C:\scripts\report”                      ### Put folder path in a variable

Now last step is to add page viewer web-part to display the HTML file on SharePoint webpage.

edit web-part properties

Now group will be displayed on the webpage.

Note:- Quest & SharePoint shell is used for this whole solution to work.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s