Windows update could cause some problems with device drivers, video, USB etc.
That can cause corrupted system files, including PowerShell.
Possible ways to fix them:
Repair Windows components
Run from elevated cmd.exe:sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
DSIM may take LONG time to run, don't interrupt it! Prevent windows sleep, restart etc.
Note: PowerShell is NOT one product!
Windows PowerShell 5.1
- Built into Windows
- Lives under C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
- Uses the old .NET Framework-based stack
- Repaired through Windows servicing, not normal uninstall/reinstall
PowerShell 7+
- Separate product installed independently
- Usually launched with
pwsh - Uses the newer .NET stack
- Can be installed, updated, or removed like a normal application
powershell.exe -NoProfile
this is "portable" 7.x
pwsh -NoProfile
WSL2 is used by Docker, and sometimes can get damaged
wsl --statuswsl -l -v
Reinstall Docker only after WSL is confirmed healthy.
wsl --shutdown
wsl --updateIf needed, reinstall Docker Desktop
docker version
docker context ls
docker ps
On Windows 11, the quickest way is through System Protection.
- Press
Win. - Type
restore point. - Open
Create a restore point. - In the
System Protectiontab, select your system drive, usually .. - If Protection says
Off, clickConfigure, turn onSystem Protection, and apply. - Click
Create. - Enter a name like
After_SFC_Docker_Recovery. - Wait for the confirmation.
If you prefer the longer route:
- Open
Control Panel SystemSystem Protection- Then the same steps above
A few practical notes:
- Restore points are not full backups.
- They mainly protect system files, drivers, registry, and some installed app state.
- They are still worth creating right now, especially before any more AMD, Docker, or Windows updates
No comments:
Post a Comment