Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $M = @'
- Function Verb-FWNomn([Parameter(Mandatory=$True)][String]$ClientName, [switch]$Production)
- {
- <#
- .SYNOPSIS
- #>
- If ($Production)
- {
- $Global:FilewaveToken = $Global:ProdFilewaveToken
- $Global:ServerAdress = $Global:ProdServerAdress
- }
- Else
- {
- $Global:FilewaveToken = $Global:QualifFilewaveToken
- $Global:ServerAdress = $Global:QualifServerAdress
- }
- $Query = New-FWQuery "VERB" "QUERY" "ARG"
- If(!$Query)
- {
- Write-Host "Something went wrong."
- }
- Else
- {
- Return $Query
- }
- }
- '@
- New-ISESnippet -Text $M -Title FWFunction -Description "Adds a new Filewave function." -Force
- #triggers with Control+j in powershellISE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement