-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from PlagueHO/Issue-101
Convert xComputer to HQRM and move strings to Localization File - Fixes #101
- Loading branch information
Showing
9 changed files
with
800 additions
and
221 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[ClassVersion("1.0.1.0"), FriendlyName("xComputer")] | ||
class MSFT_xComputer : OMI_BaseResource | ||
{ | ||
[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; | ||
[Read, Description("A read-only property that specifies the organizational unit that the computer account is currently in")] String CurrentOU; | ||
[Write, EmbeddedInstance("MSFT_Credential"), Description("Credential to be used to join or leave domain")] String Credential; | ||
[Write, EmbeddedInstance("MSFT_Credential"), Description("Credential to be used to join or leave domain")] 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; | ||
[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
18
DSCResources/MSFT_xComputer/en-US/MSFT_xComputer.strings.psd1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
'@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.