Download AppX installation file for Windows Store App

How to Download AppX Installation File for redistribution.

If you want to download a AppX Installation file from Windows store, you have to inspect en debug the HTTP traffic between your Windows Store client and the Microsoft Store servers.

Download Fiddler and  Fiddler add-on “Windows 8 AppContainer Loopback Utility”.

Download Fiddler and install

 
Download “Windows 8 AppContainer Loopback Utility” url: http://www.telerik.com/fiddler/add-ons


Start add-on “Windows 8 AppContainer Loopback Utility”.


Select only the “Store” in list and “Save Changes”.

Start Fiddler and clear the current log: Edit – Remove – All Sessions.

Open Windows Store and find and run the installation of the application whitch you want to Download the AppX Installation File.

Switch to Fiddler application and find appx url. Go to “Find”.

Copy the first yellow row with Result 200. Richt click and select Copy – Just Url

Open the url in a Browser and save it as .zip extention. Change it after download to .appx.

Powershell cmdlets for SCCM 2012

PowerShell SCCM cmdlets Get Command Module ConfigurationManager

Added PowerShell modules:

  • Add-CMDistributionPoint
  • Import-CMAntiMalwarePolicy
  • Import-CMDriver
  • New-CMAppVVirtualEnvironment
  • New-CMMigrationJob
  • New-CMPackage
  • New-CMSoftwareUpdateAutoDeploymentRule
  • New-CMTaskSequence
  • New-CMTaskSequenceMedia
  • New-CMUserDataAndProfileConfigurationItem
  • Set-CMApplicationCatalogWebsitePoint
  • Set-CMAppVVirtualEnvironment
  • Set-CMClientPushInstallation
  • Set-CMClientSetting
  • Set-CMDistributionPoint
  • Set-CMDriver
  • Set-CMEndpointProtectionPoint
  • Set-CMEnrollmentPoint
  • Set-CMEnrollmentProxyPoint
  • Set-CMHierarchySetting
  • Set-CMManagementPointComponent
  • Set-CMOperatingSystemImageUpdateSchedule
  • Set-CMOutOfBandManagementComponent
  • Set-CMReportingServicePoint
  • Set-CMSite
  • Set-CMSoftwareUpdateAutoDeploymentRule
  • Set-CMSoftwareUpdatePointComponent
  • Set-CMStateMigrationPoint
  • Set-CMStatusSummarizer
  • Set-CMSystemHealthValidatorPointComponent
  • Set-CMTaskSequence
  • Set-CMUserDataAndProfileConfigurationItem
  • Start-CMDistributionPointUpgrade

To view the lasted Help information:

Update-Help –Module ConfigurationManager

Remove Windows 10 default apps during OSD Deployment

If you install Windows 10 and after you will install Updates. Default apps will be installed automatic.

After a while all default apps downloaded.

Find all installed Apps with Powershell as Administrator:

Get-AppxPackage | Select name

To remove Windows Apps, you can use Powershell commands with Administrator rights:

We will remove Apps for all Users:

Get-AppxPackage -AllUsers *Package* Remove-AppxPackage; Get-ProvisionedAppxPackage -online | Where {$_.Displayname -like ‘*Package*’} | Remove-ProvisionedAppxPackage –online;

3DBuilder
Appconnector
BingFinance
BingNews
BingSports
BingWeather
CandyCrushSodaSaga
CommsPhone
GetStarted
Messaging
OfficeHub
OneNote
People
SolitaireCollection
WindowsAlarms
WindowsCommunicationsApps
WindowsMaps
WindowsPhone
XboxApp
ZuneMusic
ZuneVideo

Example of a PowerShell script:

# Remove W10 Apps
#
# Example (use parameters to remove custom app(s)):
# powershell.exe -ExecutionPolicy Bypass .\RemoveApps.ps1 -RemoveApp 3DBuilder, CandyCrushSodaSaga
#
# Version: 1.1.2
# PowerShell argument ‘-RemoveApp’ for remove custom app(s)
Param
(
[string[]]$RemoveApp
)

