Hi
I'm in desperate need of some help or ideas having spent a few days now on trying to resolve this issue.
I am working on a generic laptop build (Win7 x64) which is heavily locked down with security compliance measures as per the recommendations. This is a standalone machine with no internet access.
There is a requirement to execute a simple .ps1 script that changes the IP address of the net adaptor before executing a application that requires that change. The script however has to run elevated to allow the changing of the IP address (AFAIK). It does not change the IP address otherwise if run without elevation.
The script works fine for all administrators but the machine also has two standard user accounts (machine will be used by several personnel). The scripts will execute and run without elevation but produce the following error if using the -verb RunAs command.
Start-Process : This command cannot be run due to the error: This program is blocked by group policy. At line:1 char:3 + &(Start-Process PowerShell -Argumentlist 'Set-ExecutionPolicy Restricted
I've tried RSOP to determine which policy is having an effect but so far no good. UAC has been turned off.
If I turn on UAC, the standard user is prompted for elevated credentials and all is good and the script runs without issue. UAC has to be turned off though in our scenario.
So far I have been fruitless with my search...
Any help greatly appreciated.