How to register a ZCM 10.3 Agent on Windows 7 64-bit Home Premium

To learn and test ZCM I'd like to run the ZCM agent on my Windows 7 64-bit Home Premium. If there is someone else who also want the same thing I will try to share some hints and tips....

During the registration of the Agent you receive a message like:
Code:
code: -21, message: Could not determine device type from <OS> tag: unsupported

Roel van Bueren have som good information at NGN - Windows 7 en ZENworks Configuration Management

It's Dutch and I'm not really good in Dutch so I used Google Translate.

1)
Edit the file ostargets.xml. You find it in /var/opt/novell/zenworks/cache/registration/ostargets.xml
I added this in the end of fhe xml file:

Code:
	 <ostarget>
		<name>windows7</name>
		<product_name>Windows 7</product_name>
		<version>6.1</version>
		<arch>x86_64</arch>
		<vendor>Microsoft</vendor>
		<pkgmgr>msi</pkgmgr>
		<primary_role>Workstation</primary_role>
		<detect>
		  <OSVersion substring="Windows 7 64 Home Premium (Build 7600)" />
		</detect>
	  </ostarget>

2)
Find out the Sybase DB password. Run the following command:
Code:
zman dgc
Now, enter an admin username and password for your ZCM environment. E.g:

Code:
Username:Administrator
Password:********

Database User Name  : zenadmin
Database Password   : Zw0#1670235ed52741d936a02335b

3)
Start the dbisql tool.
Code:
		/opt/novell/zenworks/share/sybase/bin32s/dbisql
Enter 'zenadmin' as User ID and enter your DB password in the 'Password' field.

Click the 'Database' tab and click on 'Find'. Select the ZCM Primay Server then click 'Ok'. Click 'Ok' to login.
Enter a SQL statement:
Code:
update zOSTarget set Detect='<OSVersion substring="Windows 7 64 Home Premium (Build 7600)" />' where Name='windows7" and ProductName='Windows 7'


4)
On the client computer, enter:
Code:
		zac cc
Then, to register the device again. Run:
Code:
zac reg https://<server ip address>


Regards

Marcus