Hi I want to create new Key and value under
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins
But my users doesn't have admin rights and registry editing is disabled for them so even if I an using set-REgistryKey command its running smoothly but not creating entry for currently logged on user.
Please suggest how to do that, I have attached script which i am using.
Comments: Hi ausafa Please be aware that this is not a bug or a feature request so it should have been posted in __Discussions under General__ (https://psappdeploytoolkit.codeplex.com/discussions/topics/5880/general) As a courtesy, I will answer briefly but I will not entertain your question any further after this post. Your issue is caused by the fact that each user has their own HKCU hive. So when you run your "Deploy-Application.ps1" as you (under your account "ausafa"), your HKCU hive will get the changes. Then when you login as a _different_ user, you get a _different_ HKCU hive and it didn't get the changes. Why? Because the HKCU hive for "ausafa" is not the same hive as the other user's HKCU hive. Solutions: -Use Active Setup (see in __Discussions under Toolkit Extensions__ (https://psappdeploytoolkit.codeplex.com/discussions/topics/5882/toolkit-extensions) -Wait for Toolkit v3.__5__.0 coming out soon and use the Set-HKCURegistrySettingsForAllUsers function.
HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins
But my users doesn't have admin rights and registry editing is disabled for them so even if I an using set-REgistryKey command its running smoothly but not creating entry for currently logged on user.
Please suggest how to do that, I have attached script which i am using.
Comments: Hi ausafa Please be aware that this is not a bug or a feature request so it should have been posted in __Discussions under General__ (https://psappdeploytoolkit.codeplex.com/discussions/topics/5880/general) As a courtesy, I will answer briefly but I will not entertain your question any further after this post. Your issue is caused by the fact that each user has their own HKCU hive. So when you run your "Deploy-Application.ps1" as you (under your account "ausafa"), your HKCU hive will get the changes. Then when you login as a _different_ user, you get a _different_ HKCU hive and it didn't get the changes. Why? Because the HKCU hive for "ausafa" is not the same hive as the other user's HKCU hive. Solutions: -Use Active Setup (see in __Discussions under Toolkit Extensions__ (https://psappdeploytoolkit.codeplex.com/discussions/topics/5882/toolkit-extensions) -Wait for Toolkit v3.__5__.0 coming out soon and use the Set-HKCURegistrySettingsForAllUsers function.