On the domain controller, open the group policy management tool.
Create a new group policy.
Enter a name for the new group policy.
In our example, the new GPO was named: MY-GPO.
On the Group Policy Management screen, expand the folder named Group Policy Objects.
Right-click your new Group Policy Object and select the Edit option.
On the group policy editor screen, expand the User configuration folder and locate the following item.
Access the option named Scripts.
Access the Logon configuration option.
Add a new startup script.
Create a Powershell script named MYSCRIPT inside the NETLOGON folder.
Here is the content of our script.
In our example, we are going to configure the user wallpaper.
In our example, we add a JPG file named WALLPAPER inside the NETLOGON directory.
Make sure the domain users have read-only permission over the script.
To save the group policy configuration, you need to close the Group Policy editor.
Congratulations! You have finished the GPO creation.