Thursday, July 31, 2014

Task sequence has failed with error code 0x80004005, application install, SCCM 2012


This happens when you want to create pretty clear image so you select to join the computer at the workgroup.

If you build and capture without application and/or updates install then everything works fine

Based on this great explanation the reason why you get this error is that leaving computer in the workgroup there is no way you can communicate to the distribution point so you can not install applications.

To use configure manager beautiful futures you still need to join the PC into domain:

To keep the image clear from various settings you have to isolate all policy inheritance

Make sure the selected application is allowed to deploy via task sequence

As a good new we can still see that before capturing image the station has automatically joined back to workgroup :)

Celebrate!

Deploy Internet Explorer 11 with prerequisites, all in one restart

There are lot of Internet Explorer 11 prerequisites listed in
http://support.microsoft.com/kb/2847882

By default in windows 7 SP1 it has installed only two updates - KB2534111 and KB976902.

After few second one security update for windows (kb2621440) has applied and asks for restart.

Now i launch "IE11-Windows6.1-x86-en-us.exe".
After the install was successful i check again the update list and here is how it looks like:
It is pretty much all prerequisites just like in the link before.

Now i download all prerequisites plus internet explorer setup for offline use.

32-bit:
http://download.microsoft.com/download/3/2/7/32799493-B549-4205-9C85-ED1498272377/Windows6.1-KB2621440-x86.msu
http://download.microsoft.com/download/1/4/9/14936FE9-4D16-4019-A093-5E00182609EB/Windows6.1-KB2670838-x86.msu
http://download.microsoft.com/download/F/1/4/F1424AD7-F754-4B6E-B0DA-151C7CBAE859/Windows6.1-KB2834140-v2-x86.msu
http://download.microsoft.com/download/3/1/D/31DB4F4F-207D-416E-9A07-FBD9E431F9FB/Windows6.1-KB2639308-x86.msu
http://download.microsoft.com/download/2/D/7/2D78D0DD-2802-41F5-88D6-DC1D559F206D/Windows6.1-KB2533623-x86.msu
http://download.microsoft.com/download/A/0/B/A0BA0A59-1F11-4736-91C0-DFCB06224D99/Windows6.1-KB2731771-x86.msu
http://download.microsoft.com/download/B/6/B/B6BF1D9B-2568-406B-88E8-E4A218DEA90A/Windows6.1-KB2729094-v2-x86.msu
http://download.microsoft.com/download/4/8/1/481C640E-D3EE-4ADC-AA48-6D0ED2869D37/Windows6.1-KB2786081-x86.msu
http://download.microsoft.com/download/3/9/D/39D85CA8-7BF3-47C1-9031-FD6E51D8BBEB/Windows6.1-KB2888049-x86.msu
http://download.microsoft.com/download/7/C/E/7CE5D2A0-3A08-427E-9AA9-8A79E47B87B9/Windows6.1-KB2882822-x86.msu
http://download.microsoft.com/download/9/2/F/92FC119C-3BCD-476C-B425-038A39625558/IE11-Windows6.1-x86-en-us.exe
64-bit:
http://download.microsoft.com/download/A/5/4/A546D757-B715-4D9A-96DE-8E0943AA146A/Windows6.1-KB2621440-x64.msu
http://download.microsoft.com/download/1/4/9/14936FE9-4D16-4019-A093-5E00182609EB/Windows6.1-KB2670838-x64.msu
http://download.microsoft.com/download/5/A/5/5A548BFE-ADC5-414B-B6BD-E1EC27A8DD80/Windows6.1-KB2834140-v2-x64.msu
http://download.microsoft.com/download/9/1/C/91CC3B0D-F58B-4B36-941D-D810A8FF6805/Windows6.1-KB2639308-x64.msu
http://download.microsoft.com/download/F/1/0/F106E158-89A1-41E3-A9B5-32FEB2A99A0B/Windows6.1-KB2533623-x64.msu
http://download.microsoft.com/download/9/F/E/9FE868F6-A0E1-4F46-96E5-87D7B6573356/Windows6.1-KB2731771-x64.msu
http://download.microsoft.com/download/6/C/A/6CA15546-A46C-4333-B405-AB18785ABB66/Windows6.1-KB2729094-v2-x64.msu
http://download.microsoft.com/download/1/8/F/18F9AE2C-4A10-417A-8408-C205420C22C3/Windows6.1-KB2786081-x64.msu
http://download.microsoft.com/download/4/1/3/41321D2E-2D08-4699-A635-D9828AADB177/Windows6.1-KB2888049-x64.msu
http://download.microsoft.com/download/6/1/4/6141BFD5-40FD-4148-A3C9-E355338A9AC8/Windows6.1-KB2882822-x64.msu
http://download.microsoft.com/download/7/1/7/7179A150-F2D2-4502-9D70-4B59EA148EAA/IE11-Windows6.1-x64-en-us.exe
Main problem to deploy internet explorer silently is that some prerequisites requires to restart the machine before even can start the internet explorer installer with silent switch.
So the "IE11-Windows6.1-x64-en-us.exe" cannot be installed until restart.
To work around i use dism utility and method from here

And i create installation script
@echo off
setlocal EnableDelayedExpansion

"%~dp0sleep.exe" 12

reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName | find "Windows 7" > nul 2>&1
if not !errorlevel!==0 goto exit
echo This is Windows 7 operating system

reg query "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v Version | find " 9.11" > nul 2>&1
if !errorlevel!==0 goto exit

date /t
time /t

echo No Internet Explorer 11 detected, now installing it

if "%ProgramFiles(x86)%"=="" goto INSTALL_IE11_FOR_32_BIT_SYSTEM

:INSTALL_IE11_FOR_64_BIT_SYSTEM
echo Installing IE11 for 64-bit system
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2621440-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2670838-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2834140-v2-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2639308-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2533623-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2731771-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2729094-v2-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2786081-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2888049-x64.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2882822-x64.msu" /quiet /norestart
"%~dp0IE11-Windows6.1-x64-en-us.exe" /X:%systemdrive%\ie11temp
%systemroot%\system32\dism.exe /Online /Add-Package /PackagePath:%systemdrive%\ie11temp\IE-Win7.CAB /Quiet /NoRestart
rd %systemdrive%\ie11temp /Q /S
rem %systemroot%\system32\shutdown.exe -r -t 10
goto exit

:INSTALL_IE11_FOR_32_BIT_SYSTEM
echo Installing IE11 for 32-bit system
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2621440-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2670838-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2834140-v2-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2639308-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2533623-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2731771-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2729094-v2-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2786081-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2888049-x86.msu" /quiet /norestart
%systemroot%\system32\wusa.exe "%~dp0Windows6.1-KB2882822-x86.msu" /quiet /norestart
"%~dp0IE11-Windows6.1-x86-en-us.exe" /X:%systemdrive%\ie11temp
%systemroot%\system32\dism.exe /Online /Add-Package /PackagePath:%systemdrive%\ie11temp\IE-Win7.CAB /Quiet /NoRestart
rd %systemdrive%\ie11temp /Q /S
rem %systemroot%\system32\shutdown.exe -r -t 10

date /t
time /t

:exit
endlocal
This is tested for booth original windows 7 sp1 mediums without network connection:
64-bit: https://drive.google.com/file/d/0BxJgS33zZl9bZF9LWXJhakZaVGs/edit?usp=sharing
32-bit: https://drive.google.com/file/d/0BxJgS33zZl9baG9TQVNjeG9xYnc/edit?usp=sharing

Here is my ie11 offline iso file with booth 32-bit and 64-bit prerequisites included:
https://drive.google.com/open?id=0B_tum5OmQAlvSlNvNzlyOXkxYTQ

Note:
KB2621440 is not really related to internet explorer 11, but it is a first update necessary to windows 7 SP1.

Wednesday, July 30, 2014

Failed to Run Task Sequence 0x8007000E, SCCM 2012


I deploy my task sequences to "All Unknown Computers" collection.

Off topic:
I try to solve another problems by deploying applications and/or updates to this "All Unknown Computers" group.

On topic:
When you first time boot into task sequence list and select your favorite task and click next then the microsoft software configure manager connects to configuration manager server and starts to count all packages than it involved in your selected sequence.
Because i created some magic huge update package and deploy to this "All Unknown Computers" collection cause me and 0x8007000E error. Turns out that now hundreds of updates are assigned to "All Unknown Computers" group and when the task sequence manager ask for dependencies that it will get these hundreds of updates.

Also i cleaned up old update groups under "Software Update Groups"

Related:
http://social.technet.microsoft.com/Forums/systemcenter/en-US/53f84517-0f84-438b-bf07-c828c5f2109b/an-error-occurred-while-starting-the-task-sequence-0x8007000e?forum=configmgrosd

Deploy reference image to on C drive, SCCM

Select "Create Task Sequence"

Choose "Install an existing image package"

Browse for boot image

Select image index, un-check "Configure task sequence for use with BitLocker". Enter some temporary product key. Enter for local administrator password.

Join into domain

Leave default client package for install

I prefer to backup client data by myself so i unselect this future

Do not install any software updates

No additional applications

Summary

Edit settings

I prefer to remove system reserved partition:

Edit the last partition

Type a variable name system and make it bootable

Set Partition Diks 0 - UEFI section active

Go for Add -> General -> Set Task Sequence Variable

Set the name to OSDPreserveDriveLetter and set value to False

Go to Applty Operating System section and set
Destination to Logical drive letter stored in a variable. Write variable system

That is all. Now you are ready to deploy.

Monday, July 28, 2014

How not to do, third edition

Again i have new experience how not to do.
Read the first and second to absorb the all of experience.

This days experience is related to microsoft system center configuration manager.
So this calls how not to deploy operating system.

First i create a new operating system task sequence

Select "Build and capture a reference operating system image"

I select this task to be available to all systems

Since i have this magical boot media and the PXE boot is not working at all then i select to deploy this only on media:

Turns out that it has been still available on all existing configuration manager client and pops out right to the system tray. One men just click the pop up option and select "O! Yeah! I want this new system." Thanks to truecrypt which block the whole process just before the partition format. Only the Master of Boot Record was destroyed.

Sunday, July 27, 2014

Backup Wheezy Raspbian operating system with piCore

This is must have method how to backup you raspian operating system raspberry if the pi is your only computing device. As a part of this cloning method you are recommended to keep the default size of partition table like original. So you do not expand your raspbian!

You need wireless keyboard with mouse which works with only one USB receiver.
Logitech wireless keyboard MK220 is pretty nice choice:

You need at least 64Mb (not GB) SD card where the TinyCore will be placed.

One additional fat32 pre-formated USB drive. Of course ext2, ext3 and ext4 are supported.
If you choose larger than 32gb then you can forget to use fat32 file system.

And the last thing is wheezy raspbian operating system which has not been extended to all SD card.

Use Win32DiskImager to push piCore image to the small SD card

Now boot the piCore system.

1) open terminal
2) open mount tool
3) click sda1 to mount usb storage

4) swap you piCore SD card to raspbian card. The name of this procedure calls brutal hot swap :D

5) launch
sudo dd if=/dev/mmcblk0 of=/mnt/sda1/raspbian-2014-07-27.img bs=1M count=2825
power down the system
sudo poweroff

Friday, July 25, 2014

SCCM 2012 SP1 CU5 customized boot images

Install CU5 update
http://hotfixv4.microsoft.com/ConfigMgrV5/sp1/ConfigMgr_2012_SP1_CU5_KB2978017_ENU/05.00.7804.1600/free/477011_ENU_x64_zip.exe

To create custom boot image install windows assessment and deployment kit for windows 8.1
http://download.microsoft.com/download/6/A/E/6AEA92B0-A412-4622-983E-5B305D2EBE56/adk/adksetup.exe
Here is iso file for faster download:
https://googledrive.com/host/0B6XjkIrefxmZa2xrT0wwVS1VMXc

based on this post i run To create x86 boot.wim image open "Deployment and Imaging Tools Environment" in run as administrator mode and run
mkdir C:\Tmp\WinPE50_x86
copy "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\en-us\winpe.wim" C:\Tmp\WinPE50_x86\
mkdir c:\WinPEMount\x86
dism.exe /mount-wim /wimfile:C:\Tmp\WinPE50_x86\winpe.wim /index:1 /mountdir:c:\WinPEMount\x86
dism.exe /image:c:\WinPEMount\x86 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-Scripting.cab"
dism.exe /image:c:\WinPEMount\x86 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-WDS-Tools.cab"
dism.exe /image:c:\WinPEMount\x86 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-HTA.cab"
dism.exe /image:c:\WinPEMount\x86 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-MDAC.cab"
dism.exe /image:c:\WinPEMount\x86 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-NetFx.cab"
dism.exe /image:c:\WinPEMount\x86 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-WMI.cab"
dism.exe /unmount-wim /mountdir:c:\WinPEMount\x86 /commit
To create x64 boot.wim image open "Deployment and Imaging Tools Environment" in run as administrator mode and run
mkdir C:\Tmp\WinPE50_x64
copy "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\en-us\winpe.wim" C:\Tmp\WinPE50_x64\
mkdir c:\WinPEMount\x64
dism.exe /mount-wim /wimfile:C:\Tmp\WinPE50_x64\winpe.wim /index:1 /mountdir:c:\WinPEMount\x64
dism.exe /image:c:\WinPEMount\x64 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-Scripting.cab"
dism.exe /image:c:\WinPEMount\x64 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-WDS-Tools.cab"
dism.exe /image:c:\WinPEMount\x64 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-HTA.cab"
dism.exe /image:c:\WinPEMount\x64 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-MDAC.cab"
dism.exe /image:c:\WinPEMount\x64 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-NetFx.cab"
dism.exe /image:c:\WinPEMount\x64 /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-WMI.cab"
dism.exe /unmount-wim /mountdir:c:\WinPEMount\x64 /commit

