I try to write to eventlog "application". I used a ScriptingGuy-Tutorial. As described in the blog, I register the source "ScS" with the following command in a "run as administrator"-Powershell:
New-EventLog -logname Application -source "ScS"
I do not receive an error or any other feedback. In the registry I can see the source in the path
HKLM\System\CurrentControlSet\Services\EventLog\Application\ScS
After that, I try to write a event:
write-eventlog -logname Application -Source "ScS" -EntryType Information -EventId 01 -Message "Test"
I do not receive an error. But it does not write the event. I don't see it in eventvwr nor in the shell, using get-eventlog -LogName Application -Source "ScS"
I use Win 8.1 Pro (German Language) with Powershell 4.0. Hope you can show me my mistake...
