Updating registry entries through gpo

Posted by / 15-Jan-2020 09:38

Updating registry entries through gpo

You can then test on a system by changing it's redirection path to the new DFS path.

Everything should function the same, just referencing a different share.

Do you completely remove the value name, and then add it again and re-type the modified value/data? I am not interested in any script/batch automation, at least not now, I just want plain simple registry editing through cmd Reg command. REG ADD Key Name [/v Value Name | /ve] [/t type] [/s Separator] [/d Data] [/f] Key Name [\Machine\]Full Key Machine Name of remote machine - omitting defaults to the current machine Only HKLM and HKU are available on remote machines Full Key ROOTKEY\Sub Key ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Sub Key The full name of a registry key under the selected ROOTKEY /v The value name, under the selected Key, to add /ve adds an empty value name for the key /t Reg Key data types [ REG_SZ | REG_MULTI_SZ | REG_DWORD_BIG_ENDIAN | REG_DWORD | REG_BINARY | REG_DWORD_LITTLE_ENDIAN | REG_NONE | REG_EXPAND_SZ ] If omitted, REG_SZ is assumed /s Specify one character that you use as the separator in your data string for REG_MULTI_SZ.

Once you ensure that works, you can change for all users.

Then you add your destination share as another DFS target, but disable refrences.

Without the need to destroy a key just to add it a second later with some additional data. Here's an example for you to spur the thinking process. Here's a harder example with more data content: Key: HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Control\Session Manager\Environment Value name: Path Value type: Reg_Sz Data: C:\Program Files (x86)\Image Magick-6.8.5-Q16; C:\PROGRA~2\GTK2-R~1\bin; C:\Program Files (x86)\AMD APP\bin\x86_64; C:\Program Files (x86)\AMD APP\bin\x86; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\ATI Technologies\ATI. If omitted, use "[[

Do you completely remove the value name, and then add it again and re-type the modified value/data? I am not interested in any script/batch automation, at least not now, I just want plain simple registry editing through cmd Reg command. REG ADD Key Name [/v Value Name | /ve] [/t type] [/s Separator] [/d Data] [/f] Key Name [\\Machine\]Full Key Machine Name of remote machine - omitting defaults to the current machine Only HKLM and HKU are available on remote machines Full Key ROOTKEY\Sub Key ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Sub Key The full name of a registry key under the selected ROOTKEY /v The value name, under the selected Key, to add /ve adds an empty value name for the key /t Reg Key data types [ REG_SZ | REG_MULTI_SZ | REG_DWORD_BIG_ENDIAN | REG_DWORD | REG_BINARY | REG_DWORD_LITTLE_ENDIAN | REG_NONE | REG_EXPAND_SZ ] If omitted, REG_SZ is assumed /s Specify one character that you use as the separator in your data string for REG_MULTI_SZ.

Once you ensure that works, you can change for all users.

Then you add your destination share as another DFS target, but disable refrences.

Without the need to destroy a key just to add it a second later with some additional data. Here's an example for you to spur the thinking process. Here's a harder example with more data content: Key: HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Control\Session Manager\Environment Value name: Path Value type: Reg_Sz Data: C:\Program Files (x86)\Image Magick-6.8.5-Q16; C:\PROGRA~2\GTK2-R~1\bin; C:\Program Files (x86)\AMD APP\bin\x86_64; C:\Program Files (x86)\AMD APP\bin\x86; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\ATI Technologies\ATI. If omitted, use "\0" as the separator /d The data to assign to the registry Value Name being added /f Force overwriting the existing registry entry without prompt set append=XXXXXX set key=HKCU\Software\my Test set value=my Value set old Val= for /F "skip=2 tokens=3" %%r in ('reg query %key% /v %value%') do set old Val=%%r echo previous=%old Val% set new Val=%old Val%%append% reg add %key% /v %value% /d %new Val% /f Note: This sample assumes that the old value and the new value have no blanks.

I can afford completely deleting the value, and then adding it again, because the data contained within it is very small. ACE\Core-Static; C:\Program Files (x86)\Common Files\Acronis\Snap API\; C:\Windows\System32\Windows Power Shell\v1.0\;"C:\Program Files (x86)\Win Hasher"; C:\Program Files (x86)\Android\android-sdk\tools\; C:\Program Files (x86)\Android\android-sdk\platform-tools\; C:\Program Files (x86)\GTK2-Runtime\bin; C:\Program Files (x86)\Mi KTe X 2.9\miktex\bin\; C:\Program Files (x86)\Common Files\Teleca Shared; C:\Program Files (x86)\Notepad I want to remove only parts of the data content. Otherwise one has to add quotes and change the "tokens" parameter. However, all registry manipulating code definitely must do adequate error checking.

