MDT 2010 – Driver injection and application installation depending on PC model

After a year or so of using MDT as OS deployment a problem appear, namely drivers.  Actually, only thing I had to update / change with time once MDT has been configured are drivers. I organized my driver management into two directories “XP” and “Win7″ and trough selection profiles I did the actual “filter”per OS sequence. This is good while you stay on single PC hardware vendor. Usually programs and drivers from single PC hardware vendor (Dell, HP…) will be compatible to each other. Unfortunately this is sometime hard to do. We recently switched from HP as sole vendor to mixed environment with Dell an HP while Dell being primary. This produced a problem inside driver organization as similar drivers are mixed, for instance Dell’s touch-pad driver is similar to HP’s. This resulted in two synaptic drivers killing each other once OS is deployed.

To solve this obviously I had to do some selection that is based on a PC model. Like described in  this great article written by Johan Arwidmark, Scenario 3 would be great for me as I was on Scenario 2 right now. Problem was I didn’t want to lose my time recreating all machines from the scratch. I had to make new Scenario which is combination of Scenario 2 and 3 with old systems staying on Scenario 2. One way to proceed could be creating new OS task sequence that will follow strictly Scenario 3 while old sequence staying on “old” selection profiles. Solution would work but new sequence part I didn’t like so much. What I did is created new driver tree called NeWin7 that was separated from old Win7 dir. All drivers that are needed per model now needs to be in model directory. I used drivermax to backup all OEM preinstalled drivers and to import them into MDT. Drivermax is free tool and really works like you would expect it to work.

MDT 2010 driver tree

MDT 2010 driver tree

Before proceeding, this driver tree and its model sub-tree has to be exact model name as WMI sees it. To find out model and exact vendor name use cmd commands “WMIC CSProduct Get Name” to get the model and “WMIC CSProduct Get Vendor” to get the vendor. Now,  to tell MDT to use new tree only on some models I used “CustomSettings.ini” located in Control directory in deplymentshare. I had to add byModel in priority section and construct model subsections. Drivergroup feature is the one that will point MDT to new driver folder in MDT directory structure. To make thing simpler Drivergroup is the same for all new models as %Model% is replaced with exact model name during script execution and matched to Driver directory in MDT. DriverSelectionProfile is important and it’s value corresponds to “Nothing” selection profile that is by default configured in MDT. Without this MDT will use new driver tree specified with DriverGroup but it will also use driver selection profile that is configured in OS sequence. In my case this selection profile is set to “old” Win7 driver tree for compatibility with already prepared OS systems. As old models will not be configured with DriverGroup in customsettings.ini they will continue to use “old” driver selection system.

OS sequence selection profile

At the end, to install model specific application use feature MandatoryApplications inside model subsection. GUID of the application can be found in MDT. I used export to export all GUID’s and c/p them to CustomSettings.ini. So, for first application use MandatoryApplications001 for second MandatoryApplications002 and so on.

MDT 2010 application GUID

Final CustomSettings.ini :

[Settings]
Priority=Default,ByModel
Properties=MyCustomProperty

[Default]
OSInstall=Y
SkipAppsOnUpgrade=YES
SkipCapture=YES
SkipAdminPassword=YES
SkipProductKey=YES
SkipApplications=NO
SkipTimeZone=YES
TimeZoneName=Central European Standard Time
SkipLocaleSelection=YES
KeyboardLocale=en-US
UserLocale=en-US
UILanguage=en-US

[ByModel]
Subsection=Model-%Model%

[Model-Latitude E6220]
DriverSelectionProfile=Nothing
DriverGroup001=NeWin7\%Model%
BitsPerPel=32
VRefresh=60
XResolution=1366
YResolution=768

[Model-Latitude E5410]
MandatoryApplications001={c8dd508f-aa9d-4555-986b-8ed7eb8fd585}

[Model-Latitude E5420]
DriverSelectionProfile=Nothing
DriverGroup001=NeWin7\%Model%
BitsPerPel=32
VRefresh=60
XResolution=1366
YResolution=768


Posted in MDT deployment, Windows 7 | Tagged , , | 2 Comments

Preparing Windows XP SP3 deployment using MDT 2010

We are using MDT 2010 for a few months now to deploy Win 7 machines, no special story there. It works like it actually should, flawless. I’m still surprised how good this system is for Win 7 deployment. Anyhow, we decided to move even Windows XP machines from old deployment to MDT 2010. Preparing referenced machine is easy part. We are using Oracle Virtualbox to prepare reference image. Snapshots are really neat feature to have and virtualbox is getting better every version. It is not a perfect hypervisor solution, VMware workstation is few steps above it, but nevertheless it is a good package.

