Private/OSB-Export.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function OSB-Export-WindowsImageContent {
    [CmdletBinding()]
    PARAM ()
    Write-Host "Install.wim: Export Image Content to $Info\Get-WindowsImageContent.txt" -ForegroundColor Green
    Get-WindowsImageContent -ImagePath "$OS\Sources\install.wim" -Index 1 | Out-File "$Info\Get-WindowsImageContent.txt"
}

function OSB-Export-WindowsImageContentPE {
    [CmdletBinding()]
    PARAM ()
    Write-Host "Export Image Content to $Info\Get-WindowsImageContent.txt" -ForegroundColor Green
    Get-WindowsImageContent -ImagePath "$OS\Sources\boot.wim" -Index 1 | Out-File "$Info\Get-WindowsImageContent.txt"
}

function OSB-Export-Variables {
    [CmdletBinding()]
    PARAM ()
    Get-Variable | Select-Object -Property Name, Value | Export-Clixml "$Info\xml\Variables.xml"
    Get-Variable | Select-Object -Property Name, Value | ConvertTo-Json | Out-File "$Info\json\Variables.json"
}