I authentificated a .PS1 script with a self-issued certificate as an administrator, who can now himself run the script with ExecutionPolicy AllSigned.
However I could not find any way to authenticate this script or a newly written copy of it as a normal user (the error message is misleading: “the file has been modified”).
I also copied the adm’s certificate to the normal user with success (mmc export/import), but the normal user still neither can run the script, nor use this certificate for any authentification.
Many further solutions from the web didn’t work either, for example a certificate moved to the root is also unusable (X509 error).
The only way seems to be setting ExecutionPolicy to Unrestricted… but thie is not really wanted.
2