set RMT=N
for /f "Tokens=*" %%a in ('net user The_sAMAccountName /domain^|find /i "User profile"^|find "\\"') do set RMT=Y
@echo %RMT%
You could use Adfind.exe freeware (tip 5898 » Freeware ADFind. in the 'Tips & Tricks' at http://www.jsifaq.com)
set RMT=N
for /f "Tokens=*" %%a in ('adfind -default -nodn -nolabel -f "&(objectcategory=person)(sAMAccountName=The_sAMAccountName)(profilePath=\\*)" profilePath^|find "\\"') do set RTM=Y
@echo %RMT%
Locally, System Properties, User Profiles (Type column).
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.