How do I find out who has opened a file on a network drive and is it possible to force him out? I used winfile to do this, but with WinXP the button doesn't work anymore.
Thanks, I have changed it a bit and now it works (properties for command object, not connection):
Set oConnection = CreateObject("ADODB.Connection")
Set oCommand = CreateObject("ADODB.Command")
oConnection.Provider = "ADsDSOOBject"
oConnection.Open "Active...
I use the following code to get all users in a domain, but I only get 1000 records back. There should be over 3000 in the User folder and some more elsewhere.
Set objConn = CreateObject("ADODB.Connection")
objConn.Provider = "ADsDSOOBJECT"
objconn.open
strQuery =...
I try to connect to a remote Computer to get the CurrentUser. Ping is ok. No error occurs, but the script halts while executing this statement:
Set oSys = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}" & _
"!//" & machine & _...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.