# Windows 11

## Place of purchase

https://www.hrkgame.com/en/library/products/ (home license)  
https://www.premiumcdkeys.com/ (pro license)

## Installing Windows 11 without TPM and SecureBoot

---

Create Windows 11 USB normal way via ISO and Rufus  
Shift + F10 -&gt; Regedit  
HKEY\_LOCAL\_MACHINE\\SYSTEM\\Setup -&gt; Create Key "LabConfig"  
Create DWORD-32 -&gt; BypassTPMCheck -&gt; Value: 1  
Create DWORD-32 -&gt; BypassSecureBootCheck -&gt; Value: 1  
Exit installation window and click Install Windows again.  
URL: [https://www.askvg.com/how-to-bypass-this-pc-cant-run-windows-11-error-and-disable-hardware-check-on-unsupported-devices/](https://www.askvg.com/how-to-bypass-this-pc-cant-run-windows-11-error-and-disable-hardware-check-on-unsupported-devices/)

## Donkey Kong

---

Donkey kong: [N64-Emu-Donkey-Kong-64.zip](https://wiki.gotitan.no/attachments/9)

## Disable "Let's finish setting up your device"

---

#### Windows 10

Settings -&gt; System -&gt;  
\[Check\] Off suggestions on how I can set up my device  
\[Check\] Get tips and suggestions when I use Windows

#### Windows 11

Settings -&gt; System -&gt; Notifications -&gt; Additional Settings

### Enable "End Task" on Taskbar

---

Settings -&gt; System -&gt; For Developers -&gt; "End Task" = ON

### Disable Bing web search on Start-menu

---

This is to disable the start-menu from searching on Bing on everything you type. Will make searching for apps on your computer quicker.

```
cmd.exe /c reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d 1 /f
```

## Turn off password protected sharing

---

Source: [https://windowsreport.com/turn-off-password-protected-sharing-windows-11/](Source:%20https://windowsreport.com/turn-off-password-protected-sharing-windows-11/%20Turn%20off%20Password%20protected%20sharing%20via%20Network%20&%20sharing%20center%20->%20Advanced%20etc...)  
Turn off Password protected sharing via Network &amp; sharing center -&gt; Advanced etc...

```
cmd.exe /c reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "restrictnullsessaccess" /t REG_DWORD /d 0 /f
```

```
cmd.exe /c reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa" /v "everyoneincludesanonymous" /t REG_DWORD /d 1 /f
```

## Windows File Sharing

---

To disable password protected sharing it sometimes helps to set the network to private. Settings -&gt; Network &amp; Internet -&gt; Properties -&gt; Private Network

## Remove Legal Notice from AD Object

---

This will remove the legal notice warning that appears on AD objects, if you have put the computer in wrong OU, or it is still located in New Computers OU.

```
cmd.exe /c reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system" /v legalnoticecaption /f
cmd.exe /c reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system" /v legalnoticetext /f
```

## Console Timeout

---

This is a regedit to enable Console timeout in the Power options. This is so that you can make sure the screens of your computer is still ON even though you are logged out of your computer.

```
cmd.exe /c reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8ec4b3a5-6868-48c2-be75-4f3044be88a7" /v "Attributes" /t REG_DWORD /d "2" /f
```

## Do not Require Password after sleep

---

This is so that you are not required to login after computer has gone to sleep.

```
cmd.exe /c powercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0
cmd.exe /c powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0
```

## Allow all in Firewall

---

This makes it so that you can have the firewall ON and get rid of stupid messages. But still have everything go through the firewall.  
Run in Powershell:

```
New-NetFirewallRule -DisplayName "Allow all Inbound" -Direction Inbound -Action Allow -Profile Any
New-NetFirewallRule -DisplayName "Allow all Outbound" -Direction Outbound -Action Allow -Profile Any
```

#### Allow Ping in Firewall

```
New-NetFirewallRule -DisplayName "Allow Inbound ICMPv4 (ping)" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -Action Allow -Profile Any
```

#### Allow VNC in Firewall

```
New-NetFirewallRule -DisplayName "Allow VNC Inbound" -Direction Inbound -Protocol TCP -LocalPort 5900 -Action Allow -Profile Any
```

#### Allow RDP in Firewall

```
New-NetFirewallRule -DisplayName "Allow RDP Inbound" -Direction Inbound -Protocol TCP -LocalPort 3389 -Action Allow -Profile Any
```

#### Allow FTP in Firewall

```
New-NetFirewallRule -DisplayName "Allow FTP Inbound" -Direction Inbound -Protocol TCP -LocalPort 21 -Action Allow -Profile Any
```

## Keymap for Mac Keyboard

---

Map Cmd key to Windows Key, this is for when in Windows and using Mac Keyboard

```
cmd.exe /c reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d "0000000000000000070000002ee0650030e066005ce038e05be0380038005be038e05ce000000000" /f
```

Remove Cmd to Windows key mapping

```
cmd.exe /c reg del "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d "0000000000000000070000002ee0650030e066005ce038e05be0380038005be038e05ce000000000" /f
```

## Removing keyboard layouts all but Norwegian

---

Remove all keyboard layouts from registry except for Norwegian. This will help to make sure Windows does not add keyboard layout randomly.

```
# Export a backup of the registry before doing any changes
Write-Host "Backing up Registry before running"
cmd.exe /c reg export "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts" C:\Registry-Keyboard-Layout-Backup.reg

# Get all the child keys of the Keyboard Layouts key
$KeyLayoutList = Get-ChildItem -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layouts" | Select-Object -ExpandProperty PSChildName

# Removing the keys from list
Write-Host "Proceeding to remove all Keyboard Layouts from Registry, except for Norwegian."
Sleep 5
foreach($key in $KeyLayoutList){
    if($key -like "*00000414*"){
        # Do nothing
    }else{
        Remove-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\$key" -Force
    }
}

# Enter to exit
Read-Host -Prompt "Press Enter to Exit."
exit
```

## Disable Shift Sticky keys

---

```
cmd.exe /c reg add "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 506 /f
```

## Fix incorrect Time in Windows

---

Kjør kommandoen under, reboot, sett Timezone manuelt til UTC også endre klokken til korrekt tid.

```
cmd.exe /c reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /t REG_DWORD /d 1 /f
```

## How to disable Password at logon

---

URL: [https://www.tenforums.com/tutorials/3539-sign-user-account-automatically-windows-10-startup-15.html#post1924657](https://www.tenforums.com/tutorials/3539-sign-user-account-automatically-windows-10-startup-15.html#post1924657)

```
cmd.exe /c reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v DevicePasswordLessBuildVersion /t REG_DWORD /d 0
```

## Remove Windows 10 apps

---

```
Get-AppxPackage | Select-Object PackageFullName
$list = Get-Content -Path C:\list.txt
foreach($item in $list){ Remove-AppxPackage -Package "$item" }
```

## Disable Notifications

---

```
cmd.exe /c reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v DisableNotificationCenter /t REG_DWORD /d 1
```

## Disable Windows Defender

---

- gpedit.msc -&gt; Computer Configuration &gt; Administrative Templates &gt; Windows Components &gt; Microsoft Defender Antivirus -&gt; Turn off Microsoft Defender Antivirus (Enable).
- URL: [https://www.windowscentral.com/how-permanently-disable-windows-defender-windows-10#disable-microsoft-defender-with-group-policy](https://www.windowscentral.com/how-permanently-disable-windows-defender-windows-10#disable-microsoft-defender-with-group-policy)
- [https://www.geekrar.com/permanently-disable-windows-defender/](https://www.geekrar.com/permanently-disable-windows-defender/)

## Disable Windows Update

---

Computer Configuration &gt; Administrative Templates &gt; Windows Components &gt; Windows Update -&gt; Configure Windows Update -&gt; Disabled

## Useful Disable utilites for Windows

---

URL: [https://www.sordum.org/](https://www.sordum.org/)