Skip to content

Commit ea1c993

Browse files
authored
Merge pull request #354 from msewaweru/issue-329
Corrected the parameter being used due to differences in behavior on different PowerShell versions
2 parents 774bab1 + 60831a3 commit ea1c993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

microsoftgraph/docs-conceptual/authentication-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To use app-only access, you can load the certificate from either *Cert:\CurrentU
9595
If you need interactions in the background, without a user to sign in, this type of grant will help you. Support for client secret credentials was added by adding **-ClientSecretCredential** parameter to **Connect-MgGraph**. See [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential) on how to get or create credentials.
9696
9797
```powershell
98-
$ClientSecretCredential = Get-Credential -Username "Client_Id"
98+
$ClientSecretCredential = Get-Credential -Credential "Client_Id"
9999
# Enter client_secret in the password prompt.
100100
Connect-MgGraph -TenantId "Tenant_Id" -ClientSecretCredential $ClientSecretCredential
101101
```

0 commit comments

Comments
 (0)