Been keeping pretty busy with an amazing new job here in Albuquerque, where I’ve been working on some new Windows 8.1 Enterprise images which we’ll be loading on both Surface and Samsung tablets.
Say what you will about Windows 8, the reintroduction of the start button, combined with it’s improved security, boot time, and battery life make it a serious contender for your next mobile device image. Remember, Windows 7 is almost five years old now.
Problem is, yes, some of the Modern Apps don’t make sense for a business to keep. Now, while I’ve known for a while that one single line of PowerShell can remove ALL modern apps:
Get-AppxPackage -AllUsers | Remove-AppxPackage
I’ve come to find out however that this doesn’t really de-provision the apps from the device. That is to say, if I hand this system to my boss after a sysprep and capture, those apps I thought I was removing will still be waiting for him when he signs in. So I needed a way that would remove some (but not all) the apps, pause, let me config the start menu the way I wanted it, and then make that the default start menu layout for all users.
Little bit of googlin’ led me to this glorious, glorious script courtesy Ben Hunter.
Testing did reveal that this script does in fact deprovision a customized list of Modern Apps.
So, here’s what I did:
Customized the Script
- Kept apps I don’t want in list of apps to remove
- Removed apps I wanted to keep in my image from the list
- Saved this script to the scriptroot of the share \\server\share\scripts
Created a ‘Build Windows 8.1’ Task Sequence in my MDT Build Share
- Configured task sequence to install Dot Net 3 & 2
- Added DotNet 4.5 to the share
- Added Office 2013 to the task sequence
- Added The Powershell script to the Task Sequence
- Added LTI Suspend to the Task Sequence
Created a Hyper-V VM on my 8.1 Enterprise laptop
- Assigned 1GB RAM to VM
- Configured VM to boot from ISO in my Build Share
Booted to the Buildshare.
- Selected Win8 Build Task Sequence
- Selected to capture a wim image from the LTI wizard.
- Let MDT build an image for me.
- When LTI Suspend Paused the sequence, I customized the Start Menu.
- Resumed the task sequence
- Went and ate some tacos while MDT captured the image for me.
Now, as long as copy profile true is set in my production share’s unattended.xml file , anybody who signs in will get the custom start menu, wallpaper, and those apps I removed will be gone. Now, this is just a “preference” not a “policy”, the users will be free to change the tiles on the menu how they see fit, but Office 2013 will be there in the start menu, as long with the control panel. Pretty slick huh?
Powershell Por Vida!