fix dupe heading

This commit is contained in:
Aaron Czechowski
2023-02-13 11:17:25 -08:00
parent a6b87755e9
commit 3f563591a6

View File

@ -41,7 +41,7 @@ foreach ($app in $installedapps)
$aumidList $aumidList
``` ```
You can add the user &lt;username&gt; or the allusers parameters to the get-AppxPackage cmdlet to list AUMIDs for other users. You must use an elevated Windows PowerShell prompt to use the user or allusers parameters. You can add the `-user <username>` or the `-allusers` parameters to the **Get-AppxPackage** cmdlet to list AUMIDs for other users. You must use an elevated Windows PowerShell prompt to use the `-user` or -`allusers` parameters.
## To find the AUMID by using File Explorer ## To find the AUMID by using File Explorer
@ -63,7 +63,7 @@ At a command prompt, type the following command:
`reg query HKEY_CURRENT_USER\Software\Classes\ActivatableClasses\Package /s /f AppUserModelID | find "REG_SZ"` `reg query HKEY_CURRENT_USER\Software\Classes\ActivatableClasses\Package /s /f AppUserModelID | find "REG_SZ"`
## Example ### Example to get AUMIDs of the installed apps for the specified user
The following code sample creates a function in Windows PowerShell that returns an array of AUMIDs of the installed apps for the specified user. The following code sample creates a function in Windows PowerShell that returns an array of AUMIDs of the installed apps for the specified user.
@ -105,14 +105,14 @@ The following Windows PowerShell commands demonstrate how you can call the listA
# Get a list of AUMIDs for the current account: # Get a list of AUMIDs for the current account:
listAumids listAumids
# Get a list of AUMIDs for an account named CustomerAccount: # Get a list of AUMIDs for an account named "CustomerAccount":
listAumids("CustomerAccount") listAumids("CustomerAccount")
# Get a list of AUMIDs for all accounts on the device: # Get a list of AUMIDs for all accounts on the device:
listAumids("allusers") listAumids("allusers")
``` ```
## Example ### Example to get the AUMID of any application in the Start menu
The following code sample creates a function in Windows PowerShell that returns the AUMID of any application currently listed in the Start menu. The following code sample creates a function in Windows PowerShell that returns the AUMID of any application currently listed in the Start menu.
@ -148,4 +148,3 @@ Get-AppAUMID -AppName Word
# List all apps and their AUMID in the Start menu # List all apps and their AUMID in the Start menu
Get-AppAUMID Get-AppAUMID
``` ```