batch file automation for search, fill in results.
I'm working on a batch file to make a utility at the office and I'm stumped on one part.
I want to automate the process stated below, preferrably within the confines of a batch file without using outside applications.
1.
Click Start > Search, type cmd, and press Ctrl+Shift+Enter to start a command prompt with Administrator privileges.
2.
Type pnputil -e to list the drivers in the driver store.
3.
Type pnputil -f -d oem<n>.inf to remove specific drivers from driver store, where <n> is a number corresponding to one of the specified drivers listed in the previous step.
If this is too touchy a topic to post publicly, can someone please privately contact me on how to do this?