Created
April 30, 2015 14:11
-
-
Save omar-yassin/f25b5a17f0f7084eecfd to your computer and use it in GitHub Desktop.
AWS EC2 Powershell Cheatlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$EC2_launch_time = Get-Date (Get-EC2Instance -Instance $instanceId | % { $_.RunningInstance } | Select-Object -expand LaunchTime) -format "M/d/yyyy hh:mm:ss tt" | |
$Windows_bootTime = Get-Date (Get-CimInstance -ClassName win32_operatingsystem | select -expand lastbootuptime).tostring().trim() -format "M/d/yyyy hh:mm:ss tt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment