- Create a notepad file
- Save that file .bat format
- Include this code that .bat file
Powershell.exe -executionpolicy remotesigned -File D:\TScripts\getfarmdetails.ps1
- Create a notepad file
- Save that file .ps1 format
Add-PSSnapin Microsoft.SharePoint.Powershell
(get-spfarm).buildversion
Type 2:
Add-PSSnapin Microsoft.SharePoint.Powershell
Get-SPFarm | Select BuildVersion
No comments:
Post a Comment