Windows 7 and iPhone tethering

It seems that iPhone and Windows 7 have problems with tethering over Bluetooth on Lenovo notebook.

When you try to connect your iPhone with notebook using Bluetooth you will receive driver error for “Bluetooth peripheral device”. Of course you can control everything on your iPhone but you couldn’t connect to internet using tethering.

I don’t know why is this happened but solution is simple.

You must go to Control Panel – Devices and Printers. Right click on your iPhone then Properties – Services

Uncheck option Wireless iAP

Click OK

Now right click on your iPhone again

Then Connect Using – Access Point

And now you are connected to internet using Bluetooth on your iPhone

SCCM Client won’t show device is server console

Usually when You install SCCM 2012 client after few minutes device appear in console view. But what if device wont show after couple restarts? (couple days)

I don’t know why this error occurred but, this is steps for resolving problem.

No Site Configured

At first, you must check connectivity to SCCM 2012 server. If connectivity is ok and you can reach server by its name do this.go to tab SITE

go to tab SITE

Site Configuration

Write number of assigned site and press Find Site

You will receive notification that Configuration Manager has successfully find site to manage this client

Site COnfigured

Check General tab again now it looks like this

Site showed up in Config client

Notify that you still don’t have “Client certificate” and “Connection Type”

But after few minutes everything is fine

After Few minutes

Your client is now visible in your SCCM console and you can manage it.

Installing Hyper-V 2008 R2 SP1 on IBM X346 with ADAPTEC SCSI u320 controller

It could be pretty tricky to install Hyper-V 2008 R2 SP1 on IBM x346 with Adaptec controller. If didn’t want to throw away my old server so I decided to install Hyper-V on it to create testing environment.

I do this with colleague of mine, and we faced with problem. Hyper-V wont install on IBM x346. Why? Server asked for driver….

I think that driver is so old that Hyper-V don’t have it in its drivers database, and You can’t install it using ServerGuide CD.

What were we do.

After spending hours trying to install Hyper-V on IBM x346 with Adaptec u320 SCSI controller, finally we have solution.

My colleague Luka Gros spend finds x64 driver for Adaptec SCSI controller. He found it on this link.

After downloading, you must extract this driver and burn it on CD

Steps what we are do after that is:

booting from Hyper-V 2008 R2 SP1 and starting installation

when asked for driver change CD to one with driver and click Browse

find driver on CD and click Next

change CD to installation CD again and finish your installation

Hyper-V is installed and running fine now



If You need to manipulate with physical HDD on your Hyper-V, MMC console will return error “RPC server unavailable”.

To avoid this run this command with elevated privileges:

netsh advfirewall firewall set rule group=”Remote Volume Management” new enable=yes

Thanks to Luka Gros

Managed Service Accounts in Active Directory

We all heard that one of many features in Windows server 2008 R2 is Managed Service Account.

Prerequisites for that is domain functionality raised to Windows Server 2008 R2

Most common mistake is that you will create managed service account using Active Directory Users And Computers snap-in. You will not.

Either if you are created account in Managed Service Accounts container it is still user account. To make it work you must give user rights “logon as a service” and “logon as a bat job”.

To create Managed Service Account you must use Power Shell. Creating service accounts is not so complicated. You can create it using simple script

New-ADServiceAccount –name (desired name of account).

Of course before you must “tell” powershell to use Active Directory module. Syntax for this is:

Import-module ActiveDirectory

And before that you must have installed feature:

Active Directory module for Power Shell


I’ve described this reversed with reason.

Most common is that you first load module to Power Shell and then start wit Your managed service accounts.

When you are created service account you need to install it on server where You want to use it. Syntax is:

install-ADServiceAccount –identity “(name of service account)”

To install account you must “run as administrator” Power Shell or you will receive error.


REMEMBER: You must have ONE managed service account per server. This is the big difference between managed service account and former virtual account.

