• PowerShell Execution Policy change at startup

    Home » Forums » Developers, developers, developers » DevOps Lounge » PowerShell Execution Policy change at startup

    Author
    Topic
    #1774206

    If I understand (dubious), then I need to run “Set-ExecutionPolicy RemoteSigned” (sans quotes) at startup in order to run scripts (Tx RG!). But if that is so, then even my startup script (profile.ps1) won’t run without the command, right?

    Because, I have the following in Profile.ps1:

    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned

    but it doesn’t seem to “take” (error received). So, if I have to enter the command above manually before any scripts will run, then in effect my profile.ps1 must then be executed manually?

    Chuck Billow

    Reply To: PowerShell Execution Policy change at startup

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: