Om Michael Petersen

Twitter: @OSDeployLinkedin: Michael PetersenMicrosoft Community Contributor

Eject CD script, quarantined by FEP! PowerShell to the rescue!

I guess everyone knows that you can’t enable BitLocker on a machine from a Task Sequence if there is a CD in the CD drive… The workaround is quit simple, just run a script to eject the cd drive before running the “enable BitLocker” step. Well the other day this script, a vbs, I use, was removed by Forefront.. I guess the heuristic scan evaluated the content of the script to be unsafe, and quarantined it.. This is obviously not good, as it’s needed by the task sequence… So I thought, maybe there is a way to eject the CD [...]

By |2012-03-22T12:25:53+01:00marts 22nd, 2012|General info, OS Deployment, Powershell, Security|3 Comments

What’s that! I have a session @MMS2012

Tree years ago, my Girlfriend gave birth to our son, which kind of got in the way of me attending, and 2 years ago, that Icelandic Volcano eruption got in the way! Last year I did attended for the first time and it was great! This year though, I get to speak at a Break out Session.. Yes that right, I’m doing a session called ConfigMgr. 2007 R3: Review and Simplify Your Deployments together with Kent Agerlund. On top of that I will also act as MCT ambassador, at Onsite Training. It promises to be a excellent MMS this year, [...]

By |2012-03-15T14:27:01+01:00marts 15th, 2012|OS Deployment, Personal|Kommentarer lukket til What’s that! I have a session @MMS2012

All Windows Keyboard layouts

I’m working for this customer who needs computers deployed I several different country's. Because they run XP (I know!) they need that LCID – “hex code” number for the keyboard layout instead of the more user friendly “culture name” used in Win7, like en-US or da-DK. Every time I need these LCID’s I find myself going trough the internet trying to find the correct match for the country I need to deploy to. So here is a link to a list with all the info you could ever need for this.. http://msdn.microsoft.com/en-us/goglobal/bb896001 As a small bonus, I found this need [...]

Extending OSD progress UI Info in SCCM

While running a task sequence, info on what is happening is shown in the progress UI, well the name of the Task Sequence, and the step that is running anyway!! But what if we could extend that info to let us know other things as well! Turns out that is as easy as typing a little extra text in the Task Sequence editor. Example 1: Let say you are administrating a large environment, doing several OSD tests against a number of MPs, and DPs. Now wouldn’t it be nice if we could actually see where data is picked up, right [...]

Changing the regional related (small) stuff! Dot vs. Comma

During OS deployment you normally set the regional settings to match the nationality of the user who are to receive the computer! This can be anything from the OS UI and keyboard,  to Date and time formats, and is normally done using sysprep values like SystemLocale, UserLocale, UIlanguage etc. One problem though, is the UserLocale value, which sets all the Date and time formats. These settings are all pre defined in the system based on the regional setting, which means all machines running English UserLocale will get the settings defined for en-US by Microsoft. But every now and then, you [...]

By |2012-02-23T15:48:12+01:00februar 23rd, 2012|General info, OS Deployment|3 Comments

Small useful scripts–Changing Driver Package source (PS1)

I have this customer who had to move all driver packages from from one server a another. This of cause meant all the Data Source references had to be change as well. Once al the packages were moved to the new server I ran the following  two scripts to change the source. All you need to change is the $Site to your site code, or add it is a parameter when you run the script. You will obviously also have to type in the old and new path. Syntax: Script.ps1 –Site XXX If you want to only run against one [...]

Personal notes no 8. Kill a running process

Sometimes you want to shutdown a running process before running an installation of a piece of software. In that case the native XP/win7/server08, utility TASKKILL comes in handy. In a case where I had to upgrade MS Office Communicator to Lync! this would fail if OC was active on the users machine. So I just ran this command to close it before uninstalling. cmd.exe /c TASKKILL /IM communicator.exe /T /F No need to call any 3rd party tools like PSkill or any thing else..

By |2012-01-19T09:49:00+01:00januar 19th, 2012|General info, OS Deployment, Personal|1 Kommentar

Clean up your wims

Generally I always use the append method of capturing my images (MDT’s ZTIBackup.wsf will do that for you, as explained here). This allows me to store multiple versions of my production image in the same image file. The biggest benefit of storing multiple images in the same wim file is of cause utilization of the single storage capabilities, as each file is only stored once, hence, space requirements for storing images are less. One problem though, is the amount of images, or INDEXES in the wim. First of it can be kind of messy if you have lots of index [...]

By |2012-01-09T08:27:03+01:00januar 9th, 2012|General info, OS Deployment|Kommentarer lukket til Clean up your wims

Get original Driver for Lenovo biometric fingerprint scanner

