full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/PowerShellGallery/WiscO365/1.0/Update/psDoc-master/src/psDoc.ps1
psDoc.ps1
param( [parameter(Mandatory=$true, Position=0)] [string] $moduleName, [parameter(Mandatory=$false, Position=1)] [string] $template = "$PSScriptRoot/out-html-template.ps1", [parameter(Mandatory=$false, Position=2)] [string] $outputDir = "$PSScriptRoot/help", [parameter(Mandatory=$false, Position=3)] [str...
PowerShellCorpus/PowerShellGallery/WiscO365/1.0/Update/psDoc-master/src/out-markdown-template.ps1
out-markdown-template.ps1
function TrimAllLines([string] $str) { $lines = $str -split "`n" for ($i = 0; $i -lt $lines.Count; $i++) { $lines[$i] = $lines[$i].Trim() } # Trim EOL. ($lines | Out-String).Trim() } function FixMarkdownString([string] $in = '', [bool] $includeBreaks = $false) { if ($in -eq $null) { return } $replacements ...
PowerShellCorpus/PowerShellGallery/VMware.VimAutomation.Sdk/1.0.0.5334677/VMware.VimAutomation.Sdk.ps1
VMware.VimAutomation.Sdk.ps1
$CustomInitScriptName = "Initialize-PowerCLIEnvironment_Custom.ps1" $currentDir = Split-Path $MyInvocation.MyCommand.Path $CustomInitScript = Join-Path $currentDir $CustomInitScriptName #returns the version of Powershell # Note: When using, make sure to surround Get-PSVersion with parentheses to force value compa...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Import-LibGit2.ps1
Import-LibGit2.ps1
<# .SYNOPSIS Imports the LibGit2 module. .DESCRIPTION The `Import-LibGit2.ps1` script imports the `LibGit2` module from this script's directory. #> # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of ...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/ConvertTo-GitFullPath.ps1
ConvertTo-GitFullPath.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/New-GitBranch.ps1
New-GitBranch.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Set-GitConfiguration.ps1
Set-GitConfiguration.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Update-GitConfigurationSearchPath.ps1
Update-GitConfigurationSearchPath.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Test-GitIncomingCommit.ps1
Test-GitIncomingCommit.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Use-CallerPreference.ps1
Use-CallerPreference.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Update-GitRepository.ps1
Update-GitRepository.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Save-GitChange.ps1
Save-GitChange.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Receive-GitCommit.ps1
Receive-GitCommit.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Get-GitBranch.ps1
Get-GitBranch.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Test-GitUncommittedChange.ps1
Test-GitUncommittedChange.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Add-GitItem.ps1
Add-GitItem.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Get-GitTag.ps1
Get-GitTag.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/New-GitRepository.ps1
New-GitRepository.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Test-GitRemoteUri.ps1
Test-GitRemoteUri.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/New-GitTag.ps1
New-GitTag.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Find-GitRepository.ps1
Find-GitRepository.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Get-GitCommit.ps1
Get-GitCommit.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Get-GitRepository.ps1
Get-GitRepository.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Test-GitOutgoingCommit.ps1
Test-GitOutgoingCommit.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Copy-GitRepository.ps1
Copy-GitRepository.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Test-GitTag.ps1
Test-GitTag.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Test-GitBranch.ps1
Test-GitBranch.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/LibGit2/0.3.2/Functions/Get-GitRepositoryStatus.ps1
Get-GitRepositoryStatus.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Examples/Sample_HyperVSwitchEmbeddedTeamForS2D.ps1
Sample_HyperVSwitchEmbeddedTeamForS2D.ps1
Configuration HyperVSetS2D { Import-DscResource -Name HyperVSwitchEmbeddedTeamForS2D -ModuleName Hyper-VConfigurations Import-DscResource -ModuleName PSDesiredStateConfiguration Node $AllNodes.NodeName { HyperVSwitchEmbeddedTeamForS2D HyperVSetS2D { SwitchName = $No...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Examples/Sample_HyperVSwitchEmbeddedTeam.ps1
Sample_HyperVSwitchEmbeddedTeam.ps1
Configuration HyperVSetConverged { Import-DscResource -Name HyperVSwitchEmbeddedTeam -ModuleName Hyper-VConfigurations Import-DscResource -ModuleName PSDesiredStateConfiguration Node $AllNodes.NodeName { HyperVSwitchEmbeddedTeam HyperVSetConverged { SwitchName = $No...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Examples/Sample_HyperVSwitchNativeTeam.ps1
Sample_HyperVSwitchNativeTeam.ps1
Configuration HyperVConverged { Import-DscResource -Name HyperVSwitchNativeTeam -ModuleName Hyper-VConfigurations Import-DscResource -ModuleName PSDesiredStateConfiguration Node $AllNodes.NodeName { HyperVSwitchNativeTeam HyperVConverged { TeamName = $Node.TeamName ...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Diagnostics/Comprehensive/HyperVSwitchNativeTeam.Comprehensive.Tests.ps1
HyperVSwitchNativeTeam.Comprehensive.Tests.ps1
function Get-ConfigurationDataAsObject { [CmdletBinding()] Param ( [Parameter(Mandatory)] [Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()] [hashtable] $ConfigurationData ) return $ConfigurationData } #Replace this with t...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Diagnostics/Comprehensive/HyperVSwitchEmbeddedTeamForS2D.Comprehensive.Tests.ps1
HyperVSwitchEmbeddedTeamForS2D.Comprehensive.Tests.ps1
function Get-ConfigurationDataAsObject { [CmdletBinding()] Param ( [Parameter(Mandatory)] [Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()] [hashtable] $ConfigurationData ) return $ConfigurationData } #Replace this with t...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Diagnostics/Comprehensive/HyperVSwitchEmbeddedTeam.Comprehensive.Tests.ps1
HyperVSwitchEmbeddedTeam.Comprehensive.Tests.ps1
function Get-ConfigurationDataAsObject { [CmdletBinding()] Param ( [Parameter(Mandatory)] [Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()] [hashtable] $ConfigurationData ) return $ConfigurationData } #Replace this with t...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Diagnostics/Simple/HyperVSwitchNativeTeam.Simple.Tests.ps1
HyperVSwitchNativeTeam.Simple.Tests.ps1
function Get-ConfigurationDataAsObject { [CmdletBinding()] Param ( [Parameter(Mandatory)] [Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()] [hashtable] $ConfigurationData ) return $ConfigurationData } #Replace this with t...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Diagnostics/Simple/HyperVSwitchEmbeddedTeamForS2D.Simple.Tests.ps1
HyperVSwitchEmbeddedTeamForS2D.Simple.Tests.ps1
function Get-ConfigurationDataAsObject { [CmdletBinding()] Param ( [Parameter(Mandatory)] [Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()] [hashtable] $ConfigurationData ) return $ConfigurationData } #Replace this with t...
PowerShellCorpus/PowerShellGallery/Hyper-VConfigurations/1.0.0.0/Diagnostics/Simple/HyperVSwitchEmbeddedTeam.Simple.Tests.ps1
HyperVSwitchEmbeddedTeam.Simple.Tests.ps1
function Get-ConfigurationDataAsObject { [CmdletBinding()] Param ( [Parameter(Mandatory)] [Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()] [hashtable] $ConfigurationData ) return $ConfigurationData } #Replace this with t...
PowerShellCorpus/PowerShellGallery/PsTokens/0.0.1/Merge-Tokens.Tests.ps1
Merge-Tokens.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".") . "$here\$sut" Describe "Merge-Tokens" { # # arrange # $data=@" /* Author: __Author.Name__ <__Author.Email__> Analyst: __Analyst.Name__ <__Analyst.Email...
PowerShellCorpus/PowerShellGallery/PsTokens/0.0.1/PsTokens.Tests.ps1
PsTokens.Tests.ps1
Import-Module PsTokens -Force Describe "PsTokens" { }
PowerShellCorpus/PowerShellGallery/PsTokens/0.0.1/Merge-Tokens.ps1
Merge-Tokens.ps1
<# .SYNOPSIS Replaces tokens in a block of text with a specified value. .DESCRIPTION Replaces tokens in a block of text with a specified value. .PARAMETER template The block of text that contains text and tokens to be replaced. .PARAMETER tokens Token name/value hashtable. .EXAMPLE $content = Get-Con...
PowerShellCorpus/PowerShellGallery/SoftwareInstallManager/1.0.0.0/LaunchScript.ps1
LaunchScript.ps1
[CmdletBinding(SupportsShouldProcess)] param ( [Parameter(Mandatory)] [string[]]$Client, [Parameter(Mandatory)] [ValidateSet('Install', 'Upgrade', 'Uninstall', 'Detect')] [string]$Type, [Parameter(Mandatory)] [ValidateScript({ Test-Path -Path $_ -PathType Container })] [string]$ServerSideClientDe...
PowerShellCorpus/PowerShellGallery/SoftwareInstallManager/1.0.0.0/Tests/SoftwareInstallManager.Tests.ps1
SoftwareInstallManager.Tests.ps1
#region import modules $ThisModule = "$($MyInvocation.MyCommand -replace '\.Tests\.ps1$')" $RequiredModules = $ThisModule #Import-Module -Name $RequiredModules -Force -ErrorAction Stop ipmo c:\Dropbox\GitRepos\SoftwareInstallManager\SoftwareInstallManager.psd1 #endregion InModuleScope SoftwareInstallManager { ...
PowerShellCorpus/PowerShellGallery/cDscDocker/1.2.0/cDscDocker.tests.ps1
cDscDocker.tests.ps1
# # This is a PowerShell Unit Test file. # You need a unit test framework such as Pester to run PowerShell Unit tests. # You can download Pester from http://go.microsoft.com/fwlink/?LinkID=534084 # <# Comment text... Describe "Get-Function" { Context "Function Exists" { It "Should Return" { } } ...
PowerShellCorpus/PowerShellGallery/cDscDocker/1.2.0/Examples/Example_InteractiveTest.ps1
Example_InteractiveTest.ps1
# # Example for calling class outside of DSC # using module cDscDocker $instance = New-Object cDscDocker $instance.Test() $instance.CheckDocker() $instance.CheckDockerProvider()
PowerShellCorpus/PowerShellGallery/cDscDocker/1.2.0/Examples/Example_Config.ps1
Example_Config.ps1
Configuration dockerConfig { Import-DscResource -module cDscDocker Node localhost{ LocalConfigurationManager { RebootNodeIfNeeded = $true } cDscDocker ExampleA { docker = "docker" Ensure = 'Present' Swarm = 'Active' SwarmURI = "SWMTKN-1-ETCETCETC" ...
PowerShellCorpus/PowerShellGallery/SCOrchDev-F5/2.1.0/SCOrchDev-F5.tests.ps1
SCOrchDev-F5.tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $manifestPath = "$here\SCOrchDev-F5.psd1" Import-Module $manifestPath -Force Describe -Tags 'VersionChecks' 'SCOrchDev-F5 manifest' { $script:manifest = $null It 'has a valid manifest' { { $script:manifest = Test-ModuleManife...
PowerShellCorpus/PowerShellGallery/cSNMP/0.2/DSCResources/cSNMPCommunity/cSNMPCommunity.Tests.ps1
cSNMPCommunity.Tests.ps1
Describe "Test DSC Resource execution" { Copy-Item "cSNMPCommunity.psm1" TestDrive:\script.ps1 -Force Mock Export-ModuleMember {return $true} . "TestDrive:\script.ps1" It "Test if the Get-TargetResource return a hashtable" { (Get-TargetResource nagios).GetType() -as [string] | Shoul...
PowerShellCorpus/PowerShellGallery/cSNMP/0.2/Tests/DSC.tests.ps1
DSC.tests.ps1
Describe "Validate your WSUS Configuration" { $Communities = [PSCustomObject](Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\services\SNMP\Parameters\ValidCommunities").psbase.properties | ? { $_.Name -notin @('PSDrive','PSProvider','PSCHildName','PSPath','PSParentPath') } | Select...
PowerShellCorpus/PowerShellGallery/cSNMP/0.2/Tests/SNMP.ps1
SNMP.ps1
Configuration Test { Import-DscResource -ModuleName cSNMP Node localhost { WindowsFeature SNMPService { Name = 'SNMP-Service' Ensure = 'Present' } WindowsFeature SNMPRSAT { Name = 'RSAT-SNMP' Ensure = 'Prese...
PowerShellCorpus/PowerShellGallery/cSNMP/0.2/Tests/Appveyor.ps1
Appveyor.ps1
# This script will invoke a DSC configuration # This is a simple proof of concept "`n`tPerforming DSC Configuration`n" Enable-PSRemoting -Force . .\Tests\SNMP.ps1 ( Test ).FullName | Set-Content -Path .\Artifacts.txt Start-DscConfiguration -Path .\Test -Wait -Force -verbose
PowerShellCorpus/PowerShellGallery/cSNMP/0.2/Tests/appveyor.pester.ps1
appveyor.pester.ps1
# This script will invoke pester tests # It should invoke on PowerShell v2 and later # We serialize XML results and pull them in appveyor.yml #If Finalize is specified, we collect XML output, upload tests, and indicate build errors param( [switch]$Finalize, [switch]$Test ) #Initialize some variables...
PowerShellCorpus/PowerShellGallery/xWebDeploy/1.2.0.0/Samples/xWebPackageDeploySample.ps1
xWebPackageDeploySample.ps1
################### # Configuration script to deploy a website using webdeploy IIS extension. This sample assumes that Web Deploy extension is installed in IIS, and the website content is packaged in a zip file using web deploy extension. ################### configuration DeployWebSiteUsingWebDeploy { param ...
PowerShellCorpus/PowerShellGallery/xWebDeploy/1.2.0.0/Samples/xWebDeploySample.ps1
xWebDeploySample.ps1
# This is a sample configuration to deploy a web server in IIS using xWebDeploy composite resource.Note that xWebDeploy version 3.5 is installing WebDeploy extension using the following URL: http://go.microsoft.com/fwlink/?LinkID=309497. # If you need to install web deploy from a different location, you need to pass...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Import-WorkflowDeployment.ps1
Import-WorkflowDeployment.ps1
function Import-WorkflowDeployment { <# .SYNOPSIS Creates a Workflow Deployment in Activiti. .DESCRIPTION Creates a Workflow Deployment in Activiti. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Import-WorkflowDeployment; #> [CmdletBinding( HelpURI = 'http://dfch.biz/bi...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Suspend-WorkflowInstance.ps1
Suspend-WorkflowInstance.ps1
function Suspend-WorkflowInstance { <# .SYNOPSIS Suspends a Workflow Instance. .DESCRIPTION Suspends a Workflow Instance. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Suspend-WorkflowInstance -id 12345; #> [CmdletBinding( HelpURI = 'http://dfch.biz/biz/dfch/PS/Activit...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Remove-WorkflowDeployment.ps1
Remove-WorkflowDeployment.ps1
function Remove-WorkflowDeployment { <# .SYNOPSIS Removes a configured Workflow Deployment from Activiti. .DESCRIPTION Removes a configured Workflow Deployment from Activiti. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Remove-WorkflowDeployment -id "27741" #> [CmdletB...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Resume-WorkflowInstance.ps1
Resume-WorkflowInstance.ps1
function Resume-WorkflowInstance { <# .SYNOPSIS Resumes a Workflow Instance. .DESCRIPTION Resumes a Workflow Instance. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Resume-WorkflowInstance -id 12345; #> [CmdletBinding( HelpURI = 'http://dfch.biz/biz/dfch/PS/Activiti/Cl...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Import-Module.ps1
Import-Module.ps1
# Import-Module.ps1 # # Place any pre-initialisation script here # Note: # * When executed the module is not yet loaded # * Everything you define here (e.g. a variable) is defined OUTSIDE the module scope. # If this script is loaded via "ScriptsToProcess" it will incorrectly # show up as loaded module, see the bug ...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Get-WorkflowInstance.ps1
Get-WorkflowInstance.ps1
function Get-WorkflowInstance { <# .SYNOPSIS Get Workflow Instances based on a Workflow Definitions from Activiti. .DESCRIPTION Get Workflow Instances based on a Workflow Definitions from Activiti. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Get-WorkflowInstance -id "2...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Stop-WorkflowInstance.ps1
Stop-WorkflowInstance.ps1
function Stop-WorkflowInstance { <# .SYNOPSIS Removes Workflow Instances based on a Workflow Definitions from Activiti. .DESCRIPTION Removes Workflow Instances based on a Workflow Definitions from Activiti. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Stop-WorkflowInsta...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Start-WorkflowInstance.ps1
Start-WorkflowInstance.ps1
function Start-WorkflowInstance { <# .SYNOPSIS Creates Workflow Instances based on a Workflow Definitions from Activiti. .DESCRIPTION Creates Workflow Instances based on a Workflow Definitions from Activiti. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Start-WorkflowIns...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Enter-Server.ps1
Enter-Server.ps1
function Enter-Server { <# .SYNOPSIS Performs a login to an Activiti server. .DESCRIPTION Performs a login to an Activiti server. This is the first Cmdlet to be executed and required for all other Cmdlets of this module. It creates service references to the routers of the application. .OUTPUTS This Cmdlet returns...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Get-WorkflowDefinition.ps1
Get-WorkflowDefinition.ps1
function Get-WorkflowDefinition { <# .SYNOPSIS Get a list of configured Workflow Definitions from Activiti. .DESCRIPTION Get a list of configured Workflow Definitions from Activiti. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Get-WorkflowDefinition; id ...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Activiti.Client/2.0.0.20160201/Get-WorkflowDeployment.ps1
Get-WorkflowDeployment.ps1
function Get-WorkflowDeployment { <# .SYNOPSIS Get one or more configured Workflow Deployments from Activiti. .DESCRIPTION Get one or more configured Workflow Deployments from Activiti. .OUTPUTS .INPUTS See PARAMETER section for a description of input parameters. .EXAMPLE Get-WorkflowDeployment; id: 216602...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Private/Add-ObjectDetail.ps1
Add-ObjectDetail.ps1
function Add-ObjectDetail { <# .SYNOPSIS Decorate an object with - A TypeName - New properties - Default parameters ** This is a stripped down version of the function built out by Warren Frame -- http://ramblingcookiemonster.github.io/Decorating-Objec...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Private/Get-PropertyOrder.ps1
Get-PropertyOrder.ps1
#function to extract properties Function Get-PropertyOrder { <# .SYNOPSIS Gets property order for specified object .DESCRIPTION Gets property order for specified object .PARAMETER InputObject A single object to convert to an array of property value pairs. .PARAMETER Member...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Private/Get-TrueCount.ps1
Get-TrueCount.ps1
function Get-TrueCount { Param ( [parameter(Mandatory = $false,Position = 0,ValueFromPipeline = $true)] $Array ) Process { if ($array) { if ($array.Count) { $count = $array.Count } else { $count = 1 }...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Export-Vaporshell.ps1
Export-Vaporshell.ps1
function Export-Vaporshell { <# .SYNOPSIS Exports the template object to JSON file. .DESCRIPTION Exports the template object to JSON file. Requires the Vaporshell input object to be type 'Vaporshell.Template' .PARAMETER VaporshellTemplate The input template obj...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/New-ApiGatewayApiKey2.ps1
New-ApiGatewayApiKey2.ps1
function New-ApiGatewayApiKey2 { <# .SYNOPSIS Adds an AWS::ApiGateway::ApiKey resource to the template .DESCRIPTION The AWS::ApiGateway::ApiKey resource creates a unique key that you can distribute to clients who are executing Amazon API Gateway (API Gateway) Method resources that requi...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Initialize-Vaporshell.ps1
Initialize-Vaporshell.ps1
function Initialize-Vaporshell { <# .SYNOPSIS The starting point for your template buildout. This should always be the first thing called in your template script. .DESCRIPTION The starting point for your template buildout. This should always be the first thing called in your template sc...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Import-Vaporshell.ps1
Import-Vaporshell.ps1
function Import-Vaporshell { <# .SYNOPSIS Allows you to import an existing CloudFormation template as a starting point. .DESCRIPTION Allows you to import an existing CloudFormation template as a starting point. .PARAMETER Path The path to the existing template. .EX...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnSelect.ps1
Add-FnSelect.ps1
function Add-FnSelect { <# .SYNOPSIS Adds the intrinsic function "Fn::Select" to a resource property .DESCRIPTION The intrinsic function Fn::Select returns a single object from a list of objects by index. You can use Fn::Select to select an object from a CommaDelimitedList para...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnGetAtt.ps1
Add-FnGetAtt.ps1
function Add-FnGetAtt { <# .SYNOPSIS Adds the intrinsic function "Fn::GetAtt" to a resource property .DESCRIPTION The Fn::GetAtt intrinsic function returns the value of an attribute from a resource in the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/U...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnFindInMap.ps1
Add-FnFindInMap.ps1
function Add-FnFindInMap { <# .SYNOPSIS Adds the intrinsic function "Fn::FindInMap" to a resource property .DESCRIPTION The intrinsic function Fn::FindInMap returns the value corresponding to keys in a two-level map that is declared in the Mappings section. .LINK http://doc...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnSplit.ps1
Add-FnSplit.ps1
function Add-FnSplit { <# .SYNOPSIS Adds the intrinsic function "Fn::Split" to a resource property .DESCRIPTION To split a string into a list of string values so that you can select an element from the resulting string list, use the Fn::Split intrinsic function. Specify the location of ...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnGetAZs.ps1
Add-FnGetAZs.ps1
function Add-FnGetAZs { <# .SYNOPSIS Adds the intrinsic function "Fn::GetAZs" to a resource property .DESCRIPTION The intrinsic function Fn::GetAZs returns an array that lists Availability Zones for a specified region. Because customers have access to different Availability Zones, the i...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnSub.ps1
Add-FnSub.ps1
function Add-FnSub { <# .SYNOPSIS Adds the intrinsic function "Fn::Sub" to a resource property .DESCRIPTION The intrinsic function Fn::Sub substitutes variables in an input string with values that you specify. In your templates, you can use this function to construct commands or outputs...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnImportValue.ps1
Add-FnImportValue.ps1
function Add-FnImportValue { <# .SYNOPSIS Adds the intrinsic function "Fn::ImportValue" to a resource property .DESCRIPTION The intrinsic function Fn::ImportValue returns the value of an output exported by another stack. You typically use this function to create cross-stack references. ...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnJoin.ps1
Add-FnJoin.ps1
function Add-FnJoin { <# .SYNOPSIS Adds the intrinsic function "Fn::Join" to a resource property .DESCRIPTION The intrinsic function Fn::Join appends a set of values into a single value, separated by the specified delimiter. If a delimiter is the empty string, the set of values are conc...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnBase64.ps1
Add-FnBase64.ps1
function Add-FnBase64 { <# .SYNOPSIS Adds the intrinsic function "Fn::Base64" to a resource property .DESCRIPTION The intrinsic function Fn::Base64 returns the Base64 representation of the input string. This function is typically used to pass encoded data to Amazon EC2 instances by way ...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Intrinisic Functions/Add-FnRef.ps1
Add-FnRef.ps1
function Add-FnRef { <# .SYNOPSIS Adds the intrinsic function "Ref" to a resource property .DESCRIPTION The intrinsic function Ref returns the value of the specified parameter or resource. * When you specify a parameter's logical name, it returns the value of the parameter....
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Transform/Add-Include.ps1
Add-Include.ps1
function Add-Include { <# .SYNOPSIS Adds the transform function "AWS::Include" to a Vaporshell template .DESCRIPTION You can use the AWS::Include transform to work with template snippets that are stored separately from the main AWS CloudFormation template. When you specify Name: 'AWS::I...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Condition Functions/Add-ConOr.ps1
Add-ConOr.ps1
function Add-ConOr { <# .SYNOPSIS Adds the condition function "Fn::Or" to a resource property .DESCRIPTION Returns true if any one of the specified conditions evaluate to true, or returns false if all of the conditions evaluates to false. Fn::Or acts as an OR operator. The minimum numbe...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Condition Functions/Add-ConEquals.ps1
Add-ConEquals.ps1
function Add-ConEquals { <# .SYNOPSIS Adds the condition function "Fn::Equals" to a resource property .DESCRIPTION Compares if two values are equal. Returns true if the two values are equal or false if they aren't. .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/U...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Condition Functions/Add-ConIf.ps1
Add-ConIf.ps1
function Add-ConIf { <# .SYNOPSIS Adds the condition function "Fn::If" to a resource property .DESCRIPTION Returns one value if the specified condition evaluates to true and another value if the specified condition evaluates to false. Currently, AWS CloudFormation supports the Fn::If in...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Condition Functions/Add-ConAnd.ps1
Add-ConAnd.ps1
function Add-ConAnd { <# .SYNOPSIS Adds the condition function "Fn::And" to a resource property .DESCRIPTION Returns true if all the specified conditions evaluate to true, or returns false if any one of the conditions evaluates to false. Fn::And acts as an AND operator. The minimum numb...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Condition Functions/Add-ConNot.ps1
Add-ConNot.ps1
function Add-ConNot { <# .SYNOPSIS Adds the condition function "Fn::Not" to a resource property .DESCRIPTION Returns true for a condition that evaluates to false or returns false for a condition that evaluates to true. Fn::Not acts as a NOT operator. .LINK http://docs.aws.a...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSLogsLogGroup.ps1
New-VSLogsLogGroup.ps1
function New-VSLogsLogGroup { <# .SYNOPSIS Adds an AWS::Logs::LogGroup resource to the template .DESCRIPTION Adds an AWS::Logs::LogGroup resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html .PARAMETER ...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSIAMPolicy.ps1
New-VSIAMPolicy.ps1
function New-VSIAMPolicy { <# .SYNOPSIS Adds an AWS::IAM::Policy resource to the template .DESCRIPTION Adds an AWS::IAM::Policy resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html .PARAMETER LogicalId ...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSCognitoIdentityPoolRoleAttachment.ps1
New-VSCognitoIdentityPoolRoleAttachment.ps1
function New-VSCognitoIdentityPoolRoleAttachment { <# .SYNOPSIS Adds an AWS::Cognito::IdentityPoolRoleAttachment resource to the template .DESCRIPTION Adds an AWS::Cognito::IdentityPoolRoleAttachment resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/la...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSElasticLoadBalancingV2Listener.ps1
New-VSElasticLoadBalancingV2Listener.ps1
function New-VSElasticLoadBalancingV2Listener { <# .SYNOPSIS Adds an AWS::ElasticLoadBalancingV2::Listener resource to the template .DESCRIPTION Adds an AWS::ElasticLoadBalancingV2::Listener resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/User...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSEC2NetworkInterfaceAttachment.ps1
New-VSEC2NetworkInterfaceAttachment.ps1
function New-VSEC2NetworkInterfaceAttachment { <# .SYNOPSIS Adds an AWS::EC2::NetworkInterfaceAttachment resource to the template .DESCRIPTION Adds an AWS::EC2::NetworkInterfaceAttachment resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGui...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSRoute53RecordSetGroup.ps1
New-VSRoute53RecordSetGroup.ps1
function New-VSRoute53RecordSetGroup { <# .SYNOPSIS Adds an AWS::Route53::RecordSetGroup resource to the template .DESCRIPTION Adds an AWS::Route53::RecordSetGroup resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSEC2Subnet.ps1
New-VSEC2Subnet.ps1
function New-VSEC2Subnet { <# .SYNOPSIS Adds an AWS::EC2::Subnet resource to the template .DESCRIPTION Adds an AWS::EC2::Subnet resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html .PARAMETER LogicalId ...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSEC2FlowLog.ps1
New-VSEC2FlowLog.ps1
function New-VSEC2FlowLog { <# .SYNOPSIS Adds an AWS::EC2::FlowLog resource to the template .DESCRIPTION Adds an AWS::EC2::FlowLog resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html .PARAMETER LogicalI...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSDataPipelinePipeline.ps1
New-VSDataPipelinePipeline.ps1
function New-VSDataPipelinePipeline { <# .SYNOPSIS Adds an AWS::DataPipeline::Pipeline resource to the template .DESCRIPTION Adds an AWS::DataPipeline::Pipeline resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datapipelin...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSEC2VolumeAttachment.ps1
New-VSEC2VolumeAttachment.ps1
function New-VSEC2VolumeAttachment { <# .SYNOPSIS Adds an AWS::EC2::VolumeAttachment resource to the template .DESCRIPTION Adds an AWS::EC2::VolumeAttachment resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volu...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSRDSOptionGroup.ps1
New-VSRDSOptionGroup.ps1
function New-VSRDSOptionGroup { <# .SYNOPSIS Adds an AWS::RDS::OptionGroup resource to the template .DESCRIPTION Adds an AWS::RDS::OptionGroup resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-optiongroup.html .PA...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSApplicationAutoScalingScalableTarget.ps1
New-VSApplicationAutoScalingScalableTarget.ps1
function New-VSApplicationAutoScalingScalableTarget { <# .SYNOPSIS Adds an AWS::ApplicationAutoScaling::ScalableTarget resource to the template .DESCRIPTION Adds an AWS::ApplicationAutoScaling::ScalableTarget resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFor...
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSEMRCluster.ps1
New-VSEMRCluster.ps1
function New-VSEMRCluster { <# .SYNOPSIS Adds an AWS::EMR::Cluster resource to the template .DESCRIPTION Adds an AWS::EMR::Cluster resource to the template .LINK http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html .PARAMETER LogicalI...