Powershell Command for SharePoint 2016
Are there any documentation on the new powershell commands for SP 2016?
August 26th, 2015 12:36am

e.g. how to configure SPInsights

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 1:23am

It would be nice if the is an List of the new cmdlet like Copy-SPSite.

But i think first you can compare the output of Get-Command from SP2013 and SP2016.

So long

Andre

August 26th, 2015 2:36am

So far I've not seen any new commands for PowerShell targeted for SharePoint 2016 Preview. There are only 13 PowerShell commands listed in the TechNet article Windows PowerShell for SharePoint Server 2016 IT Preview reference:

Database

  • Dismount-SPContentDatabase
  • Dismount-SPContentDatabase
  • Test-SPContentDatabase


Administer security

  • Add-SPShellAdmin
  • Get-SPShellAdmin
  • Remove-SPShellAdmin

 

Service application

  • Install-SPService
  • Get-SPService
  • Start-SPService
  • Stop-SPService

 

Manage server

  • Get-SPServer
  • Rename-SPServer
  • Set-SPServer

 

But if not already implemented, we can expect to have all SharePoint Server 2013 cmdlets in the preview, RTM and/or first product release.

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 2:53am

So far I've not seen any new commands for PowerShell targeted for SharePoint 2016 Preview. There are only 13 PowerShell commands listed in the TechNet article Windows PowerShell for SharePoint Server 2016 IT Preview reference:

Database

  • Dismount-SPContentDatabase
  • Mount-SPContentDatabase
  • Test-SPContentDatabase


Administer security

  • Add-SPShellAdmin
  • Get-SPShellAdmin
  • Remove-SPShellAdmin

 

Service application

  • Install-SPService
  • Get-SPService
  • Start-SPService
  • Stop-SPService

 

Manage server

  • Get-SPServer
  • Rename-SPServer
  • Set-SPServer

 

But if not already implemented, we can expect to have all SharePoint Server 2013 cmdlets in the preview, RTM and/or first product release.

August 26th, 2015 6:48am

For a complete list of new and updated Windows PowerShell commands related to SharePoint Server 2016 IT Preview see also https://technet.microsoft.com/EN-US/library/ee662539(v=office.16).aspx.  SharePoint Server 2016 IT Preview will also carry forward many of the Windows PowerShell commands that exist in SharePoint Server 2013.  If there is a specific command expected that is it not available please let us know.

Thanks,

Bill

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 4:52pm

While Microsoft SharePoint Insights is included in SharePoint Server 2016 IT Preview it is not yet available for configuration in this release.  We'll continue to update our documentation throughout the Preview to make available additional documentation related to new Features and capabilities in SharePoint Server 2016 IT Preview on TechNet at https://technet.microsoft.com/en-us/library/cc303422(v=office.16).aspx or subscribe to updates at https://technet.microsoft.com/en-us/library/dn789211(v=office.14).aspx.

Bill

August 26th, 2015 4:55pm

Thanks Bill!

Trust me to hit something that isn't available yet...

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 5:01pm

not yet, but it's trivial to do a compare using Get-Command which will produce output showing the cmdlets that are new and the ones that have been removed.

Some of the new cmdlets have been detailed by Trevor Seward on his blog

August 26th, 2015 5:04pm

For a complete list of new and updated Windows PowerShell commands related to SharePoint Server 2016 IT Preview see also https://technet.microsoft.com/EN-US/library/ee662539(v=office.16).aspx.  SharePoint Server 2016 IT Preview will also carry forward many of the Windows PowerShell commands that exist in SharePoint Server 2013.  If there is a specific command expected that is it not available please let us know.

Thanks,

Bill

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 8:51pm

While Microsoft SharePoint Insights is included in SharePoint Server 2016 IT Preview it is not yet available for configuration in this release.  We'll continue to update our documentation throughout the Preview to make available additional documentation related to new Features and capabilities in SharePoint Server 2016 IT Preview on TechNet at https://technet.microsoft.com/en-us/library/cc303422(v=office.16).aspx or subscribe to updates at https://technet.microsoft.com/en-us/library/dn789211(v=office.14).aspx.

Bill

August 26th, 2015 8:53pm

Benny,

I am the writer responsible for documenting Windows PowerShell for SharePoint.  Most of the SharePoint 2013 cmdlets documentation does apply for SharePoint Server 2016, however all of the new cmdlets for SharePoint Server 2016 WILL be documented by RTM.

