I
I
Ivan2018-05-06 00:54:31
Active Directory
Ivan, 2018-05-06 00:54:31

Add users PCs from a group to a separate group?

All greetings
In the domain there is a group of users.
Now it is necessary to update the software on all PCs of these users.
The working option was to execute the PS crypt on the PC of these users through the GPO (PC configuration section).
Question - how to add all PCs (there are a lot of them) of users from a group to another group? and in addition, how to automate this process (added the user to the group, the PC where he is logged in automatically got into the right group)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ezhyg, 2018-05-06
@Ezhyg

This is how account hiding works:

@echo net user ПОЛЬЗОВАТЕЛЬ ПАРОЛЬ /add
@echo net localgroup Администраторы test /add
@echo net localgroup Пользователи test /del
@echo Windows Registry Editor Version 5.00>>"%temp%\hideuser.reg"
@echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]>>"%temp%\hideuser.reg"
@echo "test"=dword:00000000>>"%temp%\hideuser.reg"
regedit /s "%temp%\hideuser.reg"

There is work here with groups, can you figure it out? (too lazy to rewrite the batch file)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question