# Without arguments use default remove apps
if(-not($RemoveApp))
{
$RemoveApp = “Microsoft.3DBuilder”,
“Microsoft.BingFinance”,
“Microsoft.BingNews”,
“Microsoft.BingSports”,
“Microsoft.BingWeather”,
“Microsoft.CandyCrushSodaSaga”,
“Microsoft.CommsPhone”, # Phone
“Microsoft.Getstarted” # Get Started
“Microsoft.IENS”,
“Microsoft.MicrosoftOfficeHub”, # Get Office
“Microsoft.Office.OneNote”,
“Microsoft.SkypeApp”, # Get Skype
“Microsoft.SolitaireCollection”,
“Microsoft.Twitter”,
“Microsoft.WindowsMaps”, # Maps
“Microsoft.WindowsPhone”, # Phone Companion
“Microsoft.XboxApp”, # Xbox
“Microsoft.ZuneMusic”,
“Microsoft.ZuneVideo” # Movies & TV
}

# Try to remove apps
ForEach ($App in $RemoveApp)
{
# Get package name
$PackageName = Get-AppxPackage | Where-Object {$_.Name -eq $App}

# Check if package exist
if ($PackageName -ne $null)
{
foreach ($Package in $PackageName)
{
Remove-AppxPackage -package $Package.PackageFullName
}
}
else
{
Write-Host “Unable to find package: $App”
}

# Get provisioned package name
$ProvisionedPackage = Get-AppxProvisionedPackage -online | Where-Object {$_.displayName -eq $App}

# Check if provisioned package exist
if ($ProvisionedPackage -ne $null)
{
remove-AppxProvisionedPackage -online -packagename $ProvisionedPackage.PackageName
}
else
{
Write-Host “Unable to find provisioned package: $App”
}
}

Microsoft Consumer Experiences – Windows Apps

If you manually Windows update, you have to delete Windows App Store Apps otherwise you get an error while Sysprep the system:

  • Twitter
  • Candy Crush

You can resolv it to add the follow regkey before you run Windows Update:[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CloudContent]

"DisableWindowsConsumerFeatures"=dword:00000001Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
“DisableWindowsConsumerFeatures”=dword:00000001

 

 

Example Powershell commandline (Run as Administrator):

Import-Module Appx
Import-Module Dism
Get–AppxPackage *twitter* | Remove–AppxPackage
Get-AppxPackage *CandyCrush* | Remove-AppxPackage

 

Environment variables van special folders

Om ervoor te zorgen dat je geen harde paden in BAT script, MSI, PowerShell en VBScript hoeft te gebruiken, kun je environment variables gebruiken.

Ik heb hieronder een overzicht gemaakt van de meest voorkomende environment variables:

OmschrijvingLokatieEnvironment Variable
UserProfileC:\Users\USERNAME%UserProfile%
Temp%UserProfile%\AppData\Local\Temp%TEMP% en %TMP%
Windows DirectoryC:\Windows%SystemRoot%, ook %windir% in batch bestanden
All Users ProfileC:\Users\Public%Public%
Program FilesC:\Program Files
C:\Program Files (x86)
%ProgramFiles%
%ProgramFiles(x86)%
Common AppDataC:\ProgramData%ProgramData% en %AllUsersProfile%
Local AppData%UserProfile%\AppData\Local%LocalAppData%
Program Files CommonC:\Program Files\Common Files
C:\Program Files (x86)\Common Files
%commonprogramfiles%
%commonprogramfiles(x86)%
Application Data%UserProfile%\AppData\Roaming%AppData%
System DirectoryC:\Windows\System32
FontsC:\Windows\Fonts
(My) Documents%UserProfile%\Documents
(My) Pictures%UserProfile%\Pictures
Desktop%UserProfile%\Desktop
Start Menu Programs
%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
(IE) Favorites%UserProfile%\Favorites
Common Start Menu Programs
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
Common DesktopC:\Users\Public\Desktop
Shared DocumentsC:\Users\Public\Documents
Shared PicturesC:\Users\Public\Pictures