Skip to content

Commit ba4b3b6

Browse files
author
RoseHJM
committed
MDB - write image definition - tasks update.
1 parent 106ce45 commit ba4b3b6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/dev-box/how-to-write-image-definition-file.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ You can create and test image definition files by using VS Code. In addition to
101101

102102
### System Tasks and User Tasks
103103

104-
All tasks in the userTasks section run as the user after the user's first sign-in to the Dev Box. Tasks in the tasks section run as LocalSystem during the Dev Box provisioning stage. Both sections share the same parameters based on the task definitions in your catalog.
104+
You can use both System and User tasks in your image definition file. The tasks section of the image definition file is divided into two sections: tasks and userTasks. Both sections share the same parameters based on the task definitions in your catalog.
105+
106+
- **System tasks**: These tasks run as LocalSystem during the provisioning stage of the dev box. They are typically used for system-level configurations, such as installing software or configuring system settings that require administrative privileges.
105107

106-
### When should I use Run-as-user Tasks?
108+
- **User tasks**: These tasks run as the user after the user's first sign-in to the dev box. They are typically used for user-level configurations, such as installing user-specific applications or configuring user settings under user context. For example, users often prefer to install Python and Visual Studio Code under user context instead of system-wide. Put WinGet tasks in the userTasks section for better results when they don't work under tasks.
107109

108-
Use run-as-user tasks to install software and packages under user context. For example, users often prefer to install Python and Visual Studio Code under user context instead of system-wide. Put WinGet tasks in the userTasks section for better results when they don't work under tasks.
110+
Standard users configuring user customizations can only use user tasks, they cannot use system tasks.
109111

110112
## Optional: Customize your dev box by using existing Desired State Configuration files
111113
Desired State Configuration (DSC) is a management platform in PowerShell that enables you to manage your development environment with configuration as code. You can use DSC to define the desired state of your dev box, including software installations, configurations, and settings.

0 commit comments

Comments
 (0)