User Account Control (UAC) causes errors.

Jan 24, 2013 at 4:42 PM
Edited Jan 24, 2013 at 4:44 PM

Dear All,

If you have User Account Control (UAC) enabled then you may enounter certain issues/errors.

The .bat file in the download, has the line:

powershell.exe -noprofile .\Farm-Backup.ps1

This is sufficient if you do not have UAC enabled. However if you do have UAC enabled you should replace it with:

"PowerShell.exe" -Command Start-Process "$PSHOME\PowerShell.exe" -Verb RunAs -ArgumentList "'-NoExit C:\Scripts\Farm-Backup.ps1'"

Note: Edit C:\Scripts\ to reflect the path to your script.