jt-65
1
I couldn’t post my question with Invoke-HKCURegistrySettingsForAllUsers in the title! It’s going to be one of those days.
The example for Invoke-HKCURegistrySettingsForAllUsers references the $UserProfile variable.
This is the only place in the Admin Guide where this variable is mentioned. This is not a PSADT variable, nor is it a standard PS variable.
Am I supposed to be setting this variable somewhere? If so, to what? Am I supposed to be using $envUserProfile?
It’s -UserProfiles and you’re good to go with just not using it - which means all profiles.
PARAMETER UserProfiles
Specify the user profiles to modify HKCU registry settings for. Default is all user profiles except for system profiles.
jt-65
3
You’re correct and I might have done that, except I figured out what I was doing wrong. I guess my PowerShell was a little rusty.
I was splatting this, and it caused nothing but problems…like I wasn’t passing any arguments to the command.