If you have a batch file or script calling the PowerShell application, you may receive an error that the PowerShell executable is no longer valid.
C:\Windows\system32\powershell.exe is not a valid Win32 application.
If you browse to C:\Windows\system32\powershell.exe, you may notice the PowerShell exe is a 0 byte file – clearly a corrupted version of PowerShell.
where powershell
As for what happened to the originally PowerShell exe, it may have been due to recent system patching or updating.
Comments