HPWarranty.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$paths = @(
    'Private',
    'Public'
)

foreach ($path in $paths) {
    "$(Split-Path -Path $MyInvocation.MyCommand.Path)\$path\*.ps1" | Resolve-Path | ForEach-Object { 
        . $_.ProviderPath 
    }
}

# Initalizes an empty HashTable to hold registration values to be reused.
# After the DateTime is set, if its older then the current time minus the ThresholdInMinutes it will be rebuilt with next invocation.
$Script:HPEntRegistration = @{ 
    Gdid = $null
    Token = $null
    ThresholdInMinutes = 15
    DateTime = $null
}