kwizcom banner advertisement

SharePoint Online: Change Group Owner using PowerShell

May 29, 2017    , ,
SharePoint groups simplifies permission administration by assigning a set of users to a group and assigning permissions to them through the group. When we create a site, The default Owner Group of the site is assigned as Group owner for all groups. If anyone create a custom group, then they'll be assigned as group owner. How to Change the Group Owner in SharePoint Online? Follow these steps to change the owner of a group in SharePoint Online. Go to Site Settings >>  People and Groups Pick the group you want change the group owner from the left navigation From the group page, Click on Settings >> Group Settings  Enter the new group owner in "Group Owner" field. Hit OK to save your changes. This changes owner of a SharePoint Online group. PowerShell to Change Group Owner in SharePoint Online:  #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Cli
SharePoint Online: Change Group Owner using PowerShell SharePoint Online: Change Group Owner using PowerShell Reviewed by Salaudeen Rajack on May 29, 2017 Rating: 5

SharePoint Online: Get All Files from a Folder using PowerShell

May 23, 2017    , , ,
Requirement: SharePoint Online PowerShell to list files in folder. PowerShell to Get Files from Folder in SharePoint Online: Lets retrieve all files from a given folder in SharePoint Online document library using PowerShell. #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll" Function Get-FilesFromFolder() { param ( [Parameter(Mandatory=$true)] [string] $SiteURL, [Parameter(Mandatory=$true)] [string] $FolderURL ) Try { #Setup Credentials to connect $Cred = Get-Credential $Cred = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password) #Setup the context $Ctx = New-Object Microsoft.SharePoint.Client.ClientC
SharePoint Online: Get All Files from a Folder using PowerShell SharePoint Online: Get All Files from a Folder using PowerShell Reviewed by Salaudeen Rajack on May 23, 2017 Rating: 5

SharePoint Online: PowerShell to Get All Site Collections and Subsites

May 23, 2017    , , , , ,
Requirement: SharePoint online PowerShell to get all site collections and subsites. SharePoint Online PowerShell to list all site collections and subsites Here is the PowerShell to list all site collections and subsites in SharePoint Online. Import-Module Microsoft.Online.SharePoint.Powershell #Config Parameters $AdminSiteURL="https://crescent-admin.sharepoint.com" #Get Credentials to connect to SharePoint Admin Center $Cred = Get-Credential #Function to get all subsites of a site Function Get-SPOWeb($WebURL) { #Setup credentials to connect $Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.Username, $Cred.Password) #Get Web information and subsites $Context = New-Object Microsoft.SharePoint.Client.ClientContext($webURL) $Context.Credentials = $Credentials $Web = $context.Web $Context.Load($web) $Context.Load($web.Webs) $Context.executeQuery() #Iterate through each subsite in the current
SharePoint Online: PowerShell to Get All Site Collections and Subsites SharePoint Online: PowerShell to Get All Site Collections and Subsites Reviewed by Salaudeen Rajack on May 23, 2017 Rating: 5

How to Backup-Restore a Site Collection in SharePoint using PowerShell

May 15, 2017    , , , , , ,
Requirement: Backup and restore a site collection in SharePoint 2013 using PowerShell. How to backup a site collection in SharePoint 2013 using PowerShell? Although you can backup site collections from SharePoint Central Administration, as in  How to Backup SharePoint Site Collection using Central Admin , the Central admin way is kind of clunky and takes a while to perform the backup. PowerShell provides a quick and easy way to backup site collections, We can use in scripted operations and avoid manual repetition of same tasks such as performing backups. Use SharePoint 2016 Management Shell to run these cmdlets. SharePoint site collection backups may be initiated from SharePoint WFEs and you need to be member of a local administrator on the server and should be a farm admin. Backup SharePoint Site Collection using PowerShell Here is the PowerShell syntax to take backup of a site collection in SharePoint 2016. It takes two mandatory parameters to identify the site collection to
How to Backup-Restore a Site Collection in SharePoint using PowerShell How to Backup-Restore a Site Collection in SharePoint using PowerShell Reviewed by Salaudeen Rajack on May 15, 2017 Rating: 5

Backup SharePoint Site Collection using Central Admin

May 08, 2017    , , , , ,
Requirement: Backup a SharePoint Site Collection using Central Administration Backup Site Collection in SharePoint 2016 Central Admin Site collections can be backed up using SharePoint 2016 Central Administration. To backup a  site collection using Central Administration, follow these steps: Login to SharePoint Central Administration Site >> Click on "Backup and Restore" link in the left navigation. Under Granular Backup, Click on "Perform a Site Collection backup" On the Site Collection Backup page, Select the target site collection to backup. You can switch between web applications and select any site collection in the farm. Set the UNC path to the backup file location. You can also specify any location server location such as "D:\Backup\Sales.bak" Click on "Start Backup" to begin the backup procedure. You'll get backup job status page. Based on the size of your site collection, backup may take time. Wait for the backu
Backup SharePoint Site Collection using Central Admin Backup SharePoint Site Collection using Central Admin Reviewed by Salaudeen Rajack on May 08, 2017 Rating: 5

Rename a File in SharePoint Document Library using PowerShell

May 06, 2017    ,
Requirement: Rename a File in SharePoint document library using PowerShell. PowerShell to Rename a File in SharePoint: Lets rename a file with ID "4" in "Documents" SharePoint library. Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue #Variables for processing $WebURL = "http://intranet.crescent.com" $ListName = "Documents" $ItemID ="4" $NewFileName="sharepoint databases.pptx" #Get Web, List and Item $Web = Get-SPWeb $WebURL $List = $Web.Lists[$ListName] $ListItem = $List.GetItemByID($ItemID) #Check-out and Rename the file $ListItem.File.CheckOut() $ListItem["Name"] = $NewFileName $ListItem.Update() $ListItem.File.CheckIn("File has been renamed!") Instead of Item ID, Lets use the existing file name and rename it. Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue #Variables for processing $WebURL = "http://intranet.crescent.com" $ListNam
Rename a File in SharePoint Document Library using PowerShell Rename a File in SharePoint Document Library using PowerShell Reviewed by Salaudeen Rajack on May 06, 2017 Rating: 5
Powered by Blogger.