Win7 VirtualBox

Once reference WinXP inside of Virtualbox is prepared first thing to have in mind is a mass storage drivers. After Windows XP is installed any changes to storage controller (apply image to a different PC) will result in Windows XP fail to boot. Reason for this is that OS is not able to access HDD as drivers for a new mass storage controller are not installed. To overcome this problem technet wrote one helpful article which you can read here: http://support.microsoft.com/kb/314082. What we had to do is copy .sys from here to %SystemRoot%\System32\Drivers folder. After that start this reg key and we should be able to apply system image to a different PC with new storage controller. At least in my case this solved the problem.

Next thing to have in mind is HAL. Default hal in virtualbox is Halacpi.dll (ACPI HAL). You could have problem with hal versions if you are switching from single to multicore CPU machines, or maybe from Non-ACPI to ACPI etc etc. More on HAL versions can be read here: http://support.microsoft.com/kb/309283. To overcome this issue Michael Petersen from coretech.dk created a script that will automatically detect and replace HAL.dll after image is applied to a new PC. I had a problem with a script and had to manually insert OS system drive which is in my case C:\. Like Michael said script should be added into MDT 2010 right after configure in the postinstall section of Windowsx XP SP3 task sequence. Of course script itself should be copied to DeploymentShare\Scripts directory. Here you can find final script that worked in my case.

MDT 2010 HAL script

After that we had to enable ForceHalDetection in unattended.txt from MDT 2010. I think it will work even without this but in our case we had problems with one specific PC configuration and by to look this is what solved our problem.

MDT 2010 unattend.txt

This is it, deployment should pass without error and last thing to do is gather all the drivers for unrecognized hardware devices.

Posted in MDT deployment, Windows XP | Tagged , | Leave a comment

Creating WinPE multi-boot

What I was trying to do is put two Microsoft Deployment Toolkit 2010 boot CD’s onto one multi-boot. For guys that are using Deployment toolkit you already know that MDT have WinPE x86 and WinPE x64 CD’s. They can easily fit on regular CD so no need to have two.

In the start you have two .wim files that should be on one CD. In MDT case in your “DeploymentShare\Boot” directory you already have those two WinPE images. So to combine those two wim’s follow this steps:

 

1.       WinPE CD:

-          Install Windows Automated Installation Kit to C:\WAIK
-          Once installed Start > Programs > Microsoft Windows AIK and choose the Deployment Tools Command Prompt entry
-          Type: “copype x86 c:\winpe”  <enter>

Prepare base WinPE

 

2.      Copy .wim files that you want to be part of multi-boot

-          Copy .wim files that will be part of multi-boot to C:\winpe\ISO\sources
-          This directory is empty in our case. So rename files from above step like this: x86 wim image to “boot.wim” and x64 wim image to “bootX64.wim”

 

3.      Edit boot info

-          Go to C:\winpe\ISO\boot
-          Type: “ bcdedit /store bcd /ENUM ” <enter>. You should see something like lower shoot. Take a note at boot.wim guid and write it down. We will call it orig-guid. Usually this value will be {7619dcc8-fafe-11d9-b411-000476eba25f}

Note the orig-guid

-          Type: bcdedit /store bcd /copy {default} /d “WinPEx64″ <enter>
-          In step before you should see guid of newly created boot entry, write this down too. We will call it newguid.

Note the newguid

-          Type: bcdedit /store bcd /set {newguid} DEVICE ramdisk=[boot]\sources\bootX64.wim,{orig-guid}
-          Type: bcdedit /store bcd /set {newguid} OSDEVICE ramdisk=[boot]\sources\bootX64.wim,{orig-guid}
-          Check steps above with “bcdedit /store bcd /ENUM

Final check of entries

Last step is optional and includes renaming of default boot to something more descriptive:
-          Type: bcdedit /store bcd /set {default} description “WinPEx32″

4.      Prepare multi-boot iso

-          Type: oscdimg -n -h -bc:\winpe\etfsboot.com c:\winpe\iso c:\winpe\winpe.iso <enter>

Your multi-boot WinPE should be created successfully in “c:\winpe\winpe.iso“. Burn it to CD and try it out.

 

 

Thanks to kukubau from mydigitallife forum.

Posted in MDT deployment, Windows 7, Windows applications | Tagged , , , | Leave a comment

Switching from ATA to AHCI (Windows error)

