Public/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
46
47
48
49
50
51
52
53
54
55
56
57
58
<#
.SYNOPSIS
Displays information about the OSD Module
 
.DESCRIPTION
Displays information about the OSD Module
 
.LINK
https://osd.osdeploy.com/module/functions/get-osd
 
.NOTES
19.10.1 David Segura @SeguraOSD
#>

function Get-OSD {
    [CmdletBinding()]
    Param ()
    #==================================================
    # Defaults
    #==================================================
    $Info = $true
    #==================================================
    # Info
    #==================================================
    if ($Info) {
        $OSDModuleVersion = $($MyInvocation.MyCommand.Module.Version)
        Write-Host "#OSDmodule PowerShell Library $OSDModuleVersion" -ForegroundColor Green
        Write-Host "http://osd.osdeploy.com/release" -ForegroundColor Cyan
        Write-Host
        Write-Host "#OSDdevteam" -ForegroundColor Green
        Write-Host "Andrew Jimenez " -NoNewline
        Write-Host "@AndrewJimenez_" -ForegroundColor Cyan
        Write-Host "Ben Whitmore " -NoNewline
        Write-Host "@byteben" -ForegroundColor Cyan
        Write-Host "David Segura " -NoNewline
        Write-Host "@SeguraOSD #MMSJazz" -ForegroundColor Cyan
        Write-Host "Donna Ryan " -NoNewline
        Write-Host "@TheNotoriousDRR #MMSJazz" -ForegroundColor Cyan
        Write-Host "Jerome Bezet-Torres " -NoNewline
        Write-Host "@JM2K69" -ForegroundColor Cyan
        Write-Host "Manel Rodero " -NoNewline
        Write-Host "@manelrodero" -ForegroundColor Cyan
        Write-Host "Nathan Bridges " -NoNewline
        Write-Host "@nathanjbridges" -ForegroundColor Cyan
        Write-Host
        Write-Host 'Functions' -ForegroundColor Green
        Write-Host 'Get-OSD - This information'
        Write-Host 'Get-OSDClass - Returns CimInstance information from common OSD Classes'
        Write-Host 'Get-OSDGather - Returns common OSD information as an ordered hash table'
        Write-Host 'Get-OSDPower - Displays Power Plan information using powercfg /LIST'
        Write-Host 'Get-OSDSessions - Returns the Session.xml Updates that have been applied to an Operating System'
        Write-Host 'Get-OSDWinPE - Common WinPE Commands using wpeutil and Microsoft DaRT RemoteRecovery'
        Write-Host 'New-OSDDisk - Creates System | OS | Recovery Partitions for MBR or UEFI Drives in WinPE'
        Write-Host 'Save-OSDDownload - Downloads a file by URL to a destionation folder'
        Write-Host
        Write-Host 'Update' -ForegroundColor Green
        Write-Host 'Update-Module OSD -Force'
    }
}