Posh-Sumologic.psm1
Write-Verbose "Posh-Sumologic module" Write-Verbose 'Doing stuff...' # load functions $functionFilter = Join-Path $PSScriptRoot "Functions" Get-ChildItem -Path $functionFilter -Filter "*.ps1" -Recurse | Foreach-Object { Write-Verbose "Loading function $($_.Name).." . $_.FullName } if(-not $env:SumoKey){ Write-Warning "Cannot find Sumologic Key on this system." $storekey = Read-Host "Enter your user Sumologic Key" [Environment]::SetEnvironmentVariable("SumoKey", "$storekey", "User") } if(-not $env:SumoID){ Write-Warning "Cannot find Sumoloc ID on this system." $storeid = Read-Host "Enter your user Sumologic ID" [Environment]::SetEnvironmentVariable("SumoID", "$storeid", "User") } Write-Verbose 'Done!' |