[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
(1) Use domain account that owns "domain admins" or "account operator"group privilege
  1. net group /domain group001| find /i  "login-username"  && a.bat || b.bat
复制代码
(2) I use the localgroup to test the above script due to I haven't  domain controler at home.
  1. net localgroup users|find /i "poiuy123" > nul && echo poiuy123 account exist || echo poiuy123 acount not exist
复制代码
result as below :
poiuy123 account exist
  1. net localgroup users|find /i "kkkkk123" > nul && echo kkkkk123 account exist || echo kkkkk123 acount not exist
复制代码
result as below :

kkkkk123 acount not exist

(3) above  testing just for your reference.

[ 本帖最后由 pdanniel66 于 2011-3-12 19:51 编辑 ]

TOP

返回列表