Skip to content

Instantly share code, notes, and snippets.

@turboBasic
Created July 1, 2018 02:17
Show Gist options
  • Save turboBasic/01e7f40054f2c577d162226be379ec0c to your computer and use it in GitHub Desktop.
Save turboBasic/01e7f40054f2c577d162226be379ec0c to your computer and use it in GitHub Desktop.
C:\Windows\System32\GroupPolicy\User\Scripts\psscripts.ini: file for running Powershell scripts from Group policy
[ScriptsConfig]
StartExecutePSFirst=true
EndExecutePSFirst=true
[Logon]
0CmdLine=writelog1.ps1
0Parameters=
[Logoff]
0CmdLine=writelog2.ps1
0Parameters=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment