Monday, March 20, 2017

Command for domain user

 

Disable/Lock a domain user account:

 

Net user loginid  /ACTIVE:NO /domain

 

------

To enable/unlock a domain user account:

 

Net user loginid /ACTIVE:YES  /domain

 

 

------

Prevent users from changing their account password:

 

Net user loginid /Passwordchg:No

 

-------

To allow users to change their password:

 

Net user loginid /Passwordchg:Yes

 

 

 

-----

reset their password you can use this command:

 

net user loginname newpassword /DOMAIN /Active:Yes

 

---

Get serial no: wmic bios get serialnumber

 

 


This message and any attachment are for the intended recipient's use only. It may contain confidential, proprietary or legally privileged information or otherwise be protected from disclosure by other legal rules. If you are not the intended recipient, you may not use, disclose or reproduce this message, its attachment or any part thereof, or take any action in reliance thereon. Please notify the sender immediately and delete this message and any attachment from your system. Emails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by email is deemed to have accepted these risks. Anheuser-Busch InBev NV/SA and its subsidiaries deny any responsibility for any damage arising from the use of email. Any opinion and other statement contained in this message and any attachment are solely those of their author and do not necessarily represent those of the company.