VBScript error 424 Object Required when running script under SYSTEM account
I am trying to add a domain user account to a local group and everything works fine if I am logged into the computer but if I run the same script under the SYSTEM account it fails with the error: 424 Object Required". Here is the code: Dim domain : domain = "DOMAIN01" Dim domainController: domainController = "99.139.151.102" Dim localComputer : localComputer = "SERVER001" Dim localGroup : localGroup = "LocalGroup1" Dim domainAccount : domainAccount = "User1" Dim objLocalGroup Dim objDomainUser Set objLocalGroup = GetObject("WinNT://" & localComputer & "/" & localGroup & ",group") Set objDomain
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.