If you want to switch from ATA to AHCI mode you need to enable AHCI drivers before you go into a BIOS for actual change.  AHCI itself in newer standard that enables NCQ technology, hot swappable drives an some smaller things. Anyhow to enable AHCI drivers on already installed OS follow this Microsoft article or follow lower registry hack: http://support.microsoft.com/kb/922976

Enabling the AHCI driver in the registry before you change the SATA mode of the boot drive:

  1. Exit all Windows-based programs.
  2. Click Start, type regedit in the Start Search box, and then press ENTER.
  3. If you receive the User Account Control dialog box, click Continue.
  4. Locate and then click one of the following registry subkeys:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\IastorV
  5. In the right pane, right-click Start in the Name column, and then click Modify.
  6. In the Value data box, type 0, and then click OK.
  7. On the File menu, click Exit to close Registry Editor.
Posted in Windows 7 | Tagged , , | Leave a comment

Numerical citation style in Word 2010 with square brackets

I was trying to find some way to create numerical citation with square brackets in word 2010. Actually I died on the internet and found a way to change ISO960 numerical into a numerical square brackets style. Later on I found exactly what I was looking for inside of already prepared Citation style.

Finally, what you need to do is extract attached zip and copy xsl file to C:\Program Files\Microsoft Office\Office14\Bibliography\Style

After that select it from Citation drop-down menu and voila you have [1] [2] [3] [4] citation style.

Download: IEEE_Reference citation style

Posted in Microsoft Office, Windows applications | Tagged , , , | 5 Comments

Capture Windows7 image using WinPE 2.0

  • Preparing WinPE source:
  1. Install Windows Automated Installation Kit to C:\WAIK
  2. Once installed Start > Programs > Microsoft Windows AIK and choose the Deployment Tools Command Prompt  entry
  3. Depending on system arhitecture (x86, amd64, ia64) type:

copype x86 c:\winpe  <enter>

  • Step to add imagex:
  1. imagex /mountrw c:\winpe\winpe.wim 1 c:\winpe\mount  <enter> (Number 1 is index number of image inside of .wim)
  2. copy C:\WAIK\tools\x86\imagex.exe c:\winpe\mount\windows\system32
  3. copy the wimscript.ini file to c:\winpe\mount\windows\system32
  • Prepare ISO image:
  1. Unmount image:

imagex.exe /unmount /commit c:\winpe\mount   <enter>

  1. copy c:\winpe\winpe.wim c:\winpe\iso\sources\boot.wim /y   <enter>
  2. Create iso:

oscdimg -n -h -bc:\winpe\etfsboot.com c:\winpe\iso c:\winpe\winpe.iso  <enter>

  • Capture image
  1. Boot machine with already prepared and burned winpe.iso – WinPE 2.0 CD
  2. Use net use command to map network drive that will be used as destination on which .wim will be saved
  3. If network drive is mapped on h:\ while drive with OS is on D:\ type:

Imagex /capture /compress fast d: h:\win7.wim “Windows 7 WS x86 build image”

***Comments

Reboot command – wpeutil reboot
Shutdown command – wpeutil shutdown

Command to see all images inside a .wim file type: imagex /info c:\winpe\winpe.wim ()

Posted in MDT deployment, Windows 7 | Tagged , , | Leave a comment

Set time on 808 car key micro-camera

I bought mine from from buyincoins.com (Key Chain Spy Camera Camcorder). It cost around 10$ there. Anyway problem that I was facing is how to set the time on photos taken with it. In manual receive in the package there was mentioned some kind of CD with drivers. Of course no CD was inside of the package.

Original _manual

What was actually needed is:

  1. Download tag.txt from this site
  2. Edit the date and time inside tag.txt
  3. Copy it to the root of camera SD memory card
  4. Turn off and turn back on the camera

Notice inside of tag.txt there is one empty space after first and second line. This must be like that, don’t delete empty spaces.

Buttons on the camera

Posted in Electronics | Tagged , , | 11 Comments

Windows seven keyboard hotkey

Windows + Up Arrow – Maximize window

Windows + Left Arrow – Snap window to left side covering half of desktop space. Continue pressing the keyboard shortcut will rotate the window between snap to left, snap to right and restore to normal position.

Windows + Right Arrow – Snap window to right side covering half of desktop space. Continue pressing the keyboard shortcut will rotate the window between snap to left, snap to right and restore to normal position.

Windows + Down Arrow – Minimize the window. Restore to normal size and position if the window is currently maximized.

Windows + Home – Clear all but the active window.

