Execute script only when users are logged in

(imported topic written by jpeppers91)

I’m having an issue where I’m trying to execute a vbscript only when users are logged in. This way the HKCU hive can be updated. Under the users tab I’m specifying the Any WinNT user. The logs say it ran successfully but I do not see the changes the script is supposed to make. If I run it manually the script runs fine. Any Ideas?

waithidden cscript /e:vbs c:\temp\PerMachine-MetaDataAssistant-Configuration.vbs

(imported comment written by MattBoyd)

If it’s updating HKCU, you should use RunAsCurrentUser.exe