||

Do you completely remove the value name, and then add it again and re-type the modified value/data? I am not interested in any script/batch automation, at least not now, I just want plain simple registry editing through cmd Reg command. REG ADD Key Name [/v Value Name | /ve] [/t type] [/s Separator] [/d Data] [/f] Key Name [\\Machine\]Full Key Machine Name of remote machine - omitting defaults to the current machine Only HKLM and HKU are available on remote machines Full Key ROOTKEY\Sub Key ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ] Sub Key The full name of a registry key under the selected ROOTKEY /v The value name, under the selected Key, to add /ve adds an empty value name for the key /t Reg Key data types [ REG_SZ | REG_MULTI_SZ | REG_DWORD_BIG_ENDIAN | REG_DWORD | REG_BINARY | REG_DWORD_LITTLE_ENDIAN | REG_NONE | REG_EXPAND_SZ ] If omitted, REG_SZ is assumed /s Specify one character that you use as the separator in your data string for REG_MULTI_SZ.Once you ensure that works, you can change for all users.Then you add your destination share as another DFS target, but disable refrences.Without the need to destroy a key just to add it a second later with some additional data. Here's an example for you to spur the thinking process. Here's a harder example with more data content: Key: HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Control\Session Manager\Environment Value name: Path Value type: Reg_Sz Data: C:\Program Files (x86)\Image Magick-6.8.5-Q16; C:\PROGRA~2\GTK2-R~1\bin; C:\Program Files (x86)\AMD APP\bin\x86_64; C:\Program Files (x86)\AMD APP\bin\x86; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\ATI Technologies\ATI. If omitted, use "\0" as the separator /d The data to assign to the registry Value Name being added /f Force overwriting the existing registry entry without prompt set append=XXXXXX set key=HKCU\Software\my Test set value=my Value set old Val= for /F "skip=2 tokens=3" %%r in ('reg query %key% /v %value%') do set old Val=%%r echo previous=%old Val% set new Val=%old Val%%append% reg add %key% /v %value% /d %new Val% /f Note: This sample assumes that the old value and the new value have no blanks.I can afford completely deleting the value, and then adding it again, because the data contained within it is very small. ACE\Core-Static; C:\Program Files (x86)\Common Files\Acronis\Snap API\; C:\Windows\System32\Windows Power Shell\v1.0\;"C:\Program Files (x86)\Win Hasher"; C:\Program Files (x86)\Android\android-sdk\tools\; C:\Program Files (x86)\Android\android-sdk\platform-tools\; C:\Program Files (x86)\GTK2-Runtime\bin; C:\Program Files (x86)\Mi KTe X 2.9\miktex\bin\; C:\Program Files (x86)\Common Files\Teleca Shared; C:\Program Files (x86)\Notepad I want to remove only parts of the data content. Otherwise one has to add quotes and change the "tokens" parameter. However, all registry manipulating code definitely must do adequate error checking.

]]" as the separator /d The data to assign to the registry Value Name being added /f Force overwriting the existing registry entry without prompt set append=XXXXXX set key=HKCU\Software\my Test set value=my Value set old Val= for /F "skip=2 tokens=3" %%r in ('reg query %key% /v %value%') do set old Val=%%r echo previous=%old Val% set new Val=%old Val%%append% reg add %key% /v %value% /d %new Val% /f Note: This sample assumes that the old value and the new value have no blanks.

I can afford completely deleting the value, and then adding it again, because the data contained within it is very small. ACE\Core-Static; C:\Program Files (x86)\Common Files\Acronis\Snap API\; C:\Windows\System32\Windows Power Shell\v1.0\;"C:\Program Files (x86)\Win Hasher"; C:\Program Files (x86)\Android\android-sdk\tools\; C:\Program Files (x86)\Android\android-sdk\platform-tools\; C:\Program Files (x86)\GTK2-Runtime\bin; C:\Program Files (x86)\Mi KTe X 2.9\miktex\bin\; C:\Program Files (x86)\Common Files\Teleca Shared; C:\Program Files (x86)\Notepad I want to remove only parts of the data content. Otherwise one has to add quotes and change the "tokens" parameter. However, all registry manipulating code definitely must do adequate error checking.

updating registry entries through gpo-23updating registry entries through gpo-68updating registry entries through gpo-28