MAK Key Aktivierung in der Tasksequence

28/01/2009 - 09:53 von Tom_BE | Report spam
Hallo zusammen

Ich habe ein Build and Capture Image erstellt mit der Basissoftware, Updates
etc. drin. Nun habe ich eine Tasksequence erstellt mit dem erstellten Image.
Alles funktioniert sehr gut. Ein Problem stellt sich mir nun noch. Wie und wo
kann ich den MAK Key integrieren und auch aktivieren mittels Tasksequence?
Die Command Line für den MAK Key müsste wohl so aussehen:
cscript.exe c:\windows\system32\slmgr.vbs -ipk <MAK Key>
gefolgt von:
cscript.exe c:\windows\system32\slmgr.vbs -ato
für die Aktivierung.
Nur sehe ich nicht ganz wo dies in der Tasksequence rein muss, wohl am
Schluss? Funktioniert die Aktivierung überhaupt wàhrend der Tasksequence?
Oder kann ich dies auch schon im Build and Capture integrieren?
Hat da schon jemand Erfahrungen gesammelt oder weis jemand Rat?

Danke für die geschàtzte Hilfe.
Gruss Tom

Unten die aktuelle Tasksequence:
******************************************************
<?xml version="1.0"?>
<SmsTaskSequencePackage
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<BootImageID>C0000001</BootImageID>
<Category />
<DependentProgram />
<Description />
<Duration>360</Duration>
<Name>VOS:1.4W</Name>
<ProgramFlags>152084496</ProgramFlags>
<SequenceData>
<sequence version="3.00">
<referenceList>
<reference package="C0000019" />
<reference package="C000006F" />
<reference package="C0000016" />
</referenceList>
<globalVarList>
<variable name="OSDEnableTCPIPFiltering"
property="EnableTCPIPFiltering">false</variable>
<variable name="OSDAdapterCount" property="NumAdapters">0</variable>
</globalVarList>
<group name="Install Operating System" description="Actions to run in
Windows PE to install and configure the image">
<step type="SMS_TaskSequence_PartitionDiskAction" name="Partition
Disk 0" description="Actions to partition and format the new machine"
runIn="WinPE" successCodeList="0">
<condition>
<expression type="SMS_TaskSequence_VariableConditionExpression">
<variable name="Operator">notExists</variable>
<variable name="Variable">_SMSTSClientCache</variable>
</expression>
</condition>
<action>osddiskpart.exe</action>
<defaultVarList>
<variable name="OSDDiskIndex" property="DiskIndex">0</variable>
<variable name="OSDDiskType" property="DiskType">Basic</variable>
<variable name="OSDDiskpartBiosCompatibilityMode"
property="DiskpartBiosCompatibilityMode">false</variable>
<variable name="OSDGPTBootDisk"
property="GPTBootDisk">false</variable>
<variable name="OSDPartitionStyle"
property="PartitionStyle">MBR</variable>
<variable name="OSDPartitions" property="Partitions"
hidden="true">1</variable>
<variable name="OSDPartitions0Bootable"
property="Partitions0Bootable">true</variable>
<variable name="OSDPartitions0FileSystem"
property="Partitions0FileSystem">NTFS</variable>
<variable name="OSDPartitions0QuickFormat"
property="Partitions0QuickFormat">true</variable>
<variable name="OSDPartitions0Size"
property="Partitions0Size">100</variable>
<variable name="OSDPartitions0SizeUnits"
property="Partitions0SizeUnits">PERCENT</variable>
<variable name="OSDPartitions0Type"
property="Partitions0Type">PRIMARY</variable>
<variable name="OSDPartitions0VolumeLetterVariable"
property="Partitions0VolumeLetterVariable">
</variable>
<variable name="OSDPartitions0VolumeName"
property="Partitions0VolumeName">XXXX</variable>
</defaultVarList>
</step>
<step type="SMS_TaskSequence_ApplyOperatingSystemAction" name="Apply
Operating System" description="Actions to apply operating system"
runIn="WinPE" successCodeList="0">
<action>OSDApplyOS.exe /image:C000006F,%OSDImageIndex%
"/config:C0000019,%OSDConfigFileName%"</action>
<defaultVarList>
<variable name="OSDConfigFileName"
property="ConfigFileName">unattend.xml</variable>
<variable name="ConfigFilePackage" property="ConfigFilePackage"
hidden="true">C0000019</variable>
<variable name="OSDImageIndex" property="ImageIndex">1</variable>
<variable name="ImagePackageID" property="ImagePackageID"
hidden="true">C000006F</variable>
</defaultVarList>
</step>
<step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply
Windows Settings" description="Actions to apply windows settings"
runIn="WinPE" successCodeList="0">
<action>osdwinsettings.exe /config</action>
<defaultVarList>
<variable name="OSDLocalAdminPassword" property="AdminPassword">
</variable>
<variable name="OSDComputerName"
property="ComputerName">%_SMSTSMachineName%</variable>
<variable name="OSDProductKey" property="ProductKey">
</variable>
<variable name="OSDRandomAdminPassword"
property="RandomAdminPassword">false</variable>
<variable name="OSDRegisteredOrgName"
property="RegisteredOrgName">XXXX</variable>
<variable name="OSDRegisteredUserName"
property="RegisteredUserName">XXXX</variable>
<variable name="OSDServerLicenseConnectionLimit"
property="ServerLicenseConnectionLimit">5</variable>
<variable name="OSDTimeZone" property="TimeZone">W. Europe
Standard Time</variable>
</defaultVarList>
</step>
<step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply
Network Settings" description="Actions to configure network settings"
runIn="WinPEandFullOS" successCodeList="0">
<action>osdnetsettings.exe configure</action>
<defaultVarList>
<variable name="OSDDomainName"
property="DomainName">XXXX</variable>
<variable name="OSDDomainOUName"
property="DomainOUName">LDAP://OU=XXXX,OU=XXXX,DC=XXXX,DC=XXXX,DC=XXXX,DC=XXXX</variable>
<variable name="OSDJoinPassword" property="DomainPassword">
</variable>
<variable name="OSDJoinAccount"
property="DomainUsername">XXXX</variable>
<variable name="OSDEnableTCPIPFiltering"
property="EnableTCPIPFiltering" hidden="true">false</variable>
<variable name="OSDNetworkJoinType"
property="NetworkJoinType">0</variable>
<variable name="OSDAdapterCount" property="NumAdapters"
hidden="true">0</variable>
</defaultVarList>
</step>
</group>
<group name="Setup Operating System" description="Setup Operating
System">
<step type="SMS_TaskSequence_SetupWindowsAndSMSAction" name="Setup
windows and ConfigMgr" description="Actions to setup windows and ConfigMgr
client" runIn="WinPEandFullOS" successCodeList="0">
<action>OSDSetupWindows.exe</action>
<defaultVarList>
<variable name="SMSClientInstallProperties"
property="ClientInstallProperties">SMSCACHESIZE000</variable>
<variable name="_SMSClientPackageID"
property="ClientPackageID">C0000016</variable>
</defaultVarList>
</step>
</group>
<group name="Install Updates" description="">
<step type="SMS_TaskSequence_InstallUpdateAction" name="Install
Updates" description="" continueOnError="true" runIn="FullOS"
successCodeList="0">
<condition>
<expression type="SMS_TaskSequence_VariableConditionExpression">
<variable name="Operator">notEquals</variable>
<variable name="Value">FullMedia</variable>
<variable name="Variable">_SMSTSMediaType</variable>
</expression>
</condition>
<action>TSInstallSWUpdate.exe
/target:%SMSInstallUpdateTarget%</action>
<defaultVarList>
<variable name="SMSInstallUpdateTarget"
property="Target">All</variable>
</defaultVarList>
</step>
</group>
<group name="Clear all Events" description="">
<step type="SMS_TaskSequence_RunCommandLineAction" name="Clear
EventViewer" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
<action>smsswd.exe /run: wevtutil.exe clear-log Application &
wevtutil.exe clear-log Security & wevtutil.exe clear-log System</action>
<defaultVarList>
<variable name="CommandLine" property="CommandLine"
hidden="true">wevtutil.exe clear-log Application & wevtutil.exe clear-log
Security & wevtutil.exe clear-log System</variable>
<variable name="SMSTSDisableWow64Redirection"
property="DisableWow64Redirection">false</variable>
<variable name="_SMSTSRunCommandLineAsUser"
property="RunAsUser">false</variable>
<variable name="SuccessCodes" property="SuccessCodes"
hidden="true">0 3010</variable>
</defaultVarList>
</step>
</group>
</sequence>
</SequenceData>
<SourceDate>2008-12-29T14:32:30</SourceDate>
<SupportedOperatingSystems />
<IconSize>0</IconSize>
</SmsTaskSequencePackage>
******************************************************
 

