I have windows 2003 AD domain native mode.
I would like to add the loged in user to the local admin group during the
logon process. In other words whoever logs to his/her workstation should
automaticaly be added to the local admin on that workstation.
I have something like this but it is not working for me(it errors in th line
7):
Const ADS_SECURE_AUTHENTICATION = &H1
Set oNet = CreateObject("WScript.Network")
strGroup = "WinNT://" & oNet.ComputerName & "/Administrators,Group"
' BEGIN CALLOUT A
Set oProvider = GetObject("WinNT:")
Set oGroup = oProvider.OpenDSObject(strGroup, _
oNet.ComputerName & "\Administrator", _
"Password", ADS_SECURE_AUTHENTICATION)
' END CALLOUT A
oGroup.Add "WinNT://" & oNet.UserDomain & "/" & oNet.UserName
I would like to drop the vb script in the netlogon share so everyone who
logs in gets into the local admin group on that PC.
Can somone help PLEASE.
Pluto