Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS C:\Users\panda\Desktop> .\testing.ps1
- ConvertTo-SecureString : Key not valid for use in specified state.
- At C:\Users\panda\Desktop\testing.ps1:3 char:12
- + $sstring = ConvertTo-SecureString $lnlfd
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidArgument: (:) [ConvertTo-SecureString], CryptographicException
- + FullyQualifiedErrorId : ImportSecureString_InvalidArgument_CryptographicError,Microsoft.PowerShell.Commands.ConvertToSecureStringCommand
- New-Object : Exception calling ".ctor" with "2" argument(s): "Cannot process argument because the value of argument "password" is null. Change the value of argument
- "password" to a non-null value."
- At C:\Users\panda\Desktop\testing.ps1:4 char:12
- + $script = (New-Object system.Management.Automation.PSCredential("lnlfd", $sstrin ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
- + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement