cd "c:\program files\gam-64"
REM Get list of OUs
gam.exe print orgs name > c:\temp\orgsoutput.csv
REM Output Show Forwards
FOR /f "tokens=2 delims=," %%G IN (c:\temp\orgsoutput.csv) DO gam.exe ou %%G show forward >> c:\temp\%%Gwithou.txt
Del c:\temp\namewithou.txt
This is terribly inefficient because of each of the loops through the list of orgs it will grab all the users. Any ideas how to make this work faster are appreciated.