mbt masai
 
Welcome !
         

                                
After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 Find all machines a user is logged onto

Change Page: 12 > | Showing page 1 of 2, messages 1 to 20 of 22
Author Message
Meg

  • Total Posts : 123
  • Scores: 6
  • Reward points : 0
  • Joined: 7/13/2006
  • Location: Australia
  • Status: offline
Find all machines a user is logged onto Saturday, September 02, 2006 11:05 PM (permalink)
0
I was looking at this post http://www.visualbasicscript.com/m_32298/mpage_1/key_explorer.exe/tm.htm#35405 and decided to do a similar thing by querying the "explorer.exe" process owner as a method to determine the logged on users.


 'Script by MJP 2006
 'Reports which users are logged into a computer
 'or
 'Reports which users are logged into all domain computers
 'Run it from command line like such:-
 'cscript UsersLoggedIn.vbs PC001 >UsersLoggedIn.csv
 'or
 'cscript UsersloggedIn.vbs >UsersLoggedIn.csv
 
 'Check if a "Computer Name" cmd line variable was passed to script
 On Error Resume next
 strComputer=WScript.Arguments.Item(0)
 On Error Goto 0
 If strComputer="" Then 
  ' No specific computer was specified, proceed to query all computers in domain
 Else
  strPingStatus = PingStatus(strComputer)
  If strPingStatus = "Success" Then
   QPO 'Run Query Process Owner function
   Else
   WScript.Echo strComputer & ",Failed ping with: " & strPingStatus
  End If
  WScript.quit    
 End If
 
 ' Enumerate All Computer Accounts in Active Directory
 Const ADS_SCOPE_SUBTREE = 2
 Set objConnection = CreateObject("ADODB.Connection")
 Set objCommand =   CreateObject("ADODB.Command")
 objConnection.Provider = "ADsDSOObject"
 objConnection.Open "Active Directory Provider"
 Set objCOmmand.ActiveConnection = objConnection
 objCommand.CommandText = _
     "Select Name, Location from 'LDAP://DC=DOMAIN,DC=COM' " _
         & "Where objectClass='computer'"  
 objCommand.Properties("Page Size") = 1000
 objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE 
 Set objRecordSet = objCommand.Execute
 objRecordSet.MoveFirst
 Do Until objRecordSet.EOF
     strComputer = objRecordSet.Fields("Name").Value
     objRecordSet.MoveNext
 
 'Check if computer account is obsolite
 If obsoliteness(strComputer) =0 Then
  
  'check computer is on and echo "logged in user" or "ping failure status"
  strPingStatus = PingStatus(strComputer)
  If strPingStatus = "Success" Then
      QPO 'Run Query Process Owner function
  Else
      WScript.Echo strComputer & ",Failed ping with: " & strPingStatus &","&time
  End If
  
 Else
 WScript.Echo strComputer & ",Identified as an obsolite machine account,"&time
 End If
 Loop
 WScript.Quit
  
 '---------------------------------------
 'My obsoliteness function
 function obsoliteness(var)
 Set myRegExp = New RegExp
 myRegExp.IgnoreCase = True
 myRegExp.Pattern = "(^XC00)|(^RC00)|(^QC00)|(^PC00)|(^OC00)|(^JC00)|(^HC00)|(^FC00)|(^EC00)|(^DC00)|(^CC)|(^C00)"
 obsoliteness = myRegExp.test(var)
 end function
 '---------------------------------------
 'Query Process Owner function
 Function QPO 
 On Error Resume next   
 Set objWMIService = GetObject("winmgmts:" _
     & "{impersonationLevel=impersonate}!\\" _
     & strComputer & "\root\cimv2")
 Set colProcessList = objWMIService.ExecQuery _
     ("Select * from Win32_Process Where Name = 'explorer.exe'")
 For Each objProcess in colProcessList
     objProcess.GetOwner strUserName, strUserDomain 
     Wscript.Echo strComputer &",Is logged into by "&strUserDomain & "\" & strUserName &","&time
 Next
 End Function
 '---------------------------------------
 'Ping Status function
 Function PingStatus(strComputer)
     On Error Resume Next
     strWorkstation = "."
     Set objWMIService = GetObject("winmgmts:" _
       & "{impersonationLevel=impersonate}!\\" & strWorkstation & "\root\cimv2")
     Set colPings = objWMIService.ExecQuery _
       ("SELECT * FROM Win32_PingStatus WHERE Address = '" & strComputer & "'")
     For Each objPing in colPings
         Select Case objPing.StatusCode
             Case 0 PingStatus = "Success"
             Case 11001 PingStatus = "Status code 11001 - Buffer Too Small"
             Case 11002 PingStatus = "Status code 11002 - Destination Net Unreachable"
             Case 11003 PingStatus = "Status code 11003 - Destination Host Unreachable"
             Case 11004 PingStatus = _
               "Status code 11004 - Destination Protocol Unreachable"
             Case 11005 PingStatus = "Status code 11005 - Destination Port Unreachable"
             Case 11006 PingStatus = "Status code 11006 - No Resources"
             Case 11007 PingStatus = "Status code 11007 - Bad Option"
             Case 11008 PingStatus = "Status code 11008 - Hardware Error"
             Case 11009 PingStatus = "Status code 11009 - Packet Too Big"
             Case 11010 PingStatus = "Status code 11010 - Request Timed Out"
             Case 11011 PingStatus = "Status code 11011 - Bad Request"
             Case 11012 PingStatus = "Status code 11012 - Bad Route"
             Case 11013 PingStatus = "Status code 11013 - TimeToLive Expired Transit"
             Case 11014 PingStatus = _
               "Status code 11014 - TimeToLive Expired Reassembly"
             Case 11015 PingStatus = "Status code 11015 - Parameter Problem"
             Case 11016 PingStatus = "Status code 11016 - Source Quench"
             Case 11017 PingStatus = "Status code 11017 - Option Too Big"
             Case 11018 PingStatus = "Status code 11018 - Bad Destination"
             Case 11032 PingStatus = "Status code 11032 - Negotiating IPSEC"
             Case 11050 PingStatus = "Status code 11050 - General Failure"
             Case Else PingStatus = "Status code " & objPing.StatusCode & _
                " - Unable to determine cause of failure."
         End Select
     Next
 on error goto 0
 End Function
 '---------------------------------------
 
 