If there is a specific cmdlet(s) you would like to see documented before RTM, please let me know

Regards,

Kirk Stark, MSFT

Senior Technical Writer, SharePoint Products

Free Windows Admin Tool Kit Click here and download it now
August 27th, 2015 6:14pm

Kirk,

That's great news (even if i thought this would be the case). The PowerShell cmdlets for SharePoint Server 2016 I'm most interested in is the Features and solutions cmdlets, specifically

  • Disable-SPFeature
  • Enable-SPFeature
  • Get-SPFeature

Sin

August 31st, 2015 3:14am

Benny,

Thank you for your reply.

I will add these cmdlets to my list to document.

I will let you know when they are published.

Kirk Stark, MSFT

Senior Technical Writer, SharePoint Products

Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2015 1:49pm

You can do a Get-Command -Module Microsoft.SharePoint.Powershell | select -expand Name > cmdlets.txt on both servers, and then diff the files. From what I've compared there are:

Removed cmdlets:

Add-DatabaseToAvailabilityGroup
Add-SPEduClassMember
Add-SPEduUser
Backup-SPRSEncryptionKey
Dismount-SPRSDatabase
Get-AvailabilityGroupStatus
Get-PowerPivotServiceApplication
Get-PowerPivotSystemService
Get-PowerPivotSystemServiceInstance
Get-SPEduServiceSetting
Get-SPExcelBIServer
Get-SPExcelBlockedFileType
Get-SPExcelDataConnectionLibrary
Get-SPExcelDataProvider
Get-SPExcelFileLocation
Get-SPExcelServiceApplication
Get-SPExcelUserDefinedFunction
Get-SPRSDatabase
Get-SPRSDatabaseCreationScript
Get-SPRSDatabaseRightsScript
Get-SPRSDatabaseUpgradeScript
Get-SPRSExtension
Get-SPRSProxyUrl
Get-SPRSServiceApplication
Get-SPRSServiceApplicationProxy
Get-SPRSServiceApplicationServers
Get-SPRSSite
Install-SPEduSites
Install-SPRSService
Install-SPRSServiceProxy
Mount-SPRSDatabase
New-PowerPivotServiceApplication
New-PowerPivotSystemServiceInstance
New-SPEduClass
New-SPExcelBIServer
New-SPExcelBlockedFileType
New-SPExcelDataConnectionLibrary
New-SPExcelDataProvider
New-SPExcelFileLocation
New-SPExcelServiceApplication
New-SPExcelUserDefinedFunction
New-SPRSDatabase
New-SPRSExtension
New-SPRSServiceApplication
New-SPRSServiceApplicationProxy
Remove-DatabaseFromAvailabilityGroup
Remove-PowerPivotServiceApplication
Remove-PowerPivotSystemServiceInstance
Remove-SPEduClassMember
Remove-SPExcelBIServer
Remove-SPExcelBlockedFileType
Remove-SPExcelDataConnectionLibrary
Remove-SPExcelDataProvider
Remove-SPExcelFileLocation
Remove-SPExcelUserDefinedFunction
Remove-SPRSDatabase
Remove-SPRSEncryptedData
Remove-SPRSExtension
Remove-SPRSServiceApplication
Restore-SPRSEncryptionKey
Set-PowerPivotServiceApplication
Set-PowerPivotSystemService
Set-SPEduServiceSetting
Set-SPExcelBIServer
Set-SPExcelDataConnectionLibrary
Set-SPExcelDataProvider
Set-SPExcelFileLocation
Set-SPExcelServiceApplication
Set-SPExcelUserDefinedFunction
Set-SPRSDatabase
Set-SPRSExtension
Set-SPRSServiceApplication
Update-PowerPivotSystemService
Update-SPRSEncryptionKey

So obviously, Excel Services, PowerPivot and Report Server cmdlets are gone. Also Add-DatabaseToAvailabilityGroup.

New cmdlets include:

