Collect your drivers and export them to a share

Last week I saw a really interesting Tweet from Adam Eaddy mentioning his blog where he had published a automated way to build Configuration Manager Driver Packages automatically by collecting drivers from a remote PC. The script worked great, but I missed the nice folder structure to keep the drivers nice and ordered. I tweaked his script a bit, so it would fit my needs.

This PowerShell script collects the drivers (in a nice manufacturer\model\version\arch structure) and copies them to a network share. This makes it possible to use your own Configuration Manager driver import script (or import them manually) or even use them in your MDT configuration.


# NAME: CollectDrivers.ps1
# AUTHOR: Helmer Zandbergen
# DATE  : 04/24/2016
# COMMENT: This script detects driver of the current machine it is run on and
#          exports them to location mentioned in the parameter $SHARENAME
# VERSION : 1.0
# 1.0 (26-apr-2016)- Initial Script.
# USE : .\CollectDrivers.ps1 "\\Servername\Share\Driver\location"
Param (

[Parameter(Mandatory=$True, Position=0)]

#Do not change these!
$COMPMANUFACTURER=(Get-WmiObject -Class win32_computersystem).Manufacturer

    $COMPMODEL=(Get-WmiObject -Class win32_computersystemproduct).version
	$COMPMODEL=(Get-WmiObject -Class win32_computersystem).Model

$OSVER=(Get-WmiObject -Class win32_operatingsystem).Caption
$OSARCH=(Get-WmiObject -Class win32_operatingsystem).OSArchitecture

Write-Host ""
Write-Host "Manufacturer: $COMPMANUFACTURER"
write-host "Model: $COMPMODEL"
Write-Host "OS Version: $OSVER ($OSARCH)"
Write-Host ""
Write-Host "I'm currently..."
#$ScriptBlock = { param($SHARENAME)
#Get Drivers
Set-Location C:
$SDrivers = Get-ChildItem -Path $SDriverSource -Include *.inf -Recurse

#End of declarations
#Export the drivers to a temp directory
If (Test-Path $NEWLOGFILE){
Write-Output "This script has been cancelled because it has already completed on this device." | out-file $NEWLOGFILE -Append
Write-Host "This script has been cancelled because it has already completed on this device."
Write-Host "* Exporting drivers to temporary location."
Export-WindowsDriver -Destination "$DRIVERPATH\$COMPMANUFACTURER\$COMPMODEL\$OSVER\$OSARCH" -Online | out-file $LOGFILE
#Copy Drivers to Driver Share
Write-Output "This Copy has been cancelled because it has already completed for this device." | out-file $NEWLOGFILE -Append
Write-Host "This Copy has been cancelled because it has already completed on this device."
Write-Host "* Copying drivers to destination share."
copy-item $DRIVERPATH'\*' -Destination $SHARENAME -Recurse
#Cleanup Temp directory
Write-Host "* Cleaning up temporary location."
Remove-Item "$UTEMP\Drivers"-Recurse
Write-Host ""
Write-Host "* Done!"
Write-Host ""

Note : you have to run the script as an Administrator.

Please let me know what you think!

Upgrading SCCM 2012 R2 to ConfigMgr 1602


A customer wanted to upgrade his current Windows 7 Enterprise devices to Windows 10. Right now he was running SCCM 2012 R2, so before I can start creating a Windows 10 task sequence first there some ConfigMgr upgrading has to be done. I started by downloading the SCCM 1511 bits, Windows ADK 10.0 (not the 1511 version!) and the HP WinPE 10.0 driver pack (since the customer is running HP devices only).

When all the bits were downloaded, the upgrade process can start!

Continue reading “Upgrading SCCM 2012 R2 to ConfigMgr 1602”

Upgrading SCCM 2012 R2 Preview to SCCM 2012 R2 RTM

I’ve been running System Center 2012 R2 Configuration Manager for some time now, but since SCCM 2012 R2 was released today I really wanted to upgrade my server to the RTM bits! For now I’m upgrading my machine, since it is still running Windows Server 2012 I will probably do a clean install (on top of Windows Server 2012 R2) somewhere in the near future.

Prepare for the upgrade

Before you can start the upgrade, there ar e some things you should know:

Continue reading “Upgrading SCCM 2012 R2 Preview to SCCM 2012 R2 RTM”

Upgrade your SCCM 2012 SP1 to R2 Preview

Interesting read: Upgrade SCCM 2012 R2 Preview to SCCM 2012 R2 RTM

At TechEd Europe the availability of System Center R2 Configuration Manager Preview was announced. Since I’m running SCCM 2012 SP1 in my home lab, I found some free time (during TechEd) to upgrade my lab to the Preview release of SCCM 2012 R2.

Prepare for the upgrade
Before you can start the upgrade, there are some things you should know :

  • Since this is a Preview release, you should not run it on your production machines
  • Remove the current Windows ADK 8.0
  • Download and install the new Windows ADK (preview) 8.1
  • In the example below I’m only using one Site Server.

Continue reading “Upgrade your SCCM 2012 SP1 to R2 Preview”

UPDATE #6 : Where in the world are my SCCM 2012 (71-243) test results? They have arrived!

Somewhere in February 2012 you were able to attend the System Center Configuration Manager 2012 exam (71-243 a.k.a. 70-243). In the normal days we would have to wait for about 6-8 weeks before the exam results would become available……not this time.

The SCCM 2012 exam went live last Thursday, April 12th , but we are still waiting for the results…


Last week I talked to my contacts at MS Learning and the asked me to e-mail them if I didn’t receive the score before last Monday. At the moment the scores are still unavailable, so I send them an e-mail first thing Monday morning.

At the end of the day I received an e-mail from Stephanie and she told me that the score generally will become available within the first two weeks of the exam being live, but usually the scores are usually available within a few days of release of the live exam.

The also promised me to follow up with Prometric to find out when the scores will show on our Prometric Candidate History page.

Just a few minutes ago I received another e-mail (from Lisa this time). She told me that Prometric is investigating the issue at the moment. Whenever there will be new information I will update this blog post.

For now I would like to thanks Microsoft Learning (especially Stephanie and Lisa) for their effort to get us our SCCM 2012 Beta results! Smile

Continue reading “UPDATE #6 : Where in the world are my SCCM 2012 (71-243) test results? They have arrived!”

New MCP Credential : Microsoft Certified Non-Professional

Robbert Verbeek pointed me to the latest Microsoft Credential : Microsoft Certified Non-Professional. To achieve this credential you have to pass both the 70-401 (SCCM,Configuring) and the 70-656 (MDOP, Configuring). I’m not sure why Microsoft should name it Non-Professional, but as you can see below…it does exist!

I already forwarded this screenshot to the guys over at @MSLearning, when I receive a respsonse I’ll let you know 🙂

ps. Back in September 2009 Eric Denekamp also received the ‘Non-Professional’ Certification

System Center Configuration Manager Beta Exam


Trika announced the SCCM Beta exam today on her blog :

If you fancy System Center Configuration Manager, you might like to take the beta for 70-401: TS: Microsoft System Center Configuration Manager 2007, Configuring. Feel free to share with colleagues. If you don’t know much about betas, read this or this first.


You are invited to take beta exam 70-401: TS: Microsoft System Center Configuration Manager 2007, Configuring. If you pass the beta exam, the exam credit will be added to your transcript and you will not need to take the exam in its released form.

By participating in beta exams, you have the opportunity to provide the Microsoft Certification program with feedback about exam content, which is integral to development of exams in their released version. We depend on the contributions of experienced IT professionals and developers as we continually improve exam content and maintain the value of Microsoft certifications.

71-401: TS: Microsoft System Center Configuration Manager 2007, Configuring counts as credit towards the following certification(s).

•  Microsoft Certified Technology Specialist (MCTS): System Center Configuration Manager 2007, Configuration


  • Registration begins: November 21, 2007
  • Beta exam period runs: November 28, 2007– December 18, 2007
  • Receiving this invitation does not guarantee you a seat in the beta; we recommend that you register immediately. Beta exams have limited availability and are operated under a first-come-first-served basis. Once all beta slots are filled, no additional seats will be offered.
  • Testing is held at Prometric testing centers worldwide, although this exam may not be available in all countries (see Regional Restrictions). All testing centers will have the capability to offer this exam in its live version.
  • Regional Restrictions: India, Pakistan, China

Registration Information

  • You must register at least 24 hours prior to taking the exam.
  • Please use the following promotional code when registering for the exam: B401
  • Receiving this invitation does not guarantee you a seat in the beta; we recommend that you register immediately.

To register in North America, please call:

•  Prometric: (800) 755-EXAM (800-755-3926)

Outside the U.S./Canada, please contact:

•  Prometric:

UPDATED : MCP : System Center Configuration Manager Beta & Windows 2008 Exams


Today Trika announced on her blog that the next beta exam will be probably available at the end of this month (next week!). The next three betas will be the MCTS exams for Windows 2008 (71-640, 71-641, 71-642), the exact date isn’t sure but it could be somewhere between the end of November (next week!) and the the end of December.

The beta MCITP exams (the ones I have to take) will begin somewhere late December 2007! In both cases (the MCTS and MCITP), invitations to the beta will go out following the standard process :

  • Microsoft employees notified via internal distribution list
  • MCTs notified via private MCT newsgroups
  • Customers notified by invitation only (must be registered to MCP newsletter to receive). Customers who hold MCSA or MCSE on Windows Server 2003 will most likely be the people who receive an invite.

More Info about the SCCM Exam :

Sander Zegveld tipped me about the promo code you have to use the schedule the exam (for free) : TSCCM (The promocode mentioned at his source was wrong, check my latest post about the SCCM Beta exam for the correct one)

From the same source comes the date when the exam wil be available : November, 28th!

This are the exam objectives :

1. Deploying a System Centre Configuration manager 2007 Server
1.1. Setup and configure AD Schema
1.2. Migrate from SMS 2003 heirarchy to SCCM 2007
1.3. Configure an SCCM 2007 heirarchy
1.4. Setup and configure security accounts
2. Configuring an SCCM infrastructure
2.1. Configure client agents
2.2. Configure site boundaries
2.3. Configure core site system roles
2.4. Configure discovery methods
2.5. Configure client installation
2.6. Configure SCCM infrastructure for internet-based client management
3. Managing resources
3.1. Build an SCCM collection using queries
3.2. Mater software usage
3.3. Manage assets
3.4. Manage inventory flow
3.5. Identify unhealthy clients
4. Distributing Applications
4.1. Manage packages
4.2. Manage Progreams
4.3. Manage adverts
4.4. Schedule distribution
4.5. Track success/failure for distributions
4.6. Manage distribution points
5. Deploying operating systems
5.1. Capture reference computer image
5.2. Mange task sequences
5.3. Configure site system roles related to operating system deployment
5.4. Deploy operating system packages
5.5. Customise state migration
5.6. Deliver applications
6. Securing a network infrastructure
6.1. Configure Network Access Protection (NAP)
6.2. Maintain NAP
6.3. Migrate ITMU to WSUS
6.4. Deploy software updates
6.5. Manage vulnrability compliance
7. Manageinang and maintaining an SCCM infrastructure
7.1. Manage system health
7.2. Configure automatic maintenance tasks
7.3. Create custom reports
7.4. Maintain clients
7.5. Manage systems by using Desired Configuration Management
7.6. Manage Wake On LAN
The candidates for this exam are:

  • Use ConfigMgr to mange and deploy software and asset management.
  • Have 1+ years experience of SMS.
  • Have working knowledge of new features of ConfigMgr.
  • Experience using AD and Windows Server System.