Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. PS C:\Users\panda\Desktop> .\testing.ps1
  2. ConvertTo-SecureString : Key not valid for use in specified state.
  3. At C:\Users\panda\Desktop\testing.ps1:3 char:12
  4. + $sstring = ConvertTo-SecureString $lnlfd
  5. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6. + CategoryInfo : InvalidArgument: (:) [ConvertTo-SecureString], CryptographicException
  7. + FullyQualifiedErrorId : ImportSecureString_InvalidArgument_CryptographicError,Microsoft.PowerShell.Commands.ConvertToSecureStringCommand
  8.  
  9. 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
  10. "password" to a non-null value."
  11. At C:\Users\panda\Desktop\testing.ps1:4 char:12
  12. + $script = (New-Object system.Management.Automation.PSCredential("lnlfd", $sstrin ...
  13. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  14. + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
  15. + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement