Update module version to 1.0.1 and add new functions for exporting and deploying DSC configuration data

This commit is contained in:
Torsten Brendgen
2026-07-03 11:59:18 +02:00
parent fcbe61902f
commit fb9209456b
9 changed files with 491 additions and 8 deletions

View File

@@ -0,0 +1,21 @@
function Repair-ConfigurationDataPathEncoding {
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true)]
[AllowEmptyString()]
[string]
$Path
)
if($Path -notmatch "[ÃÂ]"){
return $Path
}
try {
$Bytes = [System.Text.Encoding]::GetEncoding(1252).GetBytes($Path)
return [System.Text.Encoding]::UTF8.GetString($Bytes)
}
catch {
return $Path
}
}