Skip to content

Commit e8fdaec

Browse files
author
AmanpreetSingh-MSFT
authored
(AzureCXP) fixes MicrosoftDocs/azure-docs#52907
Updated Register-AzureADConnectHealthADDSAgent -UserPrincipalName $USERNAME -Credential $myCreds command to Register-AzureADConnectHealthADDSAgent -Credential $myCreds. Since $myCreds contains both username and password, we don't need to pass the username by using -UserPrincipalName switch.
1 parent 251031f commit e8fdaec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/active-directory/hybrid/how-to-connect-health-agent-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ $secpasswd = ConvertTo-SecureString "PASSWORD" -AsPlainText -Force
265265
$myCreds = New-Object System.Management.Automation.PSCredential ($userName, $secpasswd)
266266
import-module "C:\Program Files\Azure Ad Connect Health Adds Agent\PowerShell\AdHealthAdds"
267267
268-
Register-AzureADConnectHealthADDSAgent -UserPrincipalName $USERNAME -Credential $myCreds
268+
Register-AzureADConnectHealthADDSAgent -Credential $myCreds
269269
270270
```
271271

0 commit comments

Comments
 (0)