Site icon TOSS

Set-AssignedAccess

powershell

Set-AssignedAccess is accessible with the help of AssignedAccess module. To configure AssignedAccess, go through this link.

Synopsis

Configures a user to launch only one app.

Description

The Set-AssignedAccess cmdlet configures the specified user account so that it can use only one Windows Store app. The user cannot exit the app, sign out, or access any system settings.

If a user is signed in or the PC has a PS/2 keyboard, you must restart the computer to apply the changes.

To sign out of assigned access, quickly press the left Windows logo key five times.

Parameters

-AppName

Specifies the name of the installed Windows Store app to use for assigned access. Wildcard characters are accepted.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-AppUserModelId

Specifies the Application User Model ID (AppUserModelID) for the installed Windows Store app to use for assigned access. The AppUserModelID is found in the app’s AUMIDs.txt file.

Type:String
Aliases:AUMID
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

-UserName

Specifies the local user account name to use for assigned access. This cannot be a domain account or an administrator account.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-UserSID

Specifies the security identifier (SID) for the local user account to use for assigned access. This account cannot be a domain account or an administrator account.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Syntax

Set-AssignedAccess -UserName <String> -AppName <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Set-AssignedAccess -UserName <String> -AppUserModelId <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Set-AssignedAccess -UserSID <String> -AppUserModelId <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Set-AssignedAccess -UserSID <String> -AppName <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Notes
To get a list of all the Windows Store apps installed for a user account, use the Get-AppxPackage cmdlet as follows:

Get-AppxPackage -User username

————–EXAMPLE 1————–
PS C:> Set-AssignedAccess -UserSID <UserSID> -AppName CustomApp
This example shows how to configure assigned access by using the user SID and the app name.

————–EXAMPLE 2————–
PS C:> Set-AssignedAccess -UserName UserName -AUMID microsoft.windowspaint!app
This example shows how to configure assigned access by using the user name and AppUserModelID.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Set-AssignedAccess

You can also read about

To know more PowerShell cmdlets(Commands) on AssignedAccess click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Exit mobile version