PADT – System Commands

PowerShell Application Deployment Toolkit is a tool very powerful to manage systems: Silent install commands Start or stop services Kill processes Wait a process not existing anymore before continuing Manage scheduled tasks Environment variables There are many possibilities, not forgetting that all old batch commands are compatible with PowerShell too. Here is a memento of … Read more

PADT – MSIEXEC

PowerShell Application Deployment Toolkit is a tool very powerful to use MSIEXEC: Installing using MSI Installing using MSI with MST Patching using MSP Uninstalling… Log files are created in the same folder as the log file of the main script.The log folder is defined in the file AppDeployToolkit\AppDeployToolkitConfig.xml. For example: <Toolkit_LogPath>$envSystemDrive\Logs</Toolkit_LogPath>   MSI MSI must be … Read more

PADT – User Interface

With PowerShell Application Deployment Toolkit, it is possible to use a user interface (GUI). The “Installation Prompt” displays a window with a button allowing the user to launch himself the installation and a countdown to enforce the installation after timeout. The “Installation Welcome” displays a window informing the user that some applications must be closed … Read more

SCCM Deployments with PowerShell

The following script allows to create a deployments on SCCM Deployment of an application (asap) Deployment of a package (asap after an available date/time) Deployment of a task sequence (scheduled using WMI) The deployments of the application and the package are enforced as soon as possible but it’s also possible to schedule them by setting … Read more

PowerShell App Deployment Toolkit

1. PowerShell App Deployment Toolkit 1.1 Introduction The PowerShell App Deployment Toolkit provides a set of functions to perform common application deployment tasks and to interact with the user during a deployment. It simplifies the complex scripting challenges of deploying applications in the enterprise, provides a consistent deployment experience and improves installation success rates. The … Read more

Parsing XML with PowerShell

This script allows to parse an XML file. In this example, the XML must be named config.xml and must be located in the same folder as the script. The variable $PSScriptRoot is used to retrieve the path where the script is launched.   1. Parsing XML – Single Tags and recursively Let’s create an XML … Read more

SCCM Collections with PowerShell

The following script allows to create a collection in a specific folder in SCCM. Import of the SCCM module Check if the collection already exist Creation of the collection with a specific limiting collection if not already existing in the folder To work properly, this script must be launched from a server with the SCCM … Read more