D
DwayneD1
Guest
Hi Everyone,
I'm trying to deploy a PS script via GPO.
I've tried to deploy it as a logon script and separately as a startup script.
It does not seem to execute the script.
When I try to run the script on my own machine I receive the following message:
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
a policy defined at a more specific scope. Due to the override, your shell will retain its current effective
execution policy of RemoteSigned. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
information please see "Get-Help Set-ExecutionPolicy".
At line:1 char:46
+ ... -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass }; & '\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied:
) [Set-ExecutionPolicy], SecurityException
+ FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
When I elevate the permissions to admin, it works and I can run the script manually on the machine.
Is there any way in which I can deploy this so that it runs with elevated admin permissions?
Or is there something I need to change or add in order for this to run?
Thanks
Continue reading...
I'm trying to deploy a PS script via GPO.
I've tried to deploy it as a logon script and separately as a startup script.
It does not seem to execute the script.
When I try to run the script on my own machine I receive the following message:
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
a policy defined at a more specific scope. Due to the override, your shell will retain its current effective
execution policy of RemoteSigned. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
information please see "Get-Help Set-ExecutionPolicy".
At line:1 char:46
+ ... -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass }; & '\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied:

+ FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
When I elevate the permissions to admin, it works and I can run the script manually on the machine.
Is there any way in which I can deploy this so that it runs with elevated admin permissions?
Or is there something I need to change or add in order for this to run?
Thanks
Continue reading...