D
D
Digsecman2021-07-29 14:26:36
PowerShell
Digsecman, 2021-07-29 14:26:36

Why doesn't the Startup script work in the GPO?

Hello!
I'm trying to add a logon script to launch chocolatey using GPO on a domain PC (win 10 x64 everywhere).
The domain is raised on Windows Server 2019

What I do: I

put the ps1 script here
%SYSTEMROOT%\SYSVOL\domain\scripts

Parameters:

Script name: %windir%\System32\WindowsPowerShell\v1.0\powershell.exe
Script Parameters: -Noninteractive -ExecutionPolicy Bypass –Noprofile -file %~dp0deploy.ps1

deploy script checked locally - it works.

gpupdate /force

but when you log in nothing happens on the hosts (
please tell me what's wrong

6102917b0e0f6487240541.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question