Skip to content

Commit 9fccb9d

Browse files
authored
Update 2-create-package.md
1 parent 62b2b6c commit 9fccb9d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

articles/governance/machine-configuration/how-to/develop-custom-package/2-create-package.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: How to create custom machine configuration package artifacts
33
description: Learn how to create a machine configuration package file.
4-
ms.date: 02/01/2024
4+
ms.date: 07/22/2025
55
ms.topic: how-to
66
ms.custom:
77
- build-2025
@@ -52,7 +52,9 @@ variable sets to `'This was set by machine configuration'`.
5252

5353
```powershell
5454
Install-Module -Name PSDscResources
55-
Import-Module -Name PSDscResources
55+
```
56+
57+
```powershell
5658
Configuration MyConfig {
5759
Import-DscResource -Name 'Environment' -ModuleName 'PSDscResources'
5860
Environment MachineConfigurationExample {
@@ -70,7 +72,9 @@ This example configuration is for Linux machines. It creates a file at the path
7072

7173
```powershell
7274
Install-Module -Name nxtools
73-
Import-Module -Name nxtools
75+
```
76+
77+
```powershell
7478
Configuration MyConfig {
7579
Import-DscResource -ModuleName 'nxtools'
7680
nxFile MyFile {
@@ -88,7 +92,7 @@ With that definition saved in the `MyConfig.ps1` script file, you can run the sc
8892
configuration.
8993

9094
```powershell
91-
& .\MyConfig.ps1
95+
. .\MyConfig.ps1
9296
```
9397

9498
```output

0 commit comments

Comments
 (0)