sharePoint常用命令
New-SPStateServiceDatabase -Name "StateServiceDatabase" | New-SPStateServiceApplication -Name "Microsoft SharePoint Server State Service" | New-SPStateServiceApplicationProxy -DefaultProxyGroup
stsadm -o activatefeature -url " http://mySite:21198/" -id "bb28df43-6425-4b99-a729-65f2222222" -force
$sts = Get-SPTrustedIdentityTokenIssuer
$uri = new-object System.Uri("http://mySite.com")
$sts.ProviderRealms.Add($uri, "http://mySite.com/_trust/default.aspx")
$sts.Update()
$SiteUrl = "http://mySite:21198/"
$Site = Get-SPWeb -identity $SiteUrl
$RootFolder = $Site.RootFolder;
$RootFolder.WelcomePage = "Index.aspx";
$RootFolder.Update();
$Site.Dispose()
清理内存:
net stop sptimerv4
net start sptimerv4