Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Dfs TargetsContent of List Dfs Targets.vbsMD5 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 :: |