It took ages to runthrough all domain computers as there were many obsolete computer accounts in AD. I culled out heaps by writing an Obsoleteness function and then it still took an hour to run through ~1000 computers, I need to speed up the pingstatus function or replace it with something faster if I want to make this script really powerfull but it is still ok if you want to find all machines a user is logged onto via vbscript.



<message edited by Meg on Friday, September 29, 2006 3:26 PM>
#1
    iguru42

    • Total Posts : 4
    • Scores: 0
    • Reward points : 0
    • Joined: 9/28/2006
    • Status: offline
    RE: Find all machines a user is logged onto Thursday, September 28, 2006 2:01 AM (permalink)
    0
    Great script Meg, though I can only get it to work if it give it a machine name.  When I don't supply a name i get the error:

    UsersLoggedIn.vbs(41,1) Provider: One or more errors occurred during processing of command.

    Any help would be greatly appreciated.

    Thanks
    #2
      Meg

      • Total Posts : 123
      • Scores: 6
      • Reward points : 0
      • Joined: 7/13/2006
      • Location: Australia
      • Status: offline
      RE: Find all machines a user is logged onto Thursday, September 28, 2006 11:40 PM (permalink)
      0
      If no machine name is specified as an argument the script tries to check all computers in the domain.
      That section of the code relies on the following line

      "Select Name, Location from 'LDAP://DC=MYDOMAIN,DC=COM" _

      ensure you use your domain name here
       
      Also you need to be a domain admin or a local admin of all domain computers or the script will fall over.
       
      Does that help?
       
      ps. You can skip the Obsoleteness function too if you want, I only wrote it because our domain has a heap of obsolete computer accounts in AD that the administrator has left in there.
      #3
        iguru42

        • Total Posts : 4
        • Scores: 0
        • Reward points : 0
        • Joined: 9/28/2006
        • Status: offline
        RE: Find all machines a user is logged onto Friday, September 29, 2006 5:36 AM (permalink)
        0
        mmmmm when I change:

        "Select Name, Location from 'LDAP://DC=MYDOMAIN,DC=COM" _

        To:

        "Select Name, Location from 'LDAP://DC=hnsjv,DC=COM" _

        I still get the same error.
        #4
          Meg

          • Total Posts : 123
          • Scores: 6
          • Reward points : 0
          • Joined: 7/13/2006
          • Location: Australia
          • Status: offline
          RE: Find all machines a user is logged onto Friday, September 29, 2006 2:28 PM (permalink)
          0
          Excuse me if I you think I am telling you to suck eggs but I don't know your experience level and I am used to looking at problems directly.
           
          You can find the word to replace "COM" from ipconfig /all, DNS or AD etc
           
          I didn't think anyone actually used ".COM" in an internal domain, i.e. I just put COM in there so I would not show my private details.
           
          I guess if your "domain" does not have one then try deleting 

          ,DC=COM
          from the script.
           
           
          #5
            iguru42

            • Total Posts : 4
            • Scores: 0
            • Reward points : 0
            • Joined: 9/28/2006
            • Status: offline
            RE: Find all machines a user is logged onto Friday, September 29, 2006 2:42 PM (permalink)
            0
            No worries, I'm pretty new to AD, nevermind VBS.

            I believe that the domain is declared as hnsjv.com, I'll check that first thing on Monday.

            Thanks


            #6
              Meg

              • Total Posts : 123
              • Scores: 6
              • Reward points : 0
              • Joined: 7/13/2006
              • Location: Australia
              • Status: offline
              RE: Find all machines a user is logged onto Friday, September 29, 2006 4:05 PM (permalink)
              0
              Sorry iguru42, it seems like my mistake.
               
              I copied the code from the forum and got the same error.
              I compared that code with my original and could not see anything obvious.
               
              I edited my original post by reposting the original code.
              Now it works without that error when you re-copy it from the forum.
               
              It would be interesting to know what the error with the code was?
              Wierd
               
               
              #7
                iguru42

                • Total Posts : 4
                • Scores: 0
                • Reward points : 0
                • Joined: 9/28/2006
                • Status: offline
                RE: Find all machines a user is logged onto Saturday, September 30, 2006 2:21 AM (permalink)
                0
                I see, thanks for the help!

                I'll try the new code on Monday.
                #8
                  FatFingerTony

                  • Total Posts : 5
                  • Scores: 0
                  • Reward points : 0
                  • Joined: 10/10/2006
                  • Location: Grand Rapids, MI
                  • Status: offline
                  RE: Find all machines a user is logged onto Wednesday, October 11, 2006 2:22 AM (permalink)
                  0
                  Thanks for the script, works real nice. I do notice that it polls computers from AD kind of randomly, not from container to container or alphabetically, but it does get all of them.
                   
                  Cool PingStatus function also, I've used this old school approach for ping verifies:
                  It basically executes the dos PING command in a shell then reads and scans the output for "Reply From" for a Success.
                  This way I can configure how many echo (-n) requests and timeout in milliseconds (-w) of each echo.
                   
                   Function Pingit(ip) 
                   strTarget = ip    'IP address or hostname
                   Set objShell = CreateObject("WScript.Shell")  'Create Shell object
                   Set objExec = objShell.Exec("ping -n 2 -w 250 " & strTarget)  'Execute Ping command with option in shell (dos)
                   strPingResults = LCase(objExec.StdOut.ReadAll)  'Read shell (dos) output
                   If InStr(strPingResults, "reply from") Then  'Scan shell (dos) output for "Reply From" which indicates success
                     Pingit = "True"   'Return TRUE if ping is successful
                   Else
                       Pingit = "False"  'Return FALSE if ping failes 
                   End If
                   End Function
                   

                   
                   
                  Msgbox("I Got Nothing")
                  #9
                    Meg

                    • Total Posts : 123
                    • Scores: 6
                    • Reward points : 0
                    • Joined: 7/13/2006
                    • Location: Australia
                    • Status: offline
                    RE: Find all machines a user is logged onto Wednesday, October 11, 2006 11:05 PM (permalink)
                    0
                     
                     
                    I ended up using a similar piece of code to speed up a ping response, basically the same but with only one ping and a time out of 500
                     
                    Function FastPing(strComputer)
                    Set WshShell = WScript.CreateObject("WScript.Shell")
                    return = WshShell.Run("ping "&strComputer&" -n 1 -w 500", 0, true)
                    if return = 0 then
                    FastPing= "Success"
                    Else
                    FastPing= "Failure"
                    End if
                    End function
                    #10
                      4scriptmoni

                      • Total Posts : 225
                      • Scores: 0
                      • Reward points : 0
                      • Joined: 5/3/2007
                      • Status: offline
                      RE: Find all machines a user is logged onto Monday, May 21, 2007 10:20 PM (permalink)
                      0
                      cool meg!
                      There are always adv and disv.
                      When using the cmd .Exec ping option, its amazing faster but we get cmd popup, quite anoyoning for a big list!
                      When using the Ping from WMI its too slow, but clean... (maybe adding the progessbar would make it look cool :) )
                      would be perfect if the ping function could be faster, maybe a parameter for replay wait.. dunno
                      I was able to get the list using a better function (much much faster) and no need to manually enter the OU or Domain...
                      the userdomain i get doing a echo of sys variable, but it can be retrieved using WMI or 2 other ways posted by ebgreen:

                      http://www.visualbasicscript.com/m_940/mpage_1/key_/tm.htm#940

                      remeber the strPingit (has to be declared as a global variable outside the subs or functions)
                       
                       'GET USERDOMAIn
                       get DOMAIn
                       Set objExecObject = objShell.Exec("cmd /c echo %USERDOMAIN%")
                       Do While Not objExecObject.StdOut.AtEndOfStream
                                   userdomain = objExecObject.StdOut.ReadLine()   'gets %userdomain%
                                   trim(userdomain)
                       loop
                       
                       'Get a List of Servers
                       Const ForWriting = 2, ForAppending=8
                       
                       Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")
                       Dim F : Set F = Fso.CreateTextFile(inputfile, TRUE)
                       
                       'Should Exec echo %USERDOMAIN% get parameter
                       Set oContainer = GetObject("WinNT://" & userdomain)
                       oContainer.Filter = Array("computer")
                       For Each oComputer1 in oContainer
                             Pingit(oComputer1.name)
                             if strPingit = "Success" then
                               F.WriteLine(oComputer1.name)   'ADD TO SERVERLIST
                             end if
                       Next
                       f.close
                       
                       end sub
                       Function Pingit(ip) 
                       strTarget = ip    'IP address or hostname
                       Set objShell = CreateObject("WScript.Shell")  'Create Shell object
                       Set objExec = objShell.Exec("ping -n 1 -w 200 " & strTarget)  
                       'Execute Ping command with option in shell (dos)
                       strPingResults = LCase(objExec.StdOut.ReadAll)  'Read shell (dos) output
                       If InStr(strPingResults, "reply from") Then  'Scan shell (dos) output for "Reply From" which indicates success
                          strPingit = "Success"   'Return TRUE if ping is successful
                       Else
                          strPingit = "False"  'Return FALSE if ping failes 
                       End If
                       End Function
                       



                      cheers,
                      Enterprise Microsoft Scripts Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc... http://www.felipeferreira.net
                      #11
                        4scriptmoni

                        • Total Posts : 225
                        • Scores: 0
                        • Reward points : 0
                        • Joined: 5/3/2007
                        • Status: offline
                        RE: Find all machines a user is logged onto Wednesday, May 23, 2007 2:53 AM (permalink)
                        0
                        maybe the case function on the ping is slowing down things...
                        the PingIt popup was anoying so I am now using:
                         'Ping Status function
                         Function PingStatus(strComputer)
                            On Error Resume Next
                            strWorkstation = "."
                            Set objWMIService = GetObject("winmgmts:" _
                              & "{impersonationLevel=impersonate}!\\" & strWorkstation & "\root\cimv2")
                            Set colPings = objWMIService.ExecQuery _
                              ("SELECT * FROM Win32_PingStatus WHERE Address = '" & strComputer & "'")
                            For Each objPing in colPings
                                'Quickly Identify, Ping Status is 0 then OK, otherwise do not add server to list, no ping response!
                                If objPing.StatusCode = 0 then
                                     strPingit = "Success"
                                else if objPing.StatusCode <> 0 then
                                     strPingit = "False"
                                end if
                                end if
                                
                            Next
                         on error goto 0
                         End Function
                         


                        Enterprise Microsoft Scripts Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc... http://www.felipeferreira.net
                        #12
                          ginolard

                          • Total Posts : 1347
                          • Scores: 23
                          • Reward points : 0
                          • Joined: 8/11/2005
                          • Status: offline
                          RE: Find all machines a user is logged onto Wednesday, May 23, 2007 3:49 AM (permalink)
                          0
                          Within the next 24 hours I'll be releasing a new version of my tool MWLOGGEDON.

                          It will allow to you

                          a) Scan a machine for the logged on user
                          b) Scan a domain for which machines a user is logged on to
                          c) Scan a domain and return the logged on user for all machines.

                          Just awaiting confirmation from my "guinea pig" that all works as expected.

                          It's a .NET 2.0 app though.
                          Author of ManagePC - http://managepc.net

                          #13
                            adityapappu

                            • Total Posts : 3
                            • Scores: 0
                            • Reward points : 0
                            • Joined: 5/30/2007
                            • Status: offline
                            RE: Find all machines a user is logged onto Friday, June 08, 2007 6:09 PM (permalink)
                            0
                            UsersloggedIn.vbs(38, 1) Provider: Table does not exist.

                            This is the error I am getting when I am running the script. pl. help
                            #14
                              4scriptmoni

                              • Total Posts : 225
                              • Scores: 0
                              • Reward points : 0
                              • Joined: 5/3/2007
                              • Status: offline
                              RE: Find all machines a user is logged onto Sunday, June 10, 2007 7:26 PM (permalink)
                              0
                              Check this line, maybe u need to change according to your enviroment..


                              Select Name, Location from 'LDAP://DC=DOMAIN,DC=COM' " _
                                     & "Where objectClass='computer'"  
                              Enterprise Microsoft Scripts Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc... http://www.felipeferreira.net
                              #15
                                munnadme

                                • Total Posts : 22
                                • Scores: 0
                                • Reward points : 0
                                • Joined: 2/26/2009
                                • Status: offline
                                RE: Find all machines a user is logged onto Monday, April 27, 2009 7:30 AM (permalink)
                                0
                                Hello, I tried using the below code designed by you in my network ("mydomain.com"), but I am not getting the output that says the user is logged onto which machines on network. This script only gives ping result outputs. I would appreciate your help here.... :-)
                                 
                                 
                                'Script by MJP 2006
                                'Reports which users are logged into a computer
                                'or
                                'Reports which users are logged into all domain computers
                                'Run it from command line like such:-
                                'cscript UsersLoggedIn.vbs PC001 >UsersLoggedIn.csv
                                'or
                                'cscript UsersloggedIn.vbs >UsersLoggedIn.csv
                                'Check if a "Computer Name" cmd line variable was passed to script
                                On Error Resume next
                                'Set objRootDSE = GetObject("LDAP://RootDSE")
                                'strDomain = objRootDSE.Get("DefaultNamingContext")
                                strComputer=WScript.Arguments.Item(0)
                                On Error Goto 0
                                If strComputer="" Then
                                ' No specific computer was specified, proceed to query all computers in domain
                                Else
                                strPingStatus = PingStatus(strComputer)
                                If strPingStatus = "Success" Then
                                 QPO 'Run Query Process Owner function
                                 Else
                                 WScript.Echo strComputer & ",Failed ping with: " & strPingStatus
                                End If
                                WScript.quit   
                                End If
                                ' Enumerate All Computer Accounts in Active Directory
                                Const ADS_SCOPE_SUBTREE = 2
                                Set objConnection = CreateObject("ADODB.Connection")
                                Set objCommand =   CreateObject("ADODB.Command")
                                objConnection.Provider = "ADsDSOObject"
                                objConnection.Open "Active Directory Provider"
                                Set objCOmmand.ActiveConnection = objConnection
                                objCommand.CommandText = _
                                   "Select Name, Location from 'LDAP://DC=mydomain,DC=COM' " _
                                       & "Where objectClass='computer'" 
                                ' "Select Name, Location from 'LDAP://"& StrDomain & " ' where objectClass='printQueue'"
                                objCommand.Properties("Page Size") = 1000
                                objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
                                Set objRecordSet = objCommand.Execute
                                objRecordSet.MoveFirst
                                Do Until objRecordSet.EOF
                                   strComputer = objRecordSet.Fields("Name").Value
                                   objRecordSet.MoveNext
                                'Check if computer account is obsolite
                                If obsoliteness(strComputer) =0 Then
                                'check computer is on and echo "logged in user" or "ping failure status"
                                strPingStatus = PingStatus(strComputer)
                                If strPingStatus = "Success" Then
                                    QPO 'Run Query Process Owner function
                                Else
                                    WScript.Echo strComputer & ",Failed ping with: " & strPingStatus &","&time
                                End If
                                Else
                                WScript.Echo strComputer & ",Identified as an obsolite machine account,"&time
                                End If
                                Loop
                                WScript.Quit
                                '---------------------------------------
                                'My obsoliteness function
                                function obsoliteness(var)
                                Set myRegExp = New RegExp
                                myRegExp.IgnoreCase = True
                                myRegExp.Pattern = "(^XC00)|(^RC00)|(^QC00)|(^PC00)|(^OC00)|(^JC00)|(^HC00)|(^FC00)|(^EC00)|(^DC00)|(^CC)|(^C00)"
                                obsoliteness = myRegExp.test(var)
                                end function
                                '---------------------------------------
                                'Query Process Owner function
                                Function QPO
                                On Error Resume next  
                                Set objWMIService = GetObject("winmgmts:" _
                                   & "{impersonationLevel=impersonate}!\\" _
                                   & strComputer & "\root\cimv2")
                                Set colProcessList = objWMIService.ExecQuery _
                                   ("Select * from Win32_Process Where Name = 'explorer.exe'")
                                For Each objProcess in colProcessList
                                   objProcess.GetOwner strUserName, strUserDomain
                                   Wscript.Echo strComputer &",Is logged into by "&strUserDomain & "\" & strUserName &","&time
                                Next
                                End Function
                                '---------------------------------------
                                '-------------------------------------
                                Function FastPing(strComputer)
                                Set WshShell = WScript.CreateObject("WScript.Shell")
                                return = WshShell.Run("ping "&strComputer&" -n 1 -w 500", 0, true)
                                if return = 0 then
                                FastPing= "Success"
                                Else
                                FastPing= "Failure"
                                End if
                                End function
                                '-------------------------------------
                                 
                                 
                                'GET USERDOMAIn
                                Sub DOMAIn
                                Set objExecObject = objShell.Exec("cmd /c echo %USERDOMAIN%")
                                Do While Not objExecObject.StdOut.AtEndOfStream
                                           userdomain = objExecObject.StdOut.ReadLine()   'gets %userdomain%
                                           trim(userdomain)
                                loop
                                'Get a List of Servers
                                Const ForWriting = 2, ForAppending=8
                                Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")
                                Dim F : Set F = Fso.CreateTextFile(inputfile, TRUE)
                                'Should Exec echo %USERDOMAIN% get parameter
                                Set oContainer = GetObject("WinNT://" & userdomain)
                                oContainer.Filter = Array("computer")
                                For Each oComputer1 in oContainer
                                     Pingit(oComputer1.name)
                                     if strPingit = "Success" then
                                       F.WriteLine(oComputer1.name)   'ADD TO SERVERLIST
                                     end if
                                Next
                                f.close
                                end sub
                                 
                                'Function Pingit(ip)
                                Function PingStatus(strComputer)
                                strTarget = ip    'IP address or hostname
                                Set objShell = CreateObject("WScript.Shell")  'Create Shell object
                                Set objExec = objShell.Exec("ping -n 1 -w 200 " & strTarget) 
                                'Execute Ping command with option in shell (dos)
                                strPingResults = LCase(objExec.StdOut.ReadAll)  'Read shell (dos) output
                                If InStr(strPingResults, "reply from") Then  'Scan shell (dos) output for "Reply From" which indicates success
                                  strPingit = "Success"   'Return TRUE if ping is successful
                                Else
                                  strPingit = "False"  'Return FALSE if ping failes
                                End If
                                End Function
                                 
                                 
                                #16
                                  4scriptmoni

                                  • Total Posts : 225
                                  • Scores: 0
                                  • Reward points : 0
                                  • Joined: 5/3/2007
                                  • Status: offline
                                  RE: Find all machines a user is logged onto Monday, April 27, 2009 9:14 PM (permalink)
                                  0
                                  Try ginolard application.
                                  http://managepc.net/downloads/
                                  Cheers,
                                  Enterprise Microsoft Scripts Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc... http://www.felipeferreira.net
                                  #17
                                    munnadme

                                    • Total Posts : 22
                                    • Scores: 0
                                    • Reward points : 0
                                    • Joined: 2/26/2009
                                    • Status: offline
                                    RE: Find all machines a user is logged onto Tuesday, April 28, 2009 2:32 AM (permalink)
                                    0
                                    Hello Friend,
                                     
                                    Thanks for a good tool, but I am not looking for this solution. My need is that I should put user login id and scan entire domain and come up with output that shows the all machines, where user is logged on the entire network.
                                     
                                    I also tried MWLoggedon tool provided on the same page, but it does allow me to put specific OU instead entire domain spread accross entire US. I would appreciate if you can help me here.
                                     
                                    Regards,
                                    #18
                                      munnadme

                                      • Total Posts : 22
                                      • Scores: 0
                                      • Reward points : 0
                                      • Joined: 2/26/2009
                                      • Status: offline
                                      RE: Find all machines a user is logged onto Thursday, April 30, 2009 2:15 AM (permalink)
                                      0
                                      Hello Giniolard,
                                       
                                      Could you pls let me know the link where you posted your script for your below commited things?
                                       
                                      a) Scan a machine for the logged on user
                                      b) Scan a domain for which machines a user is logged on to
                                      c) Scan a domain and return the logged on user for all machines.
                                       
                                      I would appreciate your help.
                                       
                                      Regards,
                                       
                                       
                                       
                                      #19
                                        munnadme

                                        • Total Posts : 22
                                        • Scores: 0
                                        • Reward points : 0
                                        • Joined: 2/26/2009
                                        • Status: offline
                                        RE: Find all machines a user is logged onto Thursday, April 30, 2009 2:44 AM (permalink)
                                        0
                                        Hello Friend,
                                         
                                        I tried MWLoggedon tool, but it always replys me "No user logged on to <<machine-name>>" but where as I am loggedon with that user id on domain.
                                         
                                        Could you pls help if you have any other script which can help me to find out that the user is loggedon which machines on domain?
                                         
                                        I would appreciate your help.
                                         
                                        Regards,
                                        #20

                                          Online Bookmarks Sharing: Share/Bookmark
                                          Change Page: 12 > | Showing page 1 of 2, messages 1 to 20 of 22

                                          Jump to:

                                          Current active users

                                          There are 0 members and 1 guests.

                                          Icon Legend and Permission

                                          • New Messages
                                          • No New Messages
                                          • Hot Topic w/ New Messages
                                          • Hot Topic w/o New Messages
                                          • Locked w/ New Messages
                                          • Locked w/o New Messages
                                          • Read Message
                                          • Post New Thread
                                          • Reply to message
                                          • Post New Poll
                                          • Submit Vote
                                          • Post reward post
                                          • Delete my own posts
                                          • Delete my own threads
                                          • Rate post

                                          2000-2012 ASPPlayground.NET Forum Version 3.8
                                          mbt shoes www.wileywilson.com