Schlagwort-Archiv: PowerCLI

Script: PowerCLI – Create Citrix Permission Role

function Create-VICitrixRole { param ( [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()][string]$vcenter, [parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()][string]$rolename ) Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null $vcConnection = Connect-VIServer -Server $vCenter -ErrorAction Stop $permissions =@() $permissions += „Datastore.AllocateSpace“ $permissions += „Datastore.Browse“ $permissions += „Datastore.FileManagement“ $permissions += „Network.Assign“ $permissions += „Resource.AssignVMToPool“ $permissions += „System.Anonymous“ $permissions += „System.Read“ $permissions += „System.View“ $permissions += „VirtualMachine.Config.AddExistingDisk“ $permissions += „VirtualMachine.Config.AddNewDisk“ … Script: PowerCLI – Create Citrix Permission Role weiterlesen