Skip to content

Commit d2ffdf2

Browse files
committed
Merge branch 'reference-doc-runcommandonset' of https://github.com/Gijsreyn/operation-methods into reference-doc-runcommandonset
2 parents 04512fa + c66b90e commit d2ffdf2

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

docs/reference/resources/Microsoft/DSC/PowerShell/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ set to `ClearCache`:
8686
$adapterScript = dsc resource list Microsoft.DSC/PowerShell |
8787
ConvertFrom-Json |
8888
Select-Object -ExpandProperty directory |
89-
Join-Path
89+
Join-Path -ChildPath 'psDscAdapter' -AdditionalChildPath 'powershell.resource.ps1'
9090
9191
& $adapterScript -Operation ClearCache
9292
```

docs/reference/resources/Microsoft/Windows/WindowsPowerShell/examples/manage-a-windows-service.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: >
3-
Examples showing how you can invoke the Microsoft.Windows/WindowsPowerShell with DSC to manage
3+
Examples showing how you can invoke the Microsoft.Windows/WindowsPowerShell with DSC to manage
44
a Windows service using the PSDesiredStateConfiguration module.
55
66
ms.date: 03/25/2025
@@ -54,7 +54,7 @@ When the resource configures the service, DSC returns the following result:
5454

5555
```yaml
5656
beforeState:
57-
Status: null /
57+
Status: null
5858
Description: This service spools print jobs and handles interaction with the printer. If you turn off this service, you won't be able to print or see your printers.
5959
DisplayName: Print Spooler
6060
ResourceId: null
@@ -109,7 +109,7 @@ dsc resource test --resource PSDesiredStateConfiguration/Service --input $instan
109109

110110
```yaml
111111
desiredState:
112-
Name: Spooler
112+
Name: Spooler
113113
StartupType: Manual
114114
actualState:
115115
InDesiredState: true
@@ -135,7 +135,7 @@ When the resource stops the service, DSC returns the following result:
135135

136136
```yaml
137137
beforeState:
138-
Status: null
138+
Status: null
139139
Description: This service spools print jobs and handles interaction with the printer. If you turn off this service, you won't be able to print or see your printers.
140140
DisplayName: Print Spooler
141141
ResourceId: null
@@ -192,7 +192,7 @@ dsc resource get --resource PSDesiredStateConfiguration/Service --input $instanc
192192

193193
```yaml
194194
actualState:
195-
Status: null
195+
Status: null
196196
Description: This service spools print jobs and handles interaction with the printer. If you turn off this service, you won't be able to print or see your printers.
197197
DisplayName: Print Spooler
198198
ResourceId: null

docs/reference/resources/Microsoft/Windows/WindowsPowerShell/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ set to `ClearCache`:
8383
$adapterScript = dsc resource list Microsoft.Windows/WindowsPowerShell |
8484
ConvertFrom-Json |
8585
Select-Object -ExpandProperty directory |
86-
Join-Path
86+
Join-Path -ChildPath 'psDscAdapter\powershell.resource.ps1'
8787
8888
& $adapterScript -Operation ClearCache
8989
```
@@ -131,7 +131,7 @@ To list the schema properties for a PowerShell DSC resource, you can run the fol
131131

132132
```powershell
133133
dsc resource list --adapter Microsoft.Windows/WindowsPowerShell <moduleName>/<resourceName> |
134-
ConvertFrom-Json |
134+
ConvertFrom-Json |
135135
Select-Object properties
136136
```
137137

@@ -141,7 +141,7 @@ You can also retrieve more information by directly reading it from the cache fil
141141
$cache = Get-Content -Path "$env:LOCALAPPDATA\dsc\WindowsPSAdapterCache.json" |
142142
ConvertFrom-Json
143143
144-
($cache.ResourceCache | Where-Object -Property type -EQ '<moduleName>/<resourceName>').DscResourceInfo.Properties
144+
($cache.ResourceCache | Where-Object -FilterScript { $_.type -eq '<moduleName>/<resourceName>' }).DscResourceInfo.Properties
145145
```
146146

147147
When defining a configuration document, the following properties are required.

dscecho/echo.dsc.resource.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
33
"type": "Microsoft.DSC.Debug/Echo",
44
"version": "1.0.0",
5+
"description": "Echo resource for testing and debugging purposes",
56
"get": {
67
"executable": "dscecho",
78
"args": [

sshdconfig/sshdconfig.dsc.resource.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.json",
3-
"type": "Microsoft.Windows.OpenSSH.SSHD/sshd_config",
3+
"type": "Microsoft.OpenSSH.SSHD/sshd_config",
44
"description": "Manage SSH Server Configuration",
55
"version": "0.1.0",
66
"export": {

0 commit comments

Comments
 (0)