full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSIoTTopicRuleDynamoDBAction.ps1 | Add-VSIoTTopicRuleDynamoDBAction.ps1 | function Add-VSIoTTopicRuleDynamoDBAction {
<#
.SYNOPSIS
Adds an AWS::IoT::TopicRule.DynamoDBAction resource property to the template
.DESCRIPTION
Adds an AWS::IoT::TopicRule.DynamoDBAction resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/lat... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSEMRInstanceGroupConfigScalingConstraints.ps1 | Add-VSEMRInstanceGroupConfigScalingConstraints.ps1 | function Add-VSEMRInstanceGroupConfigScalingConstraints {
<#
.SYNOPSIS
Adds an AWS::EMR::InstanceGroupConfig.ScalingConstraints resource property to the template
.DESCRIPTION
Adds an AWS::EMR::InstanceGroupConfig.ScalingConstraints resource property to the template
.LINK
http:/... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSOpsWorksAppEnvironmentVariable.ps1 | Add-VSOpsWorksAppEnvironmentVariable.ps1 | function Add-VSOpsWorksAppEnvironmentVariable {
<#
.SYNOPSIS
Adds an AWS::OpsWorks::App.EnvironmentVariable resource property to the template
.DESCRIPTION
Adds an AWS::OpsWorks::App.EnvironmentVariable resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudF... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSDataPipelinePipelineParameterObject.ps1 | Add-VSDataPipelinePipelineParameterObject.ps1 | function Add-VSDataPipelinePipelineParameterObject {
<#
.SYNOPSIS
Adds an AWS::DataPipeline::Pipeline.ParameterObject resource property to the template
.DESCRIPTION
Adds an AWS::DataPipeline::Pipeline.ParameterObject resource property to the template
.LINK
http://docs.aws.amazo... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSDirectoryServiceMicrosoftADVpcSettings.ps1 | Add-VSDirectoryServiceMicrosoftADVpcSettings.ps1 | function Add-VSDirectoryServiceMicrosoftADVpcSettings {
<#
.SYNOPSIS
Adds an AWS::DirectoryService::MicrosoftAD.VpcSettings resource property to the template
.DESCRIPTION
Adds an AWS::DirectoryService::MicrosoftAD.VpcSettings resource property to the template
.LINK
http://docs.... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSWAFRegionalWebACLRule.ps1 | Add-VSWAFRegionalWebACLRule.ps1 | function Add-VSWAFRegionalWebACLRule {
<#
.SYNOPSIS
Adds an AWS::WAFRegional::WebACL.Rule resource property to the template
.DESCRIPTION
Adds an AWS::WAFRegional::WebACL.Rule resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/a... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSCodeBuildProjectSourceAuth.ps1 | Add-VSCodeBuildProjectSourceAuth.ps1 | function Add-VSCodeBuildProjectSourceAuth {
<#
.SYNOPSIS
Adds an AWS::CodeBuild::Project.SourceAuth resource property to the template
.DESCRIPTION
Adds an AWS::CodeBuild::Project.SourceAuth resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/lat... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSEMRInstanceGroupConfigSimpleScalingPolicyConfiguration.ps1 | Add-VSEMRInstanceGroupConfigSimpleScalingPolicyConfiguration.ps1 | function Add-VSEMRInstanceGroupConfigSimpleScalingPolicyConfiguration {
<#
.SYNOPSIS
Adds an AWS::EMR::InstanceGroupConfig.SimpleScalingPolicyConfiguration resource property to the template
.DESCRIPTION
Adds an AWS::EMR::InstanceGroupConfig.SimpleScalingPolicyConfiguration resource property... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSEC2SpotFleetBlockDeviceMappings.ps1 | Add-VSEC2SpotFleetBlockDeviceMappings.ps1 | function Add-VSEC2SpotFleetBlockDeviceMappings {
<#
.SYNOPSIS
Adds an AWS::EC2::SpotFleet.BlockDeviceMappings resource property to the template
.DESCRIPTION
Adds an AWS::EC2::SpotFleet.BlockDeviceMappings resource property to the template
.LINK
http://docs.aws.amazon.com/AWSClo... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSOpsWorksStackElasticIp.ps1 | Add-VSOpsWorksStackElasticIp.ps1 | function Add-VSOpsWorksStackElasticIp {
<#
.SYNOPSIS
Adds an AWS::OpsWorks::Stack.ElasticIp resource property to the template
.DESCRIPTION
Adds an AWS::OpsWorks::Stack.ElasticIp resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuid... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSEMRClusterVolumeSpecification.ps1 | Add-VSEMRClusterVolumeSpecification.ps1 | function Add-VSEMRClusterVolumeSpecification {
<#
.SYNOPSIS
Adds an AWS::EMR::Cluster.VolumeSpecification resource property to the template
.DESCRIPTION
Adds an AWS::EMR::Cluster.VolumeSpecification resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudForm... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSDynamoDBTableAttributeDefinition.ps1 | Add-VSDynamoDBTableAttributeDefinition.ps1 | function Add-VSDynamoDBTableAttributeDefinition {
<#
.SYNOPSIS
Adds an AWS::DynamoDB::Table.AttributeDefinition resource property to the template
.DESCRIPTION
Adds an AWS::DynamoDB::Table.AttributeDefinition resource property to the template
.LINK
http://docs.aws.amazon.com/AWS... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSEC2SpotFleetSpotPlacement.ps1 | Add-VSEC2SpotFleetSpotPlacement.ps1 | function Add-VSEC2SpotFleetSpotPlacement {
<#
.SYNOPSIS
Adds an AWS::EC2::SpotFleet.SpotPlacement resource property to the template
.DESCRIPTION
Adds an AWS::EC2::SpotFleet.SpotPlacement resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Primary Functions/New-VaporCondition.ps1 | New-VaporCondition.ps1 | function New-VaporCondition {
<#
.SYNOPSIS
Adds a Condition object to the template
.DESCRIPTION
The optional Conditions section includes statements that define when a resource is created or when a property is defined. For example, you can compare whether a value is equal to another valu... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Primary Functions/New-VaporOutput.ps1 | New-VaporOutput.ps1 | function New-VaporOutput {
<#
.SYNOPSIS
Adds an Output object to the template
.DESCRIPTION
The optional Outputs section declares output values that you can import into other stacks (to create cross-stack references), return in response (to describe stack calls), or view on the AWS Cloud... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Primary Functions/New-VaporMapping.ps1 | New-VaporMapping.ps1 | function New-VaporMapping {
<#
.SYNOPSIS
Adds a Mapping object to the template
.DESCRIPTION
The optional Mappings section matches a key to a corresponding set of named values. For example, if you want to set values based on a region, you can create a mapping that uses the region name as... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Primary Functions/New-VaporMetadata.ps1 | New-VaporMetadata.ps1 | function New-VaporMetadata {
<#
.SYNOPSIS
Adds a Metadata object to the template
.DESCRIPTION
You can use the optional Metadata section to include arbitrary JSON or YAML objects that provide details about the template.
** Important **
During a stack update, you cann... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Primary Functions/New-VaporParameter.ps1 | New-VaporParameter.ps1 | function New-VaporParameter {
<#
.SYNOPSIS
Adds a Parameter object to the template
.DESCRIPTION
You can use the optional Parameters section to pass values into your template when you create a stack. With parameters, you can create templates that are customized each time you create a sta... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Primary Functions/New-VaporResource.ps1 | New-VaporResource.ps1 | function New-VaporResource {
<#
.SYNOPSIS
Adds a Resource object to the template
.DESCRIPTION
The required Resources section declares the AWS resources that you want to include in the stack, such as an Amazon EC2 instance or an Amazon S3 bucket. You must declare each resource separately... |
PowerShellCorpus/PowerShellGallery/Vaporshell/0.7.3/Public/Helpers/Add-Variable.ps1 | Add-Variable.ps1 | function Add-Variable {
[OutputType('Vaporshell.Helper.Variable')]
[cmdletbinding()]
Param
(
[parameter(Mandatory=$true,Position=0)]
[ValidatePattern("[A-Za-z0-9-._~:/?#&=,]+")]
[String]
$Name,
[parameter(Mandatory=$true,Position=1)]
[String]
$Value
)
... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/SwitchEmbeddedTeamingWithHostNetworkAdapter/SETTeamWithHostNetworkAdapters.Example.ps1 | SETTeamWithHostNetworkAdapters.Example.ps1 | Configuration SETTeam
{
param (
[String] $SwitchName,
[String[]] $NetAdapterName,
[Int] $ManagementVlan,
[Int] $ManagementBandwidthWeight,
[String] $ClusterAdapterName,
[Int] $ClusterVlan,
[Int] $ClusterBandwidthWeight,
[String] $LiveMigratio... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMSwitch/PrivateSwitch.Example.ps1 | PrivateSwitch.Example.ps1 | Configuration PrivateSwitch
{
Import-DscResource -ModuleName cHyper-V -Name cVMSwitch
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMSwitch HostSwitch {
Name = 'HostSwitch'
Type = 'Private'
Ensure = 'Present'
}
}
|
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMSwitch/SETTeamSwitch.Example.ps1 | SETTeamSwitch.Example.ps1 | Configuration SETTeamSwitch
{
Import-DscResource -ModuleName cHyper-V -Name cVMSwitch
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMSwitch HostSwitch {
Name = 'HostSwitch'
Type = 'External'
AllowManagementOS = $true
MinimumBandwidthMode = 'Weight'
... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMSwitch/HostTeamSwitch.Example.ps1 | HostTeamSwitch.Example.ps1 | Configuration SimpleHostTeamvSwitch
{
Import-DscResource -ModuleName cHyper-V -Name cVMSwitch
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMSwitch HostSwitch {
Name = 'HostSwitch'
Type = 'External'
AllowManagementOS = $true
MinimumBandwidthMode = 'We... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMSwitch/InternalSwitch.Example.ps1 | InternalSwitch.Example.ps1 | Configuration InternalSwitch
{
Import-DscResource -ModuleName cHyper-V -Name cVMSwitch
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMSwitch HostSwitch {
Name = 'HostSwitch'
Type = 'Internal'
Ensure = 'Present'
}
}
|
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMSwitch/NetAdapterSwitch.Example.ps1 | NetAdapterSwitch.Example.ps1 | Configuration SimpleNetAdaptervSwitch
{
Import-DscResource -ModuleName cHyper-V -Name cVMSwitch
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMSwitch HostSwitch {
Name = 'HostSwitch'
Type = 'External'
AllowManagementOS = $true
NetAdapterName = 'NIC1'
... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cWaitForVMIntegrationComponent/WaitForIntegrationComponentDefault.Example.ps1 | WaitForIntegrationComponentDefault.Example.ps1 | Configuration WaitForIC
{
Import-DscResource -Name cWaitForVMGuestIntegration -ModuleName cHyper-V
cWaitForVMGuestIntegration VM01
{
Id = 'VM01-IC01'
VMName = 'VM01'
}
}
|
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cWaitForVMIntegrationComponent/WaitForIntegrationComponentCustom.Example.ps1 | WaitForIntegrationComponentCustom.Example.ps1 | Configuration WaitForIC
{
Import-DscResource -Name cWaitForVMGuestIntegration -ModuleName cHyper-V
cWaitForVMGuestIntegration VM01
{
Id = 'VM01-IC01'
VMName = 'VM01'
RetryIntervalSec = 20
RetryCount = 10
}
}
|
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMIPAddress/ResetIPAddress.Example.ps1 | ResetIPAddress.Example.ps1 | Configuration VMIPAddress
{
Import-DscResource -ModuleName cHyper-V -Name cVMIPAddress
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMIPAddress VMAdapter1IPAddress {
Id = 'VMMgmt-NIC'
NetAdapterName = 'VMMgmt-NIC'
VMName = 'SQLVM01'
IPAddress = 'DHCP'... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMIPAddress/SetIPAddress.Example.ps1 | SetIPAddress.Example.ps1 | Configuration VMIPAddress
{
Import-DscResource -ModuleName cHyper-V -Name cVMIPAddress
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMIPAddress VMAdapter1IPAddress {
Id = 'VMMgmt-NIC'
NetAdapterName = 'VMMgmt-NIC'
VMName = 'SQLVM01'
IPAddress = '172.1... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapter/CreateVMNetworkAdapterMultipleVM.Example.ps1 | CreateVMNetworkAdapterMultipleVM.Example.ps1 | Configuration VMAdapter
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapter
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapter MyVM01NIC {
Id = 'MyVM01-NIC'
Name = 'MyVM01-NIC'
SwitchName = 'SETSwitch'
VMName = 'MyVM01'
... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapter/CreateVMNetworkAdapterManagementOS.Example.ps1 | CreateVMNetworkAdapterManagementOS.Example.ps1 | Configuration HostOSAdapter
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapter
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapter HostOSAdapter {
Id = 'Management-NIC'
Name = 'Management-NIC'
SwitchName = 'SETSwitch'
VMName =... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapter/CreateVMNetworkAdapterMultipleVMMACAddress.Example.ps1 | CreateVMNetworkAdapterMultipleVMMACAddress.Example.ps1 | Configuration VMAdapter
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapter
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapter MyVM01NIC {
Id = 'MyVM01-NIC'
Name = 'MyVM01-NIC'
SwitchName = 'SETSwitch'
MacAddress = '001523be0c... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapter/CreateVMNetworkAdapterMultipleManagementOS.Example.ps1 | CreateVMNetworkAdapterMultipleManagementOS.Example.ps1 | Configuration HostOSAdapter
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapter
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapter ManagementAdapter {
Id = 'Management-NIC'
Name = 'Management-NIC'
SwitchName = 'SETSwitch'
VMNa... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapterVlan/VMNetworkAdapterVlanManagementOS.Example.ps1 | VMNetworkAdapterVlanManagementOS.Example.ps1 | Configuration HostOSAdapterVlan
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapterVlan
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapterVlan HostOSAdapterVlan {
Id = 'Management-NIC'
Name = 'Management-NIC'
VMName = 'ManagementOS'
... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapterVlan/VMNetworkAdapterVlanMultipleVM.Example.ps1 | VMNetworkAdapterVlanMultipleVM.Example.ps1 | Configuration HostOSAdapterVlan
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapterVlan
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapterVlan VMMgmtAdapterVlan {
Id = 'VMManagement-NIC'
Name = 'VMManagement-NIC'
VMName = 'SQLVM01'
... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapterVlan/VMNetworkAdapterVlanMultipleManagementOS.Example.ps1 | VMNetworkAdapterVlanMultipleManagementOS.Example.ps1 | Configuration HostOSAdapterVlan
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapterVlan
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapterVlan HostOSAdapterVlan {
Id = 'Management-NIC'
Name = 'Management-NIC'
VMName = 'ManagementOS'
... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapterSettings/VMNetworkAdapterSettingsVMMultiple.Example.ps1 | VMNetworkAdapterSettingsVMMultiple.Example.ps1 | Configuration VMAdapterSettings
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapterSettings
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapterSettings VMAdapterSettings01 {
Id = 'Management-NIC'
Name = 'Management-NIC'
VMName = 'DHCPVM... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapterSettings/VMNetworkAdapterSettingsVMSimple.Example.ps1 | VMNetworkAdapterSettingsVMSimple.Example.ps1 | Configuration VMAdapterSettings
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapterSettings
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapterSettings VMAdapterSettings {
Id = 'Management-NIC'
Name = 'Management-NIC'
VMName = 'DHCPVM01... |
PowerShellCorpus/PowerShellGallery/cHyper-V/3.0.0.0/Examples/Resources/cVMNetworkAdapterSettings/VMNetworkAdapterSettingsManagementOS.Example.ps1 | VMNetworkAdapterSettingsManagementOS.Example.ps1 | Configuration HostOSAdapterSettings
{
Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapterSettings
Import-DscResource -ModuleName PSDesiredStateConfiguration
cVMNetworkAdapterSettings HostOSAdapterSettings {
Id = 'Management-NIC'
Name = 'Management-NIC'
VMName = '... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/_scriptAnalyer.tests.ps1 | _scriptAnalyer.tests.ps1 | $here = (Split-Path -Parent $MyInvocation.MyCommand.Path).Replace('tests', '')
$scriptsModules = Get-ChildItem $here -Include *.psd1, *.psm1, *.ps1 -Exclude *.tests.ps1 -Recurse
if(($scriptsModules.count -ne 0) -and (Get-Command Invoke-ScriptAnalyzer -errorAction SilentlyContinue)) {
$scriptAnalyzerRules = Get-Sc... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Add-omsAgentWorkSpace.tests.ps1 | Add-omsAgentWorkSpace.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Add-omsAgentWorkSpace' {
BeforeAll {
Mock Invoke-Command {}
}
Context 'Logic' {
it 'Parameters' {
{Add-omsAgentWorkSpace -workspaceid 'test' -workspacekey 'test' -ErrorAction Stop} | Should Not Th... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Get-omsAgentProxy.tests.ps1 | Get-omsAgentProxy.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Get-omsAgentProxy' {
Context 'Logic' {
it 'Parameters' {
{Get-omsAgentProxy -ErrorAction Stop} | Should Not Throw
{Get-omsAgentProxy -compName -ErrorAction Stop} | Should Throw
}
it 'Creates\Removes A PsSession' {
Mock New-PSSession { 'ses... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Install-omsAgent.tests.ps1 | Install-omsAgent.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Install-omsAgent' {
BeforeAll {
Mock Invoke-Command {}
}
Context 'Logic' {
it 'Parameters' {
{Install-omsAgent -workspa 'test' -ErrorAction Stop -WhatIf:$false -Confirm:$false} | Should Throw
... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Uninstall-omsAgent.tests.ps1 | Uninstall-omsAgent.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Uninstall-omsAgent' {
BeforeAll {
Mock Invoke-Command {}
}
Context 'Logic' {
it 'Parameters' {
{Uninstall-omsAgent -workspa 'test' -ErrorAction Stop -WhatIf:$false -Confirm:$false} | Should Throw
... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Get-omsAgentWorkSpace.tests.ps1 | Get-omsAgentWorkSpace.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Get-omsAgentWorkSpace' {
Context 'Logic' {
it 'Parameters' {
{Get-omsAgentWorkSpace -ErrorAction Stop} | Should Not Throw
{Get-omsAgentWorkSpace -compName -ErrorAction Stop} | Should Throw
}
... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Get-omsAgent.tests.ps1 | Get-omsAgent.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Get-omsAgent' {
Context 'Logic' {
it 'Parameters' {
{Get-omsAgent -ErrorAction Stop} | Should Not Throw
{Get-omsAgent -compName -ErrorAction Stop} | Should Throw
}
it 'Creates\Removes ... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Remove-omsAgentProxy.tests.ps1 | Remove-omsAgentProxy.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Remove-omsAgentProxy' {
BeforeAll {
Mock Invoke-Command {}
}
Context 'Logic' {
it 'Parameters' {
{Remove-omsAgentProxy -comt -ErrorAction Stop -WhatIf:$false -Confirm:$false} | Should Throw
}
it 'Proxy Does Not Exist' {
Mock Get-oms... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Update-omsAgentWorkSpaceKey.tests.ps1 | Update-omsAgentWorkSpaceKey.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Update-omsAgentWorkSpaceKey' {
BeforeAll {
Mock Invoke-Command {}
}
Context 'Logic' {
it 'Parameters' {
{Update-omsAgentWorkSpaceKey -workspa 'test' -workssey 'test' -ErrorAction Stop} | Should Th... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Add-omsAgentProxy.tests.ps1 | Add-omsAgentProxy.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Add-omsAgentProxy' {
BeforeAll {
Mock Invoke-Command {}
}
Context 'Logic' {
Mock Get-omsAgentWorkSpaceInternal { $null }
it 'Parameters' {
{Add-omsAgentProxy -proxyUrl test.local -ErrorAction Stop} | Should Not Throw
{Add-omsAgentProxy ... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/tests/functions/public/Remove-omsAgentWorkSpace.tests.ps1 | Remove-omsAgentWorkSpace.tests.ps1 | InModuleScope -moduleName omsAgent {
Describe 'Remove-omsAgentWorkSpace' {
BeforeAll {
Mock Invoke-Command {}
}
Context 'Logic' {
it 'Parameters' {
{Remove-omsAgentWorkSpace -workspa 'test' -ErrorAction Stop -WhatIf:$false -Confirm:$false} | S... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/private/Get-omsAgentWorkSpaceInternal.ps1 | Get-omsAgentWorkSpaceInternal.ps1 | function Get-omsAgentWorkSpaceInternal
{
[CmdletBinding()]
[OutputType()]
param (
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$computerName,
[Parameter(Mandatory=$true)]
[object]$session,
[Parameter(Mandatory=$false)]
[ValidateNotNullOrEmpty()]
[string]$workspaceid
)... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/private/Convert-CredentialToPlainText.ps1 | Convert-CredentialToPlainText.ps1 | function Convert-CredentialToPlainText
{
<#
.SYNOPSIS
Converts a credential to a plain text username and password.
.NOTES
Written by Ben Taylor
Version 1.0, 05.01.2017
#>
[CmdletBinding()]
[OutputType('System.Collections.Hashtable')]
param (
[Parameter(Mandatory=$true)]
[pscredential... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/private/Get-omsAgentInternal.ps1 | Get-omsAgentInternal.ps1 | function Get-omsAgentInternal
{
[CmdletBinding()]
[OutputType('omsAgent')]
param (
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$computerName,
[Parameter(Mandatory=$true)]
[object]$session
)
try
{
Invoke-Command -Session $session -ScriptBlock {
$oms = Get-ItemProp... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/private/Get-omsAgentProxyInternal.ps1 | Get-omsAgentProxyInternal.ps1 | function Get-omsAgentProxyInternal
{
[CmdletBinding()]
[OutputType('omsAgentProxy')]
param (
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$computerName,
[Parameter(Mandatory=$true)]
[object]$session
)
try
{
Invoke-Command -Session $session -ScriptBlock {
$omsObj =... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Add-omsAgentProxy.ps1 | Add-omsAgentProxy.ps1 | function Add-omsAgentProxy
{
<#
.SYNOPSIS
Adds a OMS Agent Proxy to remote computers.
.EXAMPLE
Add-omsAgentProxy -computerName 'computer1', 'computer2' -proxyURL 'proxy.local:443'
.EXAMPLE
$proxyCredential = Get-Credential
Add-omsAgentProxy -computerName 'computer1', 'computer2' -proxyURL '... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Get-omsAgent.ps1 | Get-omsAgent.ps1 | function Get-omsAgent
{
<#
.SYNOPSIS
Gets OMS workspace details from remote computers
.EXAMPLE
Get-omsAgent -computerName 'computer1', 'computer2'
.NOTES
Written by Ben Taylor
Version 1.1, 08.02.2016
#>
[CmdletBinding()]
[OutputType('omsAgent')]
param (
[Parameter(Mandatory=$fals... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Remove-omsAgentWorkSpace.ps1 | Remove-omsAgentWorkSpace.ps1 | function Remove-omsAgentWorkSpace
{
<#
.SYNOPSIS
Removes OMS workspace details to remote computers
.EXAMPLE
Remove-omsAgentWorkSpace -computerName 'computer1', 'computer2' -workspaceid '<workspaceid>'
.NOTES
Written by Ben Taylor
Version 1.1, 08.02.2017
#>
[CmdletBinding(SupportsShouldP... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Remove-omsAgentProxy.ps1 | Remove-omsAgentProxy.ps1 | function Remove-omsAgentProxy
{
<#
.SYNOPSIS
Removes OMS Proxy to remote computers
.EXAMPLE
Remove-omsAgentProxy -computerName 'computer1', 'computer2'
.NOTES
Written by Ben Taylor
Version 1.0, 06.03.2017
#>
[CmdletBinding(SupportsShouldProcess = $True, ConfirmImpact = 'High')]
[Outpu... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Get-omsAgentWorkSpace.ps1 | Get-omsAgentWorkSpace.ps1 | function Get-omsAgentWorkSpace
{
<#
.SYNOPSIS
Gets OMS workspace details from remote computers
.EXAMPLE
Get-omsAgentWorkSpace -computerName 'computer1', 'computer2'
.EXAMPLE
Get-omsAgentWorkSpace -computerName 'computer1', 'computer2' -workSpaceId '<workSpaceId>'
.NOTES
Written by Ben Ta... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Get-omsAgentProxy.ps1 | Get-omsAgentProxy.ps1 | function Get-omsAgentProxy
{
<#
.SYNOPSIS
Gets OMS proxy details from remote computers
.EXAMPLE
Get-omsAgentProxy -computerName 'computer1', 'computer2'
.NOTES
Written by Ben Taylor
Version 1.0, 06.03.2017
#>
[CmdletBinding()]
[OutputType([System.Collections.ArrayList])]
param (
... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Add-omsAgentWorkSpace.ps1 | Add-omsAgentWorkSpace.ps1 | function Add-omsAgentWorkSpace
{
<#
.SYNOPSIS
Adds a OMS workspace to remote computers.
.EXAMPLE
Add-omsAgentWorkSpace -computerName 'computer1', 'computer2' -workSpaceId '<workSpace>' -workSpaceKey '<workSpaceKey>'
.EXAMPLE
$workSpace = Get-Credential
Add-omsAgentWorkSpace -computerName 'c... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Update-omsAgentWorkSpaceKey.ps1 | Update-omsAgentWorkSpaceKey.ps1 | function Update-omsAgentWorkSpaceKey
{
<#
.SYNOPSIS
Updates the OMS workspace key on remote computers.
.EXAMPLE
Update-omsAgwentWorkSpacekey -computerName 'computer1', 'computer2' -workspaceid '<workSpaceId>' -workspacekey '<workSpaceKey>'
.EXAMPLE
$workSpace = Get-Credential
Update-omsAgwe... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Install-omsAgent.ps1 | Install-omsAgent.ps1 | #Requires -Version 5.0
function Install-OmsAgent
{
<#
.Synopsis
Installs the OMS agent on remote computers.
.DESCRIPTION
Either downloads the installer from a URL or copies the installer via the powershell session. Can detected if a previous version is installed and skip if so. If allready installed... |
PowerShellCorpus/PowerShellGallery/omsAgent/1.2/functions/public/Uninstall-omsAgent.ps1 | Uninstall-omsAgent.ps1 | function Uninstall-OmsAgent
{
<#
.Synopsis
Un-installs the OMS agent on remote computers.
.DESCRIPTION
Un-installs the OMS agent on remote computers.
.EXAMPLE
Uninstall-OmsAgent -computerName 'computer1', 'computer2' -Verbose
.NOTES
Written by Ben Taylor
Version 1.0, 31.07.2016
#... |
PowerShellCorpus/PowerShellGallery/DevTools/1.1.8/Examples/API.ps1 | API.ps1 | using module DevTools
param ($action = [DevTools.Action]::Development)
[DevTools.Action]$action = $action
$provision = [DevTools.ProvisionManager]@{ root = $PSScriptRoot }
$version = [DevTools.VersionManager]@{ psd = $provision.psd }
$projectConfig = Import-PowerShellDataFile $provision.psd
$provision.d... |
PowerShellCorpus/PowerShellGallery/DevTools/1.1.8/Tests/EntyPoint.ps1 | EntyPoint.ps1 | # Expose some globals.
$provision = $global:devTools.provision
$version = $global:devTools.version
$appVeyor = $global:devTools.appVeyor
$pesterConfig = switch ([Boolean]$appVeyor)
{
$true { $appVeyor.getPesterDefaultConfig($provision, $version.version) }
$false { @{ path = $provision.tests } }
}
... |
PowerShellCorpus/PowerShellGallery/DevTools/1.1.8/Tests/Unit/SuiteTwo.Tests.ps1 | SuiteTwo.Tests.ps1 | Describe "Tests Suit 2" {
Context "Context 2" {
$result = 1
It "Test 1" { $result | Should Be 1 }
It "Test 2" { $result | Should Not Be 0 }
It "Test 3" { $result | Should Be 1 }
}
} |
PowerShellCorpus/PowerShellGallery/DevTools/1.1.8/Tests/Unit/SuiteOne.Tests.ps1 | SuiteOne.Tests.ps1 | Describe 'Tests Suit 1' {
Context 'Strict mode' {
Set-StrictMode -Version latest
It 'Should succeed on event' {
$null | Should BeNullOrEmpty
$true | Should be $true
}
It 'Should error on event without parameter' {
... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Import-VisualStudioEnvironment.ps1 | Import-VisualStudioEnvironment.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Get-DumpAnalysis.ps1 | Get-DumpAnalysis.ps1 |
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2015-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
###############################################################################
... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Invoke-CmdScript.ps1 | Invoke-CmdScript.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/SymbolsSource.ps1 | SymbolsSource.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Set-Signatures.ps1 | Set-Signatures.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2014-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Set-ProjectProperties.ps1 | Set-ProjectProperties.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Remove-IntelliTraceFile.ps1 | Remove-IntelliTraceFile.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Get-SysinternalsSuite.ps1 | Get-SysinternalsSuite.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Internal.ps1 | Internal.ps1 |
#requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Compare-Directories.ps1 | Compare-Directories.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Expand-ZipFile.ps1 | Expand-ZipFile.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Add-NgenPdbs.ps1 | Add-NgenPdbs.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2013-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Get-Uptime.ps1 | Get-Uptime.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Merge-HashTables.ps1 | Merge-HashTables.ps1 |
function Merge-HashTables
{
# I hate suppressing this warning, but I created this cmdlet long before the
# script analyzer came out. If someone has this in a script, changing the
# cmdlet name will break them.
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseSingularNouns", "", Scope="Fu... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Test-PathReg.ps1 | Test-PathReg.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Code/Set-Environment.ps1 | Set-Environment.ps1 | #requires -version 5.0
###############################################################################
# WintellectPowerShell Module
# Copyright (c) 2010-2017 - John Robbins/Wintellect
#
# Do whatever you want with this module, but please do give credit.
##########################################################... |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Support/UpdateSignatures.ps1 | UpdateSignatures.ps1 | Get-ChildItem -Recurse ..\*.ps* -Exclude *Support* | Get-AuthenticodeSignature | Where-Object { $_.Status -eq "HashMismatch"} | Select-Object Path | ForEach-Object { $_.Path } | Set-Signatures |
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Support/UploadWintellectPowerShell.ps1 | UploadWintellectPowerShell.ps1 | param
(
[Parameter(Mandatory=$true,
HelpMessage="Please specify the api key")]
[string] $apiKey
)
Publish-Module -NuGetApiKey $apiKey -Path ..\ -Verbose
|
PowerShellCorpus/PowerShellGallery/WintellectPowerShell/4.0.0.3/Support/SignWintellectPowerShell.ps1 | SignWintellectPowerShell.ps1 | Set-StrictMode -version Latest
$cert = @(Get-ChildItem cert:\CurrentUser\My -codesigning)[0]
$timeServer = "http://timestamp.comodoca.com/authenticode"
# Build my list of files to sign.
$files = Get-ChildItem -Path ..\Code\*.* -Include *.ps*,*.dll
$files += Get-ChildItem -Path ..\* -Include *.ps*
Set-Authenti... |
PowerShellCorpus/PowerShellGallery/NameIT/1.8.3/customData/customData.ps1 | customData.ps1 | @{
Region=echo North East South West
Food=echo Pizza Pancakes Chinese
Fruit=echo lemon lime peach apple banana
Response=echo Yes No Maybe "'Not Sure'"
Ingredients=echo Flour Sugar Salt Milk Eggs Butter
USCapital=echo Montgomery Juneau Phoenix Little Rock Sacramento Denver Hartfo... |
PowerShellCorpus/PowerShellGallery/PoShSQLLocalDB/1.0.2.6/bin/AutoVersion.ps1 | AutoVersion.ps1 | ## Get psd1 file
$RawPSD = Get-Content -Path "$($PSScriptRoot)\..\PoShSQLLocalDB.psd1"
$ModuleVersion=($RawPSD | Where-Object { $_ -match "^ModuleVersion.*$" }) -replace "^.*=\s|'"
[Int[]] $VerArr = $ModuleVersion -split '\.'
$NewModuleVersion = ''
$CarryValue = 1
$EntryPoint = $($VerArr.Count -1)
for($i=$En... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/Install.ps1 | Install.ps1 | # Run this in an administrative PowerShell prompt to install the PSObjectInspector PowerShell module:
#
# iex (New-Object Net.WebClient).DownloadString("https://github.com/TheDollarDes/PSObjectInspector/raw/master/Install.ps1")
# Some general variables
$ModuleName = 'PSObjectInspector'
$DownloadURL = 'https://g... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/Build.ps1 | Build.ps1 | #Requires -Version 5
[CmdletBinding(DefaultParameterSetName='Build')]
param (
[parameter(Position=0, ParameterSetName='Build')]
[switch]$BuildModule,
[parameter(Position=1, ParameterSetName='Build')]
[switch]$CreatePSGalleryProfile,
[parameter(Position=2, ParameterSetName='Build')]
[swit... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/src/other/PostLoad.ps1 | PostLoad.ps1 |
# Use this variable for any path-sepecific actions (like loading dlls and such) to ensure it will work in testing and after being built
$MyModulePath = $(
Function Get-ScriptPath {
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
if($Invocation.PSScriptRoot) {
$Invocation.... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/src/public/ObjectModule.ps1 | ObjectModule.ps1 |
Function Show-Object-Flat {
<#
.SYNOPSIS
Flatten an object to simplify discovery of data
.DESCRIPTION
Flatten an object. This function will take an object, and flatten the properties using their full path into a single object with one layer of properties.
You can use this to... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/src/public/Out-Default-Capture.ps1 | Out-Default-Capture.ps1 | function Out-Default {
<#
.SYNOPSIS
Spelunking with Show-Object
.DESCRIPTION
Spelunk [spi-luhngk], verb. To explore caves, especially as a hobby.
We must first recall that PowerShell pipelines are very different from, say, Linux pipelines. Rather than consisting of text, PowerShell objects a... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/templates/Install.ps1 | Install.ps1 | # Run this in an administrative PowerShell prompt to install the {{ModuleName}} PowerShell module:
#
# iex (New-Object Net.WebClient).DownloadString("{{ModuleWebsite}}/raw/master/Install.ps1")
# Some general variables
$ModuleName = '{{ModuleName}}'
$DownloadURL = '{{ModuleWebsite}}/raw/master/release/{{ModuleNa... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/templates/Build.ps1 | Build.ps1 | #Requires -Version 5
[CmdletBinding(DefaultParameterSetName='Build')]
param (
[parameter(Position=0, ParameterSetName='Build')]
[switch]$BuildModule,
[parameter(Position=1, ParameterSetName='Build')]
[switch]$CreatePSGalleryProfile,
[parameter(Position=2, ParameterSetName='Build')]
[swit... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/New-PSGalleryProjectProfile.ps1 | New-PSGalleryProjectProfile.ps1 | #Requires -version 5
function Script:New-PSGalleryProjectProfile {
<#
.SYNOPSIS
Create a powershell Gallery module upload profile
.DESCRIPTION
Create a powershell Gallery module upload profile. Some items (like Name) are inferred from the module manifest and are left ou... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/Out-Zip.ps1 | Out-Zip.ps1 | function Script:Out-Zip {
param (
[Parameter(Position=0, Mandatory=$true)]
[string] $Directory,
[Parameter(Position=1, Mandatory=$true)]
[string] $FileName,
[Parameter(Position=2)]
[switch] $overwrite
)
Add-Type -Assembly System.IO.Compression.FileSys... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/Upload-ProjectToPSGallery.ps1 | Upload-ProjectToPSGallery.ps1 | #Requires -version 5
function Script:Upload-ProjectToPSGallery {
<#
.SYNOPSIS
Upload module project to Powershell Gallery
.DESCRIPTION
Upload module project to Powershell Gallery
.PARAMETER ModulePath
Path to module to upload.
.PARAMETER A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.