Raymond Zaagsma

Raymond Zaagsma

MDT AVD PSADT MEM WINGET AIB

Install Visual C++ Redistributables with VcRedist

This powershell module can download, install or import the Visual C++ Redistributables into MDT. I use this Powershell Module to install VCRedist during the task sequence, i made a small adjustment to the script because the installation of the Powershell Module needs Nuget to work properly. I add this powershell script as an application into MDT and add it to the task sequence. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 $installedPackageProvider = Get-PackageProvider if ($installedPackageProvider.

PSADT Cheatsheet

These are code snippits, I frequently use in PSADT - PowerShell App Deployment Toolkit Commonly used PSADT env variables 1 2 3 4 5 6 7 8 9 $envCommonDesktop # C:\Users\Public\Desktop $envCommonStartMenuPrograms # C:\ProgramData\Microsoft\Windows\Start Menu\Programs $envProgramFiles # C:\Program Files $envProgramFilesX86 # C:\Program Files (x86) $envProgramData # c:\ProgramData $envUserDesktop # c:\Users\{user currently logged in}\Desktop $envUserStartMenuPrograms # c:\Users\{user currently logged in}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs $envSystemDrive # c: $envWinDir # c:\windows How to load (“dotsource”) PSADT functions/variables for manual testing (your powershell window must be run as administrator first) 1 2 cd "$path_to_PSADT_folder_youre_working_from" .
0%