functions/get-psnurl.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<#
.SYNOPSIS
Get the module URL
 
.DESCRIPTION
Gets the registered default URL that the module is using
 
.EXAMPLE
Get-PSNUrl
 
This will return a PSCustomObject containing the URL registered for the module
 
.NOTES
 
Author: Mötz Jensen (@Splaxi)
 
#>

function Get-PSNUrl {
    [CmdletBinding()]
    param (
    )
    
    end {
        [PSCustomObject]@{Url = (Get-PSFConfigValue -FullName "psnotification.url")}
    }
}