Skip to content

Commit

Permalink
Merge pull request #105 from PowerShell/dev
Browse files Browse the repository at this point in the history
Release of version 3.0.0.0 of xComputerManagement
  • Loading branch information
kwirkykat authored Oct 5, 2017
2 parents 0c894a0 + d382be3 commit a326994
Show file tree
Hide file tree
Showing 27 changed files with 4,508 additions and 1,596 deletions.
311 changes: 264 additions & 47 deletions DSCResources/MSFT_xComputer/MSFT_xComputer.psm1

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions DSCResources/MSFT_xComputer/MSFT_xComputer.schema.mof
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[ClassVersion("1.0.1.0"), FriendlyName("xComputer")]
class MSFT_xComputer : OMI_BaseResource
{
[key] string Name;
[write] string DomainName;
[write] string JoinOU;
[read] string CurrentOU;
[write,EmbeddedInstance("MSFT_Credential")] String Credential;
[write,EmbeddedInstance("MSFT_Credential")] String UnjoinCredential;
[write] string WorkGroupName;
[Key, Description("The desired computer name.")] String Name;
[Write, Description("The name of the domain to join.")] String DomainName;
[Write, Description("The distinguished name of the organizational unit that the computer account will be created in.")] String JoinOU;
[Write, Description("Credential to be used to join a domain."), EmbeddedInstance("MSFT_Credential")] String Credential;
[Write, Description("Credential to be used to leave a domain."), EmbeddedInstance("MSFT_Credential")] String UnjoinCredential;
[Write, Description("The name of the workgroup.")] String WorkGroupName;
[Write, Description("The value assigned here will be set as the local computer description.")] String Description;
[Read, Description("A read-only property that specifies the organizational unit that the computer account is currently in.")] String CurrentOU;
};
18 changes: 18 additions & 0 deletions DSCResources/MSFT_xComputer/en-US/MSFT_xComputer.strings.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ConvertFrom-StringData @'
GettingComputerStateMessage = Getting computer state for '{0}'.
SettingComputerStateMessage = Setting computer state for '{0}'.
SettingComputerDescriptionMessage = Setting computer description to '{0}'.
RenamedComputerMessage = Renamed computer to '{0}'.
RenamedComputerAndJoinedDomainMessage = Renamed computer to '{0}' and added to the domain '{1}'.
JoinedDomainMessage = Added computer to domain '{0}'.
RenamedComputerAndJoinedWorkgroupMessage = Renamed computer to '{0}' and addded to workgroup '{1}'.
JoinedWorkgroupMessage = Added computer to workgroup '{0}'.
CredentialsNotSpecifiedError = Must to specify credentials with domain.
TestingComputerStateMessage = Testing computer state for '{0}'.
CheckingComputerDescriptionMessage = Checking if computer description is '{0}'.
CheckingDomainMemberMessage = Checking if the machine is a member of domain '{0}'.
CheckingNotDomainMemberMessage = Checking if the machine is a not a member of a domain.
CheckingWorkgroupMemberMessage = Checking if the machine is a member of workgroup '{0}'.
DomainNameAndWorkgroupNameError = Only DomainName or WorkGroupName can be specified at once.
ComputerNotInDomainMessage = This machine is not a domain member.
'@
Loading

0 comments on commit a326994

Please sign in to comment.