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
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
相关文章推荐
- SharePoint PowerShell命令系列 (13) Get-SPWebApplication & Set-SPWebApplication
- Change upload file limit in specified Webapllication in SharePoint (PowerShell)
- SharePoint PowerShell命令系列 (4) Get-SPSolution
- 利用 PowerShell 分析SharePoint WebApplication 体系结构
- 使用SharePoint Web Serivce(5)--得到新添加Item的ID,返回的XML的使用
- 利用 PowerShell 分析SharePoint WebApplication 体系结构
- SharePoint PowerShell命令系列 (14) Remove-SPWebApplication
- SharePoint PowerShell命令系列 (10) Get-SPWeb & Set-SPWeb
- SharePoint Web应用程序管理-PowerShell
- SharePoint PowerShell创建一个GUID
- SharePoint自动化系列——通过PowerShell创建SharePoint Web
- SharePoint PowerShell命令系列 (12) New-SPWebApplication
- SharePoint PowerShell命令系列 (6) Get-SPSite & Set-SPSite
- 利用 PowerShell 分析SharePoint WebApplication 体系结构
- Get item by sharepoint web service jquery
- SharePoint PowerShell命令系列 (15) Get-SPFarm
- 浏览 Windows SharePoint Services Web 站点时收到“Service Unavailable”(服务不可用)错误信息
- InfoPath/SharePoint/WebParts项目组 下一步的工作和团队未来的规划--给队员的公开信
- 浏览 Windows SharePoint Services Web 站点时收到“Service Unavailable”(服务不可用)错误信息
- 连接到您 Windows SharePoint Services Web 站点时收到 " 无法连接到配置数据库 " 错误信息