Posted by RichardBurt
Trigon

Upgrades to beta versions should not be automatic

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

In no way should this include Beta versions

2 Replies
2 Replies
Posted by kostas_laz
Henagon

Re: Scripting examples?

You can check the video on

I hope this will help you

 

Say goodbye to repetition. Use scripts to automate routine processes and save time on common tasks. Execute standardized processes with just one click using pre-written scripts. Simply write the code, upload your work in the Management Console, and access your saved scripts easily and conveniently
Posted by kyle_norquist
Henagon

Re: Scripting examples?

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.