From: Todd Wozny on 24 Sep 2010 15:23 Hello, I just read the post about Monitor Share Access. I have a similar issue. I am looking for information on how to Monitor Share Permissions of an APP Server for 2 specific shares. If the permissions are not set correctly then change the permissions by adding the specified user(s) and giving them Full Control Access. Any Help would be much appreciated on this topic. Thank You. > On Wednesday, June 11, 2008 1:17 AM Rob wrote: > Hi > > I've been looking for this, and would have thought it easy, but am still > empty handed. > > On a small network I'd like to see when someone is accessing one of my > shares, almost all of which are readonly. All the machines use XP, and we > use simple file sharing. > > Any help would be great > > Rob >> On Wednesday, June 11, 2008 9:31 AM Richard Mueller [MVP] wrote: >> Rob wrote: >> >> >> You can bind to a specific share ard retrieve the value of CurrentUserCount. >> For example >> >> Set objMyShare = GetObject("WinNT://MyComputer/LanmanServer/MyShare") >> Wscript.Echo "Current users: " & objMyShare.CurrentUserCount >> >> You can also display informaton on user sessions on the computer: >> >> Set objServer = GetObject("WinNT://MyComputer/LanmanServer") >> For Each objSession In objServer.Sessions >> Wscript.Echo "Session: " & objSession.Name _ >> & vbCrLf & " User: " & objSesion.User _ >> & vbCrLf & " Computer: " & objSession.Computer _ >> & vbCrLf & " Connect Time: " & objSession.ConnectTime _ >> & vbCrLf & " Idle Time: " & objSession.IdleTime >> Next >> >> Finally, you can display information on open resources: >> >> Set objServer = GetObject("WinNT://MyComputer/LanmanServer") >> For Each objResource In objServer.Resources >> Wscript.Echo "ResourceID: " & objResource.Name _ >> & vbCrLf & " Path: " & objResource.Path _ >> & vbCrLf & " User: " & objResource.User _ >> & vbCrLf & " Lock Count: " & objResource.LockCount >> Next >> >> You can play with the above to see if it gives you what you want. There is >> nothing to trigger an alert when someone accesses resources on the computer. >> You need to run a script to see if anything is happening at that moment. >> >> -- >> Richard Mueller >> MVP Directory Services >> Hilltop Lab - http://www.rlmueller.net >> -- >> Submitted via EggHeadCafe - Software Developer Portal of Choice >> ASP.NET HttpPostedFile Image Resizer >> http://www.eggheadcafe.com/tutorials/aspnet/ba8d2418-6d67-40f7-989c-e90688058778/aspnet-httppostedfile-image-resizer.aspx
|
Pages: 1 Prev: XML load problem Next: Need help creating a vbScript using notepad ++ |