SOLVED

Misleading instructions in Baseline-LocalInstall

New Contributor

Requirements in Baseline-LocalInstall.ps1 say that:

 

REQUIREMENTS:

* PowerShell execution policy must be configured to allow script execution; for example,
  with a command such as the following:
  Set-ExecutionPolicy RemoteSigned

 

However, it's not signed, so it is not possible to run it with such ExecutionPolicy. 


It is possible to run it with `Set-ExecutionPolicy -Scope Process Unrestricted`, but I was wondering if I downloaded it from the wrong place, and there is signed file somwhere.

3 Replies
best response confirmed by ilmarsl (New Contributor)
Solution

@ilmarsl - it's not misleading. The "RemoteSigned" execution policy means that scripts from remote systems must be signed by a trusted publisher. You should download the zip file locally, and remember to unblock the downloaded zip file before expanding its contents. If you don't unblock it, the script file will retain a "mark of the web" and be treated as a remote file.

Just tried it, and you are correct. After unblocking the zip file it works as described. Thank you.

Language Packs must be look into, local identifier, constants and Strings.