LogoLogo
OSDeploy.comTwitterPowerShell GalleryGitHub
  • Overview
  • Release Notes
  • OSDeploy Home
  • Module
    • Install and Update
    • Functions
      • Get-DellModelPack
      • Get-HpModelPack
      • Save-OSDDriverPack
      • Save-OSDIntelPack
      • Save-OSDModelPack
      • Save-OSDMultiPack
      • Show-OSDWmiQuery
      • Update-ModuleOSDDrivers
      • Update-OSDDriverScripts
      • Update-OSDMultiPack
    • PowerShell Gallery
    • GitHub
  • Docs
    • Driver Basics
      • SystemSKU
      • HardwareID
      • SUBSYS
      • Microsoft Update Catalog
      • OEM Drivers
      • Generic Drivers
      • Audio Drivers
      • Driver Family Packs
      • Security
      • Recommendation
    • AmdPack (AMD Video)
      • AMD Reference
        • Enterprise Drivers
        • CVE
        • ISV Certifications
        • OEM Radeon Compatibility
        • OEM Radeon Pro Compatibility
      • Real World OEM Compatibility
      • AmdPack Download
      • AmdPack Package
    • NvidiaPack (Nvidia Video)
      • Nvidia Enterprise Drivers
      • Nvidia CVE
      • Nvidia vs OEM
      • Standard vs DCH
    • OSDDriver Basics
      • WorkspacePath
      • Save-DellModelPack
      • MultiPack
        • Create a Single Model MultiPack
        • Add a Similar Model Pack
        • Add a Different Model Pack
        • DellMultiPack (Full)
        • DellMultiPack (Size Comparison)
        • Create a Generation Pack
        • Final Results
        • Deployment
    • How I Roll
      • Drivers
        • IntelPack MDT
        • IntelPack 10.0 x64
        • IntelPack 10.0 x86
        • NvidiaPack 10.0 x64
        • NvidiaPacks (MultiOS)
        • DellMultiPack 10.0 x64 MDT
        • MDT - DellMultiPack (MultiOS)
        • Update-DellMultiPack
        • CM - Dell Generation Packs
      • MDT - Microsoft Deployment
        • MDT Integration
        • MDT Deployment
      • CM - Configuration Manager
        • CM Packages
        • CM Task Sequence
        • CM Deployment Test
  • Links
    • Dell
      • Model Packs
      • Family Packs
      • Family Packs (DIA)
    • Intel
      • Bluetooth
      • Ethernet
      • Wireless
    • Nvidia
      • Driver Search
      • Advanced Driver Search
      • Quadro Branch History
      • CVE
  • Development
    • Solutions
      • Deploy Cabs
      • Intel Video - Part 1
      • Intel Video - Tests
      • Remove Intel Video Drivers
      • AMD Video Drivers
      • Nvidia Video Drivers
    • NvidiaPack
      • NvidiaPack Test
    • Examples
      • MDT Dell Win7 + Win10 x64
      • Windows 7 to Windows 10 Upgrade
    • ConfigMgr
      • Packages
        • IntelPack 10.0 x64
        • NvidiaPack 10.0 x64
      • Task Sequence
    • Deployment
      • Integration
        • ConfigMgr Package
        • ConfigMgr Task Sequence
      • Execution
        • Local Test
        • Windows Setup
        • ConfigMgr Package Deploy
  • Real World
    • HPMultiPack
      • Heine Hanevik
Powered by GitBook
On this page
  • Configuration Manager
  • Distribute Content

Was this helpful?

  1. Docs
  2. How I Roll
  3. CM - Configuration Manager

CM Packages

The easiest way to convert OSDDriver Packages to CM Packages is to create a script. Since I am separating my NvidiaPack, my $OSDDrivers path is modified

$CMLibrary = '\\SERVER\SHARE\OSDDrivers'
$CMSiteCode = 'XXX:'
$CMBin = "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin"
$Version = '19.8.28'
$Manufacturer = 'OSDDrivers'

#Get-OSDDrivers
$OSDDrivers = Get-ChildItem "$CMLibrary","$CMLibrary\NvidiaPack 10.0 x64" -Directory | Where {$_.Name -ne 'NvidiaPack 10.0 x64'} | Select Name, FullName

#Import Module
Import-Module "$CMBin\ConfigurationManager.psd1"
CD $CMSiteCode

#Create OSDDriver Packages
foreach ($OSDDriver in $OSDDrivers) {
    $Name = $OSDDriver.Name
    $Path = $OSDDriver.FullName
    
    Write-Host "Name: $Name" -ForegroundColor Green
    #Write-Verbose "Path: $Path" -Verbose
    Write-Verbose "Version: $Version" -Verbose
    Write-Verbose "Manufacturer: $Manufacturer" -Verbose

    #Create Package
    New-CMPackage -Name $Name -Path $Path -Manufacturer $Manufacturer -Version $Version | Out-Null

    #Set Package Properties
    Set-CMPackage -Name $Name -EnableBinaryDeltaReplication $True -PersistContentInCache $True | Out-Null

    #Create a new Program
    New-CMProgram -PackageName $Name -StandardProgramName 'Deploy-OSDDrivers' -CommandLine 'Deploy-OSDDrivers.ps1' -ProgramRunType WhetherOrNotUserIsLoggedOn -RunMode RunWithAdministrativeRights -UserInteraction $false -DiskSpaceRequirement 500 -DiskSpaceUnit MB | Out-Null

    #Create a program for Windows 7 to Windows 10 Upgrades
    New-CMProgram -PackageName $Name -StandardProgramName 'Deploy-OSDDrivers Win7Upgrade' -CommandLine 'Deploy-OSDDrivers10.0x64.ps1' -ProgramRunType WhetherOrNotUserIsLoggedOn -RunMode RunWithAdministrativeRights -UserInteraction $false -DiskSpaceRequirement 500 -DiskSpaceUnit MB | Out-Null
}

The process should take about a minute to complete

Configuration Manager

Once the script is complete, I can move my Packages to a subfolder for easier grouping

Distribute Content

Make sure you distribute the Packages to your Distribution Points

PreviousCM - Configuration ManagerNextCM Task Sequence

Last updated 5 years ago

Was this helpful?