Showing posts with label Application. Show all posts
Showing posts with label Application. Show all posts

Friday, September 18, 2015

Windows 10: Fully Remove Universal Apps for All Users

Windows 10: Fully Remove Default Universal Apps

Purpose

To help others in fully removing the default universal apps for use of deployment in a corporate image.

Table of Contents

Purpose. 1

Scope. 1

Procedure. 1

Remove Universal Apps. 1

Deployment 1

 

Scope

Fully remove Universal Apps from system in order to have a clean image for deployment

Procedure

Remove Universal Apps

1.       Copy the following script and save it as a .ps1 file (This script leaves the store intact for NEW user profiles.)

 

 

 

$modernApps = @(@("Microsoft.3DBuilder","microsoft.windowscommunicationsapps","Microsoft.BingFinance","Microsoft.BingNews","Microsoft.BingSports","Microsoft.BingWeather","Microsoft.BingTravel","Microsoft.BingHealthAndFitness","Microsoft.BingFoodAndDrink","Microsoft.People","Microsoft.WindowsPhone","Microsoft.MicrosoftSolitaireCollection","Microsoft.WindowsSoundRecorder","Microsoft.XboxApp","Microsoft.WindowsCamera","Microsoft.ZuneMusic","Microsoft.ZuneVideo","Microsoft.Office.OneNote","Microsoft.SkypeApp","Microsoft.MicrosoftOfficeHub"

 

foreach ($modernApp in $modernApps) {

 

    Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -match $modernApp} | Remove-AppxProvisionedPackage -Online

 

}

 

Get-AppxPackage -AllUsers | Remove-AppxPackage

 

a.       You can obviously remove some of the apps listed at the top of the script to leave them on the machine like Microsoft.BingWeather if you want to leave Weather intact

2.       Run the following command from Powershell as an Administrator

a.       powershell.exe -ExecutionPolicy Bypass -file ".\SomeFile.ps1"

                                                               i.      “.\SomeFile.ps1” is the name of the file you save the script above as

3.       If you need to get into the store after the script is run you may need to delete your profile and let it recreate.  All of the default apps will still be removed but Store will return.

Deployment

1.       You can deploy this by creating a script and run it during a task sequcne step within MDT or ConfigMgr or Caputre a new .WIM for deployment as part of your base image

Sources

http://pastebin.com/QuDajKAy

 

Monday, November 17, 2014

ConfigMgr: Install Fonts as an Application without Local Admin

ConfigMgr: Install Fonts as an Application without Local Admin

Purpose

To document a process on how to utilize a software delivery system like ConfigMgr to install Fonts so users do not need local admin rights.

Table of Contents

Purpose. 1

Scope. 1

Summary. 1

Prerequisites. 1

Script Modification before ConfigMgr Setup. 1

ConfigMgr Application Setup. 2

 

Scope

To help other Admins limit user rights on machines deployed

Summary

Download DetectionMethod.zip and FontsInstall.zip from the Prerequisite area and follow the steps below. These scripts are written in PowerShell so PowerShell is a requirement.  After the application is run you can check your results by looking at the log file that is created at c:\temp\fontinstall.log.  The DetectionMethod.ps1 can be modified to have a different timespan which is how it determines if it can run again.  It is currently set to 5 minutes.

 

Prerequisites

DetectionMethod.zip

FontsInstall.zip

PowerShell

Script Modification before ConfigMgr Setup

1.       Create a new source folder for the scripts in the prerequisites section, download and extract the scripts

2.       Edit FontsInstall.ps1

a.       $FromPath needs to be updated in FontInstall.ps1 script to be the path your users will save the fonts to.  The script will pick the fonts up in this location and install them into c:\windows\fonts.  By default I have $FromPath set to c:\Fonts

Detection Method script needs to be updated to the directory you specify the log file to be written in the FontInstall.ps1 script

ConfigMgr Application Setup

1.       Open ConfigMgr Console and navigate to \ à Software Library àOverview à Application Management àApplications

a.       Right Click Applications and select Create Application

                                                               i.      General

1.       Manually specify the application information

2.       Click Next

                                                             ii.      General Information

1.       Fill out as necessary

2.       Click Next

                                                            iii.      Application Catalog

1.       Fill out as necessary

2.       Click Next

                                                           iv.      Deployment Types

1.       Click Add

a.       General

                                                                                                                                       i.      Type: Script Installer

                                                                                                                                     ii.      Manually specify the deployent type information

                                                                                                                                    iii.      Click Next

b.      General Information

                                                                                                                                       i.      Fill out as necessary

                                                                                                                                     ii.      Click Next

c.       Content

                                                                                                                                       i.      Content Location: <UNC PATH> of the FontsInstall.ps1 file

                                                                                                                                     ii.      Installation Program: Powershell.exe -executionpolicy bypass -file FontsInstall.ps1

                                                                                                                                    iii.      Click Next

d.      Detection Method

                                                                                                                                       i.      Click Use a custom script to detect…

                                                                                                                                     ii.      Click Edit

1.       Script Editor

a.       Script Type: PowerShell

b.      Click Open

                                                                                                                                                                                                               i.      Browse to where you saved DetectionMethod.ps1

                                                                                                                                                                                                             ii.      Click Open

c.       Click OK

                                                                                                                                    iii.      Click Next

e.      User Experience

                                                                                                                                       i.      Install for System

                                                                                                                                     ii.      Whether or not a user is logged in

                                                                                                                                    iii.      Click Next

f.        Requirements

                                                                                                                                       i.      Click Next

g.       Dependencies

                                                                                                                                       i.      Click Next

h.      Summary

                                                                                                                                       i.      Click Next

i.         Completion

                                                                                                                                       i.      Click Close

2.       Click Next

                                                             v.      Summary

1.       Click Next

                                                           vi.      Completion

1.       Click Close

b.      Distribute the Content

c.       Deploy the Application