Add-SPIPRangeAllowList
Compare-SPDatabaseSchema
Copy-SPDatabase
Copy-SPSideBySideFiles
Disable-SPIPRangeAllowList
Disable-SPProjectActiveDirectoryEnterpriseResourcePoolSync
Disable-SPProjectEmailNotification
Disable-SPProjectEnterpriseProjectTaskSync
Disable-SPProjectQueueStatsMonitoring
Disable-SPSecureStoreMinDB
Disable-SPVideoStreaming
Disable-SPWebTemplateForSiteMaster
Dismount-SPSiteMapDatabase
Enable-SPIPRangeAllowList
Enable-SPProjectActiveDirectoryEnterpriseResourcePoolSync
Enable-SPProjectEmailNotification
Enable-SPProjectEnterpriseProjectTaskSync
Enable-SPProjectQueueStatsMonitoring
Enable-SPSecureStoreMinDB
Enable-SPVideoStreaming
Enable-SPWebTemplateForSiteMaster
Export-SPAccessServicesDatabase
Export-SPTagsAndNotesData
Get-SPAppStoreWebServiceConfiguration
Get-SPAzureVideoServiceAccount
Get-SPConnectedServiceApplicationInformation
Get-SPInsightsAuthSettings
Get-SPIPRangeAllowList
Get-SPMicrofeedOptions
Get-SPO365LinkSettings
Get-SPProjectDatabaseQuota
Get-SPProjectDatabaseUsage
Get-SPProjectEnterpriseProjectTaskSync
Get-SPProjectEventServiceSettings
Get-SPProjectIsEmailNotificationEnabled
Get-SPProjectOdataConfiguration
Get-SPProjectPCSSettings
Get-SPProjectPermissionMode
Get-SPProjectQueueSettings
Get-SPProjectWebInstance
Get-SPRuntimeTelemetry
Get-SPService
Get-SPSiteMapDatabase
Get-SPSiteMaster
Get-SPVideoStreamingConfig
Get-SPWebTemplatesEnabledForSiteMaster
Import-SPAccessServicesDatabase
Invoke-SPProjectActiveDirectoryEnterpriseResourcePoolSync
Invoke-SPProjectActiveDirectoryGroupSync
Migrate-SPDatabase
Migrate-SPProjectDatabase
Migrate-SPProjectResourcePlans
Mount-SPSiteMapDatabase
Move-SPAppManagementData
Move-SPSecureStorePartitionData
New-SPAzureVideoServiceAccount
New-SPProjectServiceApplication
New-SPProjectServiceApplicationProxy
New-SPSiteMaster
Pause-SPProjectWebInstance
Register-SPContentDatabase
Remove-SPAzureVideoServiceAccount
Remove-SPIPRangeAllowList
Remove-SPProjectWebInstanceData
Remove-SPSiteMaster
Repair-SPProjectWebInstance
Reset-SPProjectEventServiceSettings
Reset-SPProjectPCSSettings
Reset-SPProjectQueueSettings
Reset-SPSites
Resume-SPProjectWebInstance
Resume-SPVideoStreamingAccess
Set-SPAppStoreWebServiceConfiguration
Set-SPDefaultProfileConfig
Set-SPInsightsAuthSettings
Set-SPIPAccessControlOperationMode
Set-SPIPAccessControlSubscriptionId
Set-SPIPRangeAllowList
Set-SPIPRangeAllowListSetting
Set-SPMicrofeedOptions
Set-SPO365LinkSettings
Set-SPProjectDatabaseQuota
Set-SPProjectEventServiceSettings
Set-SPProjectOdataConfiguration
Set-SPProjectPCSSettings
Set-SPProjectPermissionMode
Set-SPProjectQueueSettings
Set-SPProjectServiceApplication
Set-SPProjectUserSync
Set-SPProjectUserSyncDisabledSyncThreshold
Set-SPProjectUserSyncFullSyncThreshold
Set-SPProjectUserSyncOffPeakSyncThreshold
Set-SPRuntimeTelemetry
Set-SPServer
Start-SPService
Stop-SPService
Suspend-SPVideoStreamingAccess
Switch-SPSitesToNewDatabase
Sync-SPProjectPermissions
Test-SPIPRangeAllowList
Test-SPO365LinkSettings
Test-SPProjectServiceApplication
Test-SPProjectWebInstance
Update-SPAzureBlobConfigLocator
Update-SPAzureBlobConfigLocatorEx
Update-SPAzureBlobConfigLocatorEx1
Update-SPAzureBlobLogStoreSignatures
Update-SPAzureBlobSignaturesEx
Update-SPAzureBlobSignaturesEx1
Upgrade-SPAppManagementServiceApplication
Upgrade-SPConfigurationDatabase
Upgrade-SPProfileServiceApplication
Upgrade-SPServer
Upgrade-SPSiteMapDatabase
Upgrade-SPWebApplication

