Skip to content

Commit 6131a28

Browse files
Merge pull request #911 from SteveL-MSFT/doc-fixes
Some doc fixes
2 parents 22f6ca8 + 9d7d92c commit 6131a28

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

0 commit comments

Comments
 (0)