Monthly Archives: July 2016

How to read all property bag values in a SharePoint Online Site Collection using CSOM PowerShell

################################################################ #Script that gets all the property Bags # Required Parameters: # -> $sUserName: User Name to connect to the SharePoint Online Site Collection. # -> $sPassword: Password for the user. # -> $sSiteUrl: SharePoint Online Site Url ################################################################ $host.Runspace.ThreadOptions … Continue reading

Posted in Uncategorized | Leave a comment

Import data to CSV file using PowerShell

$results = @() foreach ($computer in $computerlist) { if((Test-Connection -Cn $computer -BufferSize 16 -Count 1 -ea 0 -quiet)) { foreach ($file in $REMOVE) { Remove-Item “\\$computer\$DESTINATION\$file” -Recurse Copy-Item E:\Code\powershell\shortcuts\* “\\$computer\$DESTINATION\” } } else { $details = @{ Date = get-date … Continue reading

Posted in Uncategorized | Leave a comment

Copy items from Root site all subsites in SharePoint list using CSOM PowerShell

Hi Guys, One of my customer using the functionality in Office 365 like whenever a new subsite is created, few custom lists all items are copying to the subsite , this functionality is implemented on Provider hosted app using CSOM, but there … Continue reading

Posted in Uncategorized | Leave a comment

Get current user profile properties in SharePoint using REST API.

By using the below code we can get the current user profile properties with custom properties, var  userFirstName = ”, userEmail = ”; $(document).ready(function () { getUserProfiles(); }); /*********Function to read the user profile properties ********/ function getUserProfiles() { var … Continue reading

Posted in Uncategorized | Leave a comment