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 November 10, 2024: modify_event_limit C2-586 (05a3e20)