Login | |
|
 |
RE: Event Viewer - Alternate Account Credentials - 10/4/2006 1:30:43 AM
|
|
 |
|
| |
gdewrance
Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
|
have you tried c:\windows\system32\eventvwr.msc /computer=REMOTEPC user:username password
|
|
| |
|
|
|
 |
RE: Event Viewer - Alternate Account Credentials - 10/4/2006 4:38:31 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
speed depends on: 1) local LAN speed 2) log size 3) and ofcourse PC Hardware config...
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: Event Viewer - Alternate Account Credentials - 10/4/2006 5:12:56 PM
|
|
 |
|
| |
gdewrance
Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
|
I tried it and works on my network. I also tried %sytemroot%\system32\eventvwr.msc /computer=PC user:administrator I tried your way and had the same error.193
|
|
| |
|
|
|
 |
RE: Event Viewer - Alternate Account Credentials - 10/4/2006 6:07:09 PM
|
|
 |
|
| |
gdewrance
Posts: 587
Score: 3
Joined: 3/16/2006
Status: offline
|
Nice work. They both work well. I made them to run on there own. Dim oShell 'added this Set oShell = CreateObject("WScript.Shell") 'added this Machine = "MachineName" strAdminUser = "Administrator" strAdminPass = "Password" ReturnCode = oShell.Run("net use \\" & Machine & "\c$ " & strAdminPass & " /user:" & strAdminUser,0,True) 'Added the 0 to hide the DOS box If ReturnCode = 2 Then Remote_Access_Granted = 0 ElseIf ReturnCode = 0 Then Remote_Access_Granted = 1 Last_Connected_Machine = Machine End If If Remote_Access_Granted = 1 Then 'You missed this Then in your original code strConnect_EventVwr = "oShell.Run(""c:\windows\system32\eventvwr.msc /computer=" & Machine & """)" Execute strConnect_EventVwr End If
|
|
| |
|
|
|
|
|