I have had all kinds of trouble installing the Biometric fingerprint scanner that comes with most all new Lenovo laptops. Using the Lenovo software works, but I also installs al kinds of stuff that I don’t want, or need for that matter. Instead I choose to go with the original drive for the Hardware , exactly as I would do with  Storage and network drivers.. All Lenovo machines ( that I know of anyway), that has a built in Biometric fingerprint scanner, uses hardware from AuthenTec, formerly UPEK, so all there is to it is to pull the correct drivers [...]

By |2012-01-04T14:22:00+01:00januar 4th, 2012|General info, Hardware & Drivers, OS Deployment|Kommentarer lukket til Get original Driver for Lenovo biometric fingerprint scanner

Check If needed OSD packages are present on a DP

  I have a few customers who have many sits, end even more Distribution Points. They also have several different task sequences for deploying everything from XP to Server08R2. Every now and then, they will create new DP’s that needs to be updated with packages, and because of space and bandwidth issues, they do not necessarily want everything distributed to these DP’s. So how do we go about adding only the stuff we need to the new (or existing) DP?   1 – Download “ConfigMgr DP Util” by Cory Becht , and install it on your Computer. 2 – Run the [...]

Make your Microsoft TechNet signature look real nice!

  For everyone posting and answering questions on the Microsoft TechNet forums, you might know that you can add a signature to you profile which will then be added to your Question/reply/answer. This is a nice feature, as you are then able to tell “the world” about yourself, every time you poste something. Now if we look at my dear Boss, Kent Agerlunds signature, you will see that it’s actually quiet nice. Simple yet informative! One thing you might notice though, is the lack of hyperlinks to Blogs, Twitter and Linkedin. It also does not stand out from the text [...]

By |2017-08-22T13:14:48+01:00november 22nd, 2011|General info|5 Comments

Adding Files to the Boot Image in CM2012

A couple of months ago I wrote a post on how to automatically add files to the boot image, as part of the Update distribution point process, using OSDIntection.xml https://blog.ctglobalservices.com/mip/auto-adding-files-to-config-mgr-boot-images/ In CM2012 however, this option is no longer available. Instead the development team has been kind enough, to actually include this service as part of the Boot Image properties, well sort of anyway! What they added is an option to add a prestart Command Hook ( earlier: Media Hook or pre execution hook) This option is obviously intended to add a script or HTA to be launched before choosing what [...]

By |2011-10-17T14:57:25+01:00oktober 17th, 2011|Configuration Manager (SCCM), OS Deployment|2 Comments

Install OS language during OSD (the easy way!) Part 1–Inject Language files

I know this can be done using MDT (Install Language Packs Offline), and even though I love the MDT integration features, I personally find it easier to do this from a run command line step during the WinPE part of my TS. First Thing you need to do is create a Package containing the Language pack files.. The different language packs should be placed in folders corresponding to the actual language code, like this for Danish and Swedish. Once the package is created (and placed on a DP), its time to add a couple of lines to the OS deployment [...]

By |2011-09-21T09:34:35+01:00september 21st, 2011|OS Deployment|8 Comments

Reuse old PC name during Standalone OSD

In the situation where you want to reinstall a PC using a Standalone media, you will have to incorporate some way of naming the PC, or it will pick up a random name like MININT-XXXXX. In a reinstallation scenario however, the PC will already have a Name assigned, and this name can quiet easily be picked up from the computers registry hive files. To do this just run this .vbs script, before formatting the disk. It will pick up the name and assign it to the OSDComputerName variable, which will automatically be added to the Unattend.xml (or sysprep.inf if XP) [...]

By |2011-09-06T13:01:15+01:00september 6th, 2011|General info, OS Deployment|10 Comments

Enable LENOVO TPM Security Chip (and other stuff) from a TS

  I have some customers who run strictly Lenovo Computers (laptops and Desktops). On a lot of these computers the security Chip has been disabled or is in Inactive mode, thus not allowing the use of Bitlocker. I just finished messing around with activating the TPM Chip in the BIOS From a Task sequence on those LENOVO computers, and once all the minor obstacles were figured out, it turned out to be quiet easy. The first thing I wanted to do was to check if the TPM chis was already Active, and if not, Activate it. This is actually real [...]

By |2011-08-25T10:23:00+01:00august 25th, 2011|General info, OS Deployment|20 Comments

Finding the correct storage driver for Win XP using WMIC

I already wrote a post on how to find the correct driver, for a Intel 6 Series storage controller, which is sometimes named different in XP and 7.  https://blog.ctglobalservices.com/mip/cant-find-the-intelr-6-series-storage-driver/. In that particular case I picked up the correct driver name by installing Windows 7 on the PC, and looking trough device manager..  Today I was with a customer, where installing Windows7 was not an option, and they had two HP machines ( Elite 8200 and 6560b) booth failing upon entering the XP minisetup. Laying down the image using SCCM, was no problem, meaning WinPE was fine driver wise. Clearly the [...]

By |2011-08-18T14:39:00+01:00august 18th, 2011|Hardware & Drivers, OS Deployment|3 Comments