This HEX Codes are the same in every Client as far as I know. I have a problem while executing the action.
It seems BigFix can’t properly create the reg file as I want it. If I use the same reg file by double-clicking on it , it works properly and create the icons I want.
BigFix fails to create the registry file as you can see in the attached e-mail…
Now the fixlet works properly but it says that the task was completed succesfully but I have no icons on desktop. The registry values are set to 1 instead of 0.
It seems it doesn’t use the currentm logged on user.
Ah sorry, I didn’t read everything closely. BigFix is running as the local SYSTEM account, so when you want to modify stuff in HKCU you need to make some additional adjustments. There’s lots of discussion on that topic on the forums already, but this should hopefully get you started:
This I know, infact using the Wizard from BigFix Console I flagged “Run the generated task as the currently logged-in user” as you can see in the attached picture.
You can use the software distribution dashboard to deploy your shortcuts if you wish. You import the .lnk file in SWD and modify the action script to only include the bare bones. I should already have a template to do this.
Alternatively, you can invoke a vbs or powershell script in a fixlet that can do it in less steps, and run as current user. It would be quite easy to create a fixlet that prompts you for the link you want to create. Again, I may have some stuff already but I will need to test as I don’t think I’ve tried it with Win10.
Problem is that those files are not .lnk - to enable those links you have to do it from Control Panel that set to “0” a value inside a Local User Registry Key, that is the problem I’m having right now.
parameter “currentUser”=“{(name of key whose (((it = name of current user as lowercase OR it starts with name of current user as lowercase & “@”) of (it as string as lowercase) of (if (name of operating system = “Win7” OR name of operating system = “Win8” OR name of operating system = “Win8.1” OR name of operating system = “Win10”) then value “USERNAME” of key “Volatile Environment” of it else value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it))) of key “HKEY_USERS” of registry)}”
regset “[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]” “{{20D04FE0-3AEA-1069-A2D8-08002B30309D}}”=“dword:00000000”
regset “[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]” “{{20D04FE0-3AEA-1069-A2D8-08002B30309D}}”=“dword:00000000”
regset “[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]” “{{59031a47-3f72-44a7-89c5-5595fe6b30ee}}”=“dword:00000000”
regset “[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]” “{{59031a47-3f72-44a7-89c5-5595fe6b30ee}}”=“dword:00000000”
regset “[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]” “{{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}}”=“dword:00000000”
regset “[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]” “{{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}}”=“dword:00000000”
This was my last attempt, I’ve used this code (first line) that is from another fixlet we used that properly modifies some other registry keys. I can’t understand why it isn’t working.
if {not exists folder ((value "Programs" of key "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" of current user keys (logged on users) of registry ) as string &"\Shortcuts")}
dos mkdir "{(value "Programs" of key "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" of current user keys (logged on users) of registry ) as string &"\Shortcuts"}"
endif
//Now copy the shortcut
copy "{parameter "baseFolder"}Control Panel.lnk" "{(value "Desktop" of key
"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" of current user keys (logged on users)
of registry ) as string &"\Control Panel.lnk"}"
Save and test against a Win10 or Win7 machine.
This is the bare bones, it will need a bit of additional relevance for applicability which I can help you with - best to get this bit working first though.