https://github.com/dsccommunity/filecontentdsc
DSC resources for setting the content of files. Configuration text files are the most common use case for this module.
https://github.com/dsccommunity/filecontentdsc
dsc-resources file-content ini-settings-file key-value-pair-file powershell-dsc replace-text
Last synced: about 1 month ago
JSON representation
DSC resources for setting the content of files. Configuration text files are the most common use case for this module.
- Host: GitHub
- URL: https://github.com/dsccommunity/filecontentdsc
- Owner: dsccommunity
- License: mit
- Created: 2016-11-26T06:25:05.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-27T07:31:16.000Z (7 months ago)
- Last Synced: 2025-03-24T00:16:41.942Z (about 2 months ago)
- Topics: dsc-resources, file-content, ini-settings-file, key-value-pair-file, powershell-dsc, replace-text
- Language: PowerShell
- Homepage: https://dsccommunity.org
- Size: 321 KB
- Stars: 16
- Watchers: 4
- Forks: 4
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# FileContentDsc
[](https://dev.azure.com/dsccommunity/FileContentDsc/_build/latest?definitionId=31&branchName=main)

[](https://dsccommunity.visualstudio.com/FileContentDsc/_test/analytics?definitionId=31&contextType=build)
[](https://www.powershellgallery.com/packages/FileContentDsc/)
[](https://www.powershellgallery.com/packages/FileContentDsc/)
[](https://codecov.io/gh/dsccommunity/FileContentDsc)## Code of Conduct
This project has adopted [this code of conduct](CODE_OF_CONDUCT.md).
## Releases
For each merge to the branch `main` a preview release will be
deployed to [PowerShell Gallery](https://www.powershellgallery.com/).
Periodically a release version tag will be pushed which will deploy a
full release to [PowerShell Gallery](https://www.powershellgallery.com/).## Contributing
Please check out common DSC Community [contributing guidelines](https://dsccommunity.org/guidelines/contributing).
## Change log
A full list of changes in each version can be found in the [change log](CHANGELOG.md).
## Resources
This resource module contains resources for setting the content of files.
Configuration text files are the most common use case for this module.The **FileContent** module contains the following resources:
- **IniSettingsFile**: Add, set or clear entries in Windows INI settings files.
- **KeyValuePairFile**: Add, remove or set key/value pairs in a text file containing
key/value pairs, and set file encoding.
- **ReplaceText**: Replaces strings matching a regular expression in a file,
and sets file encoding.## Documentation and Examples
For a full list of resources in FileContentDsc and examples on their use, check out
the [FileContentDsc wiki](https://github.com/dsccommunity/FileContentDsc/wiki).