Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.00 KB | None | 0 0
  1. [MSRPS] C:\WINDOWS\system32>Import-Module ActiveDirectory
  2. [MSRPS] C:\WINDOWS\system32>$domain = 'phx.gbl'
  3. [MSRPS] C:\WINDOWS\system32>$userName = 'sdahl'
  4. [MSRPS] C:\WINDOWS\system32>
  5. [MSRPS] C:\WINDOWS\system32>$oldPassword = ConvertTo-SecureString -AsPlainText "We're!
  6. [MSRPS] C:\WINDOWS\system32>$newPassword = ConvertTo-SecureString -AsPlainText "We're!
  7. [MSRPS] C:\WINDOWS\system32>
  8. [MSRPS] C:\WINDOWS\system32>$newPassword
  9. System.Security.SecureString
  10. [MSRPS] C:\WINDOWS\system32>Set-ADAccountPassword -Server $Password = ConvertTo-Secure
  11. Set-ADAccountPassword : Cannot validate argument on parameter 'Server'. The argument i
  12. again.
  13. At line:1 char:31
  14. + Set-ADAccountPassword -Server $Password = ConvertTo-SecureString "Pla ...
  15. +                               ~~~~~~~~~
  16.    + CategoryInfo          : InvalidData: (:) [Set-ADAccountPassword], ParameterBindi
  17.    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirecto
  18.  
  19. [MSRPS] C:\WINDOWS\system32>$Credential = New-Object System.Management.Automation.PSCr
  20. New-Object : Exception calling ".ctor" with "2" argument(s): "Cannot process argument
  21. to a non-null value."
  22. At line:1 char:15
  23. + ... redential = New-Object System.Management.Automation.PSCredential ("$d ...
  24. +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25.    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationExce
  26.    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Co
  27.  
  28. [MSRPS] C:\WINDOWS\system32>$Credential = New-Object System.Management.Automation.PSCr
  29. [MSRPS] C:\WINDOWS\system32>Set-ADAccountPassword -Credential $Credential -Server $dom
  30. [MSRPS] C:\WINDOWS\system32>Import-Module ActiveDirectory
  31. [MSRPS] C:\WINDOWS\system32>$domain = 'gme.gbl'
  32. [MSRPS] C:\WINDOWS\system32>$userName = 'sdahl'
  33. [MSRPS] C:\WINDOWS\system32>
  34. [MSRPS] C:\WINDOWS\system32>$oldPassword = ConvertTo-SecureString -AsPlainText "We're!
  35. [MSRPS] C:\WINDOWS\system32>$newPassword = ConvertTo-SecureString -AsPlainText "We're!
  36. [MSRPS] C:\WINDOWS\system32>
  37. [MSRPS] C:\WINDOWS\system32>$Credential = New-Object System.Management.Automation.PSCr
  38. [MSRPS] C:\WINDOWS\system32>Set-ADAccountPassword -Credential $Credential -Server $dom
  39. Set-ADAccountPassword : The password does not meet the length, complexity, or history
  40. At line:1 char:1
  41. + Set-ADAccountPassword -Credential $Credential -Server $domain -Identi ...
  42. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  43.    + CategoryInfo          : InvalidData: (sdahl:ADAccount) [Set-ADAccountPassword],
  44.    + FullyQualifiedErrorId : ActiveDirectoryServer:1325,Microsoft.ActiveDirectory.Man
  45.  
  46. [MSRPS] C:\WINDOWS\system32>$oldPassword = ConvertTo-SecureString -AsPlainText "We're!
  47. [MSRPS] C:\WINDOWS\system32>$newPassword = ConvertTo-SecureString -AsPlainText "We're!
  48. [MSRPS] C:\WINDOWS\system32>
  49. [MSRPS] C:\WINDOWS\system32>$Credential = New-Object System.Management.Automation.PSCr
  50. [MSRPS] C:\WINDOWS\system32>Set-ADAccountPassword -Credential $Credential -Server $dom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement