Skip to content

Instantly share code, notes, and snippets.

@WalterWoshid
Last active February 20, 2023 10:19
Show Gist options
  • Save WalterWoshid/aec6c7abcbd4e42647f819126361d0f0 to your computer and use it in GitHub Desktop.
Save WalterWoshid/aec6c7abcbd4e42647f819126361d0f0 to your computer and use it in GitHub Desktop.
Windows Problems

Hyper-V not in Windows Features

  1. Create new file add-hyper-v.bat
  2. Edit, paste content, save:
pushd "%~dp0"

dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt

for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

del hyper-v.txt

Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL

pause
  1. Run file

Windows Defender application blank

  1. Launch Registry Editor
  2. Modify HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService -> Start (2 = Enable | 4 = Disable)
  3. Modify HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc -> Start (2 = Enable | 4 = Disable)

The term 'winget' is not recognized as the name of a cmdlet

  1. Go to Microsoft Store and install App Installer
  2. Go to system environment variables and add %UserProfile%\AppData\Local\Microsoft\WindowsApps to Path
  3. Close all terminals and try again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment