internal/functions/_newfunction_dummy.ps1.txt
function Use-NewFunction {
<# .Synopsis %ToDo% .DESCRIPTION %ToDo% .NOTES Author: Andreas Bellstedt .LINK https://github.com/AndiBellstedt/PoShPRTG .EXAMPLE %ToDo% .EXAMPLE %ToDo% -Server "https://prtg.corp.customer.com" -User "admin" -Pass "1111111" #> [CmdletBinding( DefaultParameterSetName = 'Default', SupportsShouldProcess = $true, ConfirmImpact = 'Low' )] Param( # Hilfebeschreibung zu Param1 [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [ValidateNotNullOrEmpty()] [ValidateSet('group', 'device', 'sensor', 'probenode')] [ValidateScript( { $true })] [Alias('objID', 'ID')] $Param1, # SensorTree from PRTG Server [ValidateNotNullOrEmpty()] [xml] $SensorTree = $script:PRTGSensorTree, # Url for PRTG Server [ValidateNotNullOrEmpty()] [ValidateScript( { if ($_.StartsWith("http")) { $true } else { $false } })] [String] $Server = $script:PRTGServer, # User for PRTG Authentication [ValidateNotNullOrEmpty()] [String] $User = $script:PRTGUser, # Password or PassHash for PRTG Authentication [ValidateNotNullOrEmpty()] [String] $Pass = $script:PRTGPass ) Begin {} Process { if ($pscmdlet.ShouldProcess("Target", "Operation")) { Write-Log -LogText "Doing Use-Template..." -LogType Info -LogScope $MyInvocation.MyCommand.Name -NoFileStatus -DebugOutput } } End {} } |