Y
Y
Yuri Yerusalimsky2016-04-28 15:17:38
System administration
Yuri Yerusalimsky, 2016-04-28 15:17:38

How to work with the registry key for a given user in a bat file?

I want to automate some actions for setting up computers of a large technopark (more than 100 PCs). In order not to languish, I think to write a batch file that will prescribe all the necessary actions. Stuck on entering a new value for the HKEY_USERS hive in the batch file. How can I specify this active user?
For example, I have a desire for a given, active user to automatically display all icons in the tray. I know the path for this setting is HKEY_USERS\<USER NAME>\Software\Microsoft\Windows\CurrentVersion\Explorer , there is also an EnableAutoTray setting here , I want to set its REG_DWORD value to 1 . How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-04-28
@werber

HKEY_CURRENT_USER ?

S
Stanislav Makarov, 2016-04-28
@Nipheris

REGEDIT /S reg_name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question