Upgrades to beta versions should not be automatic

Options
RichardBurt
RichardBurt Posts: 13 ✭✭
edited May 2023 in General questions

I had the setting in my host modules, "upgrade to next major version" 

In no way should this include Beta versions

Tagged:

Comments

  • kostas_laz
    Options

    You can check the video on

    I hope this will help you

     

  • kyle_norquist
    Options

    I know this is an older post, but I thought I'd share in case anyone else is curious.

    I write our company's scripts in PowerShell. However, by default the execution policy is set to Restricted for our users. To circumvent this, I wrote .bat files that will call PowerShell with the appropriate execution policy (Bypass), download the scripts, and then run them. Setting the execution policy this way is only temporary. Syntax would look like

    Powershell.exe -ExecutionPolicy Bypass -NoExit -Command "Invoke-WebRequest -Method Get -OutFile NAMEOFSCRIPT.ps1 -Uri 'DOWNLOADURL';.\NAMEOFSCRIPT.ps1"

    The -NoExit flag is so the window doesn't immediately close, in case I need to check for error messages.

    We're a Windows environment, so I have lots of generic utility scripts - stuff like installing our DNS filtering client, changing the hostname, elevating user privileges, etc.