Skip to main content

Windows 10 1703 removing Windows Mail UWP Shortcut from Taskbar

When recently undergoing a project in our organisation to update Windows 10 from 1607 to 1703 I came across an annoying issue where after the upgrade process Windows would add the Windows Mail UWP icon to the taskbar. Obviously in a corporate environment this is not a setup which is wanted.

I read a bunch of stuff online but things would work fine when running manually, but then when trying to deploy through SCCM it would not work.

In the end the only way I got it to work was with information thanks to the following link - https://www.windows-noob.com/forums/topic/15538-problems-running-a-powershell-script-on-a-task-sequence/

So in summary the steps to fix it were:
1.) Create a powershell script on a network share with the following:
           'Uninstall Microsoft Mail and Calendar'

            Get-AppxPackage *communi* | Remove-AppxPackage

2.) Setup an SCCM package and choose to create a program with source files

3.) Click on standard program

4.) In the command line option set the following parameters:
      Powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File         "\\Networklocation\filename.ps1"

5.) This step is critical as this seems to be what stopped it working when I was trying other things. Set the 'program can run' to run only when a user is logged on and 'run mode' to run with users rights.

Comments

Popular posts from this blog

SCCM Task Sequence Fails on SSD Drives Error Error: 87D00267

If you get the error code  87D00267 in a task sequence when deploying an Operating System it  basically means the machine is unable to talk to the DHCP server. From a bit of investigation it  seems that some machines with SSD's actually boot up into the task sequence quicker than it  gets an IP Address! The get around this problem you need to put some pauses in the task  sequence.  The best way is to put the pause in the task sequence just before the point where it  fails. There is  some further reading into this issue below, the sites credited with links.  Part 1 Source: http://ericsccm2012.blogspot.com.au/2013/04/applications-fail-to-install-on-ssd.html Applications Fail to Install on SSD Drives. We received several of the new Dell Latitude 6430U models with SSD drives.  Very nice laptops in a small case.  Easily found drivers for them and loaded into SCCM.  Started the task sequence on one and all look...
SCCM - Required Application Not Installing to a collection based on an Active Directory Security Group I recently had an issue where I was trying to install Office 2013 as a required application to a collection based on an AD Security group. This would work fine if I was advertising the install as  'available', however when I set as 'required' it would not install and not even show up in Software Centre. After looking through the Monitoring section in SCCM and had a look at the deployment status I noticed it said success however the Message ID was 10040 and the description was "program will not rerun" I managed to fix this by going to the deployment settings for this collection and then going to scheduling and altering the "Rerun behaviour" to always rerun program.

SCCM Query for 64 bit Software

I was recently required to do an audit of Office software for Microsoft licensing and noticed the SCCM WQL queries did not pick up 64 bit installs of Microsoft Office. After a bit of investigation I read that the normal queries which work (as below) only detect 32 bit software installs. Credit to skissinger from my IT forum for this info: http://www.myitforum.com/forums/Queries-for-32bit-amp-64bit-in-addremove-programs-m232862.aspx 32 bit software query: select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Microsoft Office professional plus 2013" 64 bit software query: It's probably the inner joins; because a x86 box won't have any 64 stuff; so nothing to join ...