Hi Guys,
I am adding a user to a group.
Function add_user_to_group( user, group )
strComputer = get_computer_name()
Set objGroup = GetObject("WinNT://" & strComputer & "/" & group & ",group")
Set objUser = GetObject("WinNT://" & strComputer & "/" & user & ",user")
show_error objUser.ADsPath
objGroup.Add( objUser.ADsPath )
End Function
This works perfect when I test the vbs from the command line, however when the installer is actually installing it throws an error.
I call the function add_user_to_group( "IUSR_MYCOMPUTER", "Administrators" )
From the command line, it works perfect but from the installer its a different story, I get an error saying the group "MyDomain/Everyone" doesnt exist, thing is I am not referencing the domain nor any groups on the domain, it seems the installer might be installing under my domain account that Im logged in under and is basically trying to add the user to the domain account.
Anyone know how I would specify that it is the local computer I want to add the user to?
Cheers
Splay
FOLLOW US
Get the latest news in Application Packaging