AutopilotPrepDiag.psm1
|
#Requires -Version 5.1 $script:ModuleRoot = $PSScriptRoot foreach ($folder in 'Private', 'Public') { $path = Join-Path -Path $script:ModuleRoot -ChildPath $folder if (-not (Test-Path -Path $path)) { continue } Get-ChildItem -Path $path -Filter '*.ps1' -File -Recurse | Sort-Object FullName | ForEach-Object { . $_.FullName } } Export-ModuleMember -Function @( 'Get-AutopilotDevicePreparationDiagnostic' 'Export-AutopilotDevicePreparationDiagnostic' 'Test-AutopilotDevicePreparationReadiness' ) |