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  Dfs  Targets  

 Content of List Dfs Targets.vbs
MD5 Hash: E8BEE5D2286DAA4FBD8C7E741C34F63B
' Description: Enumerates all the Dfs targets on a computer.


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colDfsTargets = objWMIService.ExecQuery _
("Select * from Win32_DFSTarget")

For each objDfsTarget in colDfsTargets
Wscript.Echo "Caption: " & objDfsTarget.Caption
Wscript.Echo "Description: " & objDfsTarget.Description
Wscript.Echo "Install Date: " & objDfsTarget.InstallDate
Wscript.Echo "Link Name: " & objDfsTarget.LinkName
Wscript.Echo "Name: " & objDfsTarget.Name
Wscript.Echo "Server Name: " & objDfsTarget.ServerName
Wscript.Echo "Share Name: " & objDfsTarget.ShareName
Wscript.Echo "State: " & objDfsTarget.State
Wscript.Echo "Status: " & objDfsTarget.Status
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