question

MMK-7635 avatar image
0 Votes"
MMK-7635 asked MMK-7635 answered

How to run ´sfc /scannow´ via Intune?

We encounter many problems which are fixed by running a command ´sfc /scannow´. It would be helpfull if we could run this command by using Intune. Intune runs installation as SYSTEM and ´sfc /scannow´ won't work with the SYSTEM account. Sfc prints an error "´Windows Resource Protection could not start the repair service."

I there a way to successfully run ´sfc /scannow´?

mem-intune-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MMK-7635 avatar image
0 Votes"
MMK-7635 answered

Weird. Sfc works fine if I don't directly run it but instead of run it by using psexec.exe.

./psexec.exe -accepteula -s sfc /scannow

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.