title: Powershell: Setting PsCredentials to $Null for username and $Null for password
body: <p>How can I create a $Null username and $Null password PScredentials object?</p>
  
  <p>According to this article, the null PSCredential causes Powershell to use Windows Authentication, which seems a much easier way to run scripts in a domain setting. Unfortunatelly I cant seem to figure out where/how he's setting it to Null:
  <a href="http://blogs.msdn.com/b/dvespa/archive/2010/02/22/how-to-use-windows-authentication-with-the-pscredential-class.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/b/dvespa/archive/2010/02/22/how-to-use-windows-authentication-with-the-pscredential-class.aspx</a></p>
  
  <p>Other resources:
  This answer specified $Null for password, but wont allow $Null username.
  <a href="https://stackoverflow.com/questions/6839102/create-pscredential-without-a-password">Create PSCredential without a password</a></p>
  
  <p>Thank you.</p>