PowerShell fomat.ps1xml no accesible

PowerShell fomat.ps1xml no accesible

Estoy intentando cargar Exchange Management Shell y me da un gran error rojo que dice:

Import-Module : There were errors in loading the format data file: Microsoft.PowerShell, , %APPDATA%\Roaming\Microsoft\Exchange\RemotePowerShell\DOMAINNAME.format.ps1xml :

File skipped because of the following validation exception: File %APPDATA%\Roaming\Microsoft\Exchange\RemotePowerShell\DOMAINNAME.format.ps1xml cannot be loaded.

The file %APPDATA%\Roaming\Microsoft\ExchangeRemotePowerShell\DOMAINNAME\DOMAINNAME.format.ps1xml is not digitally signed. The script will not execute on the system. Please see "get-help about_signing" for more details...

El %APPDATA% está almacenado en un servidor externo en mi red (al que puedo hacer ping sin problemas). También me faltan un montón de cmdlets de PS, que supongo que están almacenados en '*.format.ps1xml'

Intenté encontrar el directorio en el que se supone que reside format.ps1xml en el servidor externo y ni siquiera se creó.

¿Alguien puede decirme por dónde empezar?

Respuesta1

Establezca la política de ejecución en RemoteSigned en la computadora local.

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Respuesta2

De hecho terminé usando

Set-ExecutionPolicy -ExecutionPolicy sin restricciones

Todavía me pregunta sobre cómo ejecutar el script, pero al menos me da la opción de ejecutarlo. Execution-Policy = RemoteSigned de alguna manera no funcionó.

información relacionada