Windows + Space – All windows become transparent so you can see through to the desktop.

Windows + Shift + Left Arrow – Move the active window to the adjacent monitor on the left for dual or multiple monitors setup.

Windows + Shift + Right Arrow – Move the active window to the adjacent monitor on the right for dual or multiple monitors setup.

Windows + T – Show preview thumbnail of running applications in Windows Taskbar one by one without mouse over.

Windows + P – Adjust presentation options of the display on computer or projector.

Windows + + (Add) – Zoom in.

Windows + – (Minus or Dash) – Zoom out.

Shift + Click a Taskbar item: Open a new instance of that particular application.

Already used in Windows Vista:
Windows + D – Show desktop and restore desktop (minimize or restore all windows).
Windows + M – Minimize all windows.
Windows + U – Open Ease of Access Center.
Windows + F – Search window.
Windows + G – Bring all gadgets on top and foreground.
Windows + X – Run Windows Mobility Center.
Windows + R – Open ‘Run’ command.
Windows + E – Run Windows Explorer.
Windows + L – Lock the computer.
Windows + Pause [Break] – Open System Properties.
Windows + [number] – Activate and run the program pinned on Windows 7 Taskbar
Windows + Tab – Windows Aero Task Switcher
F1 – Help
F3 – Search

Posted in Windows 7 | Tagged , , | Leave a comment

Reporting a phising site

To report a phising site use lower links:

For phishing:
Google phising report page: http://www.google.com/safebrowsing/report_phish/
Antiphising group: http://www.antiphishing.org/
Phishtank: http://www.phishtank.com/

For malware site:
Stopbadware site: http://badwarebusters.org/community/submit

Posted in Web | Tagged , | Leave a comment

Sifre banaka u Hrvatskoj

Sifre banaka ili vodeci brojevi banaka odnosno racuna:

NAZIV BANKE VODECI BROJ BANKE
A STEDNA BANKA MALOG PODUZETNIŠTVA d.d. Zagreb 6717002
BANCO POPOLARE CROATIA d.d. Zagreb 4115008
BANKA BROD d.d. Slavonski Brod 4124003
BANKA KOVANICA d.d. Varazdin 4133006
BANKA SPLITSKO-DALMATINSKA d.d. Split 4109006
BKS BANK d.d. Rijeka 2488001
CENTAR BANKA d.d. Zagreb 2382001
CREDO BANKA d.d. Split 2491005
CROATIA BANKA d.d. Zagreb 2485003
ERSTE & STEIERMÄRKISCHE BANK d.d. Rijeka 2402006
HRVATSKA BANKA ZA OBNOVU I RAZVITAK Zagreb 2493003
HRVATSKA NARODNA BANKA 1001005
HRVATSKA POSTANSKA BANKA d.d. Zagreb 2390001
HYPO  ALPE-ADRIA-BANK  d.d. Zagreb 2500009
IMEX BANKA d.d. Split 2492008
ISTARSKA KREDITNA BANKA UMAG d.d. Umag 2380006
JADRANSKA BANKA d.d. Sibenik 2411006
KARLOVACKA BANKA d.d. Karlovac 2400008
KREDITNA BANKA ZAGREB d.d. Zagreb 2481000
MEDJIMURSKA BANKA d.d. Cakovec 2392007
NAVA BANKA d.d. Zagreb 2495009
OBRTNICKA STEDNA BANKA d.d. Zagreb 6716000
OTP BANKA HRVATSKA  d.d. Zadar 2407000
PARTNER BANKA d.d. Zagreb 2408002
PODRAVSKA BANKA d.d. Koprivnica 2386002
PRIMORSKA BANKA d.d. Rijeka 4132003
PRIVREDNA BANKA ZAGREB d.d. Zagreb 2340009
RAIFFEISENBANK AUSTRIA d.d. Zagreb 2484008
SAMOBORSKA BANKA d.d. Samobor 2403009
SLATINSKA BANKA d.d. Slatina 2412009
SOCIETE GENERALE- SPLITSKA BANKA d.d. Split 2330003
STEDBANKA d.d. Zagreb 2483005
VABA  d.d. BANKA Varazdin 2489004
VENETO BANKA d.d.. Zagreb 2381009
VOLKSBANK d.d. Zagreb 2503007
ZAGREBACKA BANKA d.d. Zagreb 2360000

Izvor: http://www.hnb.hr/platni-promet/vodeci-brojevi-depozitnih-institucija.htm

Posted in Uncategorized | Leave a comment