Now you are ready to use managed service account with specific services





For more on this topic you can contact this link

Deploying Windows XP SP3 without GPO and WSUS

If You are managing wide infrastructure of your organization You could be unpleasantly surprise that Windows XP SP3 is not deployed to every Windows XP machine.

For some reason WSUS is not an option and GPO is upgraded to Windows Server 2008 R2 functionality. What You will do?

Using GPO is not an option because of too much configuration and lot of requested modification.

Using of logon script could be a point.

Requests is that you can deploy and install Windows XP SP3 without disturbing users.

At first we must create temporary user with administrative rights

After that we must download lsrunas tool. We will use it for passing the password. You can download it from here.

After that we will put Windows XP SP3 (WindowsXP-KB936929-SP3-x86-ENU) in network share accessible for domain users.

Check that every user can see it.

Create .bat script with following parameters

lsrunas.exe /user:tempadmin /password:password /domain:domain /command:xpsp3.cmd /runpath:

Create .cmd script with parameters:

net use x: /delete /y (where x is logical name of ntw share where SP3 is)

net use x: \\server\share ( reconnect share)


cd sp3 (where Sp3 is name of directory where .exe file is)

WindowsXP-KB936929-SP3-x86-ENU.exe /quiet /promptrestart

Job done.

You can use this switches:

[/help] [/quiet] [/passive] [/norestart] [/forcerestart] [/warnrestart] [/promptrestart] [/overwriteoem] [/nobackup] [/forceappsclose] [/integrate: ] [/d: ] [/log: ]
/help Displays this message
/quiet Quiet mode (no user interaction or display)
/passive Unattended mode (progress bar only)
/norestart Do not restart when installation is complete
/forcerestart Restart after installation
/warnrestart[: ] Warn and restart automatically if required (default timeout 30 seconds)
/promptrestart Prompt if restart is required
/overwriteoem Overwrite OEM files without prompting
/nobackup Do not backup files needed for uninstall
/forceappsclose Force other programs to close when the computer shuts down
/integrate: Integrate this software update into
/d: Back up files into
/log: Create log file at

Too much switch could kill you

If You want to implement Dot.NET framework 4.0 using SCCM 2012 you have whole workaround on MSDN site. But something can go wrong. Where is catch?

Here we go.

First of all you must create package in SCCM 2012. When you creating package for deployment, you will be prompted to create a program. During program creation You are asked for command line . Of course You want to install Dot.NET framework without user interference. So switches is needed.

When I Google it i find this syntax on MSDN site:

dotNetFx40_Full_x86_x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT

But installation ended up with error. Trying to troubleshoot is not giving any result.

So I just change syntax to:

dotNetFx40_Full_x86_x64.exe /q


and after that deployment ended successfully.

My conclusion is: Use just needed switches, Try not to COPY/PASTE from other solutions

Querying Computers in Active Directory

If you need to do some reports in active directory best tool for use is DSQUERY which is part of Remote Server Administrative Tools

First common query is how to list all computers spreaded in different Ous

And here it is:

dsquery computer

As dsquery shows first 100 results option for showing more is:

dsquery computer –limit 1000

This will show first 1000 computers in your active directory. If You have more than 1000 computers just change number.

If You need this for some reports You can put results in a text file and later on import it to excel

Syntax for this is:

dsquery computer –limit 1000 >computers.txt

If You need to know which computer is running which OS syntax will be:

dsquery * domainroot -filter "(&(objectCategory=computer)(operatingSystem=Windows XP*))"


dsquery * domainroot -filter "(&(objectCategory=computer)(operatingSystem=Windows Server*))"

For those who wants to know what service pack is on those OS:

dsquery * -scope subtree -attr "cn" "operatingSystem" "operatingSystemServicePack"  -filter "(&(objectclass=computer)(objectcategory=computer)(operatingSystem=Windows XP*))" -limit 100000

Last two syntax is announced on