I am trying to create a batch file that I can run to give me a list of members in the local administrators group. I can run the report from Hyena and it works fine.
I have copied the export.ini, exporter.exe and created exp.bat to a single folder.
All I get is a Blank members.txt file.
Exp.bat
call exporter.exe .\export.ini
Export.ini
[Export]
Verbose=1
VeryVerbose=0
ExportDomain=PWST
ExportTitles=1
Append=1
SkipUnix=1
ExportCmd=.\exporter.exe
Delimiter=,
ExportUsers=0
ExportUserFile=c:\users.txt
ExportDomainUsers=0
ExportBDCUsers=0
ExportServerUsers=0
ExportWorkstationUsers=1
ExportUserRAS=0
ExportUserTSE=0
ExportGroups=0
ExportGroupFile=c:\groups.txt
ExportDomainGlobalGroups=0
ExportDomainLocalGroups=0
ExportServerLocalGroups=0
ExportWorkstationLocalGroups=1
ExportSpecificGroups=[Administrators][Power Users]
ExportPrinters=0
ExportPrinterFile=
ExportServerPrinters=0
ExportWorkstationPrinters=0
ExportServices=0
ExportServiceFile=c:\services.txt
ExportServerServices=1
ExportWorkstationServices=0
ExportSpecificServices=
ExportMembers=1
ExportMemberFile=d:\shared\ad reports\members.txt
ExportDomainGlobalMembers=0
ExportDomainLocalMembers=0
ExportServerLocalMembers=0
ExportWorkstationLocalMembers=1
ExportMachines=0
ExportMachineFile=c:\machines.txt
ExportServerMachines=0
ExportWorkstationMachines=1
ExportComputerUptime=0
ExportComputerProperties=0
ExportDrives=0
ExportServerDrives=1
ExportWorkstationDrives=0
ExportDriveFile=c:\drives.txt
// use:
// 0=bytes
// 1=mb
// 2=gb
ExportDriveFormat=2
ExportDriveSpaceMask=""
ExportShares=0
ExportShareFile=c:\shares.txt
ExportServerShares=1
ExportWorkstationShares=0
ExportShareSecurity=0
I have copied the export.ini, exporter.exe and created exp.bat to a single folder.
All I get is a Blank members.txt file.
Exp.bat
call exporter.exe .\export.ini
Export.ini
[Export]
Verbose=1
VeryVerbose=0
ExportDomain=PWST
ExportTitles=1
Append=1
SkipUnix=1
ExportCmd=.\exporter.exe
Delimiter=,
ExportUsers=0
ExportUserFile=c:\users.txt
ExportDomainUsers=0
ExportBDCUsers=0
ExportServerUsers=0
ExportWorkstationUsers=1
ExportUserRAS=0
ExportUserTSE=0
ExportGroups=0
ExportGroupFile=c:\groups.txt
ExportDomainGlobalGroups=0
ExportDomainLocalGroups=0
ExportServerLocalGroups=0
ExportWorkstationLocalGroups=1
ExportSpecificGroups=[Administrators][Power Users]
ExportPrinters=0
ExportPrinterFile=
ExportServerPrinters=0
ExportWorkstationPrinters=0
ExportServices=0
ExportServiceFile=c:\services.txt
ExportServerServices=1
ExportWorkstationServices=0
ExportSpecificServices=
ExportMembers=1
ExportMemberFile=d:\shared\ad reports\members.txt
ExportDomainGlobalMembers=0
ExportDomainLocalMembers=0
ExportServerLocalMembers=0
ExportWorkstationLocalMembers=1
ExportMachines=0
ExportMachineFile=c:\machines.txt
ExportServerMachines=0
ExportWorkstationMachines=1
ExportComputerUptime=0
ExportComputerProperties=0
ExportDrives=0
ExportServerDrives=1
ExportWorkstationDrives=0
ExportDriveFile=c:\drives.txt
// use:
// 0=bytes
// 1=mb
// 2=gb
ExportDriveFormat=2
ExportDriveSpaceMask=""
ExportShares=0
ExportShareFile=c:\shares.txt
ExportServerShares=1
ExportWorkstationShares=0
ExportShareSecurity=0
Comment