To delete an Always On VPN device tunnel, open an elevated PowerShell window and enter the following command:
Get-VpnConnection -AllUserConnection | Remove-VpnConnection -Force
To verify the creation of the VPN device tunnel, run the following PowerShell command:
Get-VpnConnection -AllUserConnection
rasdial "ConnectionName" "Username" "Password"
rasdial "ConnectionName" /disconnect
Get-NetIPConfiguration -InterfaceAlias "Always On VPN Name"
Get-VpnConnectionTrigger
Set-VpnConnectionTrigger -Name "MyVPN" -DnsSuffix "example.com"
msdt.exe /id NetworkDiagnosticsNetworkAdapter
powershell -ExecutionPolicy Bypass -File .\WhoShutItDown.ps1
win + r = mrt
reagentc /info
gpresult /Scope Computer /v
Get-NetAdapter
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("8.8.8.8", "8.8.4.4")
nslookup -d2 rootctl.com
Install-Module -Name ExchangeOnlineManagement -Force -AllowClobber
Connect-ExchangeOnline -UserPrincipalName admin@rootctl.com -ShowProgress $true
Install-Module MSOnline vs Install-Module AzureAD
gpresult /r /scope computer >> c:\temp\ou.txt
FIND "CN=" "C:\Temp\ou.txt" > C:\Temp\ou1.txt
echo %USERNAME%
echo %USERDOMAIN%
systeminfo
wmic ComputerSystem get Username
net user %username%
query user
cd /users; dir
reg query “hkcu\volatile environment”
AuditPol.exe /get /subcategory:Logoff
To get the most current list of time zones, use tzutil from a Command prompt:
tzutil /l
To change the default time zone in an offline image:
Dism /Image:"C:\mount\windows" /Set-TimeZone:"W. Europe Standard Time"
Note: Setting the time zone with DISM /Set-TimeZone is only supported in offline images.
W32tm /resync /force