Lesen sie die antworten

#1 Torsten [MVP]
28/01/2009 - 10:25 | Warnen spam
Hallo Tom,

das Thema gab's hier schon:
http://groups.google.de/group/micro...1c3b3a37a8

Gruß,
Torsten

"Tom_BE" wrote:

Hallo zusammen

Ich habe ein Build and Capture Image erstellt mit der Basissoftware, Updates
etc. drin. Nun habe ich eine Tasksequence erstellt mit dem erstellten Image.
Alles funktioniert sehr gut. Ein Problem stellt sich mir nun noch. Wie und wo
kann ich den MAK Key integrieren und auch aktivieren mittels Tasksequence?
Die Command Line für den MAK Key müsste wohl so aussehen:
cscript.exe c:\windows\system32\slmgr.vbs -ipk <MAK Key>
gefolgt von:
cscript.exe c:\windows\system32\slmgr.vbs -ato
für die Aktivierung.
Nur sehe ich nicht ganz wo dies in der Tasksequence rein muss, wohl am
Schluss? Funktioniert die Aktivierung überhaupt wàhrend der Tasksequence?
Oder kann ich dies auch schon im Build and Capture integrieren?
Hat da schon jemand Erfahrungen gesammelt oder weis jemand Rat?

Danke für die geschàtzte Hilfe.
Gruss Tom

