Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
Set args = WScript.Arguments strSMSServer = args.Item(0) strSMSSiteCode = args.Item(1) strUserName = args.Item(2) strPassword = args.Item(3) strComputer = args.Item(4) Set lLocator = CreateObject("WbemScripting.SWbemLocator") Set gService = lLocator.ConnectServer(strSMSServer,"root\sms\site_" & strSMSSiteCode, strUserName, strPassword) Set ResIDs = gService.ExecQuery("SELECT * from SMS_R_System where NetbiosName = '" & strComputer & "'") for each oResID in ResIDs oResID.Delete_ Next Wscript.Quit
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.