Add-SCUserRolePermission
Lägger till en behörighet till en användarroll.
Syntax
Add-SCUserRolePermission
[-VMMServer <ServerConnection>]
-UserRole <SelfServiceUserRole>
-Cloud <Cloud>
[-AllowLocalAdmin]
[-Checkpoint]
[-CheckpointRestoreOnly]
[-DeployFromTemplateOnly]
[-Deploy]
[-PauseAndResume]
[-RemoteConnect]
[-Remove]
[-Save]
[-Shutdown]
[-Start]
[-Stop]
[-Store]
[-DeployShielded]
[-MigrateVM]
[-UpdateVMFunctionalLevel]
[-ManageAzureProfiles]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Add-SCUserRolePermission
[-VMMServer <ServerConnection>]
-UserRole <SelfServiceUserRole>
[-AllowLocalAdmin]
[-Author]
[-AuthorVMNetwork]
[-CanShare]
[-CanReceive]
[-Checkpoint]
[-CheckpointRestoreOnly]
[-DeployFromTemplateOnly]
[-Deploy]
[-PauseAndResume]
[-RemoteConnect]
[-Remove]
[-Save]
[-Shutdown]
[-Start]
[-Stop]
[-Store]
[-DeployShielded]
[-MigrateVM]
[-UpdateVMFunctionalLevel]
[-ManageAzureProfiles]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Add-SCUserRolePermission
-UserRole <SelfServiceUserRole>
-HostGroup <HostGroup>
[-VMMServer <ServerConnection>]
[-AllowLocalAdmin]
[-Checkpoint]
[-CheckpointRestoreOnly]
[-DeployFromTemplateOnly]
[-Deploy]
[-PauseAndResume]
[-RemoteConnect]
[-Remove]
[-Save]
[-Shutdown][-Start]
[-Stop]
[-Store]
[-DeployShielded]
[-MigrateVM]
[-UpdateVMFunctionalLevel]
[-ManageAzureProfiles]
[-RunAsynchronously]
[-PROTipID <guid>]
[-JobVariable <string>]
[-OnBehalfOfUser <string>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Add-SCUserRolePermission
[-VMMServer <ServerConnection>]
[-Cloud <Cloud>]
-JobGroup <Guid>
[-AllowLocalAdmin]
[-Author]
[-AuthorVMNetwork]
[-CanShare]
[-CanReceive]
[-Checkpoint]
[-CheckpointRestoreOnly]
[-DeployFromTemplateOnly]
[-Deploy]
[-PauseAndResume]
[-RemoteConnect]
[-Remove]
[-Save]
[-Shutdown]
[-Start]
[-Stop]
[-Store]
[-DeployShielded]
[-MigrateVM]
[-UpdateVMFunctionalLevel]
[-ManageAzureProfiles]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Add-SCUserRolePermission
[-VMMServer <ServerConnection>]
[-HostGroup <HostGroup>]
-JobGroup <Guid>
[-AllowLocalAdmin]
[-Author]
[-AuthorVMNetwork]
[-CanShare]
[-CanReceive]
[-Checkpoint]
[-CheckpointRestoreOnly]
[-DeployFromTemplateOnly]
[-Deploy]
[-PauseAndResume]
[-RemoteConnect]
[-Remove]
[-Save]
[-Shutdown]
[-Start]
[-Stop]
[-Store]
[-DeployShielded]
[-MigrateVM]
[-UpdateVMFunctionalLevel]
[-ManageAzureProfiles]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Add-SCUserRolePermission
[-VMMServer <ServerConnection>]
-UserRolePermission <UserRolePermission>
[-AllowLocalAdmin]
[-Checkpoint]
[-CheckpointRestoreOnly]
[-DeployFromTemplateOnly]
[-Deploy]
[-PauseAndResume]
[-RemoteConnect]
[-Remove]
[-Save]
[-Shutdown]
[-Start]
[-Stop]
[-Store]
[-DeployShielded]
[-MigrateVM]
[-UpdateVMFunctionalLevel]
[-ManageAzureProfiles]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Description
Cmdleten Add-SCUserRolePermission ger en behörighet till en användarroll.
Anteckning
- Parametern HostGroup kan endast användas när parametern UserRole är VMAdmin.
- MigrateVM- och UpdateVMFunctionalLevel-behörigheter är endast tillgängliga för användarrollen VMAdmin .
- HanteraAzureProfiles-behörighet är tillgänglig för alla användarroller.
Parametrar
-AllowLocalAdmin
Anger att denna cmdlet ger behörigheten Tillåt lokal Admin.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Author
Anger att denna cmdlet ger behörigheten Författare.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AuthorVMNetwork
Anger att denna cmdlet beviljar behörigheten Author VMNetwork.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CanReceive
Anger att denna cmdlet ger behörigheten Kan ta emot.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CanShare
Anger att denna cmdlet ger behörigheten Kan dela.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Checkpoint
Anger att den här cmdleten ger behörigheten Kan kontrollpunkt.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CheckpointRestoreOnly
Anger att den här cmdleten ger behörigheten Endast återställning av kontrollpunkter.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Cloud
Anger ett privat molnobjekt för vilket den här cmdleten ändrar en användarroll.
Type: | Cloud |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Deploy
Anger att denna cmdlet ger behörigheten Distribuera virtuell dator.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeployFromTemplateOnly
Anger att den här cmdleten beviljar behörigheten Distribuera endast från mall för virtuell dator.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeployShielded
Anger att denna cmdlet ger behörigheten Distribuera avskärmad.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HostGroup
Anger ett värdgruppsobjekt för vilket denna cmdlet ändrar en användarroll.
Type: | HostGroup |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobGroup
Anger en identifierare för en serie kommandon som körs som en uppsättning precis innan det sista kommandot som innehåller samma jobbgruppsidentifierare körs.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Anger en variabel där jobb förloppet spåras och lagras.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ManageAzureProfiles
Anger att den här cmdleten ger behörigheten Hantera Azure-profiler .
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MigrateVM
Anger att denna cmdlet ger behörigheten Migrera virtuell dator .
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OnBehalfOfUser
Anger ett användarnamn. Den här cmdleten fungerar för användarens räkning som den här parametern anger.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OnBehalfOfUserRole
Anger en användarroll. Om du vill skaffa en användarroll använder du cmdleten Get-SCUserRole . Den här cmdleten fungerar för den användarroll som den här parametern anger.
Type: | UserRole |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PauseAndResume
Anger att denna cmdlet ger behörigheten Kan pausa och återuppta.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
Anger ID för tipset om prestanda- och resursoptimering (PRO-tips) som utlöste den här åtgärden. Med den här parametern kan du granska PRO-tips.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoteConnect
Anger att denna cmdlet ger fjärranslutningsbehörigheten.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Remove
Anger att denna cmdlet ger behörigheten Kan ta bort.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Anger att jobbet körs asynkront så att kontrollen återgår till kommandogränssnittet omedelbart.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Save
Anger att denna cmdlet ger behörigheten Kan spara virtuell dator.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Shutdown
Anger att denna cmdlet ger behörigheten Kan stänga av virtuell dator.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Start
Anger att denna cmdlet ger behörigheten Kan starta virtuell dator.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Stop
Anger att denna cmdlet ger behörigheten Kan stoppa virtuell dator.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Store
Anger att denna cmdlet ger behörigheten Kan lagra virtuell dator.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UpdateVMFunctionalLevel
Anger att denna cmdlet ger behörighet att uppdatera den virtuella datorns funktionsnivå.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserRole
Anger en användarroll som den här cmdleten lägger till behörigheter till.
Type: | SelfServiceUserRole |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-UserRolePermission
Anger en UserRolePermission som den här cmdleten lägger till behörigheter till. Om du vill skaffa en användarrollsbehörighet använder du cmdleten Get-SCUserRolePermission .
Type: | UserRolePermission |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
Anger en VMM-server (Virtual Machine Manager) där denna cmdlet ändrar en användarroll.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Utdata
UserRole
Den här cmdleten returnerar ett UserRole-objekt .