MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
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
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
8 Experts available now in Live!