adjusted for removal of Remove-File cmdlet
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user