alejandro-g
5/22/2017 - 7:20 PM

sharepoint snapin check

sharepoint snapin check

if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {            
    Add-PSSnapin Microsoft.SharePoint.PowerShell            
}