Sysprep_SetRegisteredOwner
Sysprep_SetRegisteredOwner(sName)
Specifies the name of the registered owner.
Arguments
ARGUMENT | DESCRIPTION | TYPE |
---|---|---|
sName | The user name | String |
Return Type
Boolean, TRUE if function completed successfully.
Affected unattend sections
UNATTEND FILE | COMPONENT PATH / SECTION | SETTINGS PASS |
---|---|---|
Unattend.xml | Microsoft-Windows-Shell-Setup | Specialize |
Sysprep.inf | Userdata | N/A |
Remarks
Typpically used in the PreBootScript.wsf
Example
The following example adds "IT-Department" as user name and "AI Robotics" as organization name.
Private Function IncludeScript(sScriptFile) '... End Function 'Begin bStatus=True If bStatus Then bStatus=IncludeScript("customlib.cis") If bStatus Then bStatus=IncludeLibrary("Capalib.cin") If bStatus Then bStatus=IncludeLibrary("Osdlib.cin") If bStatus Then bStatus=Job_Start("WS","Script Name","1.0","ScriptName.log","INSTALL") If bStatus Then bStatus=OSD_Initialize() If bStatus Then bStatus=Sysprep_SetOrganizationName("AI Robotics") If bStatus Then bStatus=Sysprep_SetRegisteredOwner("IT-Department") Job_End(bStatus) 'End main