I am looking for some assistance on how to create a Vb Script to run a command line within an elevated command prompt and that would prompt the administrator to log in using his credentials
to run the commands. (If the user does not have the admin privileges). For instance, let's say I wanted to run this script below on a users machine. How would I go about opening this within an elevated command prompt using a VB script?
Broken SCCM client
· Open an elevated command
prompt
ipconfig /flushdns
nbtstat –R
arp –d
ipconfig /registerdns
net stop winmgmt and answer Y when
prompted
winmgmt /salvagerepository
net start winmgmt
%windir%\CCM\ccmrepair.exe