Sometimes you need to change user settings when deploying packages and it would be nice to have a function for this. The dream scenario would be if the function could handle these things.
- Add HKCU registry keys for users.
- Copy custom files/scripts to a folder on the client and then run this from the users context.
- Run the above file/script for the current logged in user.
The first two things is possible with scripts and Active Setup but the last one is a bit more complex which I'm not sure how to solve. I have seen other Client Management systems handle this but I don't know if it's possible with scripting only. If it isn't possible then the two first things would be nice anyway.
Comments: Also, not sure what you meant by "Citrix Users that are not logged on." Not too familiar with Citrix, so if something novel happens with Citrix users, I'd be interested to know. Otherwise, Set-HKCURegistrySettingsForAllUsers will modify registry settings for users that are not logged on as long as they have a profile on the system with their registry hive file present.