Skip to content

Commit a326994

Browse files
authored
Merge pull request #105 from PowerShell/dev
Release of version 3.0.0.0 of xComputerManagement
2 parents 0c894a0 + d382be3 commit a326994

27 files changed

+4508
-1596
lines changed

DSCResources/MSFT_xComputer/MSFT_xComputer.psm1

Lines changed: 264 additions & 47 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[ClassVersion("1.0.1.0"), FriendlyName("xComputer")]
22
class MSFT_xComputer : OMI_BaseResource
33
{
4-
[key] string Name;
5-
[write] string DomainName;
6-
[write] string JoinOU;
7-
[read] string CurrentOU;
8-
[write,EmbeddedInstance("MSFT_Credential")] String Credential;
9-
[write,EmbeddedInstance("MSFT_Credential")] String UnjoinCredential;
10-
[write] string WorkGroupName;
4+
[Key, Description("The desired computer name.")] String Name;
5+
[Write, Description("The name of the domain to join.")] String DomainName;
6+
[Write, Description("The distinguished name of the organizational unit that the computer account will be created in.")] String JoinOU;
7+
[Write, Description("Credential to be used to join a domain."), EmbeddedInstance("MSFT_Credential")] String Credential;
8+
[Write, Description("Credential to be used to leave a domain."), EmbeddedInstance("MSFT_Credential")] String UnjoinCredential;
9+
[Write, Description("The name of the workgroup.")] String WorkGroupName;
10+
[Write, Description("The value assigned here will be set as the local computer description.")] String Description;
11+
[Read, Description("A read-only property that specifies the organizational unit that the computer account is currently in.")] String CurrentOU;
1112
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ConvertFrom-StringData @'
2+
GettingComputerStateMessage = Getting computer state for '{0}'.
3+
SettingComputerStateMessage = Setting computer state for '{0}'.
4+
SettingComputerDescriptionMessage = Setting computer description to '{0}'.
5+
RenamedComputerMessage = Renamed computer to '{0}'.
6+
RenamedComputerAndJoinedDomainMessage = Renamed computer to '{0}' and added to the domain '{1}'.
7+
JoinedDomainMessage = Added computer to domain '{0}'.
8+
RenamedComputerAndJoinedWorkgroupMessage = Renamed computer to '{0}' and addded to workgroup '{1}'.
9+
JoinedWorkgroupMessage = Added computer to workgroup '{0}'.
10+
CredentialsNotSpecifiedError = Must to specify credentials with domain.
11+
TestingComputerStateMessage = Testing computer state for '{0}'.
12+
CheckingComputerDescriptionMessage = Checking if computer description is '{0}'.
13+
CheckingDomainMemberMessage = Checking if the machine is a member of domain '{0}'.
14+
CheckingNotDomainMemberMessage = Checking if the machine is a not a member of a domain.
15+
CheckingWorkgroupMemberMessage = Checking if the machine is a member of workgroup '{0}'.
16+
DomainNameAndWorkgroupNameError = Only DomainName or WorkGroupName can be specified at once.
17+
ComputerNotInDomainMessage = This machine is not a domain member.
18+
'@

0 commit comments

Comments
 (0)