Lots of interesting stuff here:

- What's SPSiteMapDatabase?
- Azure Video Streaming! Nice.
- Azure Blob?
- Register-SPContentDatabase - is it like Mount-SPContentDatabase? What's the difference?
- Switch-SPSitesToNewDatabase - is it like Move-SPSite? What's the difference?
- and others...

September 4th, 2015 3:15am

You can do a Get-Command -Module Microsoft.SharePoint.Powershell | select -expand Name > cmdlets.txt on both servers, and then diff the files. From what I've compared there are:

Removed cmdlets:

Add-DatabaseToAvailabilityGroup
Add-SPEduClassMember
Add-SPEduUser
Backup-SPRSEncryptionKey
Dismount-SPRSDatabase
Get-AvailabilityGroupStatus
Get-PowerPivotServiceApplication
Get-PowerPivotSystemService
Get-PowerPivotSystemServiceInstance
Get-SPEduServiceSetting
Get-SPExcelBIServer
Get-SPExcelBlockedFileType
Get-SPExcelDataConnectionLibrary
Get-SPExcelDataProvider
Get-SPExcelFileLocation
Get-SPExcelServiceApplication
Get-SPExcelUserDefinedFunction
Get-SPRSDatabase
Get-SPRSDatabaseCreationScript
Get-SPRSDatabaseRightsScript
Get-SPRSDatabaseUpgradeScript
Get-SPRSExtension
Get-SPRSProxyUrl
Get-SPRSServiceApplication
Get-SPRSServiceApplicationProxy
Get-SPRSServiceApplicationServers
Get-SPRSSite
Install-SPEduSites
Install-SPRSService
Install-SPRSServiceProxy
Mount-SPRSDatabase
New-PowerPivotServiceApplication
New-PowerPivotSystemServiceInstance
New-SPEduClass
New-SPExcelBIServer
New-SPExcelBlockedFileType
New-SPExcelDataConnectionLibrary
New-SPExcelDataProvider
New-SPExcelFileLocation
New-SPExcelServiceApplication
New-SPExcelUserDefinedFunction
New-SPRSDatabase
New-SPRSExtension
New-SPRSServiceApplication
New-SPRSServiceApplicationProxy
Remove-DatabaseFromAvailabilityGroup
Remove-PowerPivotServiceApplication
Remove-PowerPivotSystemServiceInstance
Remove-SPEduClassMember
Remove-SPExcelBIServer
Remove-SPExcelBlockedFileType
Remove-SPExcelDataConnectionLibrary
Remove-SPExcelDataProvider
Remove-SPExcelFileLocation
Remove-SPExcelUserDefinedFunction
Remove-SPRSDatabase
Remove-SPRSEncryptedData
Remove-SPRSExtension
Remove-SPRSServiceApplication
Restore-SPRSEncryptionKey
Set-PowerPivotServiceApplication
Set-PowerPivotSystemService
Set-SPEduServiceSetting
Set-SPExcelBIServer
Set-SPExcelDataConnectionLibrary
Set-SPExcelDataProvider
Set-SPExcelFileLocation
Set-SPExcelServiceApplication
Set-SPExcelUserDefinedFunction
Set-SPRSDatabase
Set-SPRSExtension
Set-SPRSServiceApplication
Update-PowerPivotSystemService
Update-SPRSEncryptionKey

So obviously, Excel Services, PowerPivot and Report Server cmdlets are gone. Also Add-DatabaseToAvailabilityGroup.

New cmdlets include:

