Public/Functions/split/Get-OSD.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
<#
.SYNOPSIS Displays information about the OSD Module .DESCRIPTION Displays information about the OSD Module .LINK https://osd.osdeploy.com/module/functions .NOTES #> function Get-OSD { [CmdletBinding()] param () #================================================= # PSBoundParameters #================================================= $IsConfirmPresent = $PSBoundParameters.ContainsKey('Confirm') $IsForcePresent = $PSBoundParameters.ContainsKey('Force') $IsVerbosePresent = $PSBoundParameters.ContainsKey('Verbose') #================================================= # Module and Command Information #================================================= $GetCommandName = $MyInvocation.MyCommand | Select-Object -ExpandProperty Name $GetModuleBase = $MyInvocation.MyCommand.Module | Select-Object -ExpandProperty ModuleBase $GetModulePath = $MyInvocation.MyCommand.Module | Select-Object -ExpandProperty Path $GetModuleVersion = $MyInvocation.MyCommand.Module | Select-Object -ExpandProperty Version $GetCommandHelpUri = Get-Command -Name $GetCommandName | Select-Object -ExpandProperty HelpUri Write-Host "$GetCommandName" -ForegroundColor Cyan -NoNewline Write-Host " $GetModuleVersion at $GetModuleBase" -ForegroundColor Gray Write-Host "http://osd.osdeploy.com" -ForegroundColor Gray Write-Host -ForegroundColor DarkCyan "=======================================================================" Write-Host -ForegroundColor Cyan 'Update the OSD Module: ' -NoNewline Write-Host -ForegroundColor Yellow 'Update-Module OSD -Force' Write-Host -ForegroundColor DarkCyan "=======================================================================" Write-Host -ForegroundColor Cyan 'OSD Module Functions:' Write-Host -ForegroundColor DarkCyan "=======================================================================" #================================================= # Function Information #================================================= Get-Command -Module OSD | Where-Object {$_.CommandType -eq 'Function'} | Sort-Object Name | Select-Object Name #================================================= } |