Abaixo uma lista dos comandos STSADM e seus equivalentes no PowerShell. Lembrando que não é um DE PARA e sim os comandos equivalentes no PowerShell que realizam a mesma funcionalidade.
Operações Stsadm operation |
Comandos Windows PowerShell |
Activatefeature |
|
Activateformtemplate |
|
Addalternatedomain |
|
Addcontentdb |
|
Adddataconnectionfile |
|
Add-ecsfiletrustedlocation |
|
Add-ecssafedataprovider |
|
Add-ecstrusteddataconnectionlibrary |
|
Add-ecsuserdefinedfunction |
|
Addexemptuseragent |
|
Addpath |
|
Addpermissionpolicy |
– |
Addsolution |
|
Addtemplate |
– |
Adduser |
|
Addwppack |
|
Addzoneurl |
|
Allowuserformwebserviceproxy |
Use the AllowForUserForms and Identity parameters. |
Allowwebserviceproxy |
Use the AllowWebServiceProxy and Identity parameters. |
Authentication |
Use the AuthenticationMethod or AuthenticationProvider parameters. |
Backup |
|
Backuphistory |
|
Binddrservice |
– |
Blockedfilelist |
– |
Canceldeployment |
– |
Changepermissionpolicy |
– |
Copyappbincontent |
– |
Createadminvs |
|
Creategroup |
– |
Createsite |
|
Createsiteinnewdb |
New-SPSite Use the ContentDatabase parameter. |
Createweb |
|
Databaserepair |
– |
Deactivatefeature |
|
Deactivateformtemplate |
|
Deleteadminvs |
– |
Deletealternatedomain |
|
Deleteconfigdb |
|
Deletecontentdb |
|
Deletegroup |
– |
Deletepath |
|
Deletepermissionpolicy |
– |
Deletesite |
|
Deletesolution |
|
Deletetemplate |
– |
Deleteuser |
|
Deleteweb |
|
Deletewppack |
|
Deletezoneurl |
|
Deploysolution |
|
Deploywppack |
|
Disablessc |
– |
Displaysolution |
|
Editcontentdeploymentpath |
|
|
– |
Enablessc |
– |
Enumalternatedomains |
|
Enumcontentdbs |
|
Enumdataconnectionfiledependants |
|
Enumdataconnectionfiles |
|
Enumdeployments |
– |
Enumexemptuseragents |
|
Enumformtemplates |
|
Enumgroups |
– |
Enumroles |
– |
Enumservices |
|
Enumsites |
Get-SPSiteAdministration (To run this cmdlet, you must be a member of the Farm Administrators group.) Get-SPSite (To run this cmdlet, you must be a local administrator on the computer where SharePoint 2013 is installed.) |
Enumsolutions |
|
Enumsubwebs |
|
Enumtemplates |
|
Enumusers |
|
Enumwppacks |
|
Enumzoneurls |
|
Execadmsvcjobs |
|
Export |
|
Extendvs |
|
Extendvsinwebfarm |
|
Forcedeletelist |
– |
Getadminport |
Use the following syntax: Get-SPWebApplication -IncludeCentralAdministration | ? {$_.IsAdministrationWebApplication -eq $true} |
Getdataconnectionfilepropertyproperty |
Use the following syntax: Get-SPDataConnectionFile | where {$_.Name -eq “dataConFileName”} | format-list |
Getformtemplateproperty property |
Use the following syntax: Get-SPInfoPathFormTemplate | where {$_.DisplayName -eq “formTemplateName”} | format-list |
Getosearchsetting |
– |
Getproperty |
|
Getsitelock |
|
Getsiteuseraccountdirectorypath |
– |
Geturlzone |
|
Import |
|
Installfeature |
|
Listlogginglevels |
|
Listqueryprocessoroptions |
– |
Listregisteredsecuritytrimmers |
|
Localupgradestatus |
– |
Managepermissionpolicylevel |
– |
Mergecontentdbs |
|
Migrateuser |
|
Osearch |
For the Osearch parameters farmcontactemail, farmperformancelevel, farmserviceaccount, and farmservicepassword, use theGet-SPEnterpriseSearchService and Set-SPEnterpriseSearchService cmdlets. For the Osearch parameters start and stop, use the Start-SPEnterpriseSearchServiceInstance and Stop-SPEnterpriseSearchServiceInstance cmdlets, respectively. For the Osearch parameter defaultindexlocation, use the Get-SPEnterpriseSearchServiceInstance cmdlet. |
Osearchdiacriticsensitive |
Use the Get-SPEnterpriseSearchServiceApplication cmdlet to retrieve the specific Search service application, and then useDiacriticSensitive parameter from the Set-SPEnterpriseSearchServiceApplication cmdlet. |
Profilechangelog |
None. However, you can use the Stsadm profilechangelog operation if you replace the Shared Services Provider (SSP) name with the service application (SA) name: stsadm -o profilechangelog -title <SA name> -daysofhistory <number of days> -generateanniversaries For more information about service applications, see About service applications and services in SharePoint 2013. |
Provisionservice |
|
Quiescefarm |
– |
Quiescefarmstatus |
– |
Quiesceformtemplate |
|
Reconvertallformtemplates |
|
Refreshdms |
– |
Refreshsitedms |
– |
Registersecuritytrimmer |
|
Registerwsswriter |
– |
Removedataconnectionfile |
|
Remove-ecsfiletrustedlocation |
|
Remove-ecssafedataprovider |
|
Remove-ecstrusteddataconnectionlibrary |
|
Remove-ecsuserdefinedfunction |
|
Removedrservice |
– |
Removeexemptuseragent |
|
Removeformtemplate |
|
Removesolutiondeploymentlock |
– |
Renameserver |
|
Renamesite |
Use the Url parameter. |
Renameweb |
Use the RelativeUrl parameter. |
Restore |
|
Retractsolution |
|
Retractwppack |
– |
Runcontentdeploymentjob |
|
Scanforfeatures |
Use the Scanforfeatures parameter. |
Setadminport |
|
Setapppassword |
– |
Setconfigdb |
|
Setcontentdeploymentjobschedule |
|
Setdataconnectionfileproperty |
|
Set-ecsexternaldata |
|
Set-ecsloadbalancing |
Use the LoadBalancingScheme parameter. |
Set-ecsmemoryutilization |
Use the MemoryCacheThreshold and PrivateBytesMax parameters. |
Set-ecssecurity |
Use the CrossDomainAccessAllowed, EncryptedUserConnectionRequired, and FileAccessMethod parameters. |
Set-ecssessionmanagement |
Use the SessionsPerUserMax and SiteCollectionAnonymousSessionsMax parameters. |
Set-ecsworkbookcache |
Use the Workbookcache and WorkbookCacheSizeMax parameters. |
Setformtemplateproperty |
|
Setlogginglevel |
|
Setosearchsetting |
– |
Setproperty |
|
Setqueryprocessoroptions |
– |
Setsitelock |
Use the LockState parameter. |
Setsiteuseraccountdirectorypath |
|
Setworkflowconfig |
|
Siteowner |
|
Syncsolution |
Use the Synchronize parameter. |
Unextendvs |
|
Uninstallfeature |
|
Unquiescefarm |
– |
Unquiesceformtemplate |
|
Unregistersecuritytrimmer |
|
Unregisterwsswriter |
– |
Updateaccountpassword |
|
Updatealerttemplates |
– |
Updatefarmcredentials |
– |
Upgrade |
– |
Upgradeformtemplate |
|
Upgradesolution |
|
Upgradetargetwebapplication |
– |
Uploadformtemplate |
|
Userrole |
|
Verifyformtemplate |
Abraços
Diego Pereira