Add-SPIPRangeAllowList
Compare-SPDatabaseSchema
Copy-SPDatabase
Copy-SPSideBySideFiles
Disable-SPIPRangeAllowList
Disable-SPProjectActiveDirectoryEnterpriseResourcePoolSync
Disable-SPProjectEmailNotification
Disable-SPProjectEnterpriseProjectTaskSync
Disable-SPProjectQueueStatsMonitoring
Disable-SPSecureStoreMinDB
Disable-SPVideoStreaming
Disable-SPWebTemplateForSiteMaster
Dismount-SPSiteMapDatabase
Enable-SPIPRangeAllowList
Enable-SPProjectActiveDirectoryEnterpriseResourcePoolSync
Enable-SPProjectEmailNotification
Enable-SPProjectEnterpriseProjectTaskSync
Enable-SPProjectQueueStatsMonitoring
Enable-SPSecureStoreMinDB
Enable-SPVideoStreaming
Enable-SPWebTemplateForSiteMaster
Export-SPAccessServicesDatabase
Export-SPTagsAndNotesData
Get-SPAppStoreWebServiceConfiguration
Get-SPAzureVideoServiceAccount
Get-SPConnectedServiceApplicationInformation
Get-SPInsightsAuthSettings
Get-SPIPRangeAllowList
Get-SPMicrofeedOptions
Get-SPO365LinkSettings
Get-SPProjectDatabaseQuota
Get-SPProjectDatabaseUsage
Get-SPProjectEnterpriseProjectTaskSync
Get-SPProjectEventServiceSettings
Get-SPProjectIsEmailNotificationEnabled
Get-SPProjectOdataConfiguration
Get-SPProjectPCSSettings
Get-SPProjectPermissionMode
Get-SPProjectQueueSettings
Get-SPProjectWebInstance
Get-SPRuntimeTelemetry
Get-SPService
Get-SPSiteMapDatabase
Get-SPSiteMaster
Get-SPVideoStreamingConfig
Get-SPWebTemplatesEnabledForSiteMaster
Import-SPAccessServicesDatabase
Invoke-SPProjectActiveDirectoryEnterpriseResourcePoolSync
Invoke-SPProjectActiveDirectoryGroupSync
Migrate-SPDatabase
Migrate-SPProjectDatabase
Migrate-SPProjectResourcePlans
Mount-SPSiteMapDatabase
Move-SPAppManagementData
Move-SPSecureStorePartitionData
New-SPAzureVideoServiceAccount
New-SPProjectServiceApplication
New-SPProjectServiceApplicationProxy
New-SPSiteMaster
Pause-SPProjectWebInstance
Register-SPContentDatabase
Remove-SPAzureVideoServiceAccount
Remove-SPIPRangeAllowList
Remove-SPProjectWebInstanceData
Remove-SPSiteMaster
Repair-SPProjectWebInstance
Reset-SPProjectEventServiceSettings
Reset-SPProjectPCSSettings
Reset-SPProjectQueueSettings
Reset-SPSites
Resume-SPProjectWebInstance
Resume-SPVideoStreamingAccess
Set-SPAppStoreWebServiceConfiguration
Set-SPDefaultProfileConfig
Set-SPInsightsAuthSettings
Set-SPIPAccessControlOperationMode
Set-SPIPAccessControlSubscriptionId
Set-SPIPRangeAllowList
Set-SPIPRangeAllowListSetting
Set-SPMicrofeedOptions
Set-SPO365LinkSettings
Set-SPProjectDatabaseQuota
Set-SPProjectEventServiceSettings
Set-SPProjectOdataConfiguration
Set-SPProjectPCSSettings
Set-SPProjectPermissionMode
Set-SPProjectQueueSettings
Set-SPProjectServiceApplication
Set-SPProjectUserSync
Set-SPProjectUserSyncDisabledSyncThreshold
Set-SPProjectUserSyncFullSyncThreshold
Set-SPProjectUserSyncOffPeakSyncThreshold
Set-SPRuntimeTelemetry
Set-SPServer
Start-SPService
Stop-SPService
Suspend-SPVideoStreamingAccess
Switch-SPSitesToNewDatabase
Sync-SPProjectPermissions
Test-SPIPRangeAllowList
Test-SPO365LinkSettings
Test-SPProjectServiceApplication
Test-SPProjectWebInstance
Update-SPAzureBlobConfigLocator
Update-SPAzureBlobConfigLocatorEx
Update-SPAzureBlobConfigLocatorEx1
Update-SPAzureBlobLogStoreSignatures
Update-SPAzureBlobSignaturesEx
Update-SPAzureBlobSignaturesEx1
Upgrade-SPAppManagementServiceApplication
Upgrade-SPConfigurationDatabase
Upgrade-SPProfileServiceApplication
Upgrade-SPServer
Upgrade-SPSiteMapDatabase
Upgrade-SPWebApplication

Lots of interesting stuff here:

- What's SPSiteMapDatabase?
- Azure Video Streaming! Nice.
- Azure Blob?
- Register-SPContentDatabase - is it like Mount-SPContentDatabase? What's the difference?
- Switch-SPSitesToNewDatabase - is it like Move-SPSite? What's the difference?
- and others...

Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 3:15am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics