< Back

Get-DSCConfigurationFromWindowsFeature

Mon Jan 13, 2020 8:13 pm

NAME Get-DSCConfigurationFromWindowsFeature



SYNOPSIS

This function converts information of the windows features of the local system to the DSC WindowsFeature Resource

format.





SYNTAX

Get-DSCConfigurationFromWindowsFeature [-ExportPath] <Object> [-IncludeAllSubFeature] [-LogPath <String>]

[-Credential <PSCredential>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-ExportPath <Object>

Path to the file where the converted data will be stored. The data will be appended to the file if the file

already exists



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IncludeAllSubFeature [<SwitchParameter>]

Adds 'IncludeAllSubFeature = $True' for each value in the output. From Technet: Set this property to $true to

ensure the state of all required subfeatures with the state of the feature you specify with the Name property



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-LogPath <String>

Indicates the path to a directory where you want the resource provider to log the operation. Each feature gets

an own log file.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

Indicates the credentials to use to add or remove the role or feature



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

This function does not allow any input





OUTPUTS

This function exports data to a file. No output on the console.





NOTES





Source: https://github.com/DominikBritz





RELATED LINKS