Unten die aktuelle Tasksequence:
******************************************************
<?xml version="1.0"?>
<SmsTaskSequencePackage
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<BootImageID>C0000001</BootImageID>
<Category />
<DependentProgram />
<Description />
<Duration>360</Duration>
<Name>VOS:1.4W</Name>
<ProgramFlags>152084496</ProgramFlags>
<SequenceData>
<sequence version="3.00">
<referenceList>
<reference package="C0000019" />
<reference package="C000006F" />
<reference package="C0000016" />
</referenceList>
<globalVarList>
<variable name="OSDEnableTCPIPFiltering"
property="EnableTCPIPFiltering">false</variable>
<variable name="OSDAdapterCount" property="NumAdapters">0</variable>
</globalVarList>
<group name="Install Operating System" description="Actions to run in
Windows PE to install and configure the image">
<step type="SMS_TaskSequence_PartitionDiskAction" name="Partition
Disk 0" description="Actions to partition and format the new machine"
runIn="WinPE" successCodeList="0">
<condition>
<expression type="SMS_TaskSequence_VariableConditionExpression">
<variable name="Operator">notExists</variable>
<variable name="Variable">_SMSTSClientCache</variable>
</expression>
</condition>
<action>osddiskpart.exe</action>
<defaultVarList>
<variable name="OSDDiskIndex" property="DiskIndex">0</variable>
<variable name="OSDDiskType" property="DiskType">Basic</variable>
<variable name="OSDDiskpartBiosCompatibilityMode"
property="DiskpartBiosCompatibilityMode">false</variable>
<variable name="OSDGPTBootDisk"
property="GPTBootDisk">false</variable>
<variable name="OSDPartitionStyle"
property="PartitionStyle">MBR</variable>
<variable name="OSDPartitions" property="Partitions"
hidden="true">1</variable>
<variable name="OSDPartitions0Bootable"
property="Partitions0Bootable">true</variable>
<variable name="OSDPartitions0FileSystem"
property="Partitions0FileSystem">NTFS</variable>
<variable name="OSDPartitions0QuickFormat"
property="Partitions0QuickFormat">true</variable>
<variable name="OSDPartitions0Size"
property="Partitions0Size">100</variable>
<variable name="OSDPartitions0SizeUnits"
property="Partitions0SizeUnits">PERCENT</variable>
<variable name="OSDPartitions0Type"
property="Partitions0Type">PRIMARY</variable>
<variable name="OSDPartitions0VolumeLetterVariable"
property="Partitions0VolumeLetterVariable">
</variable>
<variable name="OSDPartitions0VolumeName"
property="Partitions0VolumeName">XXXX</variable>
</defaultVarList>
</step>
<step type="SMS_TaskSequence_ApplyOperatingSystemAction" name="Apply
Operating System" description="Actions to apply operating system"
runIn="WinPE" successCodeList="0">
<action>OSDApplyOS.exe /image:C000006F,%OSDImageIndex%
"/config:C0000019,%OSDConfigFileName%"</action>
<defaultVarList>
<variable name="OSDConfigFileName"
property="ConfigFileName">unattend.xml</variable>
<variable name="ConfigFilePackage" property="ConfigFilePackage"
hidden="true">C0000019</variable>
<variable name="OSDImageIndex" property="ImageIndex">1</variable>
<variable name="ImagePackageID" property="ImagePackageID"
hidden="true">C000006F</variable>
</defaultVarList>
</step>
<step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply
Windows Settings" description="Actions to apply windows settings"
runIn="WinPE" successCodeList="0">
<action>osdwinsettings.exe /config</action>
<defaultVarList>
<variable name="OSDLocalAdminPassword" property="AdminPassword">
</variable>
<variable name="OSDComputerName"
property="ComputerName">%_SMSTSMachineName%</variable>
<variable name="OSDProductKey" property="ProductKey">
</variable>
<variable name="OSDRandomAdminPassword"
property="RandomAdminPassword">false</variable>
<variable name="OSDRegisteredOrgName"
property="RegisteredOrgName">XXXX</variable>
<variable name="OSDRegisteredUserName"
property="RegisteredUserName">XXXX</variable>
<variable name="OSDServerLicenseConnectionLimit"
property="ServerLicenseConnectionLimit">5</variable>
<variable name="OSDTimeZone" property="TimeZone">W. Europe
Standard Time</variable>
</defaultVarList>
</step>
<step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply
Network Settings" description="Actions to configure network settings"
runIn="WinPEandFullOS" successCodeList="0">
<action>osdnetsettings.exe configure</action>
<defaultVarList>
<variable name="OSDDomainName"
property="DomainName">XXXX</variable>
<variable name="OSDDomainOUName"
property="DomainOUName">LDAP://OU=XXXX,OU=XXXX,DC=XXXX,DC=XXXX,DC=XXXX,DC=XXXX</variable>
<variable name="OSDJoinPassword" property="DomainPassword">
</variable>
<variable name="OSDJoinAccount"
property="DomainUsername">XXXX</variable>
<variable name="OSDEnableTCPIPFiltering"
property="EnableTCPIPFiltering" hidden="true">false</variable>
<variable name="OSDNetworkJoinType"
property="NetworkJoinType">0</variable>
<variable name="OSDAdapterCount" property="NumAdapters"
hidden="true">0</variable>
</defaultVarList>
</step>
</group>
<group name="Setup Operating System" description="Setup Operating
System">
<step type="SMS_TaskSequence_SetupWindowsAndSMSAction" name="Setup
windows and ConfigMgr" description="Actions to setup windows and ConfigMgr
client" runIn="WinPEandFullOS" successCodeList="0">
<action>OSDSetupWindows.exe</action>
<defaultVarList>
<variable name="SMSClientInstallProperties"
property="ClientInstallProperties">SMSCACHESIZE000</variable>
<variable name="_SMSClientPackageID"
property="ClientPackageID">C0000016</variable>
</defaultVarList>
</step>
</group>
<group name="Install Updates" description="">
<step type="SMS_TaskSequence_InstallUpdateAction" name="Install
Updates" description="" continueOnError="true" runIn="FullOS"
successCodeList="0">
<condition>
<expression type="SMS_TaskSequence_VariableConditionExpression">
<variable name="Operator">notEquals</variable>
<variable name="Value">FullMedia</variable>
<variable name="Variable">_SMSTSMediaType</variable>
</expression>
</condition>
<action>TSInstallSWUpdate.exe
/target:%SMSInstallUpdateTarget%</action>
<defaultVarList>
<variable name="SMSInstallUpdateTarget"
property="Target">All</variable>
</defaultVarList>
</step>
</group>
<group name="Clear all Events" description="">
<step type="SMS_TaskSequence_RunCommandLineAction" name="Clear
EventViewer" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
<action>smsswd.exe /run: wevtutil.exe clear-log Application &
wevtutil.exe clear-log Security & wevtutil.exe clear-log System</action>
<defaultVarList>
<variable name="CommandLine" property="CommandLine"
hidden="true">wevtutil.exe clear-log Application & wevtutil.exe clear-log
Security & wevtutil.exe clear-log System</variable>
<variable name="SMSTSDisableWow64Redirection"
property="DisableWow64Redirection">false</variable>
<variable name="_SMSTSRunCommandLineAsUser"
property="RunAsUser">false</variable>
<variable name="SuccessCodes" property="SuccessCodes"
hidden="true">0 3010</variable>
</defaultVarList>
</step>
</group>
</sequence>
</SequenceData>
<SourceDate>2008-12-29T14:32:30</SourceDate>
<SupportedOperatingSystems />
<IconSize>0</IconSize>
</SmsTaskSequencePackage>
******************************************************

Ähnliche fragen