Background
Requested a few Service Accounts so that we can run a few SQL Server Instances using them.
I need to change the password to something a lot tighter.
Got a nice one from Norton Identity Safe; which is here.
Change Password
We can change using UI.
UI
UI – Self Change
Logged on to the system from console or through Remote Desktop.
If through remote desktop, access Change Password using CTRL/ALT/End
Console
Tool – dsmod
dsmod – Change User using User Distinguished name
rem John Howard -MSFT Rem Sample scripts for dsadd, dsmodify, dsget, dsquery, dsmod, dsmove Rem https://blogs.technet.microsoft.com/jhoward/2005/01/27/sample-scripts-for-dsadd-dsmodify-dsget-dsquery-dsmod-dsmove/ set "_UserDN=CN=svcLABMSSQL,CN=Users,DC=LAB,DC=org" set "_ADPassword=Hello2819$" dsmod user "%_UserDN%" -pwd %_ADPassword%
dsmod – Change User using SAMAccountName
Rem Change a domain account’s password from the command line Rem https://itnsomnia.wordpress.com/2008/04/08/change-a-domain-accounts-password-from-the-command-line/ set "_SAMAccountName=svcLABMSSQL" set "_ADPassword=Hello2819$" echo ADUser dsquery user -samid %_SAMAccountName% dsquery user -samid %_SAMAccountName% | dsmod user -mustchpwd no -pwd %_ADPassword%
dsmod – Error
If Error Occurs, please ouput out ERRORLEVEL.
Here are some common ones.
|
References
- Microsoft
- Reset a User Password
Link
- Reset a User Password
- Mitch Tulloch, author of Windows Server Hacks
- Windows Server Hacks: Resetting User Passwords
Link
- Windows Server Hacks: Resetting User Passwords
- John Howard
- Sample scripts for dsadd, dsmodify, dsget, dsquery, dsmod, dsmove
Link
- Sample scripts for dsadd, dsmodify, dsget, dsquery, dsmod, dsmove
- John Savill
- How can I change a domain user’s password from the command line in Windows Server 2003?
Link
- How can I change a domain user’s password from the command line in Windows Server 2003?
- itnsomnia
- Change a domain account’s password from the command line
Link
- Change a domain account’s password from the command line
[…] BTW, a couple of choices for changing an AD’s Account password are documented here. […]