DSRM Comand


 

hi ,

i trying find solution can remove multiple disabled user accounts in ad. there way can use dsrm command input file contains list of disabled user accounts , delete them in ad.

thanks

so, that's ok. work syntax provided in previous post

for /f "tokens=* delims=<quote>" %i in (e:\disabledaccounts.txt) dsquery user %i| dsrm -noprompt

there simple mistake in previous post. instead of %%i in dsquery users, should single percent sign (%i)


regards, krzysztof ---- visit blog @ http://kpytko.wordpress.com


Windows Server  >  Directory Services



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL