Regset in basic fixlet

I must be doing something wrong, I have never gotten RegSet to work.
trying to get this to work.
regset “HKLM\SOFTWARE\Policies\Microsoft\OneDrive” “AutomaticUploadBandwidthPercentage”=“dword:00000032”

from a basic fixlet I have tried an example from the developers site and this does not work either.
regset “[HKEY_CURRENT_USER\Software\BigFix Inc.]” “testString”=“bob”

I have tried variations of it and it still does not work.
regset “[HKEY_LOCAL_Machine\Software\BigFix]” “testString”=“bob”

I’m at a loss?

correction I was able to get this to work regset “[HKEY_LOCAL_Machine\Software\BigFix]” “testString”=“bob”
but it will not work for regset “HKLM\SOFTWARE\Policies\Microsoft\OneDrive” “AutomaticUploadBandwidthPercentage”=“dword:00000032”

there must be some reason it can’t write to the policy branch?

obviously the example given on the developers web site;
regset “[HKEY_CURRENT_USER\Software\BigFix Inc.]” “testString”=“bob”
does not work for the current user in a basic fixlet, because the fixlet runs “as system” so it is trying to set the systems current user key.

If setting a dword, you’ll not want double-quotes around the value. Try:

regset "[HKLM\SOFTWARE\Policies\Microsoft\OneDrive]" "AutomaticUploadBandwidthPercentage"=dword:00000032

2 Likes

You may also need to be using regset64 , else this would be redirected to HKLM\Software\wow6432Node\Policies. Check and see whether it was redirected there…

3 Likes

thank you for the help