Skip to content

Commit

Permalink
Merge pull request #235 from MicrosoftDocs/main
Browse files Browse the repository at this point in the history
1/2/2024 PM Publish
  • Loading branch information
Taojunshen authored Jan 2, 2024
2 parents 56bc454 + 237a0ef commit b4ecd0d
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ PowerShell, respectively).
```powershell
Configuration PackageTest
{
Import-DscResource -ModuleName 'PackageManagement'
PackageManagementSource SourceRepository
{
Ensure = "Present"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ DSC resource.
```powershell
Configuration PackageManagementSourceTest
{
Import-DscResource -ModuleName 'PackageManagement'
PackageManagementSource SourceRepository
{
Ensure = "Present"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ The source directory is a UNC path (`\\PullServer\DemoSource`) shared from the P
```powershell
Configuration FileResourceDemo
{
Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Node "localhost"
{
File DirectoryCopy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ product ID.
```powershell
Configuration PackageTest
{
Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Package PackageExample
{
Ensure = "Present" # You can also set Ensure to "Absent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ This example ensures that the registry value "TestValue" under a key named "Exam
```powershell
Configuration RegistryTest
{
Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Registry RegistryExample
{
Ensure = "Present" # You can also set Ensure to "Absent"
Expand All @@ -79,6 +81,8 @@ This example ensures that a key named "ExampleKey2" is present in the **HKEY\_LO
```powershell
Configuration RegistryTest
{
Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Registry RegistryExample
{
Ensure = "Present" # You can also set Ensure to "Absent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Service [string] #ResourceName
configuration ServiceTest
{
Import-DscResource -ModuleName PSDesiredStateConfiguration
Node localhost
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ The following configuration starts the "Windows Audio" and "Remote Desktop Servi
configuration ServiceSetTest
{
Import-DscResource -ModuleName PSDesiredStateConfiguration
Node localhost
{
ServiceSet ServiceSetExample
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ all subfeatures of each, are installed.
configuration FeatureSetTest
{
Import-DscResource -ModuleName PSDesiredStateConfiguration
Node localhost
{
Expand Down

0 comments on commit b4ecd0d

Please sign in to comment.