wshShell.Run("RegEdit /s " & "RoamingProfile.reg")
To run this reg file:
Windows Registry Editor Version 5.00
"ExcludeProfileDirs"="Local Settings\\Temporary Internet Files;Local Settings\\History;Local Settings\\Temp"
Its to remove this registry entry so that roaming profiles will move the Outlook folder. I put it in the logon script section for group policy but it does not run. If I run it on the local machine it works. Is there something I need to change in the script since it is going through group policy and loading off a server instead of just clicking and running from the local machine?
If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.