K
K
KiGamji2021-09-17 14:56:05
System administration
KiGamji, 2021-09-17 14:56:05

How to create a .reg file that will work on other computers if one of the folders is called a unique GUID?

Good afternoon!
I wanted to export some part of the registry responsible for group policies so that you can easily make changes on other computers. But the folder HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\ {46AA6667-71F2-4856-A83B-44D54A28AD18}Machine is bothering me . The name of the last folder consists of the computer's GUID, which is unique on each computer. This folder prevents the .reg file from working on other computers because they have different GUIDs.

Is it possible to somehow get this GUID and make changes to the registry through the .reg file? I don't really want to enter it manually every time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fenix957, 2021-09-17
@KiGamji

bat file that first recognizes the guid then replaces it in the reg file and then imports
it all to make a self-extracting archive like winrar for example and you're done

R
Ruslan Fedoseev, 2021-09-18
@martin74ua

There is also a standard group policy delivery mechanism. Why are you inventing yours?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question