Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [MSRPS] C:\WINDOWS\system32>Import-Module ActiveDirectory
- [MSRPS] C:\WINDOWS\system32>$domain = 'phx.gbl'
- [MSRPS] C:\WINDOWS\system32>$userName = 'sdahl'
- [MSRPS] C:\WINDOWS\system32>
- [MSRPS] C:\WINDOWS\system32>$oldPassword = ConvertTo-SecureString -AsPlainText "We're!
- [MSRPS] C:\WINDOWS\system32>$newPassword = ConvertTo-SecureString -AsPlainText "We're!
- [MSRPS] C:\WINDOWS\system32>
- [MSRPS] C:\WINDOWS\system32>$newPassword
- System.Security.SecureString
- [MSRPS] C:\WINDOWS\system32>Set-ADAccountPassword -Server $Password = ConvertTo-Secure
- Set-ADAccountPassword : Cannot validate argument on parameter 'Server'. The argument i
- again.
- At line:1 char:31
- + Set-ADAccountPassword -Server $Password = ConvertTo-SecureString "Pla ...
- + ~~~~~~~~~
- + CategoryInfo : InvalidData: (:) [Set-ADAccountPassword], ParameterBindi
- + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirecto
- [MSRPS] C:\WINDOWS\system32>$Credential = New-Object System.Management.Automation.PSCr
- New-Object : Exception calling ".ctor" with "2" argument(s): "Cannot process argument
- to a non-null value."
- At line:1 char:15
- + ... redential = New-Object System.Management.Automation.PSCredential ("$d ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationExce
- + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Co
- [MSRPS] C:\WINDOWS\system32>$Credential = New-Object System.Management.Automation.PSCr
- [MSRPS] C:\WINDOWS\system32>Set-ADAccountPassword -Credential $Credential -Server $dom
- [MSRPS] C:\WINDOWS\system32>Import-Module ActiveDirectory
- [MSRPS] C:\WINDOWS\system32>$domain = 'gme.gbl'
- [MSRPS] C:\WINDOWS\system32>$userName = 'sdahl'
- [MSRPS] C:\WINDOWS\system32>
- [MSRPS] C:\WINDOWS\system32>$oldPassword = ConvertTo-SecureString -AsPlainText "We're!
- [MSRPS] C:\WINDOWS\system32>$newPassword = ConvertTo-SecureString -AsPlainText "We're!
- [MSRPS] C:\WINDOWS\system32>
- [MSRPS] C:\WINDOWS\system32>$Credential = New-Object System.Management.Automation.PSCr
- [MSRPS] C:\WINDOWS\system32>Set-ADAccountPassword -Credential $Credential -Server $dom
- Set-ADAccountPassword : The password does not meet the length, complexity, or history
- At line:1 char:1
- + Set-ADAccountPassword -Credential $Credential -Server $domain -Identi ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidData: (sdahl:ADAccount) [Set-ADAccountPassword],
- + FullyQualifiedErrorId : ActiveDirectoryServer:1325,Microsoft.ActiveDirectory.Man
- [MSRPS] C:\WINDOWS\system32>$oldPassword = ConvertTo-SecureString -AsPlainText "We're!
- [MSRPS] C:\WINDOWS\system32>$newPassword = ConvertTo-SecureString -AsPlainText "We're!
- [MSRPS] C:\WINDOWS\system32>
- [MSRPS] C:\WINDOWS\system32>$Credential = New-Object System.Management.Automation.PSCr
- [MSRPS] C:\WINDOWS\system32>Set-ADAccountPassword -Credential $Credential -Server $dom
Add Comment
Please, Sign In to add comment