Guest User

Untitled

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