Updated 2018-03-23 Version 1802 (Build 16.0.9029.2167)
==========================================
Updated 2018-03-23 Version 1802 (Build 16.0.9029.2167)
==========================================
#!/bin/bash | |
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.** | |
## **This updated version has more options and less hardcoded variables.** | |
# Take one argument from the commandline: VM name | |
if ! [ $# -eq 1 ]; then | |
echo "Usage: $0 <node-name>" | |
exit 1 | |
fi |
Open PowerShell and type: | |
Standard Edition: | |
DISM /online /Set-edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula | |
DataCenter Edition: | |
DISM /online /Set-edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula |
$networks = netsh wlan show profiles | select-string 'All User Profile' | |
if($networks.Count -gt 0) { | |
$(foreach ($item in $networks) { | |
$item.Line.Split(':')[1].Trim() | |
}) | Out-GridView -Title 'Select one or more neowrks to forget' -OutputMode Multiple | | |
foreach { | |
netsh wlan delete profile name = "$_" | |
} | |
} |