GPO Schedule Task CMD Command

GPO Schedule Task CMD Command

open “Group Policy Management”->Domain
Right click xxx.com to select “Create a GPO in this domain,and Link it here” ->Fill in a name such as test123->OK
Edit the test123->User Configuration->Preferences->Control Panel Settings->Scheduled Tasks
GPO Schedule Task CMD Command
New->Schedyked Task(At least Windows 7)
GPO Schedule Task CMD Command
Fill in a name such as “test cmd” ,choose “Run only when user is logged on”,Click OK.

GPO Schedule Task CMD Command
Add Triggers
GPO Schedule Task CMD Command
Select “at log on” to trigger when the user logs in successfully.
GPO Schedule Task CMD Command
Add Actions

GPO Schedule Task CMD Command
Progra,/script : Process path used

C:\Windows\System32\cmd.exe

Add arguments : Command to be executed

/C netsh int ipv4 set global sourceroutingbehavior=drop

GPO Schedule Task CMD Command
GPO Schedule Task CMD Command
GPO Schedule Task CMD Command
GPO Schedule Task CMD Command
GPO Schedule Task CMD Command
update computer Policy(If you don’t press this command, the computer can also update automatically after a period of time)
GPO Schedule Task CMD Command
After configuration, you can find “test cmd” in task scheduler
GPO Schedule Task CMD Command
Note: when applying the configuration to the user machine, you need to add the new policy to the same identity classification as the user machine,such as

GPO Schedule Task CMD Command

GPO Schedule Task CMD Command

Test whether the configuration is successful

On the user machine that has been logged in again->open “regedit.msc” -> open pathGPO Schedule Task CMD Command
-DisableIPSourcerRouting value is 2, the configuration is successful.
GPO Schedule Task CMD Command

上一篇:组策略应用


下一篇:浅谈域渗透中的组策略及gpp运用