Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Register Azure AD App Proxy Connector
- # PS! Using Credential Object cannot be used with MFA enabled administrator accounts, use offline token
- $User = "<username of global administrator>"
- $PlainPassword = '<password>'
- $SecurePassword = $PlainPassword | ConvertTo-SecureString -AsPlainText -Force
- $cred = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $User, $SecurePassword
- Set-Location "C:\Program Files\Microsoft AAD App Proxy Connector"
- .\RegisterConnector.ps1 -modulePath "C:\Program Files\Microsoft AAD App Proxy Connector\Modules\" `
- -moduleName "AppProxyPSModule" -Authenticationmode Credentials -Usercredentials $cred
Add Comment
Please, Sign In to add comment