├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── LICENSE ├── README.md └── SysInfo ├── Private ├── Get-AcceleratorCapabilitiesCode.ps1 ├── Get-Access.ps1 ├── Get-Architecture.ps1 ├── Get-Associativity.ps1 ├── Get-AttributesCode.ps1 ├── Get-Availability.ps1 ├── Get-BatteryStatus.ps1 ├── Get-BiosCharacteristicsCode.ps1 ├── Get-BusType.ps1 ├── Get-CacheType.ps1 ├── Get-ChassisType.ps1 ├── Get-Chemistry.ps1 ├── Get-Color.ps1 ├── Get-Compression.ps1 ├── Get-ConfigManagerErrorCode.ps1 ├── Get-CpuStatus.ps1 ├── Get-CurrentCapabilitiesCode.ps1 ├── Get-CurrentLanguage.ps1 ├── Get-CurrentSRAM.ps1 ├── Get-CurrentScanMode.ps1 ├── Get-DataExecutionPreventionSupportPolicy.ps1 ├── Get-DefaultCapabilitiesCode.ps1 ├── Get-DefaultLanguage.ps1 ├── Get-DetectedErrorState.ps1 ├── Get-DeviceInterface.ps1 ├── Get-DisplayType.ps1 ├── Get-DitherType.ps1 ├── Get-DriveType.ps1 ├── Get-ECC.ps1 ├── Get-ErrorAccess.ps1 ├── Get-ErrorCorrectType.ps1 ├── Get-ErrorDataOrder.ps1 ├── Get-ErrorGranularity.ps1 ├── Get-ErrorInfo.ps1 ├── Get-ExtendedDetectedErrorState.ps1 ├── Get-ExtendedPrinterStatus.ps1 ├── Get-Family.ps1 ├── Get-FileSystemFlagsEx.ps1 ├── Get-ForegroundApplicationBoost.ps1 ├── Get-FormFactor.ps1 ├── Get-Handedness.ps1 ├── Get-ICMIntent.ps1 ├── Get-ICMMethod.ps1 ├── Get-IGMPLevel.ps1 ├── Get-IPXFrameType.ps1 ├── Get-IPXMediaType.ps1 ├── Get-Info.ps1 ├── Get-InterleavePosition.ps1 ├── Get-LanguagesSupported.ps1 ├── Get-LargeSystemCache.ps1 ├── Get-Layout.ps1 ├── Get-LengthCM.ps1 ├── Get-Level.ps1 ├── Get-Locale.ps1 ├── Get-LocationCode.ps1 ├── Get-LogicalDiskMediaType.ps1 ├── Get-MarkingTechnology.ps1 ├── Get-MemoryErrorCorrection.ps1 ├── Get-MemoryType.ps1 ├── Get-NetConnectionStatus.ps1 ├── Get-OSLanguage.ps1 ├── Get-OSProductSuite.ps1 ├── Get-OSType.ps1 ├── Get-OperatingSystemSKU.ps1 ├── Get-Orientation.ps1 ├── Get-PaperSizesSupported.ps1 ├── Get-PhysicalMemoryArrayLocation.ps1 ├── Get-PhysicalMemoryArrayUse.ps1 ├── Get-PointingType.ps1 ├── Get-PowerManagementCapabilitiesCode.ps1 ├── Get-PrintQuality.ps1 ├── Get-PrinterMediaType.ps1 ├── Get-PrinterState.ps1 ├── Get-PrinterStatus.ps1 ├── Get-ProcessorType.ps1 ├── Get-ProductType.ps1 ├── Get-ProtectionManagement.ps1 ├── Get-ProtocolSupported.ps1 ├── Get-ReadPolicy.ps1 ├── Get-ReplacementPolicy.ps1 ├── Get-ReportSetMarksStatus.ps1 ├── Get-SecurityBreach.ps1 ├── Get-SecurityStatus.ps1 ├── Get-ServicePhilosophy.ps1 ├── Get-SizeGB.ps1 ├── Get-SizeKB.ps1 ├── Get-SizeMB.ps1 ├── Get-SizePB.ps1 ├── Get-SizeTB.ps1 ├── Get-SoftwareElementState.ps1 ├── Get-SpeedGbpsConversion.ps1 ├── Get-SpeedKbpsConversion.ps1 ├── Get-SpeedMbpsConversion.ps1 ├── Get-StatusInfo.ps1 ├── Get-SupportedSRAM.ps1 ├── Get-TTOption.ps1 ├── Get-TargetOperatingSystem.ps1 ├── Get-TcpipNetbiosOption.ps1 ├── Get-TypeDetail.ps1 ├── Get-UpgradeMethod.ps1 ├── Get-VideoArchitecture.ps1 ├── Get-VideoMemoryType.ps1 ├── Get-VoltageCap.ps1 ├── Get-WeightGram.ps1 ├── Get-WeightKg.ps1 ├── Get-WritePolicy.ps1 └── Optimize-Output.ps1 ├── Public ├── Get-1394Controller.ps1 ├── Get-BIOS.ps1 ├── Get-BaseBoard.ps1 ├── Get-Battery.ps1 ├── Get-Bus.ps1 ├── Get-CDROMDrive.ps1 ├── Get-CacheMemory.ps1 ├── Get-CompactDisc.ps1 ├── Get-Desktop.ps1 ├── Get-DesktopMonitor.ps1 ├── Get-DiskDrive.ps1 ├── Get-DiskPartition.ps1 ├── Get-Fan.ps1 ├── Get-FloppyController.ps1 ├── Get-FloppyDriveSysInfo.ps1 ├── Get-GlidePoint.ps1 ├── Get-HeatPipe.ps1 ├── Get-IDEController.ps1 ├── Get-InfraredDevice.ps1 ├── Get-Keyboard.ps1 ├── Get-LocalDisk.ps1 ├── Get-LogicalDisk.ps1 ├── Get-MemoryArray.ps1 ├── Get-MemoryDevice.ps1 ├── Get-MotherboardDevice.ps1 ├── Get-Mouse.ps1 ├── Get-NetworkAdapterConfiguration.ps1 ├── Get-NetworkAdapterSysInfo.ps1 ├── Get-NetworkDrive.ps1 ├── Get-OperatingSystem.ps1 ├── Get-OpticalSensor.ps1 ├── Get-PhysicalMemory.ps1 ├── Get-PhysicalMemoryArray.ps1 ├── Get-PointingDevice.ps1 ├── Get-PortableBattery.ps1 ├── Get-PrinterConfiguration.ps1 ├── Get-PrinterSysInfo.ps1 ├── Get-Processor.ps1 ├── Get-RAMDisk.ps1 ├── Get-Refrigeration.ps1 ├── Get-RemovableDisk.ps1 ├── Get-SCSIControllerSysInfo.ps1 ├── Get-SoundDevice.ps1 ├── Get-SystemEnclosure.ps1 ├── Get-TapeDrive.ps1 ├── Get-TemperatureProbe.ps1 ├── Get-TouchPad.ps1 ├── Get-TouchScreen.ps1 ├── Get-TrackBall.ps1 ├── Get-TrackPoint.ps1 ├── Get-USBController.ps1 ├── Get-VideoController.ps1 └── Get-VoltageProbe.ps1 └── SysInfo.ps1 /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. Windows 10 1809] 28 | - Powershell Version [e.g. 5.1] 29 | 30 | **Additional context** 31 | Add any other context about the problem here. 32 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Stephanos Constantinou 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-AcceleratorCapabilitiesCode.ps1: -------------------------------------------------------------------------------- 1 | Function Get-AcceleratorCapabilitiesCode 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-AcceleratorCapabilitiesCode -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([uint16[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Graphics Accelerator' 43 | } 44 | 3 45 | { 46 | '3D Accelerator' 47 | } 48 | default 49 | { 50 | 'Invalid Code' 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Access.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Access 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Access -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 0 35 | { 36 | 'Unknown' 37 | } 38 | 1 39 | { 40 | 'Readable' 41 | } 42 | 2 43 | { 44 | 'Writeable' 45 | } 46 | 3 47 | { 48 | 'Read/Write Supported' 49 | } 50 | 4 51 | { 52 | 'Write Once' 53 | } 54 | 5 55 | { 56 | 'Not Applicable' 57 | } 58 | default 59 | { 60 | 'Invalid Code' 61 | } 62 | } 63 | } 64 | 65 | Return 66 | } 67 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Architecture.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Architecture 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Architecture -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'x86' 35 | } 36 | 1 37 | { 38 | 'MIPS' 39 | } 40 | 2 41 | { 42 | 'Alpha' 43 | } 44 | 3 45 | { 46 | 'PowerPC' 47 | } 48 | 5 49 | { 50 | 'ARM' 51 | } 52 | 6 53 | { 54 | 'ia64 - Itanium-based systems' 55 | } 56 | 9 57 | { 58 | 'x64' 59 | } 60 | 10 61 | { 62 | 'PGA' 63 | } 64 | 11 65 | { 66 | 'RIMM' 67 | } 68 | 12 69 | { 70 | 'SODIMM' 71 | } 72 | 13 73 | { 74 | 'SRIMM' 75 | } 76 | 14 77 | { 78 | 'SMD' 79 | } 80 | 15 81 | { 82 | 'SSMP' 83 | } 84 | 16 85 | { 86 | 'QFP' 87 | } 88 | 17 89 | { 90 | 'TQFP' 91 | } 92 | 18 93 | { 94 | 'SOIC' 95 | } 96 | 19 97 | { 98 | 'LCC' 99 | } 100 | 20 101 | { 102 | 'PLCC' 103 | } 104 | 21 105 | { 106 | 'BGA' 107 | } 108 | 22 109 | { 110 | 'FPBGA' 111 | } 112 | 23 113 | { 114 | 'LGA' 115 | } 116 | default 117 | { 118 | 'Invalid Code' 119 | } 120 | } 121 | } 122 | 123 | Return 124 | } 125 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Associativity.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Associativity 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Associativity -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Direct Mapped' 43 | } 44 | 4 45 | { 46 | '2-way Set-Associative' 47 | } 48 | 5 49 | { 50 | '4-way Set-Associative' 51 | } 52 | 6 53 | { 54 | 'Fully Associative' 55 | } 56 | 7 57 | { 58 | '8-way Set-Associative' 59 | } 60 | 8 61 | { 62 | '16-way Set-Associative' 63 | } 64 | default 65 | { 66 | 'Invalid Code' 67 | } 68 | } 69 | } 70 | 71 | Return 72 | } 73 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-AttributesCode.ps1: -------------------------------------------------------------------------------- 1 | Function Get-AttributesCode 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-AttributesCode -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Queued' 35 | } 36 | 2 37 | { 38 | 'Direct' 39 | } 40 | 4 41 | { 42 | 'Default' 43 | } 44 | 8 45 | { 46 | 'Shared' 47 | } 48 | 16 49 | { 50 | 'Network' 51 | } 52 | 32 53 | { 54 | 'Hidden' 55 | } 56 | 64 57 | { 58 | 'Local' 59 | } 60 | 128 61 | { 62 | 'EnableDevQ' 63 | } 64 | 256 65 | { 66 | 'KeepPrintedJobs' 67 | } 68 | 512 69 | { 70 | 'DoCompleteFirst' 71 | } 72 | 1024 73 | { 74 | 'WorkOffline' 75 | } 76 | 2048 77 | { 78 | 'EnableBIDI' 79 | } 80 | 4096 81 | { 82 | 'RAW Only' 83 | } 84 | 8192 85 | { 86 | 'Published' 87 | } 88 | default 89 | { 90 | 'Invalid Code' 91 | } 92 | } 93 | } 94 | 95 | Return 96 | } 97 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Availability.ps1: -------------------------------------------------------------------------------- 1 | function Get-Availability 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Availability -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16] $Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 1 35 | { 36 | 'Other' 37 | } 38 | 2 39 | { 40 | 'Unknown' 41 | } 42 | 3 43 | { 44 | 'Running or Full Power' 45 | } 46 | 4 47 | { 48 | 'Warning' 49 | } 50 | 5 51 | { 52 | 'In Test' 53 | } 54 | 6 55 | { 56 | 'Not Applicable' 57 | } 58 | 7 59 | { 60 | 'Power Off' 61 | } 62 | 8 63 | { 64 | 'Off Line' 65 | } 66 | 9 67 | { 68 | 'Off Duty' 69 | } 70 | 10 71 | { 72 | 'Degraded' 73 | } 74 | 11 75 | { 76 | 'Not Installed' 77 | } 78 | 12 79 | { 80 | 'Install Error' 81 | } 82 | 13 83 | { 84 | 'Power Save - Unknown' 85 | } 86 | 14 87 | { 88 | 'Power Save - Low Power Mode' 89 | } 90 | 15 91 | { 92 | 'Power Save - Standby' 93 | } 94 | 16 95 | { 96 | 'Power Cycle' 97 | } 98 | 17 99 | { 100 | 'Power Save - Warning' 101 | } 102 | 18 103 | { 104 | 'Pause' 105 | } 106 | 19 107 | { 108 | 'Not Ready' 109 | } 110 | 20 111 | { 112 | 'Not Configured' 113 | } 114 | 21 115 | { 116 | 'Quiesced - Device is Quiet' 117 | } 118 | default 119 | { 120 | 'Invalid or No Code' 121 | } 122 | } 123 | } 124 | Return 125 | } -------------------------------------------------------------------------------- /SysInfo/Private/Get-BatteryStatus.ps1: -------------------------------------------------------------------------------- 1 | Function Get-BatteryStatus 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-BatteryStatus -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 1 35 | { 36 | 'Other - The battery is discharging' 37 | } 38 | 2 39 | { 40 | 'Unknown - The system has access to AC so no battery is being discharged. However, the battery is not necessarily charging.' 41 | } 42 | 3 43 | { 44 | 'Fully Charged' 45 | } 46 | 4 47 | { 48 | 'Low' 49 | } 50 | 5 51 | { 52 | 'Critical' 53 | } 54 | 6 55 | { 56 | 'Charging' 57 | } 58 | 7 59 | { 60 | 'Charging and High' 61 | } 62 | 8 63 | { 64 | 'Charging and Low' 65 | } 66 | 9 67 | { 68 | 'Charging and Critical' 69 | } 70 | 10 71 | { 72 | 'Undefined' 73 | } 74 | 11 75 | { 76 | 'Partially Charged' 77 | } 78 | default 79 | { 80 | 'Invalid Code' 81 | } 82 | } 83 | } 84 | 85 | Return 86 | } 87 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-BusType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-BusType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-BusType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.Sting 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | -1 33 | { 34 | 'Undefined' 35 | } 36 | 0 37 | { 38 | 'Internal' 39 | } 40 | 1 41 | { 42 | 'ISA' 43 | } 44 | 2 45 | { 46 | 'EISA' 47 | } 48 | 3 49 | { 50 | 'MicroChannel' 51 | } 52 | 4 53 | { 54 | 'TurboChannel' 55 | } 56 | 5 57 | { 58 | 'PCI Bus' 59 | } 60 | 6 61 | { 62 | 'VME Bus' 63 | } 64 | 7 65 | { 66 | 'NuBus' 67 | } 68 | 8 69 | { 70 | 'PCMCIA Bus' 71 | } 72 | 9 73 | { 74 | 'C Bus' 75 | } 76 | 10 77 | { 78 | 'MPI Bus' 79 | } 80 | 11 81 | { 82 | 'MPSA Bus' 83 | } 84 | 12 85 | { 86 | 'Internal Processor' 87 | } 88 | 13 89 | { 90 | 'Internal Power Bus' 91 | } 92 | 14 93 | { 94 | 'PNP ISA Bus' 95 | } 96 | 15 97 | { 98 | 'PNP Bus' 99 | } 100 | 16 101 | { 102 | 'Maximum Interface Type' 103 | } 104 | default 105 | { 106 | 'Invalid Code' 107 | } 108 | } 109 | } 110 | 111 | Return 112 | } 113 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-CacheType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-CacheType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-CacheType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Instruction' 43 | } 44 | 4 45 | { 46 | 'Data' 47 | } 48 | 5 49 | { 50 | 'Unified' 51 | } 52 | default 53 | { 54 | 'Invalid Code' 55 | } 56 | } 57 | } 58 | 59 | Return 60 | } 61 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ChassisType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ChassisType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ChassisType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Desktop' 43 | } 44 | 4 45 | { 46 | 'Low Profile Desktop' 47 | } 48 | 5 49 | { 50 | 'Pizza Box' 51 | } 52 | 6 53 | { 54 | 'Mini Tower' 55 | } 56 | 7 57 | { 58 | 'Tower' 59 | } 60 | 8 61 | { 62 | 'Portable' 63 | } 64 | 9 65 | { 66 | 'Laptop' 67 | } 68 | 10 69 | { 70 | 'Notebook' 71 | } 72 | 11 73 | { 74 | 'Hand Held' 75 | } 76 | 12 77 | { 78 | 'Docking Station' 79 | } 80 | 13 81 | { 82 | 'All in One' 83 | } 84 | 14 85 | { 86 | 'Sub Notebook' 87 | } 88 | 15 89 | { 90 | 'Space-Saving' 91 | } 92 | 16 93 | { 94 | 'Lunch Box' 95 | } 96 | 17 97 | { 98 | 'Main System Chassis' 99 | } 100 | 18 101 | { 102 | 'Expansion Chassis' 103 | } 104 | 19 105 | { 106 | 'SubChassis' 107 | } 108 | 20 109 | { 110 | 'Bus Expansion Chassis' 111 | } 112 | 21 113 | { 114 | 'Peripheral Chassis' 115 | } 116 | 22 117 | { 118 | 'Storage Chassis' 119 | } 120 | 23 121 | { 122 | 'Rack Mount Chassis' 123 | } 124 | 24 125 | { 126 | 'Sealed-Case PC' 127 | } 128 | default 129 | { 130 | 'Invalid Code' 131 | } 132 | } 133 | } 134 | 135 | Return 136 | } 137 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Chemistry.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Chemistry 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Chemistry -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 1 35 | { 36 | 'Other' 37 | } 38 | 2 39 | { 40 | 'Unknown' 41 | } 42 | 3 43 | { 44 | 'Lead Acid' 45 | } 46 | 4 47 | { 48 | 'Nickel Cadmium' 49 | } 50 | 5 51 | { 52 | 'Nickel Metal Hydride' 53 | } 54 | 6 55 | { 56 | 'Lithium-ion' 57 | } 58 | 7 59 | { 60 | 'Zinc air' 61 | } 62 | 8 63 | { 64 | 'Lithium Polymer' 65 | } 66 | default 67 | { 68 | 'Invalid Code' 69 | } 70 | } 71 | } 72 | 73 | Return 74 | } 75 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Color.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Color 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Color -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Monochrome (true black)' 35 | } 36 | 2 37 | { 38 | 'Color' 39 | } 40 | default 41 | { 42 | 'Invalid Code' 43 | } 44 | } 45 | } 46 | 47 | Return 48 | } 49 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Compression.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Compression 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Compression -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Disabled' 35 | } 36 | 1 37 | { 38 | 'Enabled' 39 | } 40 | default 41 | { 42 | 'Invalid Code' 43 | } 44 | } 45 | } 46 | 47 | Return 48 | } 49 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ConfigManagerErrorCode.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ConfigManagerErrorCode 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ConfigManagerErrorCode -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 0 35 | { 36 | 'This device is working properly.' 37 | } 38 | 1 39 | { 40 | 'This device is not configured correctly.' 41 | } 42 | 2 43 | { 44 | 'Windows cannot load the driver for this device.' 45 | } 46 | 3 47 | { 48 | 'The driver for this device might be corrupted, or your system may be running low on memory or other resources.' 49 | } 50 | 4 51 | { 52 | 'This device is not working properly. One of its drivers or your registry might be corrupted.' 53 | } 54 | 5 55 | { 56 | 'The driver for this device needs a resource that Windows cannot manage.' 57 | } 58 | 6 59 | { 60 | 'The boot configuration for this device conflicts with other devices.' 61 | } 62 | 7 63 | { 64 | 'Cannot filter.' 65 | } 66 | 8 67 | { 68 | 'The driver loader for the device is missing.' 69 | } 70 | 9 71 | { 72 | 'This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly.' 73 | } 74 | 10 75 | { 76 | 'This device cannot start.' 77 | } 78 | 11 79 | { 80 | 'This device failed.' 81 | } 82 | 12 83 | { 84 | 'This device cannot find enough free resources that it can use.' 85 | } 86 | 13 87 | { 88 | "Windows cannot verify this device's resources." 89 | } 90 | 14 91 | { 92 | 'This device cannot work properly until you restart your computer.' 93 | } 94 | 15 95 | { 96 | 'This device is not working properly because there is probably a re-enumeration problem.' 97 | } 98 | 16 99 | { 100 | 'Windows cannot identify all the resources this device uses.' 101 | } 102 | 17 103 | { 104 | 'This device is asking for an unknown resource type.' 105 | } 106 | 18 107 | { 108 | 'Reinstall the drivers for this device.' 109 | } 110 | 19 111 | { 112 | 'Failure using the VxD loader.' 113 | } 114 | 20 115 | { 116 | 'Your registry might be corrupted.' 117 | } 118 | 21 119 | { 120 | 'System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device.' 121 | } 122 | 22 123 | { 124 | 'This device is disabled.' 125 | } 126 | 23 127 | { 128 | "System failure: Try changing the driver for this device. If that doesn't work, see your hardware documentation." 129 | } 130 | 24 131 | { 132 | 'This device is not present, is not working properly, or does not have all its drivers installed.' 133 | } 134 | 25 135 | { 136 | 'Windows is still setting up this device.' 137 | } 138 | 26 139 | { 140 | 'Windows is still setting up this device.' 141 | } 142 | 27 143 | { 144 | 'This device does not have valid log configuration.' 145 | } 146 | 28 147 | { 148 | 'The drivers for this device are not installed.' 149 | } 150 | 29 151 | { 152 | 'This device is disabled because the firmware of the device did not give it the required resources.' 153 | } 154 | 30 155 | { 156 | 'This device is using an Interrupt Request (IRQ) resource that another device is using.' 157 | } 158 | 31 159 | { 160 | 'This device is not working properly because Windows cannot load the drivers required for this device.' 161 | } 162 | deafult 163 | { 164 | 'Invalid Code' 165 | } 166 | } 167 | } 168 | 169 | Return 170 | } -------------------------------------------------------------------------------- /SysInfo/Private/Get-CpuStatus.ps1: -------------------------------------------------------------------------------- 1 | Function Get-CpuStatus 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-CpuStatus -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'CPU Enabled' 39 | } 40 | 2 41 | { 42 | 'CPU Disabled by User via BIOS Setup' 43 | } 44 | 3 45 | { 46 | 'CPU Disabled By BIOS (POST Error)' 47 | } 48 | 4 49 | { 50 | 'CPU is Idle' 51 | } 52 | 5 53 | { 54 | 'Reserved' 55 | } 56 | 6 57 | { 58 | 'Reserved' 59 | } 60 | 7 61 | { 62 | 'Other' 63 | } 64 | default 65 | { 66 | 'Invalid Code' 67 | } 68 | } 69 | } 70 | 71 | Return 72 | } 73 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-CurrentCapabilitiesCode.ps1: -------------------------------------------------------------------------------- 1 | Function Get-CurrentCapabilitiesCode 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-CurrentCapabilitiesCode -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([uint16[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Color Printing' 43 | } 44 | 3 45 | { 46 | 'Duplex Printing' 47 | } 48 | 4 49 | { 50 | 'Copies' 51 | } 52 | 5 53 | { 54 | 'Collation' 55 | } 56 | 6 57 | { 58 | 'Stapling' 59 | } 60 | 7 61 | { 62 | 'Transparency Printing' 63 | } 64 | 8 65 | { 66 | 'Punch' 67 | } 68 | 9 69 | { 70 | 'Cover' 71 | } 72 | 10 73 | { 74 | 'Bind' 75 | } 76 | 11 77 | { 78 | 'Black and White Printing' 79 | } 80 | 12 81 | { 82 | 'One Sided' 83 | } 84 | 13 85 | { 86 | 'Two Sided Long Edge' 87 | } 88 | 14 89 | { 90 | 'Two Sided Short Edge' 91 | } 92 | 15 93 | { 94 | 'Portrait' 95 | } 96 | 16 97 | { 98 | 'Landscape' 99 | } 100 | 17 101 | { 102 | 'Reverse Portrait' 103 | } 104 | 18 105 | { 106 | 'Reverse Landscape' 107 | } 108 | 19 109 | { 110 | 'Quality High' 111 | } 112 | 20 113 | { 114 | 'Quality Normal' 115 | } 116 | 21 117 | { 118 | 'Quality Low' 119 | } 120 | default 121 | { 122 | 'Invalid Code' 123 | } 124 | } 125 | } 126 | 127 | Return 128 | } 129 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-CurrentLanguage.ps1: -------------------------------------------------------------------------------- 1 | Function Get-CurrentLanguage 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-CurrentLanguage -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'PCL' 43 | } 44 | 4 45 | { 46 | 'HPGL' 47 | } 48 | 5 49 | { 50 | 'PJL' 51 | } 52 | 6 53 | { 54 | 'PS' 55 | } 56 | 7 57 | { 58 | 'PSPrinter' 59 | } 60 | 8 61 | { 62 | 'IPDS' 63 | } 64 | 9 65 | { 66 | 'PPDS' 67 | } 68 | 10 69 | { 70 | 'EscapeP' 71 | } 72 | 11 73 | { 74 | 'Epson' 75 | } 76 | 12 77 | { 78 | 'DDIF' 79 | } 80 | 13 81 | { 82 | 'Interpress' 83 | } 84 | 14 85 | { 86 | 'ISO6429' 87 | } 88 | 15 89 | { 90 | 'Line Data' 91 | } 92 | 16 93 | { 94 | 'MODCA' 95 | } 96 | 17 97 | { 98 | 'REGIS' 99 | } 100 | 18 101 | { 102 | 'SCS' 103 | } 104 | 19 105 | { 106 | 'SPDL' 107 | } 108 | 20 109 | { 110 | 'TEK4014' 111 | } 112 | 21 113 | { 114 | 'PDS' 115 | } 116 | 22 117 | { 118 | 'IGP' 119 | } 120 | 23 121 | { 122 | 'CodeV' 123 | } 124 | 24 125 | { 126 | 'DSCDSE' 127 | } 128 | 25 129 | { 130 | 'WPS' 131 | } 132 | 26 133 | { 134 | 'LN03' 135 | } 136 | 27 137 | { 138 | 'CCITT' 139 | } 140 | 28 141 | { 142 | 'QUIC' 143 | } 144 | 29 145 | { 146 | 'CPAP' 147 | } 148 | 30 149 | { 150 | 'DecPPL' 151 | } 152 | 31 153 | { 154 | 'Simple Text' 155 | } 156 | 32 157 | { 158 | 'NPAP' 159 | } 160 | 33 161 | { 162 | 'DOC' 163 | } 164 | 34 165 | { 166 | 'imPress' 167 | } 168 | 35 169 | { 170 | 'Pinwriter' 171 | } 172 | 36 173 | { 174 | 'NPDL' 175 | } 176 | 37 177 | { 178 | 'NEC201PL' 179 | } 180 | 38 181 | { 182 | 'Automatic' 183 | } 184 | 39 185 | { 186 | 'Pages' 187 | } 188 | 40 189 | { 190 | 'LIPS' 191 | } 192 | 41 193 | { 194 | 'TIFF' 195 | } 196 | 42 197 | { 198 | 'Diagnostic' 199 | } 200 | 43 201 | { 202 | 'CaPSL' 203 | } 204 | 44 205 | { 206 | 'EXCL' 207 | } 208 | 45 209 | { 210 | 'LCDS' 211 | } 212 | 46 213 | { 214 | 'XES' 215 | } 216 | 47 217 | { 218 | 'MIME' 219 | } 220 | 48 221 | { 222 | 'XPS' 223 | } 224 | 49 225 | { 226 | 'HPGL2' 227 | } 228 | 50 229 | { 230 | 'PCLXL' 231 | } 232 | default 233 | { 234 | 'Invalid Code' 235 | } 236 | } 237 | } 238 | 239 | Return 240 | } 241 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-CurrentSRAM.ps1: -------------------------------------------------------------------------------- 1 | Function Get-CurrentSRAM 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-CurrentSRAM -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Other' 35 | } 36 | 1 37 | { 38 | 'Unknown' 39 | } 40 | 2 41 | { 42 | 'Non-Burst' 43 | } 44 | 3 45 | { 46 | 'Burst' 47 | } 48 | 4 49 | { 50 | 'Pipeline Burst' 51 | } 52 | 5 53 | { 54 | 'Synchronous' 55 | } 56 | 6 57 | { 58 | 'Asynchronous' 59 | } 60 | default 61 | { 62 | 'Invalid Code' 63 | } 64 | } 65 | } 66 | 67 | Return 68 | } 69 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-CurrentScanMode.ps1: -------------------------------------------------------------------------------- 1 | Function Get-CurrentScanMode 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-CurrentScanMode -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Interlaced' 43 | } 44 | 4 45 | { 46 | 'Non Interlaced' 47 | } 48 | default 49 | { 50 | 'Invalid Code' 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-DataExecutionPreventionSupportPolicy.ps1: -------------------------------------------------------------------------------- 1 | Function Get-DataExecutionPreventionSupportPolicy 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-DataExecutionPreventionSupportPolicy -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 0 35 | { 36 | 'Always Off' 37 | } 38 | 1 39 | { 40 | 'Always On' 41 | } 42 | 2 43 | { 44 | 'Opt In' 45 | } 46 | 3 47 | { 48 | 'Opt Out' 49 | } 50 | default 51 | { 52 | 'Invalid Code' 53 | } 54 | } 55 | } 56 | 57 | Return 58 | } 59 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-DefaultCapabilitiesCode.ps1: -------------------------------------------------------------------------------- 1 | Function Get-DefaultCapabilitiesCode 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-DefaultCapabilitiesCode -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([uint16[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Color Printing' 43 | } 44 | 3 45 | { 46 | 'Duplex Printing' 47 | } 48 | 4 49 | { 50 | 'Copies' 51 | } 52 | 5 53 | { 54 | 'Collation' 55 | } 56 | 6 57 | { 58 | 'Stapling' 59 | } 60 | 7 61 | { 62 | 'Transparency Printing' 63 | } 64 | 8 65 | { 66 | 'Punch' 67 | } 68 | 9 69 | { 70 | 'Cover' 71 | } 72 | 10 73 | { 74 | 'Bind' 75 | } 76 | 11 77 | { 78 | 'Black and White Printing' 79 | } 80 | 12 81 | { 82 | 'One Sided' 83 | } 84 | 13 85 | { 86 | 'Two Sided Long Edge' 87 | } 88 | 14 89 | { 90 | 'Two Sided Short Edge' 91 | } 92 | 15 93 | { 94 | 'Portrait' 95 | } 96 | 16 97 | { 98 | 'Landscape' 99 | } 100 | 17 101 | { 102 | 'Reverse Portrait' 103 | } 104 | 18 105 | { 106 | 'Reverse Landscape' 107 | } 108 | 19 109 | { 110 | 'Quality High' 111 | } 112 | 20 113 | { 114 | 'Quality Normal' 115 | } 116 | 21 117 | { 118 | 'Quality Low' 119 | } 120 | default 121 | { 122 | 'Invalid Code' 123 | } 124 | } 125 | } 126 | 127 | Return 128 | } 129 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-DefaultLanguage.ps1: -------------------------------------------------------------------------------- 1 | Function Get-DefaultLanguage 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-DefaultLanguage -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'PCL' 43 | } 44 | 4 45 | { 46 | 'HPGL' 47 | } 48 | 5 49 | { 50 | 'PJL' 51 | } 52 | 6 53 | { 54 | 'PS' 55 | } 56 | 7 57 | { 58 | 'PSPrinter' 59 | } 60 | 8 61 | { 62 | 'IPDS' 63 | } 64 | 9 65 | { 66 | 'PPDS' 67 | } 68 | 10 69 | { 70 | 'EscapeP' 71 | } 72 | 11 73 | { 74 | 'Epson' 75 | } 76 | 12 77 | { 78 | 'DDIF' 79 | } 80 | 13 81 | { 82 | 'Interpress' 83 | } 84 | 14 85 | { 86 | 'ISO6429' 87 | } 88 | 15 89 | { 90 | 'Line Data' 91 | } 92 | 16 93 | { 94 | 'MODCA' 95 | } 96 | 17 97 | { 98 | 'REGIS' 99 | } 100 | 18 101 | { 102 | 'SCS' 103 | } 104 | 19 105 | { 106 | 'SPDL' 107 | } 108 | 20 109 | { 110 | 'TEK4014' 111 | } 112 | 21 113 | { 114 | 'PDS' 115 | } 116 | 22 117 | { 118 | 'IGP' 119 | } 120 | 23 121 | { 122 | 'CodeV' 123 | } 124 | 24 125 | { 126 | 'DSCDSE' 127 | } 128 | 25 129 | { 130 | 'WPS' 131 | } 132 | 26 133 | { 134 | 'LN03' 135 | } 136 | 27 137 | { 138 | 'CCITT' 139 | } 140 | 28 141 | { 142 | 'QUIC' 143 | } 144 | 29 145 | { 146 | 'CPAP' 147 | } 148 | 30 149 | { 150 | 'DecPPL' 151 | } 152 | 31 153 | { 154 | 'Simple Text' 155 | } 156 | 32 157 | { 158 | 'NPAP' 159 | } 160 | 33 161 | { 162 | 'DOC' 163 | } 164 | 34 165 | { 166 | 'imPress' 167 | } 168 | 35 169 | { 170 | 'Pinwriter' 171 | } 172 | 36 173 | { 174 | 'NPDL' 175 | } 176 | 37 177 | { 178 | 'NEC201PL' 179 | } 180 | 38 181 | { 182 | 'Automatic' 183 | } 184 | 39 185 | { 186 | 'Pages' 187 | } 188 | 40 189 | { 190 | 'LIPS' 191 | } 192 | 41 193 | { 194 | 'TIFF' 195 | } 196 | 42 197 | { 198 | 'Diagnostic' 199 | } 200 | 43 201 | { 202 | 'CaPSL' 203 | } 204 | 44 205 | { 206 | 'EXCL' 207 | } 208 | 45 209 | { 210 | 'LCDS' 211 | } 212 | 46 213 | { 214 | 'XES' 215 | } 216 | 47 217 | { 218 | 'MIME' 219 | } 220 | 48 221 | { 222 | 'XPS' 223 | } 224 | 49 225 | { 226 | 'HPGL2' 227 | } 228 | 50 229 | { 230 | 'PCLXL' 231 | } 232 | default 233 | { 234 | 'Invalid Code' 235 | } 236 | } 237 | } 238 | 239 | Return 240 | } 241 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-DetectedErrorState.ps1: -------------------------------------------------------------------------------- 1 | Function Get-DetectedErrorState { 2 | <# 3 | .SYNOPSIS 4 | Code lookup table 5 | 6 | .DESCRIPTION 7 | Checks and converts codes to meaning full information 8 | 9 | .PARAMETER Code 10 | The code received the the system. 11 | 12 | .EXAMPLE 13 | Get-DetectedErrorState -Code Value 14 | Converts code to the associated string value 15 | 16 | .LINK 17 | https://www.sconstantinou.com 18 | 19 | .INPUTS 20 | None 21 | 22 | .OUTPUTS 23 | System.String 24 | #> 25 | 26 | param ([Parameter(Mandatory=$true,HelpMessage='Code received from the system')][uint16]$Code) 27 | 28 | if ($Code -ne ''){ 29 | 30 | switch ($Code){ 31 | 0 {'Unknown'} 32 | 1 {'Other'} 33 | 2 {'No Error'} 34 | 3 {'Low Paper'} 35 | 4 {'No Paper'} 36 | 5 {'Low Toner'} 37 | 6 {'No Toner'} 38 | 7 {'Door Open'} 39 | 8 {'Jammed'} 40 | 9 {'Offline'} 41 | 10 {'Service Requested'} 42 | 11 {'Output Bin Full'} 43 | default {'Invalid Code'} 44 | } 45 | } 46 | 47 | Return 48 | } -------------------------------------------------------------------------------- /SysInfo/Private/Get-DeviceInterface.ps1: -------------------------------------------------------------------------------- 1 | Function Get-DeviceInterface 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-DeviceInterface -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Serial' 43 | } 44 | 4 45 | { 46 | 'PS/2' 47 | } 48 | 5 49 | { 50 | 'Infrared' 51 | } 52 | 6 53 | { 54 | 'HP-HIL' 55 | } 56 | 7 57 | { 58 | 'Bus Mouse' 59 | } 60 | 8 61 | { 62 | 'ADB (Apple Desktop Bus)' 63 | } 64 | 160 65 | { 66 | 'Bus mouse DB-9' 67 | } 68 | 161 69 | { 70 | 'Bus mouse micro-DIN' 71 | } 72 | 162 73 | { 74 | 'USB' 75 | } 76 | default 77 | { 78 | 'Invalid Code' 79 | } 80 | } 81 | } 82 | 83 | Return 84 | } 85 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-DisplayType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-DisplayType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-DisplayType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Multiscan Color' 43 | } 44 | 3 45 | { 46 | 'Multiscan Monochrome' 47 | } 48 | 4 49 | { 50 | 'Fixed Frequency Color' 51 | } 52 | 5 53 | { 54 | 'Fixed Frequency Monochrome' 55 | } 56 | default 57 | { 58 | 'Invalid Code' 59 | } 60 | } 61 | } 62 | 63 | Return 64 | } 65 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-DitherType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-DitherType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-DitherType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'No Dithering' 35 | } 36 | 2 37 | { 38 | 'Coarse Brush' 39 | } 40 | 3 41 | { 42 | 'Fine Brush' 43 | } 44 | 4 45 | { 46 | 'Line Art' 47 | } 48 | 5 49 | { 50 | 'Grayscale' 51 | } 52 | default 53 | { 54 | 'Invalid Code' 55 | } 56 | } 57 | } 58 | 59 | Return 60 | } 61 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-DriveType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-DriveType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-DriveType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'No Root Directory' 39 | } 40 | 2 41 | { 42 | 'Removable Disk' 43 | } 44 | 3 45 | { 46 | 'Local Disk' 47 | } 48 | 4 49 | { 50 | 'Network Drive' 51 | } 52 | 5 53 | { 54 | 'Compact Disc' 55 | } 56 | 6 57 | { 58 | 'RAM Disk' 59 | } 60 | default 61 | { 62 | 'Invalid Code' 63 | } 64 | } 65 | } 66 | 67 | Return 68 | } 69 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ECC.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ECC 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ECC -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Does not support hardware error corrention (ECC)' 35 | } 36 | 1 37 | { 38 | 'Supports hardware error corrention (ECC)' 39 | } 40 | default 41 | { 42 | 'Invalid Code' 43 | } 44 | } 45 | } 46 | 47 | Return 48 | } 49 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ErrorAccess.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ErrorAccess 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ErrorAccess -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Read' 43 | } 44 | 4 45 | { 46 | 'Write' 47 | } 48 | 5 49 | { 50 | 'Partial Write' 51 | } 52 | default 53 | { 54 | 'Invalid Code' 55 | } 56 | } 57 | } 58 | 59 | Return 60 | } 61 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ErrorCorrectType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ErrorCorrectType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ErrorCorrectType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Reserved' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Unknown' 43 | } 44 | 3 45 | { 46 | 'None' 47 | } 48 | 4 49 | { 50 | 'Parity' 51 | } 52 | 5 53 | { 54 | 'Single-bit ECC' 55 | } 56 | 6 57 | { 58 | 'Multi-bit ECC' 59 | } 60 | default 61 | { 62 | 'Invalid Code' 63 | } 64 | } 65 | } 66 | 67 | Return 68 | } 69 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ErrorDataOrder.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ErrorDataOrder 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ErrorDataOrder -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Least Significant Byte First' 39 | } 40 | 2 41 | { 42 | 'Most Significant Byte First' 43 | } 44 | default 45 | { 46 | 'Invalid Code' 47 | } 48 | } 49 | } 50 | 51 | Return 52 | } 53 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ErrorGranularity.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ErrorGranularity 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ErrorGranularity -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Device level' 43 | } 44 | 4 45 | { 46 | 'Memory partition level' 47 | } 48 | default 49 | { 50 | 'Invalid Code' 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ErrorInfo.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ErrorInfo 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ErrorInfo -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'OK' 43 | } 44 | 4 45 | { 46 | 'Bad Read' 47 | } 48 | 5 49 | { 50 | 'Parity Error' 51 | } 52 | 6 53 | { 54 | 'Single-Bit Error' 55 | } 56 | 7 57 | { 58 | 'Double-Bit Error' 59 | } 60 | 8 61 | { 62 | 'Multi-Bit Error' 63 | } 64 | 9 65 | { 66 | 'Nibble Error' 67 | } 68 | 10 69 | { 70 | 'Checksum Error' 71 | } 72 | 11 73 | { 74 | 'CRC Error' 75 | } 76 | 12 77 | { 78 | 'Corrected single-bit error' 79 | } 80 | 13 81 | { 82 | 'Corrected error' 83 | } 84 | 14 85 | { 86 | 'Uncorrectable error' 87 | } 88 | default 89 | { 90 | 'Invalid Code' 91 | } 92 | } 93 | } 94 | 95 | Return 96 | } 97 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ExtendedDetectedErrorState.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ExtendedDetectedErrorState 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ExtendedDetectedErrorState -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'No Error' 43 | } 44 | 3 45 | { 46 | 'Low Paper' 47 | } 48 | 4 49 | { 50 | 'No Paper' 51 | } 52 | 5 53 | { 54 | 'Low Toner' 55 | } 56 | 6 57 | { 58 | 'No Toner' 59 | } 60 | 7 61 | { 62 | 'Door Open' 63 | } 64 | 8 65 | { 66 | 'Jammed' 67 | } 68 | 9 69 | { 70 | 'Service Requested' 71 | } 72 | 10 73 | { 74 | 'Output Bin Full' 75 | } 76 | 11 77 | { 78 | 'Paper Problem' 79 | } 80 | 12 81 | { 82 | 'Cannot Print Page' 83 | } 84 | 13 85 | { 86 | 'User Intervention Required' 87 | } 88 | 14 89 | { 90 | 'Out of Memory' 91 | } 92 | 15 93 | { 94 | 'Server Unknown' 95 | } 96 | default 97 | { 98 | 'Invalid Code' 99 | } 100 | } 101 | } 102 | 103 | Return 104 | } 105 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ExtendedPrinterStatus.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ExtendedPrinterStatus 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ExtendedPrinterStatus -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Idle' 43 | } 44 | 4 45 | { 46 | 'Printing' 47 | } 48 | 5 49 | { 50 | 'Warming Up' 51 | } 52 | 6 53 | { 54 | 'Stopped Printing' 55 | } 56 | 7 57 | { 58 | 'Offline' 59 | } 60 | 8 61 | { 62 | 'Paused' 63 | } 64 | 9 65 | { 66 | 'Error' 67 | } 68 | 10 69 | { 70 | 'Busy' 71 | } 72 | 11 73 | { 74 | 'Not Available' 75 | } 76 | 12 77 | { 78 | 'Waiting' 79 | } 80 | 13 81 | { 82 | 'Processing' 83 | } 84 | 14 85 | { 86 | 'Initialization' 87 | } 88 | 15 89 | { 90 | 'Power Save' 91 | } 92 | 16 93 | { 94 | 'Pending Deletion' 95 | } 96 | 17 97 | { 98 | 'I/O Active' 99 | } 100 | 18 101 | { 102 | 'Manual Feed' 103 | } 104 | default 105 | { 106 | 'Invalid Code' 107 | } 108 | } 109 | } 110 | 111 | Return 112 | } 113 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-FileSystemFlagsEx.ps1: -------------------------------------------------------------------------------- 1 | Function Get-FileSystemFlagsEx 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-FileSystemFlagsEx -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Case Sensitive Search' 35 | } 36 | 2 37 | { 38 | 'Case Preserved Names' 39 | } 40 | 4 41 | { 42 | 'Unicode On Disk' 43 | } 44 | 8 45 | { 46 | 'Persistent ACLs' 47 | } 48 | 16 49 | { 50 | 'File Compression' 51 | } 52 | 32 53 | { 54 | 'Volume Quotas' 55 | } 56 | 64 57 | { 58 | 'Supports Sparse Files' 59 | } 60 | 128 61 | { 62 | 'Supports Reparse Points' 63 | } 64 | 256 65 | { 66 | 'Supports Remote Storage' 67 | } 68 | 16384 69 | { 70 | 'Supports Long Names' 71 | } 72 | 32768 73 | { 74 | 'Volume Is Compressed' 75 | } 76 | 524289 77 | { 78 | 'Read Only Volume' 79 | } 80 | 65536 81 | { 82 | 'Supports Object IDS' 83 | } 84 | 131072 85 | { 86 | 'Supports Encryption' 87 | } 88 | 262144 89 | { 90 | 'Supports Named Streams' 91 | } 92 | default 93 | { 94 | 'Invalid Code' 95 | } 96 | } 97 | } 98 | 99 | Return 100 | } 101 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ForegroundApplicationBoost.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ForegroundApplicationBoost 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ForegroundApplicationBoost -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'None' 35 | } 36 | 1 37 | { 38 | 'Minimum' 39 | } 40 | 2 41 | { 42 | 'Maximum' 43 | } 44 | default 45 | { 46 | 'Invalid Code' 47 | } 48 | } 49 | } 50 | 51 | Return 52 | } 53 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-FormFactor.ps1: -------------------------------------------------------------------------------- 1 | Function Get-FormFactor 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-FormFactor -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'SIP' 43 | } 44 | 3 45 | { 46 | 'DIP' 47 | } 48 | 4 49 | { 50 | 'ZIP' 51 | } 52 | 5 53 | { 54 | 'SOJ' 55 | } 56 | 6 57 | { 58 | 'Proprietary' 59 | } 60 | 7 61 | { 62 | 'SIMM' 63 | } 64 | 8 65 | { 66 | 'DIMM' 67 | } 68 | 9 69 | { 70 | 'TSOP' 71 | } 72 | 10 73 | { 74 | 'PGA' 75 | } 76 | 11 77 | { 78 | 'RIMM' 79 | } 80 | 12 81 | { 82 | 'SODIMM' 83 | } 84 | 13 85 | { 86 | 'SRIMM' 87 | } 88 | 14 89 | { 90 | 'SMD' 91 | } 92 | 15 93 | { 94 | 'SSMP' 95 | } 96 | 16 97 | { 98 | 'QFP' 99 | } 100 | 17 101 | { 102 | 'TQFP' 103 | } 104 | 18 105 | { 106 | 'SOIC' 107 | } 108 | 19 109 | { 110 | 'LCC' 111 | } 112 | 20 113 | { 114 | 'PLCC' 115 | } 116 | 21 117 | { 118 | 'BGA' 119 | } 120 | 22 121 | { 122 | 'FPBGA' 123 | } 124 | 23 125 | { 126 | 'LGA' 127 | } 128 | default 129 | { 130 | 'Invalid Code' 131 | } 132 | } 133 | } 134 | 135 | Return 136 | } 137 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Handedness.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Handedness 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Handedness -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Not Applicable' 39 | } 40 | 2 41 | { 42 | 'Right Handed Operation' 43 | } 44 | 3 45 | { 46 | 'Left Handed Operation' 47 | } 48 | default 49 | { 50 | 'Invalid Code' 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ICMIntent.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ICMIntent 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ICMIntent -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Saturation' 35 | } 36 | 2 37 | { 38 | 'Contrast' 39 | } 40 | 3 41 | { 42 | 'Exact Color' 43 | } 44 | default 45 | { 46 | 'Invalid Code' 47 | } 48 | } 49 | } 50 | 51 | Return 52 | } 53 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ICMMethod.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ICMMethod 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ICMMethod -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Disabled' 35 | } 36 | 2 37 | { 38 | 'Windows' 39 | } 40 | 3 41 | { 42 | 'Device Driver' 43 | } 44 | 4 45 | { 46 | 'Device' 47 | } 48 | default 49 | { 50 | 'Invalid Code' 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-IGMPLevel.ps1: -------------------------------------------------------------------------------- 1 | Function Get-IGMPLevel 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-IGMPLevel -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 0 35 | { 36 | 'No Multicast' 37 | } 38 | 1 39 | { 40 | 'IP Multicast' 41 | } 42 | 2 43 | { 44 | 'IP & IGMP multicast' 45 | } 46 | default 47 | { 48 | 'Invalid Code' 49 | } 50 | } 51 | } 52 | 53 | Return 54 | } 55 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-IPXFrameType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-IPXFrameType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-IPXFrameType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter][uint32[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Ethernet II' 35 | } 36 | 1 37 | { 38 | 'Ethernet 802.3' 39 | } 40 | 2 41 | { 42 | 'Ethernet 802.2' 43 | } 44 | 3 45 | { 46 | 'Ethernet SNAP' 47 | } 48 | 255 49 | { 50 | 'Auto' 51 | } 52 | default 53 | { 54 | 'Invalid Code' 55 | } 56 | } 57 | } 58 | 59 | Return 60 | } 61 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-IPXMediaType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-IPXMediaType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-IPXMediaType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Ethernet' 35 | } 36 | 2 37 | { 38 | 'Token ring' 39 | } 40 | 3 41 | { 42 | 'FDDI' 43 | } 44 | 8 45 | { 46 | 'ARCNET' 47 | } 48 | default 49 | { 50 | 'Invalid Code' 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-InterleavePosition.ps1: -------------------------------------------------------------------------------- 1 | Function Get-InterleavePosition 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-InterleavePosition -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Noninterleaved' 35 | } 36 | 1 37 | { 38 | 'First position' 39 | } 40 | 2 41 | { 42 | 'Second position' 43 | } 44 | default 45 | { 46 | 'Invalid Code' 47 | } 48 | } 49 | } 50 | 51 | Return 52 | } 53 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-LanguagesSupported.ps1: -------------------------------------------------------------------------------- 1 | Function Get-LanguagesSupported 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-LanguagesSupported -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'PCL' 43 | } 44 | 4 45 | { 46 | 'HPGL' 47 | } 48 | 5 49 | { 50 | 'PJL' 51 | } 52 | 6 53 | { 54 | 'PS' 55 | } 56 | 7 57 | { 58 | 'PSPrinter' 59 | } 60 | 8 61 | { 62 | 'IPDS' 63 | } 64 | 9 65 | { 66 | 'PPDS' 67 | } 68 | 10 69 | { 70 | 'EscapeP' 71 | } 72 | 11 73 | { 74 | 'Epson' 75 | } 76 | 12 77 | { 78 | 'DDIF' 79 | } 80 | 13 81 | { 82 | 'Interpress' 83 | } 84 | 14 85 | { 86 | 'ISO6429' 87 | } 88 | 15 89 | { 90 | 'Line Data' 91 | } 92 | 16 93 | { 94 | 'MODCA' 95 | } 96 | 17 97 | { 98 | 'REGIS' 99 | } 100 | 18 101 | { 102 | 'SCS' 103 | } 104 | 19 105 | { 106 | 'SPDL' 107 | } 108 | 20 109 | { 110 | 'TEK4014' 111 | } 112 | 21 113 | { 114 | 'PDS' 115 | } 116 | 22 117 | { 118 | 'IGP' 119 | } 120 | 23 121 | { 122 | 'CodeV' 123 | } 124 | 24 125 | { 126 | 'DSCDSE' 127 | } 128 | 25 129 | { 130 | 'WPS' 131 | } 132 | 26 133 | { 134 | 'LN03' 135 | } 136 | 27 137 | { 138 | 'CCITT' 139 | } 140 | 28 141 | { 142 | 'QUIC' 143 | } 144 | 29 145 | { 146 | 'CPAP' 147 | } 148 | 30 149 | { 150 | 'DecPPL' 151 | } 152 | 31 153 | { 154 | 'Simple Text' 155 | } 156 | 32 157 | { 158 | 'NPAP' 159 | } 160 | 33 161 | { 162 | 'DOC' 163 | } 164 | 34 165 | { 166 | 'imPress' 167 | } 168 | 35 169 | { 170 | 'Pinwriter' 171 | } 172 | 36 173 | { 174 | 'NPDL' 175 | } 176 | 37 177 | { 178 | 'NEC201PL' 179 | } 180 | 38 181 | { 182 | 'Automatic' 183 | } 184 | 39 185 | { 186 | 'Pages' 187 | } 188 | 40 189 | { 190 | 'LIPS' 191 | } 192 | 41 193 | { 194 | 'TIFF' 195 | } 196 | 42 197 | { 198 | 'Diagnostic' 199 | } 200 | 43 201 | { 202 | 'CaPSL' 203 | } 204 | 44 205 | { 206 | 'EXCL' 207 | } 208 | 45 209 | { 210 | 'LCDS' 211 | } 212 | 46 213 | { 214 | 'XES' 215 | } 216 | 47 217 | { 218 | 'MIME' 219 | } 220 | 48 221 | { 222 | 'XPS' 223 | } 224 | 49 225 | { 226 | 'HPGL2' 227 | } 228 | 50 229 | { 230 | 'PCLXL' 231 | } 232 | default 233 | { 234 | 'Invalid Code' 235 | } 236 | } 237 | } 238 | 239 | Return 240 | } 241 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-LargeSystemCache.ps1: -------------------------------------------------------------------------------- 1 | Function Get-LargeSystemCache 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-LargeSystemCache -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Optimize for Applications' 35 | } 36 | 1 37 | { 38 | 'Optimize for System Performance' 39 | } 40 | default 41 | { 42 | 'Invalid Code' 43 | } 44 | } 45 | } 46 | 47 | Return 48 | } 49 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-LengthCM.ps1: -------------------------------------------------------------------------------- 1 | Function Get-LengthCM 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts inches to cm 6 | 7 | .DESCRIPTION 8 | Converts inches to cm 9 | 10 | .PARAMETER Inches 11 | number of inches 12 | 13 | .EXAMPLE 14 | Get-LengthCM -Inches Value 15 | Converts inches to cm 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Float 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Inches coming from system')][float]$Inches) 30 | 31 | if ($Inches -ne '') 32 | { 33 | [math]::round($Inches * 2.54,2) 34 | } 35 | 36 | Return 37 | } 38 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Level.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Level 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Level -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Primary' 43 | } 44 | 4 45 | { 46 | 'Secondary' 47 | } 48 | 5 49 | { 50 | 'Tertiary' 51 | } 52 | 6 53 | { 54 | 'Not Applicable' 55 | } 56 | default 57 | { 58 | 'Invalid Code' 59 | } 60 | } 61 | } 62 | 63 | Return 64 | } 65 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-LocationCode.ps1: -------------------------------------------------------------------------------- 1 | Function Get-LocationCode 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-LocationCode -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Internal' 35 | } 36 | 1 37 | { 38 | 'External' 39 | } 40 | 2 41 | { 42 | 'Reserved' 43 | } 44 | 3 45 | { 46 | 'Unknown' 47 | } 48 | default 49 | { 50 | 'Invalid Code' 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-LogicalDiskMediaType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-LogicalDiskMediaType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-LogicalDiskMediaType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Format is unknown' 35 | } 36 | 1 37 | { 38 | '5 1/4-Inch Floppy Disk - 1.2 MB - 512 bytes/sector' 39 | } 40 | 2 41 | { 42 | '3 1/2-Inch Floppy Disk - 1.44 MB - 512 bytes/sector' 43 | } 44 | 3 45 | { 46 | '3 1/2-Inch Floppy Disk - 2.88 MB - 512 bytes/sector' 47 | } 48 | 4 49 | { 50 | '3 1/2-Inch Floppy Disk - 20.8 MB - 512 bytes/sector' 51 | } 52 | 5 53 | { 54 | '3 1/2-Inch Floppy Disk - 720 KB - 512 bytes/sector' 55 | } 56 | 6 57 | { 58 | '5 1/4-Inch Floppy Disk - 360 KB - 512 bytes/sector' 59 | } 60 | 7 61 | { 62 | '5 1/4-Inch Floppy Disk - 320 KB - 512 bytes/sector' 63 | } 64 | 8 65 | { 66 | '5 1/4-Inch Floppy Disk - 320 KB - 1024 bytes/sector' 67 | } 68 | 9 69 | { 70 | '5 1/4-Inch Floppy Disk - 180 KB - 512 bytes/sector' 71 | } 72 | 10 73 | { 74 | '5 1/4-Inch Floppy Disk - 160 KB - 512 bytes/sector' 75 | } 76 | 11 77 | { 78 | 'Removable media other than floppy' 79 | } 80 | 12 81 | { 82 | 'Fixed hard disk media' 83 | } 84 | 13 85 | { 86 | '3 1/2-Inch Floppy Disk - 120 MB - 512 bytes/sector' 87 | } 88 | 14 89 | { 90 | '3 1/2-Inch Floppy Disk - 640 KB - 512 bytes/sector' 91 | } 92 | 15 93 | { 94 | '5 1/4-Inch Floppy Disk - 640 KB - 512 bytes/sector' 95 | } 96 | 16 97 | { 98 | '5 1/4-Inch Floppy Disk - 720 KB - 512 bytes/sector' 99 | } 100 | 17 101 | { 102 | '3 1/2-Inch Floppy Disk - 1.2 MB - 512 bytes/sector' 103 | } 104 | 18 105 | { 106 | '3 1/2-Inch Floppy Disk - 1.23 MB - 1024 bytes/sector' 107 | } 108 | 19 109 | { 110 | '5 1/4-Inch Floppy Disk - 1.23 MB - 1024 bytes/sector' 111 | } 112 | 20 113 | { 114 | '3 1/2-Inch Floppy Disk - 128 MB - 512 bytes/sector' 115 | } 116 | 21 117 | { 118 | '3 1/2-Inch Floppy Disk - 230 MB - 512 bytes/sector' 119 | } 120 | 22 121 | { 122 | '8-Inch Floppy Disk - 256 KB - 128 bytes/sector' 123 | } 124 | default 125 | { 126 | 'Invalid Code' 127 | } 128 | } 129 | } 130 | 131 | Return 132 | } 133 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-MarkingTechnology.ps1: -------------------------------------------------------------------------------- 1 | Function Get-MarkingTechnology 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-MarkingTechnology -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Electrophotographic LED' 43 | } 44 | 4 45 | { 46 | 'Electrophotographic Laser' 47 | } 48 | 5 49 | { 50 | 'Electrophotographic Other' 51 | } 52 | 6 53 | { 54 | 'Impact Moving Head Dot Matrix 9pin' 55 | } 56 | 7 57 | { 58 | 'Impact Moving Head Dot Matrix 24pin' 59 | } 60 | 8 61 | { 62 | 'Impact Moving Head Dot Matrix Other' 63 | } 64 | 9 65 | { 66 | 'Impact Moving Head Fully Formed' 67 | } 68 | 10 69 | { 70 | 'Impact Band' 71 | } 72 | 11 73 | { 74 | 'Impact Other' 75 | } 76 | 12 77 | { 78 | 'Inkjet Aqueous' 79 | } 80 | 13 81 | { 82 | 'Inkjet Solid' 83 | } 84 | 14 85 | { 86 | 'Inkjet Other' 87 | } 88 | 15 89 | { 90 | 'Pen' 91 | } 92 | 16 93 | { 94 | 'Thermal Transfer' 95 | } 96 | 17 97 | { 98 | 'Thermal Sensitive' 99 | } 100 | 18 101 | { 102 | 'Thermal Diffusion' 103 | } 104 | 19 105 | { 106 | 'Thermal Other' 107 | } 108 | 20 109 | { 110 | 'Electroerosion' 111 | } 112 | 21 113 | { 114 | 'Electrostatic' 115 | } 116 | 22 117 | { 118 | 'Photographic Microfiche' 119 | } 120 | 23 121 | { 122 | 'Photographic Imagesetter' 123 | } 124 | 24 125 | { 126 | 'Photographic Other' 127 | } 128 | 25 129 | { 130 | 'Ion Deposition' 131 | } 132 | 26 133 | { 134 | 'eBeam' 135 | } 136 | 27 137 | { 138 | 'Typesetter' 139 | } 140 | default 141 | { 142 | 'Invalid Code' 143 | } 144 | } 145 | } 146 | 147 | Return 148 | } 149 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-MemoryErrorCorrection.ps1: -------------------------------------------------------------------------------- 1 | Function Get-MemoryErrorCorrection 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-MemoryErrorCorrection -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Reserved' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Unknown' 43 | } 44 | 3 45 | { 46 | 'None' 47 | } 48 | 4 49 | { 50 | 'Parity' 51 | } 52 | 5 53 | { 54 | 'Single-bit ECC' 55 | } 56 | 6 57 | { 58 | 'Multi-bit ECC' 59 | } 60 | 7 61 | { 62 | 'CRC' 63 | } 64 | default 65 | { 66 | 'Invalid Code' 67 | } 68 | } 69 | } 70 | 71 | Return 72 | } 73 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-MemoryType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-MemoryType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-MemoryType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'DRAM' 43 | } 44 | 3 45 | { 46 | 'Synchronous DRAM' 47 | } 48 | 4 49 | { 50 | 'Cache DRAM' 51 | } 52 | 5 53 | { 54 | 'EDO' 55 | } 56 | 6 57 | { 58 | 'EDRAM' 59 | } 60 | 7 61 | { 62 | 'VRAM' 63 | } 64 | 8 65 | { 66 | 'SRAM' 67 | } 68 | 9 69 | { 70 | 'RAM' 71 | } 72 | 10 73 | { 74 | 'ROM' 75 | } 76 | 11 77 | { 78 | 'Flash' 79 | } 80 | 12 81 | { 82 | 'EEPROM' 83 | } 84 | 13 85 | { 86 | 'FEPROM' 87 | } 88 | 14 89 | { 90 | 'EPROM' 91 | } 92 | 15 93 | { 94 | 'CDRAM' 95 | } 96 | 16 97 | { 98 | '3DRAM' 99 | } 100 | 17 101 | { 102 | 'SDRAM' 103 | } 104 | 18 105 | { 106 | 'SGRAM' 107 | } 108 | 19 109 | { 110 | 'RDRAM' 111 | } 112 | 20 113 | { 114 | 'DDR' 115 | } 116 | 21 117 | { 118 | 'DDR2' 119 | } 120 | 22 121 | { 122 | 'BRAM' 123 | } 124 | 23 125 | { 126 | 'FB-DIMM' 127 | } 128 | 24 129 | { 130 | 'DDR3' 131 | } 132 | 25 133 | { 134 | 'FBD2' 135 | } 136 | 26 137 | { 138 | 'DDR4' 139 | } 140 | 27 141 | { 142 | 'LPDDR' 143 | } 144 | 28 145 | { 146 | 'LPDDR2' 147 | } 148 | 29 149 | { 150 | 'LPDDR3' 151 | } 152 | 30 153 | { 154 | 'LPDDR4' 155 | } 156 | default 157 | { 158 | 'Invalid Code' 159 | } 160 | } 161 | } 162 | 163 | Return 164 | } 165 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-NetConnectionStatus.ps1: -------------------------------------------------------------------------------- 1 | Function Get-NetConnectionStatus 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-NetConnectionStatus -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 0 35 | { 36 | 'Disconnected' 37 | } 38 | 1 39 | { 40 | 'Connecting' 41 | } 42 | 2 43 | { 44 | 'Connected' 45 | } 46 | 3 47 | { 48 | 'Disconnecting' 49 | } 50 | 4 51 | { 52 | 'Hardware Not Present' 53 | } 54 | 5 55 | { 56 | 'Hardware Disabled' 57 | } 58 | 6 59 | { 60 | 'Hardware Malfunction' 61 | } 62 | 7 63 | { 64 | 'Media Disconnected' 65 | } 66 | 8 67 | { 68 | 'Authenticating' 69 | } 70 | 9 71 | { 72 | 'Authentication Succeeded' 73 | } 74 | 10 75 | { 76 | 'Authentication Failed' 77 | } 78 | 11 79 | { 80 | 'Invalid Address' 81 | } 82 | 12 83 | { 84 | 'Credentials Required' 85 | } 86 | { 87 | 13..65535 -contains $_ 88 | } 89 | { 90 | 'Other' 91 | } 92 | default 93 | { 94 | 'Invalid Code' 95 | } 96 | } 97 | } 98 | 99 | Return 100 | } 101 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-OSProductSuite.ps1: -------------------------------------------------------------------------------- 1 | Function Get-OSProductSuite 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-OSProductSuite -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Microsoft Small Business Server was once installed, but may have been upgraded to another version of Windows.' 35 | } 36 | 2 37 | { 38 | 'Windows Server 2008 Enterprise is installed.' 39 | } 40 | 4 41 | { 42 | 'Windows BackOffice components are installed.' 43 | } 44 | 8 45 | { 46 | 'Communication Server is installed.' 47 | } 48 | 16 49 | { 50 | 'Terminal Services is installed.' 51 | } 52 | 32 53 | { 54 | 'Microsoft Small Business Server is installed with the restrictive client license.' 55 | } 56 | 64 57 | { 58 | 'Windows Embedded is installed.' 59 | } 60 | 128 61 | { 62 | 'A Datacenter edition is installed.' 63 | } 64 | 256 65 | { 66 | 'Terminal Services is installed, but only one interactive session is supported.' 67 | } 68 | 512 69 | { 70 | 'Windows Home Edition is installed.' 71 | } 72 | 1024 73 | { 74 | 'Web Server Edition is installed.' 75 | } 76 | 8192 77 | { 78 | 'Storage Server Edition is installed.' 79 | } 80 | 16384 81 | { 82 | 'Compute Cluster Edition is installed.' 83 | } 84 | default 85 | { 86 | 'Invalid Code' 87 | } 88 | } 89 | } 90 | 91 | Return 92 | } 93 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-OSType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-OSType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-OSType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 27 | 28 | if ($Code -ne '') 29 | { 30 | switch ($Code){ 31 | 0 32 | { 33 | 'Unknown' 34 | } 35 | 1 36 | { 37 | 'Other' 38 | } 39 | 2 40 | { 41 | 'MACOS' 42 | } 43 | 3 44 | { 45 | 'ATTUNIX' 46 | } 47 | 4 48 | { 49 | 'DGUX' 50 | } 51 | 5 52 | { 53 | 'DECNT' 54 | } 55 | 6 56 | { 57 | 'Digital Unix' 58 | } 59 | 7 60 | { 61 | 'OpenVMS' 62 | } 63 | 8 64 | { 65 | 'HPUX' 66 | } 67 | 9 68 | { 69 | 'AIX' 70 | } 71 | 10 72 | { 73 | 'MVS' 74 | } 75 | 11 76 | { 77 | 'OS400' 78 | } 79 | 12 80 | { 81 | 'OS/2' 82 | } 83 | 13 84 | { 85 | 'JavaVM' 86 | } 87 | 14 88 | { 89 | 'MSDOS' 90 | } 91 | 15 92 | { 93 | 'WIN3x' 94 | } 95 | 16 96 | { 97 | 'WIN95' 98 | } 99 | 17 100 | { 101 | 'WIN98' 102 | } 103 | 18 104 | { 105 | 'WINNT' 106 | } 107 | 19 108 | { 109 | 'WINCE' 110 | } 111 | 20 112 | { 113 | 'NCR3000' 114 | } 115 | 21 116 | { 117 | 'NetWare' 118 | } 119 | 22 120 | { 121 | 'OSF' 122 | } 123 | 23 124 | { 125 | 'DC/OS' 126 | } 127 | 24 128 | { 129 | 'Reliant UNIX' 130 | } 131 | 25 132 | { 133 | 'SCO UnixWare' 134 | } 135 | 26 136 | { 137 | 'SCO OpenServer' 138 | } 139 | 27 140 | { 141 | 'Sequent' 142 | } 143 | 28 144 | { 145 | 'IRIX' 146 | } 147 | 29 148 | { 149 | 'Solaris' 150 | } 151 | 30 152 | { 153 | 'SunOS' 154 | } 155 | 31 156 | { 157 | 'U6000' 158 | } 159 | 32 160 | { 161 | 'ASERIES' 162 | } 163 | 33 164 | { 165 | 'TandemNSK' 166 | } 167 | 34 168 | { 169 | 'TandemNT' 170 | } 171 | 35 172 | { 173 | 'BS2000' 174 | } 175 | 36 176 | { 177 | 'LINUX' 178 | } 179 | 37 180 | { 181 | 'Lynx' 182 | } 183 | 38 184 | { 185 | 'XENIX' 186 | } 187 | 39 188 | { 189 | 'VM/ESA' 190 | } 191 | 40 192 | { 193 | 'Interactive UNIX' 194 | } 195 | 41 196 | { 197 | 'BSDUNIX' 198 | } 199 | 42 200 | { 201 | 'FreeBSD' 202 | } 203 | 43 204 | { 205 | 'NetBSD' 206 | } 207 | 44 208 | { 209 | 'GNU Hurd' 210 | } 211 | 45 212 | { 213 | 'OS9' 214 | } 215 | 46 216 | { 217 | 'MACH Kernel' 218 | } 219 | 47 220 | { 221 | 'Inferno' 222 | } 223 | 48 224 | { 225 | 'QNX' 226 | } 227 | 49 228 | { 229 | 'EPOC' 230 | } 231 | 50 232 | { 233 | 'IxWorks' 234 | } 235 | 51 236 | { 237 | 'VxWorks' 238 | } 239 | 52 240 | { 241 | 'MiNT' 242 | } 243 | 53 244 | { 245 | 'BeOS' 246 | } 247 | 54 248 | { 249 | 'HP MPE' 250 | } 251 | 55 252 | { 253 | 'NextStep' 254 | } 255 | 56 256 | { 257 | 'PalmPilot' 258 | } 259 | 57 260 | { 261 | 'Rhapsody' 262 | } 263 | 58 264 | { 265 | 'Windows 2000' 266 | } 267 | 59 268 | { 269 | 'Dedicated' 270 | } 271 | 60 272 | { 273 | 'OS/390' 274 | } 275 | 61 276 | { 277 | 'VSE' 278 | } 279 | 62 280 | { 281 | 'TPF' 282 | } 283 | default 284 | { 285 | 'Invalid Code' 286 | } 287 | } 288 | } 289 | 290 | Return 291 | } 292 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-Orientation.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Orientation 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-Orientation -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Portrait' 35 | } 36 | 2 37 | { 38 | 'Landscape' 39 | } 40 | default 41 | { 42 | 'Invalid Code' 43 | } 44 | } 45 | } 46 | 47 | Return 48 | } 49 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-PhysicalMemoryArrayLocation.ps1: -------------------------------------------------------------------------------- 1 | Function Get-PhysicalMemoryArrayLocation 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-PhysicalMemoryArrayLocation -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Reserved' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Unknown' 43 | } 44 | 3 45 | { 46 | 'System board or motherboard' 47 | } 48 | 4 49 | { 50 | 'ISA add-on card' 51 | } 52 | 5 53 | { 54 | 'EISA add-on card' 55 | } 56 | 6 57 | { 58 | 'PCI add-on card' 59 | } 60 | 7 61 | { 62 | 'MCA add-on card' 63 | } 64 | 8 65 | { 66 | 'PCMCIA add-on card' 67 | } 68 | 9 69 | { 70 | 'Proprietary add-on card' 71 | } 72 | 10 73 | { 74 | 'NuBus' 75 | } 76 | 11 77 | { 78 | 'PC-98/C20 add-on card' 79 | } 80 | 12 81 | { 82 | 'PC-98/C24 add-on card' 83 | } 84 | 13 85 | { 86 | 'PC-98/E add-on card' 87 | } 88 | 14 89 | { 90 | 'PC-98/Local bus add-on card' 91 | } 92 | default 93 | { 94 | 'Invalid Code' 95 | } 96 | } 97 | } 98 | 99 | Return 100 | } 101 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-PhysicalMemoryArrayUse.ps1: -------------------------------------------------------------------------------- 1 | Function Get-PhysicalMemoryArrayUse 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-PhysicalMemoryArrayUse -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Reserved' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Unknown' 43 | } 44 | 3 45 | { 46 | 'System memory' 47 | } 48 | 4 49 | { 50 | 'Video memory' 51 | } 52 | 5 53 | { 54 | 'Flash memory' 55 | } 56 | 6 57 | { 58 | 'Non-volatile RAM' 59 | } 60 | 7 61 | { 62 | 'Cache memory' 63 | } 64 | default 65 | { 66 | 'Invalid Code' 67 | } 68 | } 69 | } 70 | 71 | Return 72 | } 73 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-PointingType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-PointingType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-PointingType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Mouse' 43 | } 44 | 4 45 | { 46 | 'Track Ball' 47 | } 48 | 5 49 | { 50 | 'Track Point' 51 | } 52 | 6 53 | { 54 | 'Glide Point' 55 | } 56 | 7 57 | { 58 | 'Touch Pad' 59 | } 60 | 8 61 | { 62 | 'Touch Screen' 63 | } 64 | 9 65 | { 66 | 'Optical Sensor' 67 | } 68 | default 69 | { 70 | 'Invalid Code' 71 | } 72 | } 73 | } 74 | 75 | Return 76 | } 77 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-PowerManagementCapabilitiesCode.ps1: -------------------------------------------------------------------------------- 1 | Function Get-PowerManagementCapabilitiesCode 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-PowerManagementCapabilitiesCode -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([uint16[]]$Code) 30 | 31 | if ($Code.Count -ne 0) 32 | { 33 | switch ($Code){ 34 | 0 35 | { 36 | 'Unknown' 37 | } 38 | 1 39 | { 40 | 'Not Supported' 41 | } 42 | 2 43 | { 44 | 'Disabled' 45 | } 46 | 3 47 | { 48 | 'Enabled' 49 | } 50 | 4 51 | { 52 | 'Power Saving Modes Entered Automatically' 53 | } 54 | 5 55 | { 56 | 'Power State Settable' 57 | } 58 | 6 59 | { 60 | 'Power Cycling Supported' 61 | } 62 | 7 63 | { 64 | 'Timed Power On Supported' 65 | } 66 | default 67 | { 68 | 'Invalid Code' 69 | } 70 | } 71 | } 72 | 73 | Return 74 | } -------------------------------------------------------------------------------- /SysInfo/Private/Get-PrintQuality.ps1: -------------------------------------------------------------------------------- 1 | Function Get-PrintQuality 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-PrintQuality -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | -1 33 | { 34 | 'Draft' 35 | } 36 | -2 37 | { 38 | 'Low' 39 | } 40 | -3 41 | { 42 | 'Medium' 43 | } 44 | -4 45 | { 46 | 'High' 47 | } 48 | default 49 | { 50 | "$Code" 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-PrinterMediaType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-PrinterMediaType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-PrinterMediaType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Standard' 35 | } 36 | 2 37 | { 38 | 'Transparency' 39 | } 40 | 3 41 | { 42 | 'Glossy' 43 | } 44 | default 45 | { 46 | 'Invalid Code' 47 | } 48 | } 49 | } 50 | 51 | Return 52 | } 53 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-PrinterState.ps1: -------------------------------------------------------------------------------- 1 | Function Get-PrinterState 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-PrinterState -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Idle' 35 | } 36 | 1 37 | { 38 | 'Paused' 39 | } 40 | 2 41 | { 42 | 'Error' 43 | } 44 | 3 45 | { 46 | 'Pending Deletion' 47 | } 48 | 4 49 | { 50 | 'Paper Jam' 51 | } 52 | 5 53 | { 54 | 'Paper Out' 55 | } 56 | 6 57 | { 58 | 'Manual Feed' 59 | } 60 | 7 61 | { 62 | 'Paper Problem' 63 | } 64 | 8 65 | { 66 | 'Offline' 67 | } 68 | 9 69 | { 70 | 'I/O Active' 71 | } 72 | 10 73 | { 74 | 'Busy' 75 | } 76 | 11 77 | { 78 | 'Printing' 79 | } 80 | 12 81 | { 82 | 'Output Bin Full' 83 | } 84 | 13 85 | { 86 | 'Not Available' 87 | } 88 | 14 89 | { 90 | 'Waiting' 91 | } 92 | 15 93 | { 94 | 'Processing' 95 | } 96 | 16 97 | { 98 | 'Initialization' 99 | } 100 | 17 101 | { 102 | 'Warming Up' 103 | } 104 | 18 105 | { 106 | 'Toner Low' 107 | } 108 | 19 109 | { 110 | 'No Toner' 111 | } 112 | 20 113 | { 114 | 'Page Punt' 115 | } 116 | 21 117 | { 118 | 'User Intervention Required' 119 | } 120 | 22 121 | { 122 | 'Out of Memory' 123 | } 124 | 23 125 | { 126 | 'Door Open' 127 | } 128 | 24 129 | { 130 | 'Server_Unknown' 131 | } 132 | 25 133 | { 134 | 'Power Save' 135 | } 136 | default 137 | { 138 | 'Invalid Code' 139 | } 140 | } 141 | } 142 | 143 | Return 144 | } 145 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-PrinterStatus.ps1: -------------------------------------------------------------------------------- 1 | Function Get-PrinterStatus 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-PrinterStatus -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Idle' 43 | } 44 | 4 45 | { 46 | 'Printing' 47 | } 48 | 5 49 | { 50 | 'Warmup' 51 | } 52 | 6 53 | { 54 | 'Stopped Printing' 55 | } 56 | 7 57 | { 58 | 'Offline' 59 | } 60 | default 61 | { 62 | 'Invalid Code' 63 | } 64 | } 65 | } 66 | 67 | Return 68 | } 69 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ProcessorType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ProcessorType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ProcessorType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Central Processor' 43 | } 44 | 4 45 | { 46 | 'Math Processor' 47 | } 48 | 5 49 | { 50 | 'DSP Processor' 51 | } 52 | 6 53 | { 54 | 'Video Processor' 55 | } 56 | default 57 | { 58 | 'Invalid Code' 59 | } 60 | } 61 | } 62 | 63 | Return 64 | } 65 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ProductType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ProductType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ProductType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 29 | 30 | if ($Code -ne '') 31 | { 32 | switch ($Code){ 33 | 1 34 | { 35 | 'Work Station' 36 | } 37 | 2 38 | { 39 | 'Domain Controller' 40 | } 41 | 3 42 | { 43 | 'Server' 44 | } 45 | default 46 | { 47 | 'Invalid Code' 48 | } 49 | } 50 | } 51 | 52 | Return 53 | } 54 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ProtectionManagement.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ProtectionManagement 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ProtectionManagement -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Unprotected' 43 | } 44 | 4 45 | { 46 | 'Protected' 47 | } 48 | 5 49 | { 50 | 'Protected through SCC (SCSI-3 Controller Command)' 51 | } 52 | 6 53 | { 54 | 'Protected through SCC-2 (SCSI-3 Controller Command)' 55 | } 56 | default 57 | { 58 | 'Invalid Code' 59 | } 60 | } 61 | } 62 | 63 | Return 64 | } 65 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ProtocolSupported.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ProtocolSupported 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ProtocolSupported -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 1 35 | { 36 | 'Other' 37 | } 38 | 2 39 | { 40 | 'Unknown' 41 | } 42 | 3 43 | { 44 | 'EISA' 45 | } 46 | 4 47 | { 48 | 'ISA' 49 | } 50 | 5 51 | { 52 | 'PCI' 53 | } 54 | 6 55 | { 56 | 'ATA/ATAPI' 57 | } 58 | 7 59 | { 60 | 'Flexible Diskette' 61 | } 62 | 8 63 | { 64 | '1496' 65 | } 66 | 9 67 | { 68 | 'SCSI Parallel Interface' 69 | } 70 | 10 71 | { 72 | 'SCSI Fibre Channel Protocol' 73 | } 74 | 11 75 | { 76 | 'SCSI Serial Bus Protocol' 77 | } 78 | 12 79 | { 80 | 'SCSI Serial Bus Protocol-2 (1394)' 81 | } 82 | 13 83 | { 84 | 'SCSI Serial Storage Architecture' 85 | } 86 | 14 87 | { 88 | 'VESA' 89 | } 90 | 15 91 | { 92 | 'PCMCIA' 93 | } 94 | 16 95 | { 96 | 'Universal Serial Bus' 97 | } 98 | 17 99 | { 100 | 'Parallel Protocol' 101 | } 102 | 18 103 | { 104 | 'ESCON' 105 | } 106 | 19 107 | { 108 | 'Diagnostic' 109 | } 110 | 20 111 | { 112 | 'I2C' 113 | } 114 | 21 115 | { 116 | 'Power' 117 | } 118 | 22 119 | { 120 | 'HIPPI' 121 | } 122 | 23 123 | { 124 | 'MultiBus' 125 | } 126 | 24 127 | { 128 | 'VME' 129 | } 130 | 25 131 | { 132 | 'IPI' 133 | } 134 | 26 135 | { 136 | 'IEEE-488' 137 | } 138 | 27 139 | { 140 | 'RS232' 141 | } 142 | 28 143 | { 144 | 'IEEE 802.3 10BASE5' 145 | } 146 | 29 147 | { 148 | 'IEEE 802.3 10BASE2' 149 | } 150 | 30 151 | { 152 | 'IEEE 802.3 1BASE5' 153 | } 154 | 31 155 | { 156 | 'IEEE 802.3 10BROAD36' 157 | } 158 | 32 159 | { 160 | 'IEEE 802.3 100BASEVG' 161 | } 162 | 33 163 | { 164 | 'IEEE 802.5 Token-Ring' 165 | } 166 | 34 167 | { 168 | 'ANSI X3T9.5 FDDI' 169 | } 170 | 35 171 | { 172 | 'MCA' 173 | } 174 | 36 175 | { 176 | 'ESDI' 177 | } 178 | 37 179 | { 180 | 'IDE' 181 | } 182 | 38 183 | { 184 | 'CMD' 185 | } 186 | 39 187 | { 188 | 'ST506' 189 | } 190 | 40 191 | { 192 | 'DSSI' 193 | } 194 | 41 195 | { 196 | 'QIC2' 197 | } 198 | 42 199 | { 200 | 'Enhanced ATA/IDE' 201 | } 202 | 43 203 | { 204 | 'AGP' 205 | } 206 | 44 207 | { 208 | 'TWIRP (two-way infrared)' 209 | } 210 | 45 211 | { 212 | 'FIR (fast infrared)' 213 | } 214 | 46 215 | { 216 | 'SIR (serial infrared)' 217 | } 218 | 47 219 | { 220 | 'IrBus' 221 | } 222 | default 223 | { 224 | 'Invalid Code' 225 | } 226 | } 227 | } 228 | 229 | Return 230 | } 231 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ReadPolicy.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ReadPolicy 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ReadPolicy -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Read' 43 | } 44 | 4 45 | { 46 | 'Read-Ahead' 47 | } 48 | 5 49 | { 50 | 'Read and Read-Ahead' 51 | } 52 | 6 53 | { 54 | 'Determination Per I/O' 55 | } 56 | default 57 | { 58 | 'Invalid Code' 59 | } 60 | } 61 | } 62 | 63 | Return 64 | } 65 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ReplacementPolicy.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ReplacementPolicy 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ReplacementPolicy -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Least Recently Used (LRU)' 43 | } 44 | 4 45 | { 46 | 'First In First Out (FIFO)' 47 | } 48 | 5 49 | { 50 | 'Last In First Out (LIFO)' 51 | } 52 | 6 53 | { 54 | 'Least Frequently Used (LFU)' 55 | } 56 | 7 57 | { 58 | 'Most Frequently Used (MFU)' 59 | } 60 | 8 61 | { 62 | 'Data Dependent Multiple Algorithms' 63 | } 64 | default 65 | { 66 | 'Invalid Code' 67 | } 68 | } 69 | } 70 | 71 | Return 72 | } 73 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ReportSetMarksStatus.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ReportSetMarksStatus 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ReportSetMarksStatus -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Disabled' 35 | } 36 | 1 37 | { 38 | 'Enabled' 39 | } 40 | default 41 | { 42 | 'Invalid Code' 43 | } 44 | } 45 | } 46 | 47 | Return 48 | } 49 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SecurityBreach.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SecurityBreach 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-SecurityBreach -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'No Breach' 43 | } 44 | 4 45 | { 46 | 'Breach Attempted' 47 | } 48 | 5 49 | { 50 | 'Breach Successful' 51 | } 52 | default 53 | { 54 | 'Invalid Code' 55 | } 56 | } 57 | } 58 | 59 | Return 60 | } 61 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SecurityStatus.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SecurityStatus 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-SecurityStatus -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'None' 43 | } 44 | 4 45 | { 46 | 'External interface locked out' 47 | } 48 | 5 49 | { 50 | 'External interface enabled' 51 | } 52 | default 53 | { 54 | 'Invalid Code' 55 | } 56 | } 57 | } 58 | 59 | Return 60 | } 61 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-ServicePhilosophy.ps1: -------------------------------------------------------------------------------- 1 | Function Get-ServicePhilosophy 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-ServicePhilosophy -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([uint16[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'Service From Top' 43 | } 44 | 3 45 | { 46 | 'Service From Front' 47 | } 48 | 4 49 | { 50 | 'Service From Back' 51 | } 52 | 5 53 | { 54 | 'Service From Side' 55 | } 56 | 6 57 | { 58 | 'Sliding Trays' 59 | } 60 | 7 61 | { 62 | 'Removable Sides' 63 | } 64 | 8 65 | { 66 | 'Moveable' 67 | } 68 | default 69 | { 70 | 'Invalid Code' 71 | } 72 | } 73 | } 74 | Return 75 | } 76 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SizeGB.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SizeGB 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts bytes to Gigabytes 6 | 7 | .DESCRIPTION 8 | Converts bytes to Gigabytes 9 | 10 | .PARAMETER Size 11 | Size in bytes from the system. 12 | 13 | .EXAMPLE 14 | Get-SizeGB -Size Value 15 | Converts bytes to Gigabytes 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Uint64 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Size in bytes from the system')][uint64]$Size) 30 | 31 | if ($Size -ne '') 32 | { 33 | [math]::round($Size / 1GB,2) 34 | } 35 | 36 | Return 37 | } 38 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SizeKB.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SizeKB 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts bytes to Kilobytes 6 | 7 | .DESCRIPTION 8 | Converts bytes to Kilobytes 9 | 10 | .PARAMETER Size 11 | Size in bytes from the system. 12 | 13 | .EXAMPLE 14 | Get-SizeKB -Size Value 15 | Converts bytes to Kilobytes 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Uint64 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Size in inches from the system')][uint64]$Size) 28 | 29 | if ($Size -ne '') 30 | { 31 | [math]::round($Size / 1KB,2) 32 | } 33 | 34 | Return 35 | } 36 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SizeMB.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SizeMB 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts bytes to Megabytes 6 | 7 | .DESCRIPTION 8 | Converts bytes to Megabytes 9 | 10 | .PARAMETER Size 11 | Size in bytes from the system. 12 | 13 | .EXAMPLE 14 | Get-SizeMB -Size Value 15 | Converts bytes to Megabytes 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Uint64 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Size in inches from the system')][uint64]$Size) 28 | 29 | if ($Size -ne '') 30 | { 31 | [math]::round($Size / 1MB,2) 32 | } 33 | 34 | Return 35 | } 36 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SizePB.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SizePB 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts bytes to Petabytes 6 | 7 | .DESCRIPTION 8 | Converts bytes to Petabytes 9 | 10 | .PARAMETER Size 11 | Size in bytes from the system. 12 | 13 | .EXAMPLE 14 | Get-SizePB -Size Value 15 | Converts bytes to Petabytes 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Uint64 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Size in inches from the system')][uint64]$Size) 28 | 29 | if ($Size -ne '') 30 | { 31 | [math]::round($Size / 1PB,2) 32 | } 33 | 34 | Return 35 | } 36 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SizeTB.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SizeTB 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts bytes to Terabytes 6 | 7 | .DESCRIPTION 8 | Converts bytes to Terabytes 9 | 10 | .PARAMETER Size 11 | Size in bytes from the system. 12 | 13 | .EXAMPLE 14 | Get-SizeTB -Size Value 15 | Converts bytes to Terabytes 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Uint64 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Size in inches from the system')][uint64]$Size) 28 | 29 | if ($Size -ne '') 30 | { 31 | [math]::round($Size / 1TB,2) 32 | } 33 | 34 | Return 35 | } 36 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SoftwareElementState.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SoftwareElementState 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-SoftwareElementState -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.Sting 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Deployable' 35 | } 36 | 1 37 | { 38 | 'Installable' 39 | } 40 | 2 41 | { 42 | 'Executable' 43 | } 44 | 3 45 | { 46 | 'Running' 47 | } 48 | default 49 | { 50 | 'Invalid Code' 51 | } 52 | } 53 | } 54 | 55 | Return 56 | } 57 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SpeedGbpsConversion.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SpeedGbpsConversion 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts bps to Gbps 6 | 7 | .DESCRIPTION 8 | Converts bps to Gbps 9 | 10 | .PARAMETER Speed 11 | Speed in bps from the system. 12 | 13 | .EXAMPLE 14 | Get-SpeedGbpsConversion -Speed Value 15 | Converts bps to Gbps 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Uint64 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Speed received from the system')][uint64]$Speed) 28 | 29 | if ($Speed -ne '') 30 | { 31 | [math]::round($Speed / 1000000000,2) 32 | } 33 | 34 | Return 35 | } 36 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SpeedKbpsConversion.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SpeedKbpsConversion 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts bps to Kbps 6 | 7 | .DESCRIPTION 8 | Converts bps to Kbps 9 | 10 | .PARAMETER Speed 11 | Speed in bps from the system.. 12 | 13 | .EXAMPLE 14 | Get-SpeedKbpsConversionn -Speed Value 15 | Converts bps to Kbps 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Uint64 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Speed received from the system')][uint64]$Speed) 28 | 29 | if ($Speed -ne '') 30 | { 31 | [math]::round($Speed / 1000,2) 32 | } 33 | 34 | Return 35 | } 36 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-SpeedMbpsConversion.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SpeedMbpsConversion 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts bps to Mbps 6 | 7 | .DESCRIPTION 8 | Converts bps to Mbps 9 | 10 | .PARAMETER Speed 11 | Speed in bps from the system. 12 | 13 | .EXAMPLE 14 | Get-SpeedKbpsConversionn -Speed Value 15 | Converts bps to Mbps 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Uint64 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Speed received from the system')][uint64]$Speed) 28 | 29 | if ($Speed -ne '') 30 | { 31 | [math]::round($Speed / 1000000,2) 32 | } 33 | 34 | Return 35 | } 36 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-StatusInfo.ps1: -------------------------------------------------------------------------------- 1 | Function Get-StatusInfo 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-StatusInfo -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 30 | 31 | if ($Code -ne '') 32 | { 33 | switch ($Code){ 34 | 1 35 | { 36 | 'Other' 37 | } 38 | 2 39 | { 40 | 'Unknown' 41 | } 42 | 3 43 | { 44 | 'Enabled' 45 | } 46 | 4 47 | { 48 | 'Disabled' 49 | } 50 | 5 51 | { 52 | 'Not Applicable' 53 | } 54 | default 55 | { 56 | 'Invalid Code' 57 | } 58 | } 59 | } 60 | 61 | Return 62 | } -------------------------------------------------------------------------------- /SysInfo/Private/Get-SupportedSRAM.ps1: -------------------------------------------------------------------------------- 1 | Function Get-SupportedSRAM 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-SupportedSRAM -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16[]]$Code) 28 | 29 | if ($Code.Count -ne 0) 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Other' 35 | } 36 | 1 37 | { 38 | 'Unknown' 39 | } 40 | 2 41 | { 42 | 'Non-Burst' 43 | } 44 | 3 45 | { 46 | 'Burst' 47 | } 48 | 4 49 | { 50 | 'Pipeline Burst' 51 | } 52 | 5 53 | { 54 | 'Synchronous' 55 | } 56 | 6 57 | { 58 | 'Asynchronous' 59 | } 60 | default 61 | { 62 | 'Invalid Code' 63 | } 64 | } 65 | } 66 | 67 | Return 68 | } 69 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-TTOption.ps1: -------------------------------------------------------------------------------- 1 | Function Get-TTOption 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-TTOption -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Bitmap - Prints TrueType fonts as graphics' 35 | } 36 | 2 37 | { 38 | 'Download - Downloads TrueType fonts as soft fonts' 39 | } 40 | 3 41 | { 42 | 'Substitute - Substitutes device fonts for TrueType fonts' 43 | } 44 | default 45 | { 46 | 'Invalid Code' 47 | } 48 | } 49 | } 50 | 51 | Return 52 | } 53 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-TargetOperatingSystem.ps1: -------------------------------------------------------------------------------- 1 | Function Get-TargetOperatingSystem 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-TargetOperatingSystem -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.Sting 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'Unknown' 35 | } 36 | 1 37 | { 38 | 'Other' 39 | } 40 | 2 41 | { 42 | 'MACOS' 43 | } 44 | 3 45 | { 46 | 'ATTUNIX' 47 | } 48 | 4 49 | { 50 | 'DGUX' 51 | } 52 | 5 53 | { 54 | 'DECNT' 55 | } 56 | 6 57 | { 58 | 'Digital Unix' 59 | } 60 | 7 61 | { 62 | 'OpenVMS' 63 | } 64 | 8 65 | { 66 | 'HPUX' 67 | } 68 | 9 69 | { 70 | 'AIX' 71 | } 72 | 10 73 | { 74 | 'MVS' 75 | } 76 | 11 77 | { 78 | 'OS400' 79 | } 80 | 12 81 | { 82 | 'OS/2' 83 | } 84 | 13 85 | { 86 | 'JavaVM' 87 | } 88 | 14 89 | { 90 | 'MSDOS' 91 | } 92 | 15 93 | { 94 | 'WIN3x' 95 | } 96 | 16 97 | { 98 | 'WIN95' 99 | } 100 | 17 101 | { 102 | 'WIN98' 103 | } 104 | 18 105 | { 106 | 'WINNT' 107 | } 108 | 19 109 | { 110 | 'WINCE' 111 | } 112 | 20 113 | { 114 | 'NCR3000' 115 | } 116 | 21 117 | { 118 | 'NetWare' 119 | } 120 | 22 121 | { 122 | 'OSF' 123 | } 124 | 23 125 | { 126 | 'DC/OS' 127 | } 128 | 24 129 | { 130 | 'Reliant UNIX' 131 | } 132 | 25 133 | { 134 | 'SCO UnixWare' 135 | } 136 | 26 137 | { 138 | 'SCO OpenServer' 139 | } 140 | 27 141 | { 142 | 'Sequent' 143 | } 144 | 28 145 | { 146 | 'IRIX' 147 | } 148 | 29 149 | { 150 | 'Solaris' 151 | } 152 | 30 153 | { 154 | 'SunOS' 155 | } 156 | 31 157 | { 158 | 'U6000' 159 | } 160 | 32 161 | { 162 | 'ASERIES' 163 | } 164 | 33 165 | { 166 | 'TandemNSK' 167 | } 168 | 34 169 | { 170 | 'TandemNT' 171 | } 172 | 35 173 | { 174 | 'BS2000' 175 | } 176 | 36 177 | { 178 | 'LINUX' 179 | } 180 | 37 181 | { 182 | 'Lynx' 183 | } 184 | 38 185 | { 186 | 'XENIX' 187 | } 188 | 39 189 | { 190 | 'VM/ESA' 191 | } 192 | 40 193 | { 194 | 'Interactive UNIX' 195 | } 196 | 41 197 | { 198 | 'BSDUNIX' 199 | } 200 | 42 201 | { 202 | 'FreeBSD' 203 | } 204 | 43 205 | { 206 | 'NetBSD' 207 | } 208 | 44 209 | { 210 | 'GNU Hurd' 211 | } 212 | 45 213 | { 214 | 'OS9' 215 | } 216 | 46 217 | { 218 | 'MACH Kernel' 219 | } 220 | 47 221 | { 222 | 'Inferno' 223 | } 224 | 48 225 | { 226 | 'QNX' 227 | } 228 | 49 229 | { 230 | 'EPOC' 231 | } 232 | 50 233 | { 234 | 'IxWorks' 235 | } 236 | 51 237 | { 238 | 'VxWorks' 239 | } 240 | 52 241 | { 242 | 'MiNT' 243 | } 244 | 53 245 | { 246 | 'BeOS' 247 | } 248 | 54 249 | { 250 | 'HP MPE' 251 | } 252 | 55 253 | { 254 | 'NextStep' 255 | } 256 | 56 257 | { 258 | 'PalmPilot' 259 | } 260 | 57 261 | { 262 | 'Rhapsody' 263 | } 264 | 58 265 | { 266 | 'Windows 2000' 267 | } 268 | 59 269 | { 270 | 'Dedicated' 271 | } 272 | 60 273 | { 274 | 'VSE' 275 | } 276 | 61 277 | { 278 | 'TPF (61)' 279 | } 280 | default 281 | { 282 | 'Invalid Code' 283 | } 284 | } 285 | } 286 | 287 | Return 288 | } 289 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-TcpipNetbiosOption.ps1: -------------------------------------------------------------------------------- 1 | Function Get-TcpipNetbiosOption 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-TcpipNetbiosOption -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 0 33 | { 34 | 'EnableNetbiosViaDhcp' 35 | } 36 | 1 37 | { 38 | 'EnableNetbios' 39 | } 40 | 2 41 | { 42 | 'DisableNetbios' 43 | } 44 | default 45 | { 46 | 'Invalid Code' 47 | } 48 | } 49 | } 50 | Return 51 | } 52 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-TypeDetail.ps1: -------------------------------------------------------------------------------- 1 | Function Get-TypeDetail 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-TypeDetail -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | '1' 33 | { 34 | 'Reserved' 35 | } 36 | '2' 37 | { 38 | 'Other' 39 | } 40 | '4' 41 | { 42 | 'Unknown' 43 | } 44 | '8' 45 | { 46 | 'Fast-paged' 47 | } 48 | '16' 49 | { 50 | 'Static column' 51 | } 52 | '32' 53 | { 54 | 'Pseudo-static' 55 | } 56 | '64' 57 | { 58 | 'RAMBUS' 59 | } 60 | '128' 61 | { 62 | 'Synchronous' 63 | } 64 | '256' 65 | { 66 | 'CMOS' 67 | } 68 | '512' 69 | { 70 | 'EDO' 71 | } 72 | '1024' 73 | { 74 | 'Window DRAM' 75 | } 76 | '2048' 77 | { 78 | 'Cache DRAM' 79 | } 80 | '4096' 81 | { 82 | 'Non-volatile' 83 | } 84 | default 85 | { 86 | 'Invalid Code' 87 | } 88 | } 89 | } 90 | 91 | Return 92 | } 93 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-UpgradeMethod.ps1: -------------------------------------------------------------------------------- 1 | Function Get-UpgradeMethod 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-UpgradeMethod -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | '1' 33 | { 34 | 'Other' 35 | } 36 | '2' 37 | { 38 | 'Unknown' 39 | } 40 | '3' 41 | { 42 | 'Daughter Board' 43 | } 44 | '4' 45 | { 46 | 'ZIF Socket' 47 | } 48 | '5' 49 | { 50 | 'Replacement/Piggy Back' 51 | } 52 | '6' 53 | { 54 | 'None' 55 | } 56 | '7' 57 | { 58 | 'LIF Socket' 59 | } 60 | '8' 61 | { 62 | 'Slot 1' 63 | } 64 | '9' 65 | { 66 | 'Slot 2' 67 | } 68 | '10' 69 | { 70 | '370 Pin Socket' 71 | } 72 | '11' 73 | { 74 | 'Slot A' 75 | } 76 | '12' 77 | { 78 | 'Slot M' 79 | } 80 | '13' 81 | { 82 | 'Socket 423' 83 | } 84 | '14' 85 | { 86 | 'Socket A (Socket 462)' 87 | } 88 | '15' 89 | { 90 | 'Socket 478' 91 | } 92 | '16' 93 | { 94 | 'Socket 754' 95 | } 96 | '17' 97 | { 98 | 'Socket 940' 99 | } 100 | '18' 101 | { 102 | 'Socket 939' 103 | } 104 | '19' 105 | { 106 | 'Socket mPGA604' 107 | } 108 | '20' 109 | { 110 | 'Socket LGA771' 111 | } 112 | '21' 113 | { 114 | 'Socket LGA775' 115 | } 116 | '22' 117 | { 118 | 'Socket S1' 119 | } 120 | '23' 121 | { 122 | 'Socket AM2' 123 | } 124 | '24' 125 | { 126 | 'Socket F (1207)' 127 | } 128 | '25' 129 | { 130 | 'Socket LGA1366' 131 | } 132 | '26' 133 | { 134 | 'Socket G34' 135 | } 136 | '27' 137 | { 138 | 'Socket AM3' 139 | } 140 | '28' 141 | { 142 | 'Socket C32' 143 | } 144 | '29' 145 | { 146 | 'Socket LGA1156' 147 | } 148 | '30' 149 | { 150 | 'Socket LGA1567' 151 | } 152 | '31' 153 | { 154 | 'Socket PGA988A' 155 | } 156 | '32' 157 | { 158 | 'Socket BGA1288' 159 | } 160 | '33' 161 | { 162 | 'rPGA988B' 163 | } 164 | '34' 165 | { 166 | 'BGA1023' 167 | } 168 | '35' 169 | { 170 | 'BGA1224' 171 | } 172 | '36' 173 | { 174 | 'LGA1155' 175 | } 176 | '37' 177 | { 178 | 'LGA1356' 179 | } 180 | '38' 181 | { 182 | 'LGA2011' 183 | } 184 | '39' 185 | { 186 | 'Socket FS1' 187 | } 188 | '40' 189 | { 190 | 'Socket FS2' 191 | } 192 | '41' 193 | { 194 | 'Socket FM1' 195 | } 196 | '42' 197 | { 198 | 'Socket FM2' 199 | } 200 | '43' 201 | { 202 | 'Socket LGA2011-3' 203 | } 204 | '44' 205 | { 206 | 'Socket LGA1356-3' 207 | } 208 | '45' 209 | { 210 | 'Socket LGA1150' 211 | } 212 | '46' 213 | { 214 | 'Socket BGA1168' 215 | } 216 | default 217 | { 218 | 'Invalid Code' 219 | } 220 | } 221 | } 222 | 223 | Return 224 | } 225 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-VideoArchitecture.ps1: -------------------------------------------------------------------------------- 1 | Function Get-VideoArchitecture 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-VideoArchitecture -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'CGA' 43 | } 44 | 4 45 | { 46 | 'EGA' 47 | } 48 | 5 49 | { 50 | 'VGA' 51 | } 52 | 6 53 | { 54 | 'SVGA' 55 | } 56 | 7 57 | { 58 | 'MDA' 59 | } 60 | 8 61 | { 62 | 'HGC' 63 | } 64 | 9 65 | { 66 | 'MCGA' 67 | } 68 | 10 69 | { 70 | '8514A' 71 | } 72 | 11 73 | { 74 | 'XGA' 75 | } 76 | 12 77 | { 78 | 'Linear Frame Buffer' 79 | } 80 | 160 81 | { 82 | 'PC-98' 83 | } 84 | default 85 | { 86 | 'Invalid Code' 87 | } 88 | } 89 | } 90 | 91 | Return 92 | } 93 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-VideoMemoryType.ps1: -------------------------------------------------------------------------------- 1 | Function Get-VideoMemoryType 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-VideoMemoryType -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'VRAM' 43 | } 44 | 4 45 | { 46 | 'DRAM' 47 | } 48 | 5 49 | { 50 | 'SRAM' 51 | } 52 | 6 53 | { 54 | 'WRAM' 55 | } 56 | 7 57 | { 58 | 'EDO RAM' 59 | } 60 | 8 61 | { 62 | 'Burst Synchronous DRAM' 63 | } 64 | 9 65 | { 66 | 'Pipelined Burst SRAM' 67 | } 68 | 10 69 | { 70 | 'CDRAM' 71 | } 72 | 11 73 | { 74 | '3DRAM' 75 | } 76 | 12 77 | { 78 | 'SDRAM' 79 | } 80 | 13 81 | { 82 | 'SGRAM' 83 | } 84 | default 85 | { 86 | 'Invalid Code' 87 | } 88 | } 89 | } 90 | 91 | Return 92 | } 93 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-VoltageCap.ps1: -------------------------------------------------------------------------------- 1 | Function Get-VoltageCap 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-VoltageCap -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint32]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | '5' 35 | } 36 | 2 37 | { 38 | '3.3' 39 | } 40 | 4 41 | { 42 | '2.9' 43 | } 44 | default 45 | { 46 | 'Invalid Code' 47 | } 48 | } 49 | } 50 | Return 51 | } 52 | -------------------------------------------------------------------------------- /SysInfo/Private/Get-WeightGram.ps1: -------------------------------------------------------------------------------- 1 | Function Get-WeightGram 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts Pounds to Grams 6 | 7 | .DESCRIPTION 8 | Converts Pounds to Grams 9 | 10 | .PARAMETER Pounds 11 | number of pounds 12 | 13 | .EXAMPLE 14 | Get-WeightGram -Pounds Value 15 | Converts Pounds to Grams 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Float 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Pounds coming from the system')][float]$Pounds) 30 | 31 | if ($Pounds -ne '') 32 | { 33 | [math]::round($Pounds * 453.592,2) 34 | } 35 | 36 | Return 37 | } -------------------------------------------------------------------------------- /SysInfo/Private/Get-WeightKg.ps1: -------------------------------------------------------------------------------- 1 | Function Get-WeightKg 2 | { 3 | <# 4 | .SYNOPSIS 5 | Converts Pounds to Kilograms 6 | 7 | .DESCRIPTION 8 | Converts Pounds to Kilograms 9 | 10 | .PARAMETER Pounds 11 | number of pounds 12 | 13 | .EXAMPLE 14 | Get-WeightKg -Pounds Value 15 | Converts Pounds to Kilograms 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | Float 25 | #> 26 | 27 | 28 | 29 | param ([Parameter(Mandatory = $true,HelpMessage = 'Pounds coming from the system')][float]$Pounds) 30 | 31 | if ($Pounds -ne '') 32 | { 33 | [math]::round($Pounds / 2.205,2) 34 | } 35 | 36 | Return 37 | } -------------------------------------------------------------------------------- /SysInfo/Private/Get-WritePolicy.ps1: -------------------------------------------------------------------------------- 1 | Function Get-WritePolicy 2 | { 3 | <# 4 | .SYNOPSIS 5 | Code lookup table 6 | 7 | .DESCRIPTION 8 | Checks and converts codes to meaning full information 9 | 10 | .PARAMETER Code 11 | The code received the the system. 12 | 13 | .EXAMPLE 14 | Get-WritePolicy -Code Value 15 | Converts code to the associated string value 16 | 17 | .LINK 18 | https://www.sconstantinou.com 19 | 20 | .INPUTS 21 | None 22 | 23 | .OUTPUTS 24 | System.String 25 | #> 26 | 27 | param ([Parameter(Mandatory = $true,HelpMessage = 'Code received from the system')][uint16]$Code) 28 | 29 | if ($Code -ne '') 30 | { 31 | switch ($Code){ 32 | 1 33 | { 34 | 'Other' 35 | } 36 | 2 37 | { 38 | 'Unknown' 39 | } 40 | 3 41 | { 42 | 'Write Back' 43 | } 44 | 4 45 | { 46 | 'Write Through' 47 | } 48 | 5 49 | { 50 | 'Varies with Address' 51 | } 52 | 6 53 | { 54 | 'Determination Per I/O' 55 | } 56 | default 57 | { 58 | 'Invalid Code' 59 | } 60 | } 61 | } 62 | Return 63 | } 64 | -------------------------------------------------------------------------------- /SysInfo/Private/Optimize-Output.ps1: -------------------------------------------------------------------------------- 1 | Function Optimize-Output 2 | { 3 | <# 4 | .SYNOPSIS 5 | Optimizes output information 6 | 7 | .DESCRIPTION 8 | Optimizes output information 9 | 10 | .PARAMETER Object 11 | Object with the system information 12 | 13 | .PARAMETER Properties 14 | Properties for the output object 15 | 16 | .PARAMETER DefaultProperties 17 | Default properties for the output object 18 | 19 | .EXAMPLE 20 | Optimize-Output -Object Value -Properties Value -DefaultProperties Value 21 | Optimizes output 22 | 23 | .LINK 24 | https://www.sconstantinou.com 25 | 26 | .INPUTS 27 | None 28 | 29 | .OUTPUTS 30 | PSObject 31 | #> 32 | 33 | 34 | 35 | param ( 36 | [PSObject]$Object, 37 | [String[]]$Properties, 38 | [String[]]$DefaultProperties 39 | ) 40 | 41 | 42 | function Get-NotePropertiesOnly 43 | { 44 | <# 45 | .SYNOPSIS 46 | Filters NoteProperties only from the object members 47 | 48 | .DESCRIPTION 49 | Filters NoteProperties only from the object members 50 | 51 | .PARAMETER Members 52 | Members from the object 53 | 54 | .EXAMPLE 55 | Get-NotePropertiesOnly -Members Value 56 | Filters NoteProperties only from the object members 57 | 58 | .LINK 59 | https://www.sconstantinou.com 60 | 61 | .INPUTS 62 | Object 63 | 64 | .OUTPUTS 65 | Object 66 | #> 67 | 68 | 69 | param 70 | ( 71 | [Parameter(Mandatory = $true, ValueFromPipeline = $true, HelpMessage = 'Filter Only NoteProperties')] 72 | $Members 73 | ) 74 | process 75 | { 76 | if ($Members.MemberType -eq 'NoteProperty') 77 | { 78 | $Members 79 | } 80 | } 81 | } 82 | 83 | if ($Properties.Count -eq 0) 84 | { 85 | $DefaultProperties = $DefaultProperties | Sort-Object 86 | Write-Output -InputObject $Object | Select-Object -Property $DefaultProperties 87 | } 88 | elseif ($Properties -eq '*') 89 | { 90 | $Properties = ($Object | 91 | Get-Member | 92 | Get-NotePropertiesOnly).Name | Sort-Object 93 | Write-Output -InputObject $Object | Select-Object -Property $Properties 94 | } 95 | else 96 | { 97 | Write-Output -InputObject $Object | Select-Object -Property $Properties 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-1394Controller.ps1: -------------------------------------------------------------------------------- 1 | function Get-1394Controller { 2 | <# 3 | .SYNOPSIS 4 | 5 | Gets the capabilities and management of a 1394 controller. 6 | 7 | .DESCRIPTION 8 | 9 | Gets the capabilities and management of a 1394 controller 10 | and converts all codes in results into human readable format. 11 | 12 | .PARAMETER ComputerName 13 | 14 | Specifies the computer names or IP Addresses of the systems that 15 | we want to get the information from. 16 | 17 | .PARAMETER Credential 18 | 19 | Specifies the credentials that will be used to get the information 20 | from remote system. 21 | 22 | .PARAMETER Authentication 23 | 24 | Specifies the authentication that will be used to connect to the 25 | remote system to get the information from. 26 | 27 | .PARAMETER Protocol 28 | 29 | Specifies the protocol that will be used to get the information 30 | from the remote system. 31 | 32 | .PARAMETER Properties 33 | 34 | Specifies the object properties that appear in the display and 35 | the order in which they appear. Wildcards are permitted. 36 | 37 | .INPUTS 38 | 39 | System.Array. Get-1394Controller can accept a string value to 40 | determine the ComputerName parameter. 41 | 42 | .OUTPUTS 43 | 44 | System.Object. Get-1394Controller returns an object containing 45 | all the information that has been retrieved. 46 | 47 | .EXAMPLE 48 | 49 | PS C:\> Get-1394Controller 50 | 51 | This command gets the information from local system 52 | 53 | .EXAMPLE 54 | 55 | PS C:\> Get-1394Controller -ComputerName Server1 56 | 57 | This command gets the information from Server1 58 | 59 | .EXAMPLE 60 | 61 | PS C:\> Get-1394Controller -ComputerName "192.168.0.5" 62 | 63 | This command gets the information from remote system with IP 192.168.0.5 64 | 65 | .EXAMPLE 66 | 67 | PS C:\> Get-1394Controller -ComputerName Server1,Server2,Server3 68 | 69 | This command gets the information from Server1, Server2 and Server3 70 | 71 | .EXAMPLE 72 | 73 | PS C:\> Get-1394Controller -ComputerName Server1 -Properties Name,Status 74 | 75 | This command gets the information from Server1 and will output only Name 76 | and Status Properties. 77 | 78 | .EXAMPLE 79 | 80 | PS C:\> Get-1394Controller -ComputerName Server1 -Properties * 81 | 82 | This command gets the information from Server1 and will output all properties 83 | 84 | .EXAMPLE 85 | 86 | PS C:\> "Server1" | Get-1394Controller 87 | 88 | This command gets the information from Server1 89 | 90 | .EXAMPLE 91 | 92 | PS C:\> Get-1394Controller -ComputerName Server1 -Protocol DCOM 93 | 94 | This command gets the information from Server1 using DCOM protocol 95 | 96 | .EXAMPLE 97 | 98 | PS C:\> Get-1394Controller -ComputerName Server1 -Credential domain\user 99 | 100 | This command gets the information from Server1 using a different user 101 | 102 | .EXAMPLE 103 | 104 | PS C:\> Get-1394Controller -ComputerName Server1 -Credential domain\user -Authentication Basic 105 | 106 | This command gets the information from Server1 using a different user using basic authentication 107 | 108 | .LINK 109 | 110 | https://www.sconstantinou.com/get-1394controller 111 | #> 112 | 113 | [cmdletbinding()] 114 | 115 | param ( 116 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 117 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 118 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 119 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 120 | [SupportsWildcards()][alias('Property')][String[]]$Properties) 121 | 122 | $ClassName = 'Win32_1394Controller' 123 | [Collections.ArrayList]$DefaultProperties = 'Manufacturer','Name','Status','SystemName' 124 | 125 | [Collections.ArrayList]$AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 126 | $RemoveProperties = @('CreationClassName','SystemCreationClassName','PNPDeviceID') 127 | foreach ($_ in $RemoveProperties){$AllProperties.Remove($_)} 128 | 129 | $1394Controller = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 130 | 131 | foreach ($_ in $1394Controller){ 132 | 133 | $_.Availability = Get-Availability -Code ($_.Availability) 134 | $_.ConfigManagerErrorCode = Get-ConfigManagerErrorCode -Code ($_.ConfigManagerErrorCode) 135 | $_.PowerManagementCapabilities = Get-PowerManagementCapabilitiesCode -Code ($_.PowerManagementCapabilities) 136 | $_.StatusInfo = Get-StatusInfo -Code ($_.StatusInfo) 137 | $_.ProtocolSupported = Get-ProtocolSupported -Code ($_.ProtocolSupported) 138 | } 139 | 140 | Optimize-Output -Object $1394Controller -Properties $Properties -DefaultProperties $DefaultProperties 141 | } -------------------------------------------------------------------------------- /SysInfo/Public/Get-BIOS.ps1: -------------------------------------------------------------------------------- 1 | function Get-BIOS 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the attributes of the computer system's basic input/output 7 | services (BIOS) that are installed on a computer. 8 | 9 | .DESCRIPTION 10 | 11 | Gets the attributes of the computer system's basic input/output 12 | services (BIOS) that are installed on a computer and converts 13 | all codes in results into human readable format. 14 | 15 | .PARAMETER ComputerName 16 | 17 | Specifies the computer names or IP Addresses of the systems that 18 | we want to get the information from. 19 | 20 | .PARAMETER Credential 21 | 22 | Specifies the credentials that will be used to get the information 23 | from remote system. 24 | 25 | .PARAMETER Authentication 26 | 27 | Specifies the authentication that will be used to connect to the 28 | remote system to get the information from. 29 | 30 | .PARAMETER Protocol 31 | 32 | Specifies the protocol that will be used to get the information 33 | from the remote system. 34 | 35 | .PARAMETER Properties 36 | 37 | Specifies the object properties that appear in the display and 38 | the order in which they appear. Wildcards are permitted. 39 | 40 | .INPUTS 41 | 42 | System.Array. Get-BIOS can accept a string value to 43 | determine the ComputerName parameter. 44 | 45 | .OUTPUTS 46 | 47 | System.Object. Get-BIOS returns an object containing 48 | all the information that has been retrieved. 49 | 50 | .EXAMPLE 51 | 52 | PS C:\> Get-BIOS 53 | 54 | This command gets the information from local system 55 | 56 | .EXAMPLE 57 | 58 | PS C:\> Get-BIOS -ComputerName Server1 59 | 60 | This command gets the information from Server1 61 | 62 | .EXAMPLE 63 | 64 | PS C:\> Get-BIOS -ComputerName "192.168.0.5" 65 | 66 | This command gets the information from remote system with IP 192.168.0.5 67 | 68 | .EXAMPLE 69 | 70 | PS C:\> Get-BIOS -ComputerName Server1,Server2,Server3 71 | 72 | This command gets the information from Server1, Server2 and Server3 73 | 74 | .EXAMPLE 75 | 76 | PS C:\> Get-BIOS -ComputerName Server1 -Properties Name,Status 77 | 78 | This command gets the information from Server1 and will output only Name 79 | and Status Properties. 80 | 81 | .EXAMPLE 82 | 83 | PS C:\> Get-BIOS -ComputerName Server1 -Properties * 84 | 85 | This command gets the information from Server1 and will output all properties 86 | 87 | .EXAMPLE 88 | 89 | PS C:\> "Server1" | Get-BIOS 90 | 91 | This command gets the information from Server1 92 | 93 | .EXAMPLE 94 | 95 | PS C:\> Get-BIOS -ComputerName Server1 -Protocol DCOM 96 | 97 | This command gets the information from Server1 using DCOM protocol 98 | 99 | .EXAMPLE 100 | 101 | PS C:\> Get-BIOS -ComputerName Server1 -Credential domain\user 102 | 103 | This command gets the information from Server1 using a different user 104 | 105 | .EXAMPLE 106 | 107 | PS C:\> Get-BIOS -ComputerName Server1 -Credential domain\user -Authentication Basic 108 | 109 | This command gets the information from Server1 using a different user using basic authentication 110 | 111 | .LINK 112 | 113 | https://www.sconstantinou.com/get-bios 114 | #> 115 | 116 | [cmdletbinding()] 117 | 118 | param ( 119 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 120 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 121 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 122 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 123 | [SupportsWildcards()][alias('Property')][String[]]$Properties) 124 | 125 | $ClassName = 'Win32_BIOS' 126 | [Collections.ArrayList]$DefaultProperties = 'Name', 'Manufacturer', 'SerialNumber', 'Version', 'SMBIOSBIOSVersion', 'SystemName' 127 | 128 | $AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 129 | 130 | $BIOS = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 131 | 132 | foreach ($_ in $BIOS) 133 | { 134 | $_.BiosCharacteristics = Get-BiosCharacteristicsCode -Code ($_.BiosCharacteristics) 135 | $_.SoftwareElementState = Get-SoftwareElementState -Code ($_.SoftwareElementState) 136 | $_.TargetOperatingSystem = Get-TargetOperatingSystem -Code ($_.TargetOperatingSystem) 137 | } 138 | 139 | Optimize-Output -Object $BIOS -Properties $Properties -DefaultProperties $DefaultProperties 140 | } 141 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-Battery.ps1: -------------------------------------------------------------------------------- 1 | function Get-Battery 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the information of a battery connected to the computer 7 | system. 8 | 9 | .DESCRIPTION 10 | 11 | Gets the information of a battery connected to the computer 12 | system and converts all codes in results into human readable 13 | format. 14 | 15 | .PARAMETER ComputerName 16 | 17 | Specifies the computer names or IP Addresses of the systems that 18 | we want to get the information from. 19 | 20 | .PARAMETER Credential 21 | 22 | Specifies the credentials that will be used to get the information 23 | from remote system. 24 | 25 | .PARAMETER Authentication 26 | 27 | Specifies the authentication that will be used to connect to the 28 | remote system to get the information from. 29 | 30 | .PARAMETER Protocol 31 | 32 | Specifies the protocol that will be used to get the information 33 | from the remote system. 34 | 35 | .PARAMETER Properties 36 | 37 | Specifies the object properties that appear in the display and 38 | the order in which they appear. Wildcards are permitted. 39 | 40 | .INPUTS 41 | 42 | System.Array. Get-Battery can accept a string value to 43 | determine the ComputerName parameter. 44 | 45 | .OUTPUTS 46 | 47 | System.Object. Get-Battery returns an object containing 48 | all the information that has been retrieved. 49 | 50 | .EXAMPLE 51 | 52 | PS C:\> Get-Battery 53 | 54 | This command gets the information from local system 55 | 56 | .EXAMPLE 57 | 58 | PS C:\> Get-Battery -ComputerName Server1 59 | 60 | This command gets the information from Server1 61 | 62 | .EXAMPLE 63 | 64 | PS C:\> Get-Battery -ComputerName "192.168.0.5" 65 | 66 | This command gets the information from remote system with IP 192.168.0.5 67 | 68 | .EXAMPLE 69 | 70 | PS C:\> Get-Battery -ComputerName Server1,Server2,Server3 71 | 72 | This command gets the information from Server1, Server2 and Server3 73 | 74 | .EXAMPLE 75 | 76 | PS C:\> Get-Battery -ComputerName Server1 -Properties Name,Status 77 | 78 | This command gets the information from Server1 and will output only Name 79 | and Status Properties. 80 | 81 | .EXAMPLE 82 | 83 | PS C:\> Get-Battery -ComputerName Server1 -Properties * 84 | 85 | This command gets the information from Server1 and will output all properties 86 | 87 | .EXAMPLE 88 | 89 | PS C:\> "Server1" | Get-Battery 90 | 91 | This command gets the information from Server1 92 | 93 | .EXAMPLE 94 | 95 | PS C:\> Get-Battery -ComputerName Server1 -Protocol DCOM 96 | 97 | This command gets the information from Server1 using DCOM protocol 98 | 99 | .EXAMPLE 100 | 101 | PS C:\> Get-Battery -ComputerName Server1 -Credential domain\user 102 | 103 | This command gets the information from Server1 using a different user 104 | 105 | .EXAMPLE 106 | 107 | PS C:\> Get-Battery -ComputerName Server1 -Credential domain\user -Authentication Basic 108 | 109 | This command gets the information from Server1 using a different user using basic authentication 110 | 111 | .LINK 112 | 113 | https://www.sconstantinou.com/get-battery 114 | #> 115 | 116 | [cmdletbinding()] 117 | 118 | param ( 119 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 120 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 121 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 122 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 123 | [SupportsWildcards()][alias('Property')][String[]]$Properties) 124 | 125 | $ClassName = 'Win32_Battery' 126 | [Collections.ArrayList]$DefaultProperties = 'Name', 'BatteryStatus', 'DesignCapacity', 'Status', 'SystemName' 127 | 128 | [Collections.ArrayList]$AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 129 | $RemoveProperties = @('CreationClassName', 'SystemCreationClassName', 'PNPDeviceID') 130 | foreach ($_ in $RemoveProperties) 131 | { 132 | $AllProperties.Remove($_) 133 | } 134 | 135 | $Battery = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 136 | 137 | foreach ($_ in $Battery) 138 | { 139 | $_.Availability = Get-Availability -Code ($_.Availability) 140 | $_.BatteryStatus = Get-BatteryStatus -Code ($_.BatteryStatus) 141 | $_.Chemistry = Get-Chemistry -Code ($_.Chemistry) 142 | $_.ConfigManagerErrorCode = Get-ConfigManagerErrorCode -Code ($_.ConfigManagerErrorCode) 143 | $_.PowerManagementCapabilities = Get-PowerManagementCapabilitiesCode -Code ($_.PowerManagementCapabilities) 144 | $_.StatusInfo = Get-StatusInfo -Code ($_.StatusInfo) 145 | } 146 | 147 | Optimize-Output -Object $Battery -Properties $Properties -DefaultProperties $DefaultProperties 148 | } 149 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-Bus.ps1: -------------------------------------------------------------------------------- 1 | function Get-Bus 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the information of a physical bus as seen by a computer 7 | running a Windows operating system. 8 | 9 | .DESCRIPTION 10 | 11 | Gets the information of a physical bus as seen by a computer 12 | running a Windows operating system and converts all codes in 13 | results into human readable format. 14 | 15 | .PARAMETER ComputerName 16 | 17 | Specifies the computer names or IP Addresses of the systems that 18 | we want to get the information from. 19 | 20 | .PARAMETER Credential 21 | 22 | Specifies the credentials that will be used to get the information 23 | from remote system. 24 | 25 | .PARAMETER Authentication 26 | 27 | Specifies the authentication that will be used to connect to the 28 | remote system to get the information from. 29 | 30 | .PARAMETER Protocol 31 | 32 | Specifies the protocol that will be used to get the information 33 | from the remote system. 34 | 35 | .PARAMETER Properties 36 | 37 | Specifies the object properties that appear in the display and 38 | the order in which they appear. Wildcards are permitted. 39 | 40 | .INPUTS 41 | 42 | System.Array. Get-Bus can accept a string value to 43 | determine the ComputerName parameter. 44 | 45 | .OUTPUTS 46 | 47 | System.Object. Get-Bus returns an object containing 48 | all the information that has been retrieved. 49 | 50 | .EXAMPLE 51 | 52 | PS C:\> Get-Bus 53 | 54 | This command gets the information from local system 55 | 56 | .EXAMPLE 57 | 58 | PS C:\> Get-Bus -ComputerName Server1 59 | 60 | This command gets the information from Server1 61 | 62 | .EXAMPLE 63 | 64 | PS C:\> Get-Bus -ComputerName "192.168.0.5" 65 | 66 | This command gets the information from remote system with IP 192.168.0.5 67 | 68 | .EXAMPLE 69 | 70 | PS C:\> Get-Bus -ComputerName Server1,Server2,Server3 71 | 72 | This command gets the information from Server1, Server2 and Server3 73 | 74 | .EXAMPLE 75 | 76 | PS C:\> Get-Bus -ComputerName Server1 -Properties Name,Status 77 | 78 | This command gets the information from Server1 and will output only Name 79 | and Status Properties. 80 | 81 | .EXAMPLE 82 | 83 | PS C:\> Get-Bus -ComputerName Server1 -Properties * 84 | 85 | This command gets the information from Server1 and will output all properties 86 | 87 | .EXAMPLE 88 | 89 | PS C:\> "Server1" | Get-Bus 90 | 91 | This command gets the information from Server1 92 | 93 | .EXAMPLE 94 | 95 | PS C:\> Get-Bus -ComputerName Server1 -Protocol DCOM 96 | 97 | This command gets the information from Server1 using DCOM protocol 98 | 99 | .EXAMPLE 100 | 101 | PS C:\> Get-Bus -ComputerName Server1 -Credential domain\user 102 | 103 | This command gets the information from Server1 using a different user 104 | 105 | .EXAMPLE 106 | 107 | PS C:\> Get-Bus -ComputerName Server1 -Credential domain\user -Authentication Basic 108 | 109 | This command gets the information from Server1 using a different user using basic authentication 110 | 111 | .LINK 112 | 113 | https://www.sconstantinou.com/get-bus 114 | #> 115 | 116 | [cmdletbinding()] 117 | 118 | param ( 119 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 120 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 121 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 122 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 123 | [SupportsWildcards()][alias('Property')][String[]]$Properties) 124 | 125 | $ClassName = 'Win32_Bus' 126 | [Collections.ArrayList]$DefaultProperties = 'Name', 'DeviceID', 'BusNum', 'BusType', 'SystemName' 127 | 128 | [Collections.ArrayList]$AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 129 | $RemoveProperties = @('CreationClassName', 'SystemCreationClassName', 'PNPDeviceID') 130 | foreach ($_ in $RemoveProperties) 131 | { 132 | $AllProperties.Remove($_) 133 | } 134 | 135 | $Bus = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 136 | 137 | foreach ($_ in $Bus) 138 | { 139 | $_.Availability = Get-Availability -Code ($_.Availability) 140 | $_.ConfigManagerErrorCode = Get-ConfigManagerErrorCode -Code ($_.ConfigManagerErrorCode) 141 | $_.PowerManagementCapabilities = Get-PowerManagementCapabilitiesCode -Code ($_.PowerManagementCapabilities) 142 | $_.StatusInfo = Get-StatusInfo -Code ($_.StatusInfo) 143 | $_.BusType = Get-BusType -Code ($_.BusType) 144 | } 145 | 146 | Optimize-Output -Object $Bus -Properties $Properties -DefaultProperties $DefaultProperties 147 | } 148 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-Desktop.ps1: -------------------------------------------------------------------------------- 1 | function Get-Desktop 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the information of the common characteristics of a user's 7 | desktop. 8 | 9 | .DESCRIPTION 10 | 11 | Gets the information of the common characteristics of a user's 12 | desktop and converts all codes in results into human readable 13 | format. 14 | 15 | .PARAMETER ComputerName 16 | 17 | Specifies the computer names or IP Addresses of the systems that 18 | we want to get the information from. 19 | 20 | .PARAMETER Credential 21 | 22 | Specifies the credentials that will be used to get the information 23 | from remote system. 24 | 25 | .PARAMETER Authentication 26 | 27 | Specifies the authentication that will be used to connect to the 28 | remote system to get the information from. 29 | 30 | .PARAMETER Protocol 31 | 32 | Specifies the protocol that will be used to get the information 33 | from the remote system. 34 | 35 | .PARAMETER Properties 36 | 37 | Specifies the object properties that appear in the display and 38 | the order in which they appear. Wildcards are permitted. 39 | 40 | .INPUTS 41 | 42 | System.Array. Get-Desktop can accept a string value to 43 | determine the ComputerName parameter. 44 | 45 | .OUTPUTS 46 | 47 | System.Object. Get-Desktop returns an object containing 48 | all the information that has been retrieved. 49 | 50 | .EXAMPLE 51 | 52 | PS C:\> Get-Desktop 53 | 54 | This command gets the information from local system 55 | 56 | .EXAMPLE 57 | 58 | PS C:\> Get-Desktop -ComputerName Server1 59 | 60 | This command gets the information from Server1 61 | 62 | .EXAMPLE 63 | 64 | PS C:\> Get-Desktop -ComputerName "192.168.0.5" 65 | 66 | This command gets the information from remote system with IP 192.168.0.5 67 | 68 | .EXAMPLE 69 | 70 | PS C:\> Get-Desktop -ComputerName Server1,Server2,Server3 71 | 72 | This command gets the information from Server1, Server2 and Server3 73 | 74 | .EXAMPLE 75 | 76 | PS C:\> Get-Desktop -ComputerName Server1 -Properties Name,Status 77 | 78 | This command gets the information from Server1 and will output only Name 79 | and Status Properties. 80 | 81 | .EXAMPLE 82 | 83 | PS C:\> Get-Desktop -ComputerName Server1 -Properties * 84 | 85 | This command gets the information from Server1 and will output all properties 86 | 87 | .EXAMPLE 88 | 89 | PS C:\> "Server1" | Get-Desktop 90 | 91 | This command gets the information from Server1 92 | 93 | .EXAMPLE 94 | 95 | PS C:\> Get-Desktop -ComputerName Server1 -Protocol DCOM 96 | 97 | This command gets the information from Server1 using DCOM protocol 98 | 99 | .EXAMPLE 100 | 101 | PS C:\> Get-Desktop -ComputerName Server1 -Credential domain\user 102 | 103 | This command gets the information from Server1 using a different user 104 | 105 | .EXAMPLE 106 | 107 | PS C:\> Get-Desktop -ComputerName Server1 -Credential domain\user -Authentication Basic 108 | 109 | This command gets the information from Server1 using a different user using basic authentication 110 | 111 | .LINK 112 | 113 | https://www.sconstantinou.com/get-desktop 114 | #> 115 | 116 | [cmdletbinding()] 117 | 118 | param ( 119 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 120 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 121 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 122 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 123 | [SupportsWildcards()][alias('Property')][String[]]$Properties 124 | ) 125 | 126 | $ClassName = 'Win32_Desktop' 127 | [Collections.ArrayList]$DefaultProperties = 'SettingID', 'Name', 'ScreenSaverActive', 'ScreenSaverSecure', 'ScreenSaverTimeout', 'SystemName' 128 | 129 | $AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 130 | 131 | $Desktop = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 132 | 133 | Optimize-Output -Object $Desktop -Properties $Properties -DefaultProperties $DefaultProperties 134 | } 135 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-Fan.ps1: -------------------------------------------------------------------------------- 1 | function Get-Fan 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the properties of a fan device in the computer system. 7 | 8 | .DESCRIPTION 9 | 10 | Gets the properties of a fan device in the computer system 11 | and converts all codes in results into human readable format. 12 | 13 | .PARAMETER ComputerName 14 | 15 | Specifies the computer names or IP Addresses of the systems that 16 | we want to get the information from. 17 | 18 | .PARAMETER Credential 19 | 20 | Specifies the credentials that will be used to get the information 21 | from remote system. 22 | 23 | .PARAMETER Authentication 24 | 25 | Specifies the authentication that will be used to connect to the 26 | remote system to get the information from. 27 | 28 | .PARAMETER Protocol 29 | 30 | Specifies the protocol that will be used to get the information 31 | from the remote system. 32 | 33 | .PARAMETER Properties 34 | 35 | Specifies the object properties that appear in the display and 36 | the order in which they appear. Wildcards are permitted. 37 | 38 | .INPUTS 39 | 40 | System.Array. Get-Fan can accept a string value to 41 | determine the ComputerName parameter. 42 | 43 | .OUTPUTS 44 | 45 | System.Object. Get-Fan returns an object containing 46 | all the information that has been retrieved. 47 | 48 | .EXAMPLE 49 | 50 | PS C:\> Get-Fan 51 | 52 | This command gets the information from local system 53 | 54 | .EXAMPLE 55 | 56 | PS C:\> Get-Fan -ComputerName Server1 57 | 58 | This command gets the information from Server1 59 | 60 | .EXAMPLE 61 | 62 | PS C:\> Get-Fan -ComputerName "192.168.0.5" 63 | 64 | This command gets the information from remote system with IP 192.168.0.5 65 | 66 | .EXAMPLE 67 | 68 | PS C:\> Get-Fan -ComputerName Server1,Server2,Server3 69 | 70 | This command gets the information from Server1, Server2 and Server3 71 | 72 | .EXAMPLE 73 | 74 | PS C:\> Get-Fan -ComputerName Server1 -Properties Name,Status 75 | 76 | This command gets the information from Server1 and will output only Name 77 | and Status Properties. 78 | 79 | .EXAMPLE 80 | 81 | PS C:\> Get-Fan -ComputerName Server1 -Properties * 82 | 83 | This command gets the information from Server1 and will output all properties 84 | 85 | .EXAMPLE 86 | 87 | PS C:\> "Server1" | Get-Fan 88 | 89 | This command gets the information from Server1 90 | 91 | .EXAMPLE 92 | 93 | PS C:\> Get-Fan -ComputerName Server1 -Protocol DCOM 94 | 95 | This command gets the information from Server1 using DCOM protocol 96 | 97 | .EXAMPLE 98 | 99 | PS C:\> Get-Fan -ComputerName Server1 -Credential domain\user 100 | 101 | This command gets the information from Server1 using a different user 102 | 103 | .EXAMPLE 104 | 105 | PS C:\> Get-Fan -ComputerName Server1 -Credential domain\user -Authentication Basic 106 | 107 | This command gets the information from Server1 using a different user using basic authentication 108 | 109 | .LINK 110 | 111 | https://www.sconstantinou.com/get-fan 112 | #> 113 | 114 | [cmdletbinding()] 115 | 116 | param ( 117 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 118 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 119 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 120 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 121 | [SupportsWildcards()][alias('Property')][String[]]$Properties 122 | ) 123 | 124 | $ClassName = 'Win32_Fan' 125 | [Collections.ArrayList]$DefaultProperties = 'Name', 'ActiveCooling', 'DesiredSpeed', 'VariableSpeed', 'Status', 'SystemName' 126 | 127 | [Collections.ArrayList]$AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 128 | $RemoveProperties = @('CreationClassName', 'SystemCreationClassName', 'DeviceID', 'PNPDeviceID') 129 | foreach ($_ in $RemoveProperties) 130 | { 131 | $AllProperties.Remove($_) 132 | } 133 | 134 | $Fan = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 135 | 136 | foreach ($_ in $Fan) 137 | { 138 | $_.Availability = Get-Availability -Code ($_.Availability) 139 | $_.ConfigManagerErrorCode = Get-ConfigManagerErrorCode -Code ($_.ConfigManagerErrorCode) 140 | $_.PowerManagementCapabilities = Get-PowerManagementCapabilitiesCode -Code ($_.PowerManagementCapabilities) 141 | $_.StatusInfo = Get-StatusInfo -Code ($_.StatusInfo) 142 | } 143 | 144 | Optimize-Output -Object $Fan -Properties $Properties -DefaultProperties $DefaultProperties 145 | } 146 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-HeatPipe.ps1: -------------------------------------------------------------------------------- 1 | function Get-HeatPipe 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the properties of a heat pipe cooling device. 7 | 8 | .DESCRIPTION 9 | 10 | Gets the properties of a heat pipe cooling device and converts 11 | all codes in results into human readable format. 12 | 13 | .PARAMETER ComputerName 14 | 15 | Specifies the computer names or IP Addresses of the systems that 16 | we want to get the information from. 17 | 18 | .PARAMETER Credential 19 | 20 | Specifies the credentials that will be used to get the information 21 | from remote system. 22 | 23 | .PARAMETER Authentication 24 | 25 | Specifies the authentication that will be used to connect to the 26 | remote system to get the information from. 27 | 28 | .PARAMETER Protocol 29 | 30 | Specifies the protocol that will be used to get the information 31 | from the remote system. 32 | 33 | .PARAMETER Properties 34 | 35 | Specifies the object properties that appear in the display and 36 | the order in which they appear. Wildcards are permitted. 37 | 38 | .INPUTS 39 | 40 | System.Array. Get-HeatPipe can accept a string value to 41 | determine the ComputerName parameter. 42 | 43 | .OUTPUTS 44 | 45 | System.Object. Get-HeatPipe returns an object containing 46 | all the information that has been retrieved. 47 | 48 | .EXAMPLE 49 | 50 | PS C:\> Get-HeatPipe 51 | 52 | This command gets the information from local system 53 | 54 | .EXAMPLE 55 | 56 | PS C:\> Get-HeatPipe -ComputerName Server1 57 | 58 | This command gets the information from Server1 59 | 60 | .EXAMPLE 61 | 62 | PS C:\> Get-HeatPipe -ComputerName "192.168.0.5" 63 | 64 | This command gets the information from remote system with IP 192.168.0.5 65 | 66 | .EXAMPLE 67 | 68 | PS C:\> Get-HeatPipe -ComputerName Server1,Server2,Server3 69 | 70 | This command gets the information from Server1, Server2 and Server3 71 | 72 | .EXAMPLE 73 | 74 | PS C:\> Get-HeatPipe -ComputerName Server1 -Properties Name,Status 75 | 76 | This command gets the information from Server1 and will output only Name 77 | and Status Properties. 78 | 79 | .EXAMPLE 80 | 81 | PS C:\> Get-HeatPipe -ComputerName Server1 -Properties * 82 | 83 | This command gets the information from Server1 and will output all properties 84 | 85 | .EXAMPLE 86 | 87 | PS C:\> "Server1" | Get-HeatPipe 88 | 89 | This command gets the information from Server1 90 | 91 | .EXAMPLE 92 | 93 | PS C:\> Get-HeatPipe -ComputerName Server1 -Protocol DCOM 94 | 95 | This command gets the information from Server1 using DCOM protocol 96 | 97 | .EXAMPLE 98 | 99 | PS C:\> Get-HeatPipe -ComputerName Server1 -Credential domain\user 100 | 101 | This command gets the information from Server1 using a different user 102 | 103 | .EXAMPLE 104 | 105 | PS C:\> Get-HeatPipe -ComputerName Server1 -Credential domain\user -Authentication Basic 106 | 107 | This command gets the information from Server1 using a different user using basic authentication 108 | 109 | .LINK 110 | 111 | https://www.sconstantinou.com/get-heatpipe 112 | #> 113 | 114 | [cmdletbinding()] 115 | 116 | param ( 117 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 118 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 119 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 120 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 121 | [SupportsWildcards()][alias('Property')][String[]]$Properties 122 | ) 123 | 124 | $ClassName = 'Win32_HeatPipe' 125 | [Collections.ArrayList]$DefaultProperties = 'Name', 'ActiveCooling', 'Status', 'SystemName' 126 | 127 | [Collections.ArrayList]$AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 128 | $RemoveProperties = @('CreationClassName', 'SystemCreationClassName', 'PNPDeviceID') 129 | foreach ($_ in $RemoveProperties) 130 | { 131 | $AllProperties.Remove($_) 132 | } 133 | 134 | $HeatPipe = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 135 | 136 | foreach ($_ in $HeatPipe) 137 | { 138 | $_.Availability = Get-Availability -Code ($_.Availability) 139 | $_.ConfigManagerErrorCode = Get-ConfigManagerErrorCode -Code ($_.ConfigManagerErrorCode) 140 | $_.PowerManagementCapabilities = Get-PowerManagementCapabilitiesCode -Code ($_.PowerManagementCapabilities) 141 | $_.StatusInfo = Get-StatusInfo -Code ($_.StatusInfo) 142 | } 143 | 144 | Optimize-Output -Object $HeatPipe -Properties $Properties -DefaultProperties $DefaultProperties 145 | } 146 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-Keyboard.ps1: -------------------------------------------------------------------------------- 1 | Function Get-Keyboard 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the information about a keyboard installed on a computer 7 | system running Windows. 8 | 9 | .DESCRIPTION 10 | 11 | Gets the information about a keyboard installed on a computer 12 | system running Windows and converts all codes in results into 13 | human readable format. 14 | 15 | .PARAMETER ComputerName 16 | 17 | Specifies the computer names or IP Addresses of the systems that 18 | we want to get the information from. 19 | 20 | .PARAMETER Credential 21 | 22 | Specifies the credentials that will be used to get the information 23 | from remote system. 24 | 25 | .PARAMETER Authentication 26 | 27 | Specifies the authentication that will be used to connect to the 28 | remote system to get the information from. 29 | 30 | .PARAMETER Protocol 31 | 32 | Specifies the protocol that will be used to get the information 33 | from the remote system. 34 | 35 | .PARAMETER Properties 36 | 37 | Specifies the object properties that appear in the display and 38 | the order in which they appear. Wildcards are permitted. 39 | 40 | .INPUTS 41 | 42 | System.Array. Get-Keyboard can accept a string value to 43 | determine the ComputerName parameter. 44 | 45 | .OUTPUTS 46 | 47 | System.Object. Get-Keyboard returns an object containing 48 | all the information that has been retrieved. 49 | 50 | .EXAMPLE 51 | 52 | PS C:\> Get-Keyboard 53 | 54 | This command gets the information from local system 55 | 56 | .EXAMPLE 57 | 58 | PS C:\> Get-Keyboard -ComputerName Server1 59 | 60 | This command gets the information from Server1 61 | 62 | .EXAMPLE 63 | 64 | PS C:\> Get-Keyboard -ComputerName "192.168.0.5" 65 | 66 | This command gets the information from remote system with IP 192.168.0.5 67 | 68 | .EXAMPLE 69 | 70 | PS C:\> Get-Keyboard -ComputerName Server1,Server2,Server3 71 | 72 | This command gets the information from Server1, Server2 and Server3 73 | 74 | .EXAMPLE 75 | 76 | PS C:\> Get-Keyboard -ComputerName Server1 -Properties Name,Status 77 | 78 | This command gets the information from Server1 and will output only Name 79 | and Status Properties 80 | 81 | .EXAMPLE 82 | 83 | PS C:\> Get-Keyboard -ComputerName Server1 -Properties * 84 | 85 | This command gets the information from Server1 and will output all properties 86 | 87 | .EXAMPLE 88 | 89 | PS C:\> "Server1" | Get-Keyboard 90 | 91 | This command gets the information from Server1 92 | 93 | .EXAMPLE 94 | 95 | PS C:\> Get-Keyboard -ComputerName Server1 -Protocol DCOM 96 | 97 | This command gets the information from Server1 using DCOM protocol 98 | 99 | .EXAMPLE 100 | 101 | PS C:\> Get-Keyboard -ComputerName Server1 -Credential domain\user 102 | 103 | This command gets the information from Server1 using a different user 104 | 105 | .EXAMPLE 106 | 107 | PS C:\> Get-Keyboard -ComputerName Server1 -Credential domain\user -Authentication Basic 108 | 109 | This command gets the information from Server1 using a different user using basic authentication 110 | 111 | .LINK 112 | 113 | https://www.sconstantinou.com/get-keyboard 114 | #> 115 | 116 | [cmdletbinding()] 117 | 118 | param ( 119 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 120 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 121 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 122 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 123 | [SupportsWildcards()][alias('Property')][String[]]$Properties 124 | ) 125 | 126 | $ClassName = 'Win32_Keyboard' 127 | [Collections.ArrayList]$DefaultProperties = 'Name', 'Description', 'Status', 'Layout', 'NumberOfFunctionKeys', 'SystemName' 128 | 129 | [Collections.ArrayList]$AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 130 | $RemoveProperties = @('CreationClassName', 'SystemCreationClassName', 'PNPDeviceID') 131 | foreach ($_ in $RemoveProperties) 132 | { 133 | $AllProperties.Remove($_) 134 | } 135 | 136 | $Keyboard = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 137 | 138 | foreach ($_ in $Keyboard) 139 | { 140 | $_.Layout = Get-Layout -Code ($_.Layout) 141 | $_.Availability = Get-Availability -Code ($_.Availability) 142 | $_.ConfigManagerErrorCode = Get-ConfigManagerErrorCode -Code ($_.ConfigManagerErrorCode) 143 | $_.PowerManagementCapabilities = Get-PowerManagementCapabilitiesCode -Code ($_.PowerManagementCapabilities) 144 | $_.StatusInfo = Get-StatusInfo -Code ($_.StatusInfo) 145 | } 146 | 147 | Optimize-Output -Object $Keyboard -Properties $Properties -DefaultProperties $DefaultProperties 148 | } 149 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-Refrigeration.ps1: -------------------------------------------------------------------------------- 1 | function Get-Refrigeration 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the properties of a refrigeration device. 7 | 8 | .DESCRIPTION 9 | 10 | Gets the properties of a refrigeration device and converts 11 | all codes in results into human readable format. 12 | 13 | .PARAMETER ComputerName 14 | 15 | Specifies the computer names or IP Addresses of the systems that 16 | we want to get the information from. 17 | 18 | .PARAMETER Credential 19 | 20 | Specifies the credentials that will be used to get the information 21 | from remote system. 22 | 23 | .PARAMETER Authentication 24 | 25 | Specifies the authentication that will be used to connect to the 26 | remote system to get the information from. 27 | 28 | .PARAMETER Protocol 29 | 30 | Specifies the protocol that will be used to get the information 31 | from the remote system. 32 | 33 | .PARAMETER Properties 34 | 35 | Specifies the object properties that appear in the display and 36 | the order in which they appear. Wildcards are permitted. 37 | 38 | .INPUTS 39 | 40 | System.Array. Get-Refrigeration can accept a string value to 41 | determine the ComputerName parameter. 42 | 43 | .OUTPUTS 44 | 45 | System.Object. Get-Refrigeration returns an object containing 46 | all the information that has been retrieved. 47 | 48 | .EXAMPLE 49 | 50 | PS C:\> Get-Refrigeration 51 | 52 | This command gets the information from local system 53 | 54 | .EXAMPLE 55 | 56 | PS C:\> Get-Refrigeration -ComputerName Server1 57 | 58 | This command gets the information from Server1 59 | 60 | .EXAMPLE 61 | 62 | PS C:\> Get-Refrigeration -ComputerName "192.168.0.5" 63 | 64 | This command gets the information from remote system with IP 192.168.0.5 65 | 66 | .EXAMPLE 67 | 68 | PS C:\> Get-Refrigeration -ComputerName Server1,Server2,Server3 69 | 70 | This command gets the information from Server1, Server2 and Server3 71 | 72 | .EXAMPLE 73 | 74 | PS C:\> Get-Refrigeration -ComputerName Server1 -Properties Name,Status 75 | 76 | This command gets the information from Server1 and will output only Name 77 | and Status Properties. 78 | 79 | .EXAMPLE 80 | 81 | PS C:\> Get-Refrigeration -ComputerName Server1 -Properties * 82 | 83 | This command gets the information from Server1 and will output all properties 84 | 85 | .EXAMPLE 86 | 87 | PS C:\> "Server1" | Get-Refrigeration 88 | 89 | This command gets the information from Server1 90 | 91 | .EXAMPLE 92 | 93 | PS C:\> Get-Refrigeration -ComputerName Server1 -Protocol DCOM 94 | 95 | This command gets the information from Server1 using DCOM protocol 96 | 97 | .EXAMPLE 98 | 99 | PS C:\> Get-Refrigeration -ComputerName Server1 -Credential domain\user 100 | 101 | This command gets the information from Server1 using a different user 102 | 103 | .EXAMPLE 104 | 105 | PS C:\> Get-Refrigeration -ComputerName Server1 -Credential domain\user -Authentication Basic 106 | 107 | This command gets the information from Server1 using a different user using basic authentication 108 | 109 | .LINK 110 | 111 | https://www.sconstantinou.com/get-refrigeration 112 | #> 113 | 114 | [cmdletbinding()] 115 | 116 | param ( 117 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 118 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 119 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 120 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 121 | [SupportsWildcards()][alias('Property')][String[]]$Properties 122 | ) 123 | 124 | $ClassName = 'Win32_Refrigeration' 125 | [Collections.ArrayList]$DefaultProperties = 'Name', 'Status', 'SystemName' 126 | 127 | [Collections.ArrayList]$AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 128 | $RemoveProperties = @('CreationClassName', 'SystemCreationClassName', 'DeviceID', 'PNPDeviceID') 129 | foreach ($_ in $RemoveProperties) 130 | { 131 | $AllProperties.Remove($_) 132 | } 133 | 134 | $Refrigeration = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 135 | 136 | foreach ($_ in $Refrigeration) 137 | { 138 | $_.Availability = Get-Availability -Code ($_.Availability) 139 | $_.ConfigManagerErrorCode = Get-ConfigManagerErrorCode -Code ($_.ConfigManagerErrorCode) 140 | $_.PowerManagementCapabilities = Get-PowerManagementCapabilitiesCode -Code ($_.PowerManagementCapabilities) 141 | $_.StatusInfo = Get-StatusInfo -Code ($_.StatusInfo) 142 | } 143 | 144 | Optimize-Output -Object $Refrigeration -Properties $Properties -DefaultProperties $DefaultProperties 145 | } 146 | -------------------------------------------------------------------------------- /SysInfo/Public/Get-SoundDevice.ps1: -------------------------------------------------------------------------------- 1 | function Get-SoundDevice 2 | { 3 | <# 4 | .SYNOPSIS 5 | 6 | Gets the information of a sound device on a computer system 7 | running Windows. 8 | 9 | .DESCRIPTION 10 | 11 | Gets the information of a sound device on a computer system 12 | running Windows and converts all codes in results into human 13 | readable format. 14 | 15 | .PARAMETER ComputerName 16 | 17 | Specifies the computer names or IP Addresses of the systems that 18 | we want to get the information from. 19 | 20 | .PARAMETER Credential 21 | 22 | Specifies the credentials that will be used to get the information 23 | from remote system. 24 | 25 | .PARAMETER Authentication 26 | 27 | Specifies the authentication that will be used to connect to the 28 | remote system to get the information from. 29 | 30 | .PARAMETER Protocol 31 | 32 | Specifies the protocol that will be used to get the information 33 | from the remote system. 34 | 35 | .PARAMETER Properties 36 | 37 | Specifies the object properties that appear in the display and 38 | the order in which they appear. Wildcards are permitted. 39 | 40 | .INPUTS 41 | 42 | System.Array. Get-SoundDevice can accept a string value to 43 | determine the ComputerName parameter. 44 | 45 | .OUTPUTS 46 | 47 | System.Object. Get-SoundDevice returns an object containing 48 | all the information that has been retrieved. 49 | 50 | .EXAMPLE 51 | 52 | PS C:\> Get-SoundDevice 53 | 54 | This command gets the information from local system 55 | 56 | .EXAMPLE 57 | 58 | PS C:\> Get-SoundDevice -ComputerName Server1 59 | 60 | This command gets the information from Server1 61 | 62 | .EXAMPLE 63 | 64 | PS C:\> Get-SoundDevice -ComputerName "192.168.0.5" 65 | 66 | This command gets the information from remote system with IP 192.168.0.5 67 | 68 | .EXAMPLE 69 | 70 | PS C:\> Get-SoundDevice -ComputerName Server1,Server2,Server3 71 | 72 | This command gets the information from Server1, Server2 and Server3 73 | 74 | .EXAMPLE 75 | 76 | PS C:\> Get-SoundDevice -ComputerName Server1 -Properties Name,Status 77 | 78 | This command gets the information from Server1 and will output only Name 79 | and Status Properties. 80 | 81 | .EXAMPLE 82 | 83 | PS C:\> Get-SoundDevice -ComputerName Server1 -Properties * 84 | 85 | This command gets the information from Server1 and will output all properties 86 | 87 | .EXAMPLE 88 | 89 | PS C:\> "Server1" | Get-SoundDevice 90 | 91 | This command gets the information from Server1 92 | 93 | .EXAMPLE 94 | 95 | PS C:\> Get-SoundDevice -ComputerName Server1 -Protocol DCOM 96 | 97 | This command gets the information from Server1 using DCOM protocol 98 | 99 | .EXAMPLE 100 | 101 | PS C:\> Get-SoundDevice -ComputerName Server1 -Credential domain\user 102 | 103 | This command gets the information from Server1 using a different user 104 | 105 | .EXAMPLE 106 | 107 | PS C:\> Get-SoundDevice -ComputerName Server1 -Credential domain\user -Authentication Basic 108 | 109 | This command gets the information from Server1 using a different user using basic authentication 110 | 111 | .LINK 112 | 113 | https://www.sconstantinou.com/get-sounddevice 114 | #> 115 | 116 | [cmdletbinding()] 117 | 118 | param ( 119 | [parameter(ValueFromPipeline = $true)][alias('cn')][String[]]$ComputerName, 120 | [alias('cred')][ValidateNotNull()][pscredential][System.Management.Automation.Credential()]$Credential = [pscredential]::Empty, 121 | [alias('a')][validateset('Default','Digest','Negotiate','Basic','Kerberos','NtlmDomain','CredSsp')][String]$Authentication, 122 | [alias('p')][validateset('WinRM','DCOM')][String]$Protocol, 123 | [SupportsWildcards()][alias('Property')][String[]]$Properties 124 | ) 125 | 126 | $ClassName = 'Win32_SoundDevice' 127 | [Collections.ArrayList]$DefaultProperties = 'Manufacturer', 'Name', 'Status', 'StatusInfo', 'SystemName' 128 | 129 | [Collections.ArrayList]$AllProperties = ((Get-CimClass -ClassName $ClassName).CimClassProperties).Name 130 | $RemoveProperties = @('CreationClassName', 'SystemCreationClassName', 'PNPDeviceID', 'DeviceID') 131 | foreach ($_ in $RemoveProperties) 132 | { 133 | $AllProperties.Remove($_) 134 | } 135 | 136 | $SoundDevice = Get-Info -ClassName $ClassName -ComputerName $ComputerName -Credential $Credential -Authentication $Authentication -Protocol $Protocol -Properties $AllProperties 137 | 138 | foreach ($_ in $SoundDevice) 139 | { 140 | $_.Availability = Get-Availability -Code ($_.Availability) 141 | $_.ConfigManagerErrorCode = Get-ConfigManagerErrorCode -Code ($_.ConfigManagerErrorCode) 142 | $_.PowerManagementCapabilities = Get-PowerManagementCapabilitiesCode -Code ($_.PowerManagementCapabilities) 143 | $_.StatusInfo = Get-StatusInfo -Code ($_.StatusInfo) 144 | } 145 | 146 | Optimize-Output -Object $SoundDevice -Properties $Properties -DefaultProperties $DefaultProperties 147 | } 148 | -------------------------------------------------------------------------------- /SysInfo/SysInfo.ps1: -------------------------------------------------------------------------------- 1 | Get-ChildItem -Path $PSScriptRoot\Public\*.ps1,$PSScriptRoot\Private\*.ps1 | ForEach-Object {. $_.FullName} --------------------------------------------------------------------------------