Skip to content

Commit 6d5b06d

Browse files
committed
Updated Documentation and Example
1 parent e24caaf commit 6d5b06d

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<#
2+
.EXAMPLE
3+
This example will set the computer description
4+
#>
5+
Configuration Example
6+
{
7+
param
8+
(
9+
[Parameter()]
10+
[System.String[]]
11+
$NodeName = 'localhost'
12+
)
13+
14+
Import-DscResource -Module xComputerManagement
15+
16+
Node $NodeName
17+
{
18+
xComputer NewDescription
19+
{
20+
Name = 'localhost'
21+
Description = 'This is my computer.'
22+
}
23+
}
24+
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ xComputer resource has following properties:
5353
* Credential: Credential to be used to join or leave domain
5454
* CurrentOU: A read-only property that specifies the organizational unit that
5555
the computer account is currently in
56+
* Description: The local computer descrption
5657

5758
### xComputer Examples
5859

@@ -61,6 +62,7 @@ xComputer resource has following properties:
6162
* [Set the Name while staying on the Domain](/Examples/xComputer/3-RenameComputerInDomain.ps1)
6263
* [Set the Name while staying on the Workgroup](/Examples/xComputer/4-RenameComputerInWorkgroup.ps1)
6364
* [Switch from a Domain to a Workgroup](/Examples/xComputer/5-UnjoinDomainAndJoinWorkgroup.ps1)
65+
* [Set a Description for the Workstation](/Examples/xComputer/6-SetComputerDescriptionInWorkgroup.ps1)
6466

6567
## xOfflineDomainJoin
6668

@@ -202,6 +204,9 @@ xVirtualMemory has the following properties:
202204

203205
### Unreleased
204206

207+
* xComputer: Added parameter to set the local computer description along with documentation
208+
and unit tests for this change.
209+
205210
### 2.1.0.0
206211

207212
* xComputer: Changed comparison that validates if we are in the correct AD

0 commit comments

Comments
 (0)