Dim objGroup, objUser, objFSO, objFile, strDomain, strGroup, Domain, Group, objFolder, OpenCMD, f
strDomain = Inputbox ("Enter the Domain name", "DB Data Exporter", "Enter domain name")
strGroup = InputBox ("Enter the Group name", "DB Data Exporter", "Enter group name")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim
OpenCMD = CreateObject("wscript.shell")
set f="dsget group"+
OpenCMD.run(
'Set objFolder = objFSO.CreateFolder("D:\eis"&s)
'Set objFile = objFSO.CreateTextFile("Path for keeping file"&strGroup&".csv")
'Set objGroup = GetObject("WinNT://" & strDomain & "/" & strGroup & ",group")
'objFile.WriteLine "EMP ID"
'For Each objUser In objGroup.Members
' objFile.WriteLine objUser.Name
'Next
'objFile.Close
'Set objFile = Nothing
'Set objFSO = Nothing
'Set objUser = Nothing
'Set objGroup = Nothing
Wscript.Echo "Please find the output is created "
*for getting Updates / if you are liking the posts and if this is useful Please follow the blog*
Comments
Post a Comment