зеркало из https://github.com/microsoft/PFE.git
Silently continue when adding snap-in
Useful for cases where the module is loaded for management of SPO sites, or where no snap-in exists.
This commit is contained in:
Родитель
ca13104a5d
Коммит
fd9e102ee7
|
@ -1,2 +1,2 @@
|
|||
#SharePoint PowerShell Snap-In
|
||||
if(!(Get-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction 0)){Add-PSSnapin Microsoft.SharePoint.PowerShell}
|
||||
if(!(Get-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction 0)){Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue}
|
Загрузка…
Ссылка в новой задаче