userspace:windows_7_create_localadmin
This tutorial shows you how to create automaticaly
- Extract the opsi-win7 package in OPSI-Workbench
- CD into the OPSI folder an change the control file
- Add a Product Property for the LocalPassword (You can also user a hostparameter instead of product property, then you don't need to create a “new” OPSI package )
[ProductProperty] type: unicode name: localpw multivalue: False editable: True description: LocalAdmin Passwort values: ["DefaultPass"] default: ["DefaultPass"]
- go back into the source directory of your Opsi-Package and use opsi-makeproductfile
- Install the modified opsi package with opsi-package-manager -i
- Change into \opst\pcbin\install\win7\custom\ dir
- Modify the unattend.xml if there are no unattend.xml, copy the unattended.xml.template form the opsi directory into the custom directory (and rename to unattend.xml)
- Use the LocalAccounts section (Line 288)
<!-- <LocalAccount wcm:action="add"> <Password> <PlainText>true</PlainText> <Value>#@localpw*#</Value> </Password> <Description>BESCHREIBUNG</Description> <Group>Administratoren</Group> <Name>USERNAME</Name> <DisplayName>DISPLAYNAME</DisplayName> </LocalAccount> -->
- Remove the <!– and –>
- Add your User information (username, Description …..)
- For adding password via OpsiConfiguration Interface add the Productproperty localpw into the password sektion like this: #@localpw*# . localpw is the name of the Productproperty you have created in the control file, patcha will patch the XML file with your own values. You can also use a hostparameter instead of product property.
userspace/windows_7_create_localadmin.txt · Last modified: by 127.0.0.1
