-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
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
41 changes: 41 additions & 0 deletions
41
...apability/4-WindowsCapability_AddWindowsCapabilitywithLogLevelLogPathandSource_Config.ps1
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,41 @@ | ||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID 369d465e-244c-4789-90a6-6f3387e4c85a | ||
.AUTHOR DSC Community | ||
.COMPANYNAME DSC Community | ||
.COPYRIGHT Copyright the DSC Community contributors. All rights reserved. | ||
.TAGS DSCConfiguration | ||
.LICENSEURI https://github.com/dsccommunity/ComputerManagementDsc/blob/master/LICENSE | ||
.PROJECTURI https://github.com/dsccommunity/ComputerManagementDsc | ||
.ICONURI | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES First version. | ||
.PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core | ||
#> | ||
|
||
#Requires -module ComputerManagementDsc | ||
|
||
<# | ||
.DESCRIPTION | ||
Example script that adds the Windows Capability OpenSSH.Client~~~~0.0.1.0 | ||
and set the LogLevel to log Errors only and write the Logfile to Path C:\Temp. | ||
This also uses the Source path for the installation. | ||
#> | ||
Configuration WindowsCapability_AddWindowsCapabilitywithLogLevelLogPathandSource_Config | ||
{ | ||
Import-DSCResource -ModuleName ComputerManagementDsc | ||
|
||
Node localhost | ||
{ | ||
WindowsCapability OpenSSHClient | ||
{ | ||
Name = 'OpenSSH.Client~~~~0.0.1.0' | ||
Ensure = 'Present' | ||
LogLevel = 'Errors' | ||
LogPath = 'C:\Temp\Logfile.log' | ||
Source = 'F:\Source\FOD\LanguagesAndOptionalFeatures' | ||
} | ||
} | ||
} |
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