03-27-2012 12:51 AM
04-11-2012 05:11 PM
04-02-2012 05:45 PM
03-29-2012 10:32 PM
03-29-2012 09:43 PM
03-29-2012 09:00 PM
If WScript.Arguments.Count = 1 Then
'Bring in target computer name
strRemoteComputer= WScript.Arguments(0)
'Grab the data and time of calling the script
strDate = Date()
strTime = Time()
strComputer = "."
Dim WshShell
Dim objFSO
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set WshShell = WScript.CreateObject ("WSCript.shell")
Set objFSO= CreateObject("Scripting.FileSystemObject")
Set objText = objFSO.OpenTextFile("\\LansweeperServer\LansweeperShare$\logs\lsremotelog.txt", 8, True)
Set colItems = objWMIService.ExecQuery("Select * From Win32_ComputerSystem")
'Find the username of the person clicking the link
For Each objItem in colItems
strUser = objItem.UserName
Next
'Write the log entry with Date, Time, User, and Target PC
objText.WriteLine(strDate & " " & strTime & " " & strUser & " " & strRemoteComputer)
objText.Close
'Run your command
WshShell.run("\\LansweeperServer\LansweeperShare$\lsremote.exe " & strRemoteComputer)
End If
03-27-2012 11:07 AM
NetworkTech wrote:
How do I track who is using Remote Control (VNC) and which machines they’re attaching two?
03-29-2012 08:00 PM
Lansweeper wrote:
This is not currently possible. Only those with administrative privileges on the target machines can remote control them however.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now