Error: .\FILE.ps1 : File C:\FILE.ps1 cannot be loaded. The file C:\FILE.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170. Fix (Bypass): Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass [Bypass policies] Nothing is blocked and there are no warnings …
Etiqueta: ps1
Cambiar MasterPage via PowerShell
Para cambiar la MasterPage de SharePoint por PowerShell tan solo debemos abrir la consola de SharePoint (SharePoint Management Shell) como administradores y ejecutar: $web = Get-SPWeb http://MY_SITE.com $web.CustomMasterUrl = "/_catalogs/masterpage/MY_MASTER.master" $web.MasterUrl = "/_catalogs/masterpage/MY_MASTER.master" $web.Update() También podemos crearnos un fichero ".ps1" para tener el script guardado y ejecutarlo (Siempre como administrador).