Forum Discussion
Surya2023
Jul 27, 2022Copper Contributor
SFC scan using Batch file or Powershell
Hi, Trying to run SFC scan every day using task scheduler ,however the result are storing in default location C:\Windows\Logs\CBS CBS text file , Written Batch file ,to run sfc scan and save the...
- Jul 28, 2022Yes, you can use the following
"$env:USERPROFILE\Desktop\$(get-date -Format "ddM-MM-yyyy--hh-mm-ss")"
-----------
If the answer help, Please click on Best Response and give a like 🙂
farismalaeb
Jul 28, 2022Iron Contributor
Yes, you can use the following
"$env:USERPROFILE\Desktop\$(get-date -Format "ddM-MM-yyyy--hh-mm-ss")"
-----------
If the answer help, Please click on Best Response and give a like 🙂
"$env:USERPROFILE\Desktop\$(get-date -Format "ddM-MM-yyyy--hh-mm-ss")"
-----------
If the answer help, Please click on Best Response and give a like 🙂
Surya2023
Jul 28, 2022Copper Contributor
Thanks a lot its working fine now