您的位置:首页 > 运维架构 > Shell

SharePoint PowerShell: Get Web ID (GUID) with PowerShell

2014-08-24 01:39 423 查看
Use this small script to get the ID or GUID of a site(web) in your SharePoint environment.
Don't forget to change the webURL to your site URL!

Script:

# Starting the script

Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue

$webURL = "http://mySPServer/sites/mySite"

$web = Get-SPWeb -Identity $webURL

$web.ID
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: