4 replies
by curlergirl
Assuming you are using Active Directory, you can export the user list directly from the AD Users and Computers console. Just right click on the Users container (or other container that holds the user name information you want to export), and click "Export List...". Chose the .csv format if you want to import it into Excel - this works pretty well. You can use macros to get rid of unnecessary info and format the list for comparison in any way you want.
Hope this helps!
by chucketn
by djbrown62
Here are two methods using Net User
@echo off
rem Method_1 ======
net user %1
echo %errorlevel% > Res1.txt
goto Done
rem Method_2 ======
net user %1
if errorlevel 2 goto No_User
if errorlevel 0 goto Yes_user
echo unknown error
goto done
:no_user
echo user %1 not found > Res2.txt
goto done
:yes_user
echo user %1 found > Res2.txt
goto done
:done
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending