Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Automating sfc /scannow to a button

$
0
0

Im trying to do as the title says just for automation purposes on a button

But im hitting the 

Windows Resource Protection could not start the repair service. error

so i added the netstart command to make sure the service is started but i still cant get past the error even though the service is started

            Case $T4SFCScanButton3                 Local $netstart = RunWait(@ComSpec & " /k " & "net start trustedinstaller", "", @SW_SHOW)                 Sleep(2000)                 RunWait(@ComSpec & " /k " & "sfc /scannow", "", @SW_SHOW)

Anyone know a way to get round this?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>