Executing the Configuration Script
Scenarios
Use a script to automatically deploy the software required by an image.
Procedure
- On the ECS, open this PC and double-click the CD-ROM Drive (X).
- Double-click to access the Workspace_HDP_WindowsDesktop_Installer directory.
- Double-click the run_automation script to configure the ECS. In the displayed dialog box, click Yes.
After the execution, you can set your own administrator account and password. The ECS then automatically restarts. After the restart, you need to log in to the VM using the administrator account.
- After you log in to the ECS using the administrator account, the script automatically runs. Wait for the script execution result.
- After the task is executed, perform operations based on the execution result.
- If "SUCCESS" is displayed for all tasks, as shown in the following figure, all tasks are successfully executed. Press Enter to finish the task.
During the script execution, if the script freezes or no output is displayed for a long time, press Enter to continue.
Figure 1 Execution successful
- If some tasks fail to be executed, the task names are displayed in red and the execution result of the failed tasks is "FAILED".
Record the tasks that fail to be executed. Perform the corresponding configurations by referring to Table 1. For details, see Manually Configuring an ECS.
Table 1 Mapping between tasks and manual configuration Success/Failure Message (Example)
Manual Configuration
Activating the Administrator account for the VM
Activate the Administrator account for the VM.
Disabling Windows update
Disable Windows updates.
Enabling hibernation
Enable hibernation.
Disabling fast startup
Disable fast startup.
Deleting a system recovery partition
Delete the system recovery partition.
Configuring the SAN policy of the ECS
Configure the SAN policy for an ECS.
Enabling the group policy that allows the standard user group to shut down Windows
Enable the group policy that allows the standard user group to shut down Windows.
Enabling applications to access the microphone of the OS
Enable applications to access the microphone of the OS.
Disabling the firewall
Disable the firewall.
Deleting the Microsoft language package
Delete the Microsoft language package.
Changing the power plan to high performance
Change the power plan to high performance.
Disabling hybrid sleep
Disable hybrid sleep.
Creating a temporary local user admin
Create a temporary local user admin.
Installing VirtIO Drivers
Install VirtIO drivers.
Installing the 7-Zip
Install 7-Zip.
Installing the Visual Studio 2017 runtime library
Install the Visual Studio 2017 runtime library.
Installing the Cloudbase-Init software
Install Cloudbase-Init.
Installing WKSAppCenter
Install WKSAppCenter.
Installing WKSAppCenterAgent
Install WKSAppCenterAgent.
Installing HW-SysAgent
Install HW-SysAgent.
Installing HW-SysPrep
Install HW-SysPrep.
- If "SUCCESS" is displayed for all tasks, as shown in the following figure, all tasks are successfully executed. Press Enter to finish the task.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot