Discussion Locked

Kixtart Login Scripting

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
-------------------------------

This discussion is closed to new replies.