User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Imaging Toolkit 8 will help you to create and deploy a Windows 8 machine with either ZENworks (11.2.3a) or System Center Configuration Manager 2012 SP1

By default the Windows 8 build will contain a selection of new start menu apps that may or may not be appropriate for your users. These apps may also be slightly out of date.

Default

The normal power options (Shutdown, Restart and Log Off) are also hidden behind the [Windows Key] +C charms menu which takes a little bit of getting used to.

Charms


Many administrators will probably want to remove the Windows Store apps and also create suitable Shutdown, Restart and Log Off buttons on the new style start menu.

This is possible using some PowerShell scripts. What is even better is that Imaging Toolkit 8 allows you to run PowerShell scripts as phase scripts which lets you do these steps automatically during your build process.
For more information on phase scripts check out: https://www.engl.co.uk/documentation/imagingtoolkit/8.0/content/implementation-zcm-customhooks.htm

The scripts:

Remove Windows Store apps:


Import-Module Appx
Import-Module Dism
 
# Remove provisioned apps from logged in user.
 
Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online
 
# Remove provisioned apps from all users
 
Get-AppXPackage | Remove-AppxPackage

 


Remove Windows Store shortcut: 


# Remove Windows Store shortcut link from the Start Menu
 
Remove-Item "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Store.lnk" -force



Add Windows power icons to Start Menu: 


Import-Module C:\ztoolkit\CreateWindowsTile.psm1
New-OSCWindowsTile


The CreateWindowsTile.psm1 module can be downloaded from here: http://gallery.technet.microsoft.com/scriptcenter/Create-a-ShutdownRestartLog-37c8111d

Customise the Default User icon: 

# Set up Default User icons
 
Move-Item c:\ztoolkit\user.bmp "C:\ProgramData\Microsoft\User Account Pictures" -force
Move-Item c:\ztoolkit\user.png "C:\ProgramData\Microsoft\User Account Pictures" -force


Combine these files and commands into a phase0-before.ps1 file:


# Import modules
 
Import-Module Appx
Import-Module Dism
Import-Module C:\ztoolkit\CreateWindowsTile.psm1
 
# Remove provisioned apps from logged in user.
 
Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online
 
# Remove provisioned apps from all users
 
Get-AppXPackage | Remove-AppxPackage
 
# Remove Windows Store shortcut link from the Start Menu
 
Remove-Item "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Store.lnk" -force
 
# Add Windows power icons to Start Menu
 
Import-Module C:\ztoolkit\CreateWindowsTile.psm1
New-OSCWindowsTile
 
# Set up Default User icons
 
Move-Item c:\ztoolkit\user.bmp "C:\ProgramData\Microsoft\User Account Pictures" -force
Move-Item c:\ztoolkit\user.png "C:\ProgramData\Microsoft\User Account Pictures" -force

 

 

Save this as phase0-before.ps1 file and add to your Windows 8 project's Custom Files folder.

Add the CreateWindowsTile.psm1 extracted from the download link found here: http://gallery.technet.microsoft.com/scriptcenter/Create-a-ShutdownRestartLog-37c8111d then add to your project's Custom Files folder.

Make a custom version of the Default User icon files.
The originals can be found in "C:\ProgramData\Microsoft\User Account Pictures" on a Windows 8 machine.
Make a copy of these then update them as required. I have added a small ENGL logo to the images.

modified modified


When you are happy with the files add these into the project's Custom Files folder.



Once the project has been updated create a ztoolkit image for the project and then copy the resulting image file to the imaging server.

Now PXE boot your machine and restore the appropriate Windows 8 Project.
Once the machine has been built the Default User icons will now use the Custom Files.

Logon

The Start Menu only has a bare minimum of applications (which can of course be added to using ZENworks or System Center Configuration Management to deploy apps during your build)



There is also a Shutdown, Reboot and Log Off application shortcut available under "All apps" on the Windows 8 Start menu.

All