Advertisement
guyrleech

Create Citrix CVAD admin from local account

Oct 6th, 2020
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Import-Module -Name Citrix.DelegatedAdmin.Commands ## or for older CVAD Add-PSSnapin Citrix.DelegatedAdmin.*
  2.  
  3. ## -adminaddress is not required when running on a delivery controller
  4.  
  5. if( $newadmin = New-AdminAdministrator  -Name "nt authority\system" -AdminAddress yourdeliverycontroller )
  6. {
  7.     Add-AdminRight -Administrator $newadmin.Name -Role "Read Only Administrator" -Scope "All" -AdminAddress yourdeliverycontroller
  8. }
  9.  
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement