docker-winserver
Categories:
GitLab: c2platform/rws/docker-winserver
FROM microsoft/windowsservercore:latest
RUN powershell.exe -Command \
wget https://raw.githubusercontent.com/ansible/ansible-documentation/refs/heads/devel/examples/scripts/ConfigureRemotingForAnsible.ps1
-Outfile c:\remoting.ps1; \
powershell.exe -ExecutionPolicy ByPass -File c:\remoting.ps1 -EnableCredSSP; \
$password = ConvertTo-SecureString "Supersecure" -AsPlainText -Force; \
Set-LocalUser -Name administrator -Password $password; \
Enable-LocalUser -Name "Administrator"; \
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
EXPOSE 5986
Feedback
Was deze pagina nuttig?
Fijn om te horen! Vertel ons alstublieft hoe we kunnen verbeteren.
Jammer om dat te horen. Vertel ons alstublieft hoe we kunnen verbeteren.
Laatst gewijzigd 2025.04.03: content project update and using extlink extlink_ignore shortcode C2-408 C2-708 (59964e6)