This function permits to get event log from .NET from remote computer
This function was written to get eventlog for user in powershell V1 (not needed in powershell V2).
--------------------------------------------------------------------------------------------------------------------------------------------
command line reference
get-RemoteEventLog -ComputerName MyServer -LogName System
Index Time Type Source EventID Message
----- ---- ---- ------ ------- -------
1807 sept. 03 0... Info Service Control M... 7036 Le service Service CO...
1808 sept. 03 1... Info Service Control M... 7036 Le service Explorateu...
1809 sept. 03 1... Info Service Control M... 7035 Un contrôle Démarrer ...
1810 sept. 03 1... Info Service Control M... 7036 Le service Explorateu...
1811 sept. 03 1... Info Service Control M... 7035 Un contrôle Démarrer ...
1812 sept. 03 1... Info Service Control M... 7036 Le service Explorateu...
1813 sept. 03 1... Info Service Control M... 7036 Le service Explorateu...
1814 sept. 04 0... Info Service Control M... 7035 Un contrôle Démarrer ...
1815 sept. 04 0... Info Service Control M... 7036 Le service Explorateu...
get-RemoteEventLog -ComputerName MyServer
Max(K) Retain OverflowAction Entries Name
------ ------ -------------- ------- ----
512 0 OverwriteAsNeeded 310 Application
512 7 OverwriteOlder 0 Internet Explorer
512 0 OverwriteAsNeeded 1 578 Sécurité
512 0 OverwriteAsNeeded 2 147 Système
15 360 0 OverwriteAsNeeded 16 583 Windows PowerShell