Doing system changes via a script files will often require that you run it in the context of administrator.
Doing this with script I run myself is easy enough, I know that if it fails it is because I forgot to use "Run as administrator" when I started it (or did a poor job creating the script).
However when creating scripts that other people will run it will be a good idea to add a check in the script and give feedback to the person running it.
About Me
- Olav Tvedt
- Bergen, Norway
- 19th times Microsoft MVP (Security and Windows). IT-Dude @SpareBankenNorge
Showing posts with label run as administrator. Show all posts
Showing posts with label run as administrator. Show all posts
Wednesday, April 22, 2015
Subscribe to:
Posts (Atom)
Cleaning Up Unknown IAM Assignments Across Azure Subscriptions
If you manage more than a handful of Azure subscriptions, IAM hygiene quickly becomes one of those tasks everyone knows is important, but ...
-
Working with mobile device management (MDM) require a lot of testing. With Windows 10 testing is no problem (except those things that demand...
-
I found myself in the situation that I needed to get the Windows key out from the ACPI in the UEFI bios and preferable get to use it in a ta...
-
Felt a bit stupid today (again). Have been struggling with some Microsoft Surface Go devices. Love the device but, when they are shipped wit...