Public/Get-UWFOverlayInformation.ps1
Function Get-UWFOverlayInformation { <# .SYNOPSIS Display the current values of the overlay properties .DESCRIPTION Display the current values of the overlay properties .INPUTS None .EXAMPLE Get-UWFOverlayInformation .LINK about_functions_advanced .LINK about_CommonParameters #> [CmdletBinding()] Param() Begin { } Process { If (!$Script:UWFOverlay) { Throw "Unable to get handle to an instance of the UWF_Overlay class" } $Properties = @{ Consumption = $Script:UWFOverlay.OverlayConsumption AvailableSpace = $Script:UWFOverlay.AvailableSpace "Critical Threshold" = $Script:UWFOverlay.CriticalOverlayThreshold "Warning Threshold" = $Script:UWFOverlay.WarningOverlayThreshold } $OverlayInfo = New-Object -TypeName psobject -Property $Properties } End { Return $OverlayInfo } } |