I wrote a WMI Script that renames/ip's a computer per its Mac Address and want to know if there is a way to call a batch file using VB/WMI? I want the script to call the Netdom command so I can add the computers to the domain and then have the script reboot. I found some code that adds a computer to the domain; however, it doesn't seem to work well with our setup. The netdom utility seems to work a lot better.
Also, if possible, can the WMI script delete the batchfile after it runs it and possibly delete itself before rebooting?
I have little to no knowledge in programming, so any help will be appreciated!