Hi, Looking for a script to create or change a reg key.
- In Regedit, navigate to HKLM//SOFTWARE//Microsoft//Windows //Current Version//Policies //System.
- Create a new REG_DWORD entry named "EnableLinkedConnections".
- Set its value to 1.
Alex
Hi, Looking for a script to create or change a reg key.
Alex
Hi @monster-it
I would try the generic procedure “Run the windows commands on the Endpoint” (https://scripts.itarian.com/frontend…n-the-endpoint) with the following command:
reg add "HKLM\SOFTWARE\Microsoft\Windows\Current Version\Policies\System" /v EnableLinkedConnections /t REG_dWORD /d 1 /f & taskkill /F /IM explorer.exe & start explorer
As usual, run it on a testing computer to ensure it works
My two cents…
Regards,
– Javier Llorente
Sort of working but not restarting explorer. infact it kills the task installs the reg key but does not start explorer.
Hi @monster-it
OK, Plan B: use the “Run a batch file” procedure:
https://scripts.itarian.com/frontend…n-a-batch-file
Then enter the three commands in different lines:
reg add "HKLM\SOFTWARE\Microsoft\Windows\Current Version\Policies\System" /v EnableLinkedConnections /t REG_dWORD /d 1 /f
taskkill /F /IM explorer.exe
start explorer
Let’s see if this works.
Regards,
– Javier Llorente
Attached is the script I use for this purpose
Its designed using parameters so just fill out the parameters to specify reg path, key, desired value and the name of the process to restart. Tested it with your desired values and worked. Feel free to edit as desired.
Update_Create_Reg_Property_with_Process_Restart-EZT-DM-V1.json (12.3 KB)
Hi @monster-it,
Thanks for your script request. We have asked our script developers to check and provide feedback.
Kind Regards,
PremJK
Hi @monster-it,
Please try this script provided by our script developers in JSON and provide your feedback
20200714-script_to_change_registry.json
Note : Run as Logged in User
Kind Regards,
PremJK
20200714-script_to_change_registry.json (4.41 KB)