docker-winserver
Categories:
GitLab: c2platform/rws/docker-winserver
FROM microsoft/windowsservercore:latest
RUN powershell.exe -Command
wget https://raw.githubusercontent.com/ansible/ansible/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 this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 21, 2024: scripts commits_blame.py RWS-272 (07743f5)