Using the Powershell Group Policy module it seems the only way to add a policy to a GPO with using its equivalent registry value. What if I want to add a policy for a logon script? Is there an equivalent registry value for this?
Some background on what I'm trying to do, if it helps people answer my question:
My company is an IT provider for other companies, and I've been writing a script for when we take on a new customer. It runs a bunch of commands on workstations, sets up software, and creates a GPO for our basic policies. I would like that GPO to include a logon script. I would probably have Powershell create (or download) a batch file for the actual script, but I need to be able to add it to the GPO.
Can I do this with Powershell?