Closed kaitlynhova closed 7 years ago
Here's a quick rundown of the commands I ran to generate the image:
winrm set winrm/config/Service/Auth @{Basic="true"}
winrm set winrm/config/Service @{AllowUnencrypted="true”}
Enable-PSRemoting -force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Set-Item wsman:\localhost\client\trustedhosts *
Restart-Service WinRM
winrm quickconfig
interactive to open up firewall - find alternative!wget https://dl.appstreaming.autodesk.com/production/installers/Fusion%20360%20Admin%20Install.exe -OutFile fusion360Installer.exe
.\fusion360Installer.exe --quiet
.\fusion360Installer.exe --update --quiet
choco install -y autodesk-fusion360
(instead of the preceeding 3 commands)choice install googlechrome
Done, ami-df3954bf is tested.
Check this documentation for using SysPrep to create image. https://docs.aws.amazon.com/es_es/AWSEC2/latest/WindowsGuide/ec2launch.html#ec2launch-download
I ran C:\ProgramData\Amazon\EC2-Windows\Launch\Settings\EC2 Launch Settings.exe
on the Windows instance before shutting down and re-imaging. The app resets the initial boot behavior of the image. This allows us to use the resulting AMI to launch additional instances.
New AMI is ami-ce7815ae
.
Tested logging in via RDP. Also successfully executed a remote command.
$pass = convertto-securestring "<PASSWORD>" -asplaintext -force
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "Administrator",$pass
Invoke-Command -ComputerName 34.208.13.94 -Credential $cred -Authentication basic -scriptBlock {echo 0}
# returns '0'
Include all dependancies and configs to start a new Fusion360 worker.