Collection of free docker books

Found in here: enjoy!

https://github.com/ber5ien/Free-Docker-Books

Advertisements

How to enable remote IIS Management using docker

Add the following to your docker file

#Enable IIS Management
RUN powershell -NoProfile Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1
RUN powershell -NoProfile Set-Service -name WMSVC -StartupType Automatic

How to install .Net 4.7.1 using docker

Copy the the offline installer to your build folder where the docker file is then run

This will install and remove the installation file from the image.

# Install NET 4.7.1

COPY NDP471-KB4033342-x86-x64-AllOS-ENU.exe /NDP471-KB4033342-x86-x64-AllOS-ENU.exe
RUN powershell Start-Process NDP471-KB4033342-x86-x64-AllOS-ENU.exe /q
RUN powershell Remove-Item c:\NDP471-KB4033342-x86-x64-AllOS-ENU.exe -Force

How to disable unsecure ciphers/protocos using dockerfile and powershell

Use the following techniques

FROM microsoft/windowsservercore:10.0.14393.2007
SHELL [“powershell”, “-Command”, “$ErrorActionPreference = ‘Stop’; $ProgressPreference = ‘SilentlyContinue’;”]
#Disable Ciphers
RUN powershell ‘mkdir -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\Triple` DES` 168’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\Triple` DES` 168 -Name “Enabled” -PropertyType DWord -Value 0’
RUN powershell ‘mkdir -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\Null’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\Null -Name “Enabled” -PropertyType DWord -Value 0’
RUN powershell ‘mkdir -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4` 40$([char]0x2215)128’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4` 40$([char]0x2215)128 -Name “Enabled” -PropertyType DWord -Value 0’
RUN powershell ‘mkdir -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4` 56$([char]0x2215)128’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4` 56$([char]0x2215)128 -Name “Enabled” -PropertyType DWord -Value 0’
RUN powershell ‘mkdir -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4` 64$([char]0x2215)128’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4` 64$([char]0x2215)128 -Name “Enabled” -PropertyType DWord -Value 0’
RUN powershell ‘mkdir -Path [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4` 128$([char]0x2215)128]’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\RC4` 128$([char]0x2215)128 -Name “Enabled” -PropertyType DWord -Value 0’
#Disable Protocols
RUN powershell ‘mkdir -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS` 1.0’
RUN powershell ‘mkdir -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS` 1.0\Client’
RUN powershell ‘mkdir -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS` 1.0\Server’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS` 1.0\Client -Name “DisabledByDefault” -PropertyType DWord -Value 1’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS` 1.0\Client -Name “Enabled” -PropertyType DWord -Value 0’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS` 1.0\Server -Name “DisabledByDefault” -PropertyType DWord -Value 1’
RUN powershell ‘New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS` 1.0\Server -Name “Enabled” -PropertyType DWord -Value 0’

How to fix your Windows 10 machine

You can run few command to try to fix your Windows 10 installation.

Open up a command line as Admin.

Navigate to Start type in cmd right click and open up Administrator

then run this first

scf /scannow – this will check for corruption in your system.

Once done run the following

Make sure that E: is your cd-rom with Windows 10 cd.

DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:E:\Sources\Install.wim:1 /LimitAccess

You can also run the following to check if system can find any problems on your PC

DISM /Online /Cleanup-Image /ScanHealth 

Banks offering Shared Ownership Mortgages for 95% LTV

LTV 95%

Barclays 

barclay
Cambridge BS
Cumberland BS
Dudley BS
Ecology BS
First Trust Bank
Furness BS
Halifax

Hanley Economic BS
Holmesdale BS
HSBC
Ipswich BS
Kent Reliance
Leeds BS
Legal & General Mortgage Club
Lloyds
Mansfield BS
Melton Mowbray BS
Nationwide BS

Natwest 95% 3.9%

Newbury BS
Penrith BS
Pink Mortgage Club
pms®

Teachers BS
Tipton & Coseley BS
TSB
Ulster Bank

90% LTV

Santander – https://www.santanderforintermediaries.co.uk/products-and-criteria/shared-ownership/

  • 10% Deposit Required 

Conveyancing Service