TechEd Demo 1: Hello World script

###
### Write a message to a text file and the event log to show the PowerShell Activity is working
###

“Hello World!” | out-file -FilePath “C:\demo\demo1\helloworld.txt” -Encoding “Default”

Write-EventLog -LogName Application -Source PowerShellActivity -Message “Hello World!” -EntryType “Information” -EventID 0


Leave a Reply

Your email address will not be published. Required fields are marked *


*