How to completely remove docker on windows 10

From: https://success.docker.com/KBase/How_to_completely_remove_Docker

 

Save the following script in a file with extension of ps1.  Log in powershell console as admin and run the script file.

$ErrorActionPreference = “SilentlyContinue”

kill -force -processname ‘Docker for Windows’, com.docker.db, vpnkit, com.docker.proxy, com.docker.9pdb, moby-diag-dl, dockerd

try {
./MobyLinux.ps1 -Destroy
} Catch {}

$service = Get-WmiObject -Class Win32_Service -Filter “Name=’com.docker.service'”
if ($service) { $service.StopService() }
if ($service) { $service.Delete() }
Start-Sleep -s 5
Remove-Item -Recurse -Force “~/AppData/Local/Docker”
Remove-Item -Recurse -Force “~/AppData/Roaming/Docker”
if (Test-Path “C:\ProgramData\Docker”) { takeown.exe /F “C:\ProgramData\Docker” /R /A /D Y }
if (Test-Path “C:\ProgramData\Docker”) { icacls “C:\ProgramData\Docker\” /T /C /grant Administrators:F }
Remove-Item -Recurse -Force “C:\ProgramData\Docker”
Remove-Item -Recurse -Force “C:\Program Files\Docker”
Remove-Item -Recurse -Force “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Docker”
Remove-Item -Force “C:\Users\Public\Desktop\Docker for Windows.lnk”
Get-ChildItem HKLM:\software\microsoft\windows\currentversion\uninstall | % {Get-ItemProperty $_.PSPath} | ? { $_.DisplayName -eq “Docker” } | Remove-Item -Recurse -Force
Get-ChildItem HKLM:\software\classes\installer\products | % {Get-ItemProperty $_.pspath} | ? { $_.ProductName -eq “Docker” } | Remove-Item -Recurse -Force
Get-Item ‘HKLM:\software\Docker Inc.’ | Remove-Item -Recurse -Force
Get-ItemProperty HKCU:\software\microsoft\windows\currentversion\Run -name “Docker for Windows” | Remove-Item -Recurse -Force
#Get-ItemProperty HKCU:\software\microsoft\windows\currentversion\UFH\SHC | ForEach-Object {Get-ItemProperty $_.PSPath} | Where-Object { $_.ToString().Contains(“Docker for Windows.exe”) } | Remove-Item -Recurse -Force $_.PSPath
#Get-ItemProperty HKCU:\software\microsoft\windows\currentversion\UFH\SHC | Where-Object { $(Get-ItemPropertyValue $_) -Contains “Docker” }

Advertisements

Solve juniter addon not working in IE11 issue

From: http://www.sevenforums.com/system-security/336325-juniper-network-connect-fails-internet-explorer-11-a.html


In my company, we have Juniper Network Connect 7.1.0 with Host Checker. Although it is not supported officially, I found a workaround.

  • Put the URL in Trusted Sites or Local Intranet zone in Internet Settings.
  • Enable Compatibility View on URL.
    • Key: HKLM\SOFTWARE\Policies\Internet Explorer\BrowserEmulation\PolicyList\
    • Value: “networkconnect.mycompany.com”
    • Type: REG_SZ
    • Data: “networkconnect.mycompany.com”
  • Make sure User Access Control (UAC) is enabled.

Indeed we identified that some of our users have disabled UAC on Windows 7 because they think that UAC is only an annoying useless feature that does nothing but bother them with popups. For a reason I don’t fully understand, NC seems to crash if the user is administrator of their computer and UAC is disabled. This behavior is not observed with previous versions of IE.

I recommended to enforce UAC with Group Policies and include it in the mandatory security compliance rules for all workstations.

Hope it helps! Regards!

Slove the issue of command prompt has been disabled by your administrator

cmd

(from: http://www.tweakandtrick.com/2013/08/enable-command-prompt.html)

Enable Command Prompt using the Group Policy Editor

1) Click on Start. Go to Run. Users running Windows 8, Windows 7 or Vista, go to Search.
2) Type gpedit.msc and press Enter.
3) Navigate to User Configuration/ Administrative Templates / System.
4) In the work area on the right side, double click on “Prevent access to the command prompt“.
5) In the popup dialog, encircle Disabled and click OK.
6) You should be able to immediately use the command prompt. If you still cannot access it, restart your computer.

Home editions of Windows do not contain the Group Policy Editor.

Enable Command Prompt from Registry in Windows 8, 7, XP or Vista

Registry Editor is an in-built tool in Windows which is used to view and edit the Windows registry. You can use it to easily enable the command prompt by simply modifying a registry key. To do so, follow these steps.

1) Users running Windows 8, Windows 7 and Windows Vista, go to Start>Search. Users of Windows XP, got to Start>Run.
2) Type regedit and press Enter.
3) Registry Editor will start. If it is disabled, you will need to enable Registry Editor first.
4) Navigate to HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System. If the Windows key is not there, you will need to create a new key called Windows. Also, if the System key is not there, you will need to create it.
5) In the work area on right side, double click on DisableCMD and set its value to 0. If you cannot locate DisableCMD, you will need to create a new DWORD value called DisableCMD and set its value to 0.
6) Close the Registry Editor.

Enable CMD
The Command Prompt in Windows 8

The command prompt should immediately be accessible. If it isn’t, restart your computer.

Enable Command Prompt by simply running a command

If you are unfamiliar with directly editing the Registry, you can use a simple command to quickly enable the command prompt. Just follow these steps:-
1) Click on Start and go to Run. Users of Windows 8.1, Windows 8, Windows 7 and Windows Vista, go to Search.
2) Copy and paste the following command and execute it.

REG add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /f

3) This should enable the command prompt. If it is still not enabled, restart your computer.

The methods mentioned in this article work on Windows 8.1, Windows 8, Windows 7, Windows Vista and Windows XP.