Category Archives: PowerShell

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 »

Sharing Code Doesn’t Have To Be Ugly

By | December 4, 2020
Share

I’m constantly sharing Powershell/Python code snippets, I tend to just toss them on gist or github and send links, but I just recently found carbon https://carbon.now.sh/ This site makes even my code look shiny and well formatted. I’m a huge fan!

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 »