Skip to main content

2022 | Buch

Understanding Microsoft Intune

Deploying Applications Using PowerShell

insite
SUCHEN

Über dieses Buch

Learn to deploy simple and complex applications that are beyond the scope of default Intune application deployment scenarios and limitations. This book will help you deploy applications using a PowerShell script.
The book starts with PowerShell Cmdlets to get an understanding of deployment through PowerShell scripts. Next, you will learn how to work with msiexec where you will learn which properties of your MSI can be set and what values can be passed to them, even if you do not know what the properties and values initially are.

Further, you will learn how to install and uninstall a Setup.exe and how to determine the silent switches, along with MSI extraction methods. You will then learn detection rules using PowerShell, including how to detect by registry or application version and build numbers as well as using custom PowerShell detection rules. You will then gain an understanding of the location to run the script. Moving forward, you will go through installing a program by calling MSI or Setup.exe using PowerShell and how to handle spaces in the filenames.

Following this, you will go through how to deploy the various script types in Intune; whether it is a standard script, or if the whole script is a function or contains functions, or if it has an entry point. Deployment Templates and application preparation in Intune are discussed next, along with the process to create the .Intunewin with the Intune Winapp Util. You will then learn how to uninstall previous applications before a new deployment. You'll also be walked through useful snippets and examples of deployment where you will be able to utilize all the aspects of deployment in Intune discussed in prior chapters.

After reading the book, you will be able to manage application deployments and detection rules using PowerShell with Microsoft Intune.

What You Will Learn:How to find valid properties and values to use with msiexecUsing PowerShell for detection ruleDeploying using a template for reliable and repeatable deploymentsHow to create the Windows App (Win32) App Who Is This Book For:I.T Professionals who manage application deployments using Microsoft Intune.

Inhaltsverzeichnis

Frontmatter
Chapter 1. PowerShell Fundamentals
Abstract
Although this book is not about to teach you how to become the next PowerShell guru (there are plenty of books already out there on that), it is imperative to have some basics under your belt.
Owen Heaume
Chapter 2. MSIEXEC
Abstract
Msiexec.exe provides the means to install, modify, and perform operations on Windows Installer from the command line. This is the tool that, where possible, you should try to use all the time to install applications.
Owen Heaume
Chapter 3. Setup.exe
Abstract
Any administrator will relate to the dread of receiving an application that arrives as a Setup.exe file. Notoriously difficult and sometimes seemingly impossible to deploy, they often arrive with little or no help files.
Owen Heaume
Chapter 4. Detection Rules
Abstract
In Microsoft Intune, detection rules are used to determine the presence of a Win32 application. The detection rule will make sure that the application installation will only occur if it is not already installed and will also help to confirm a successful installation or not.
Owen Heaume
Chapter 5. Location, Location, Location
Abstract
There may be a requirement to copy files to specific locations pre- or post-application deployment. An application may require customization through a pre-configured INI (configuration) file for example, or some supporting documentation must be copied to the user’s Documents folder, or perhaps additional corporate backgrounds must be deployed as part of a Microsoft Teams installation.
Owen Heaume
Chapter 6. Installing the Application
Abstract
Installing the application is going to be the primary purpose of the deployment script and in Chapter 2 you learned that MSIEXE.exe was the tool to use. However, you cannot just enter msiexec.exe and the command line straight into your PowerShell script and expect it to work, it needs to be called from a PowerShell cmdlet first.
Owen Heaume
Chapter 7. Deploying the Script
Abstract
Once you have a PowerShell script or deployment template ready to go, you will need to understand the command line required to deploy it in Intune.
Owen Heaume
Chapter 8. Deployment Template
Abstract
Using a deployment template can greatly speed up your application deployments and they offer many advantages over writing a separate script each time you wish to deploy an application. Once you have written a template and ironed out all the bugs then you end up with something that offers advanced functionality and is repeatable and reliable.
Owen Heaume
Chapter 9. Application Preparation
Abstract
You cannot directly upload an MSI or Setup.exe along with the associated PowerShell deployment script to Intune. The files must first be packaged together and uploaded as a single intunewin file.
Owen Heaume
Chapter 10. Uninstall an Application
Abstract
You may need to uninstall an application as part of the existing deployment. In this chapter, you will delve a little deeper and learn how to remove an existing application before deploying a new one.
Owen Heaume
Chapter 11. Pre- and Post-Code
Abstract
Whether you use a template written by yourself, written a quick deployment script, or are using the example deployment template demonstrated earlier in Chapter 8, you will, at some stage, need to perform some type of action before or after the application has been installed.
Owen Heaume
Chapter 12. Example Scenario
Abstract
In this chapter, you will learn the step-by-step process for completing an advanced application deployment using some of the techniques demonstrated in this book and using the example deployment template presented in Chapter 8.
Owen Heaume
Backmatter
Metadaten
Titel
Understanding Microsoft Intune
verfasst von
Owen Heaume
Copyright-Jahr
2022
Verlag
Apress
Electronic ISBN
978-1-4842-8850-4
Print ISBN
978-1-4842-8849-8
DOI
https://doi.org/10.1007/978-1-4842-8850-4