new-storedcredential powershell code example Example: new-storedcredential powershell New-StoredCredential -Target 'O365' -UserName … -Password …