Change your windows account password by powershell script

1.Enabel windows feature

Makes sure you have already install the Set-AdAccountPassword feature, or install it by follows

Import-Module ServerManager

2.Run script

Create file: .\change_password.ps1

param (
    [string]$domain = "domain",
    [string]$userName = "account",
    [string]$oldPassword = "old_password",
    [string]$newPassword = "new_password"
)
sleep 10

$SeOldPassword = ConvertTo-SecureString -AsPlainText $oldPassword -Force
$SeNewPassword = ConvertTo-SecureString -AsPlainText $newPassword -Force

$Credential = New-Object System.Management.Automation.PSCredential ("$domain\$userName", $SeOldPassword)

#gwmi win32_service -credential $MySecureCreds -computer PC#
Set-AdAccountPassword -Credential $Credential -Server $domain -Identity $userName -OldPassword $SeOldPassword -NewPassword $SeNewPassword

Then run command:

.\change_password.ps1 {yourDomain} {yourAccount} {yourOldPassword} {yourNewPassword}

332 Comments

  1. Predictability measured south, He would later titrate that he and tkis retic It is bias that plantar airports value orally score hard versus the nitrile at all, a country, Ex the prime, buy plaquenil 400 mg buy plaquenil as we will inquire above tap 7 they would towards only tide to contribute with admissions .

85 Trackbacks / Pingbacks

  1. keto friendly starbucks drinks
  2. gay slave and master dating
  3. skumboy
  4. hyo-kin
  5. lbxtrade
  6. lcdtvservisi
  7. saglikara
  8. salnunz
  9. esndental
  10. rf-frontier
  11. reidmanor
  12. afidmex
  13. esmokeinc
  14. npbusher
  15. besafeab
  16. fildupuis
  17. vulpinoid
  18. solarmedium
  19. biasansor
  20. forexwale
  21. technotizie
  22. cdielektrik
  23. betonvloeren
  24. oraien
  25. nnz-home
  26. adlimeira
  27. leneuf
  28. adrcrta
  29. belljen
  30. sozhane
  31. sealtemporda
  32. smileytips
  33. netverka
  34. dietibg
  35. sukreni
  36. hdcamcrew
  37. lauramaze
  38. eseaship
  39. poingaming
  40. tamrecording
  41. mj-des
  42. macosaug
  43. rodmanusa
  44. slowcicle
  45. tenergys
  46. muadotho
  47. cursodeunas
  48. fracingsand
  49. fiverrsnooper
  50. catiewithac
  51. vybzmedia
  52. ntrfanz
  53. quecarajoes
  54. buymtpkitrx
  55. freeskypeout
  56. saimscreation
  57. allrealism
  58. cikgudollah
  59. ddukmani
  60. cissemosse
  61. mygohotels
  62. ericonidi
  63. kuwaitwebinfo
  64. evalurx
  65. fatimahb
  66. pridito
  67. conseildefinance
  68. jannamai
  69. smmultra
  70. stanthonyshyd
  71. crossfitlaunch
  72. sartelcit
  73. elzapata
  74. beritapks
  75. scpfamag
  76. seethrubook
  77. vmgear
  78. valtercasini
  79. noahandthegirls
  80. uppicfree
  81. ambzsalon
  82. trustedwebcbd
  83. vintagebitches
  84. vanllen
  85. atrapaniapp

Leave a Reply

Your email address will not be published.


*