I want to send some message logs like Step-1 done , next Step-2 done from the powershell script block to the aws ec2 console screen for windows 2016 instance.
Can any body know how to implement that?
I want to send some message logs like Step-1 done , next Step-2 done from the powershell script block to the aws ec2 console screen for windows 2016 instance.
Can any body know how to implement that?
As noted in the AWS documentation, the console for an EC2 instance:
For Windows instances, the instance console output includes the last three system event log errors.
So you can use the PowerShell Write-EventLog
scriptlet to write an error event to the System log.
Example:
Write-EventLog -LogName "System" -Source "MyApp" -EntryType Error -Message "Step-1 done"