Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  RSOP  Sessions  

 Content of List RSOP Sessions.vbs
MD5 Hash: 34C39AE795181A746444BD1DE71C1AFF
' Description: Returns information about the resultant set of policy session used when applying Group Policy to a computer. To return information about Group Policy applied to the logged-on user, change the WMI class from root\rsop\computer to root\rsop\user.


Set dtmConvertedDate = CreateObject("WbemScripting.SWbemDateTime")

strComputer = "."
Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\rsop\computer")

Set colItems = objWMIService.ExecQuery("Select * from RSOP_Session")

For Each objItem in colItems
Wscript.Echo "ID: " & objItem.ID
dtmConvertedDate.Value = objItem.CreationTime
dtmTime = dtmConvertedDate.GetVarDate
Wscript.Echo "Creation Time: " & dtmTime
Wscript.Echo "Flags: " & objItem.Flags
For Each strSecurityGroup in objItem.SecurityGroups
Wscript.Echo "Security group: " & strSecurityGroup
Next
Wscript.Echo "Site: " & objItem.Site
Wscript.Echo "Slow Link: " & objItem.SlowLink
Wscript.Echo "SOM: " & objItem.SOM
Wscript.Echo "Target Name: " & objItem.TargetName
Wscript.Echo "TTL (Minutes): " & objItem.TTLMinutes
Wscript.Echo "Version: " & objItem.Version
Wscript.Echo
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a