Thursday, July 24, 2014

Connect bluetooth keyboard to Wheezy Raspbian


I have this Microsoft Wireless Entertainment Keyboard 7000 and want to connect it to Raspberry Pi. Here is the steps i do.

Let the bluetooth dongle be in usb port.

I use fresh 2014-06-20-wheezy-raspbian operating system. Push the image to SD card. Save this file in boot partition. This will let you log into your pi via ssh at first boot. No need for additional keyboard.

So now you log into your pi and here is what you do:

Update package repositories and upgrade system
sudo apt-get update && sudo apt-get upgrade -y
Install bluetooth apps
sudo apt-get install bluetooth bluez-utils blueman --no-install-recommends -y
Enable dbus
sudo update-rc.d -f dbus defaults
Restart system
sudo reboot
Check if the raspberry really think that some bluetooth kind of device is plugged into usb
lsusb
Now you can scan devices
hcitool scan
If nothing were found then you bluetooth device is too cool and/or bluetooth dongle is pretty uncool.

Otherwise if found something then celebrate

Now you must pair your keyboard with pin code. You can chose the pin by yourself. Lets take 1234
sudo bluetooth-agent --adapter hci0 1234 00:17:FA:5C:80:06
write just the same MAC address which where found by hcitool scan

After you enter pin code you have to also press enter as the accept key.

This happens if you miss type the wrong numbers. Actually nothing happens

If write correct pin then Agent has been released

Set the device trusted. After you execute this command nothing happens.
sudo bluez-test-device trusted 00:17:FA:5C:80:06 yes
Connect to bluetooth device. If the command executes more than 3 seconds it is a good sign.
sudo bluez-test-input connect 00:17:FA:5C:80:06
Celebrate! :)

When you reboot your pi usually it takes 5-7 seconds to establish again the connection to your device.
Do not panic. Just wait. Or change the batteries :D

These bluetooth devices i found working out of the box:
0a5c:2148 Broadcom Corp. BCM92046DG-CL1ROM Bluetooth 2.1 Adapter

These devices i found not working at all:
045e:009c Microsoft Corp. Wireless Transceiver for Bluetooth 2.0

I have two usb doungles which lists as same name:
0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
one device is working well but other not!

Wednesday, July 23, 2014

SyncDocs silent install with Google Drive credentials

SyncDocs is alternative to Google Drive application.
It still uses the same google account but is not a native google applicaiton.

To do this method download installer:
http://www.syncdocs.com/downloads/Syncdocs.msi

Install silently with
%systemroot%\system32\msiexec.exe /i Syncdocs.msi /qb-
Create directory where all the stuff will go in
md c:\gdrive
Silent sign in into account on windows 7 or later
%appdata%\..\Local\Programs\Syncdocs\Syncdocs.exe -user username@gmail.com -password s3cretpwd -syncfolder "C:\gdrive" -IacceptTerms
Since %appdata% is user environment variable this means that the application can be deployed only via use script.

Source:
http://www.syncdocs.com/automated-google-drive-installation-with-syncdocs/

The remote computer disconnected the session because of an error in the licensing protocol


With admin permissions go
Start -> All Programs -> Accessories

Right click on Command Prompt and select "Run as administrator"

Paste the command:
reg delete "HKLM\Software\Microsoft\MSLicensing" /f

Next FIRST TIME when you open Remote Desktop Connection YOU HAVE TO DO IT in "Run as administrator" mode too

Related:
http://technet.microsoft.com/en-us/library/cc756826(WS.10).aspx

Blog Archive