-
Notifications
You must be signed in to change notification settings - Fork 0
Set PpacAdminMode
Set the admin mode for a Power Platform environment.
Set-PpacAdminMode [-EnvironmentId] <String> [[-Mode] <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
This cmdlet sets the admin mode for a Power Platform environment. It allows switching between User Mode and Admin Mode, which can be useful for troubleshooting and support scenarios.
Is the same as the administrative mode in LCS.
Set-PpacAdminMode -EnvironmentId "ContosoEnv" -Mode "AdminMode"
This command sets the admin mode for the Power Platform environment "ContosoEnv" to "AdminMode". Now the environment is an admin-only mode.
Set-PpacAdminMode -EnvironmentId "ContosoEnv" -Mode "UserMode"
This command sets the admin mode for the Power Platform environment "ContosoEnv" to "UserMode". Now the environment is in normal user mode and accessible for all users with permissions.
The ID of the environment to set the admin mode for.
Can be either the environment name, the environment GUID (PPAC) or the LCS environment ID.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe mode to set for the environment.
Valid values are "UserMode" and "AdminMode".
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)