Local Test

If I want to test to see how my Packages work, I can easily browse to my OSDDrivers Workspace Package directory and open Deploy-OSDDrivers.ps1 in PowerShell ISE. I do this instead of PowerShell so it keeps the Window open for me to view results.

The PowerShell script is quite simple. It will import the Deploy-OSDDrivers Script Module and execute an Expand-OSDDrivers

#===================================================================================================
#   Import Deploy-OSDDrivers Module
#===================================================================================================
Import-Module -Name "$PSScriptRoot\Deploy-OSDDrivers.psm1" -Force -Verbose
#===================================================================================================
#   Expand-OSDDrivers
#===================================================================================================
Expand-OSDDrivers -PublishPath "$PSScriptRoot"
#===================================================================================================
#   Complete
#===================================================================================================
#Start-Sleep 10

Console Results

Here are the results from my PowerShell ISE Console

C:\Drivers Results

This contains the matched Drivers, a Log, and a Hardware Inventory

OSDDrivers.log

This is a simple PowerShell Transcript of the Console with full details

MyHardware.csv

This is a full list of all the Hardware found on the system

MyHardware.xml

This is a PowerShell Clixml of the Hardware that can be viewed using the following command

Import-Clixml "C:\Drivers\MyHardware.xml" | Out-GridView

Last updated