Tag Archives: Scripting

PSADT Series: Packaging .NET Framework 3.5 application for configmgr

By | April 1, 2023
Share

Considering this was at least my tenth time packaging this dotnet installer for ConfigMgr, I figured I should share it here for safe keeping. Further help on PowerShell App Deployment Toolkit (https://psappdeploytoolkit.com/). I will not be covering how to use PSADT, just the guts. Detection Method: PSADT install/uninstall command lines: Source files need to be… Read More »

Consolidate PowerShell App Deploy Toolkit Function .PS1 Files

By | May 24, 2019
Share

1\Copy the “AppDeployToolkit” folder to your Deployment Share’s “Scripts” folder. 2\Edit the “AppDeployToolkit\AppDeployToolkitConfig.xml” file to log to MDT’s log location. 3\Update the Deploy-Application.ps1 files you use in your Application installs to locate the centrally located “AppDeployToolkit” folder. 4\Lastly, when adding your application to MDT, use this as the “Command Line”. PowerShell.exe -ExecutionPolicy Bypass -WindowStyle Min… Read More »

Check the Embedded Controller (EC) Firmware Version in Powershell

By | January 10, 2019
Share

Here is a snippet for checking the EC version.  It tosses a dialog with it’s result. Pre-reqs: 1\This snippet uses Powershell App Deploy Toolkit functions. https://psappdeploytoolkit.com/ 2\You’ll need to place the .mof and .dll files from our WMI BIOS util in the files folder. ftp://ftp.panasonic.com/computer/software/WMI_Release_V1.00L31.zip     ## <Perform Installation tasks here> Show-InstallationProgress -StatusMessage “Copying… Read More »

Map A1 button on CF-20 and CF-33 to perform soft dismount from keyboard base

By | November 28, 2018
Share

This sniplet was written to work within a Powershell app deploy toolkit package.  If you are not familiar with that toolkit, get familiar with it, its a huge time saver. ## <Perform Installation tasks here> Execute-Process -Path “$envSystem32Directory\reg.exe” -Parameters (‘load HKLM\ImportedHive “{0}\Users\Default\NTUSER.dat”‘ -f $envSystemDrive) $bClickDefAction = [byte[]](0x25,0x00,0x53,0x00,0x79,0x00,0x73,0x00,0x74,0x00,0x65,0x00,0x6d,0x00,0x52,0x00,0x6f,0x00,0x6f,0x00,0x74,0x00,0x25,0x00,0x5c,0x00,0x53,0x00,0x79,0x00,0x73,0x00,0x74,0x00,0x65,0x00,0x6d,0x00,0x33,0x00,0x32,0x00,0x5c,0x00,0x72,0x00,0x75,0x00,0x6e,0x00,0x64,0x00,0x6c,0x00,0x6c,0x00,0x33,0x00,0x32,0x00,0x2e,0x00,0x65,0x00,0x78,0x00,0x65,0x00,0x00,0x00,0x63,0x00,0x66,0x00,0x67,0x00,0x6d,0x00,0x67,0x00,0x72,0x00,0x33,0x00,0x32,0x00,0x2e,0x00,0x64,0x00,0x6c,0x00,0x6c,0x00,0x2c,0x00,0x43,0x00,0x4d,0x00,0x5f,0x00,0x52,0x00,0x65,0x00,0x71,0x00,0x75,0x00,0x65,0x00,0x73,0x00,0x74,0x00,0x5f,0x00,0x45,0x00,0x6a,0x00,0x65,0x00,0x63,0x00,0x74,0x00,0x5f,0x00,0x50,0x00,0x43,0x00,0x00,0x00) Set-RegistryKey -Key ‘HKEY_LOCAL_MACHINE\ImportedHive\Control Panel\TabletPC\ButtonMaps\2’ -Name ‘ButtonID’ -Type ‘Dword’… Read More »

Clean-up Before Sysprep And Capture To Reduce The WIM File Size

By | February 21, 2018
Share

Wally Mead (DeploymentBunny) wrote a great script that accommodates his image factory.  It performs several clean up operations before running sysprep.  I run it manually on all of my Virtual Machines prior to running a Sysprep and Capture routine. I’ve seen this script reduce a WIM file by 10GB. Jump to Wally’s github and save… Read More »