Discussion Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm trying 2 write a login script that will work on windows nt workstation to add a admin global group to the local admin group on the NT workstation. Any examples would be appreciated.. thx Gh0st
3 replies
by arne.tredal
*** Script example ***;
-------------------------------
IF INGROUP("Domain Users")
IF %OS%="Windows_NT"
IF INGROUP ("Domain Admins")=0
shell "%comspec% /e:4096 /c " + @LDRIVE + "addusers.exe /c " + @LDRIVE + "addusers.txt > nul"
ENDIF
ENDIF
ENDIF
-------------------------------
*** AddUsers.TXT example ****;
-------------------------------
[Local]
Administrators,,DOMAIN1\global_admin_group1
Administrators,,DOMAIN2\global_admin_group2
-------------------------------
by gh0stmaker
Thx
by gh0stmaker
This question was closed by the author
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending
0 helpful
10 replies
Question Locked
Do You Save Useful Windows Tutorial Videos for Later
0 helpful
7 replies
0 helpful
1 reply
Question Unanswered
Is WSL still relevant in 2026?
0 helpful
0 replies
0 helpful
2 replies