adjusted for removal of Remove-File cmdlet

This commit is contained in:
2023-10-06 14:16:19 -04:00
parent 7f98291e12
commit 8fa1f1ef61
6 changed files with 9 additions and 14 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# Run SFC to check the filesystem, convert the result from Unicode to UTF8, delete the intermediate $tempFile
$tempFile = Get-RandomTempFile
$tempFile = New-TemporaryFile
$(sfc.exe /scannow) | Out-File $tempFile
Set-Content -Path $tempFile -Value $(Get-Content -Path $tempFile -Encoding Unicode) -Encoding UTF8
$SFCOutput = Get-Content -Path $tempFile