full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xWaitForAvailabilityGroup/2-WaitForMultipleClusterGroups.ps1 | 2-WaitForMultipleClusterGroups.ps1 | <#
.EXAMPLE
This example will wait for both the cluster roles/groups 'AGTest1' and 'AGTest2'.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]
$SysAdmin... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerMemory/3-SetMinMemoryToFixedValueAndMaxMemoryToAuto.ps1 | 3-SetMinMemoryToFixedValueAndMaxMemoryToAuto.ps1 | <#
.EXAMPLE
This example shows how to set the minimum memory to 2GB and the maximum memory
configuration option with the automatic configuration.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Manag... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerMemory/1-SetMaxMemoryTo12GB.ps1 | 1-SetMaxMemoryTo12GB.ps1 | <#
.EXAMPLE
This example shows how to set the minimum and maximum memory
configuration option with the value equal to 1024 and 12288.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automa... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerMemory/2-SetMaxMemoryToAuto.ps1 | 2-SetMaxMemoryToAuto.ps1 | <#
.EXAMPLE
This example shows how to set the maximum memory
configuration option with the automatic configuration.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Credential()]... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerMemory/4-SetMaxMemoryToDefault.ps1 | 4-SetMaxMemoryToDefault.ps1 | <#
.EXAMPLE
This example shows how to set the minimum and maximum memory
configuration option with the default configuration.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
[System.Management.Automation.Cre... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerSetup/1-InstallDefaultInstanceSingleServer.ps1 | 1-InstallDefaultInstanceSingleServer.ps1 | <#
.EXAMPLE
This example shows how to install a default instance of SQL Server on a single server.
.NOTES
SQL Server setup is run using the SYSTEM account. Even if SetupCredential is provided
it is not used to install SQL Server at this time (see issue #139).
#>
Configuration Exam... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerSetup/2-InstallNamedInstanceSingleServer.ps1 | 2-InstallNamedInstanceSingleServer.ps1 | <#
.EXAMPLE
This example shows how to install a named instance of SQL Server on a single server.
.NOTES
SQL Server setup is run using the SYSTEM account. Even if SetupCredential is provided
it is not used to install SQL Server at this time (see issue #139).
#>
Configuration Exampl... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerSetup/5-InstallNamedInstanceInFailoverClusterSecondNode.ps1 | 5-InstallNamedInstanceInFailoverClusterSecondNode.ps1 | <#
.EXAMPLE
This example shows how to add a node to an existing SQL Server failover cluster.
.NOTES
This example assumes that a Failover Cluster is already present with the first SQL Server Failover Cluster
node already installed.
This example also assumes that that the sam... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerSetup/3-InstallNamedInstanceSingleServerFromUncPathUsingSourceCredential.ps1 | 3-InstallNamedInstanceSingleServerFromUncPathUsingSourceCredential.ps1 | <#
.EXAMPLE
This example shows how to install a named instance of SQL Server on a single server, from an UNC path.
.NOTES
Assumes the credentials assigned to SourceCredential have read permission on the share and on the UNC path.
The media will be copied locally, using impersonation... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerSetup/4-InstallNamedInstanceInFailoverClusterFirstNode.ps1 | 4-InstallNamedInstanceInFailoverClusterFirstNode.ps1 | <#
.EXAMPLE
This example shows how to install the first node in a SQL Server failover cluster.
.NOTES
This example assumes that a Failover Cluster is already present with a Cluster Name Object (CNO), IP-address.
This example also assumes that that all necessary shared disks is prese... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAlwaysOnAvailabilityGroup/2-RemoveAvailabilityGroup.ps1 | 2-RemoveAvailabilityGroup.ps1 | <#
.EXAMPLE
This example shows how to ensure that the Availability Group 'TestAG' does not exist.
#>
$ConfigurationData = @{
AllNodes = @(
@{
NodeName= '*'
SQLInstanceName = 'MSSQLSERVER'
},
@{
NodeName = 'SP23-VM-SQL1'
Role = '... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerAlwaysOnAvailabilityGroup/1-CreateAvailabilityGroup.ps1 | 1-CreateAvailabilityGroup.ps1 | <#
.EXAMPLE
This example shows how to ensure that the Availability Group 'TestAG' exists.
#>
$ConfigurationData = @{
AllNodes = @(
@{
NodeName= '*'
SQLInstanceName = 'MSSQLSERVER'
},
@{
NodeName = 'SP23-VM-SQL1'
Role = 'Prim... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerConfiguration/1-ConfigureTwoInstancesOnTheSameServerToEnableClr.ps1 | 1-ConfigureTwoInstancesOnTheSameServerToEnableClr.ps1 | <#
.EXAMPLE
This example shows how to configure two SQL Server instances on the same server to have CLR enabled.
.NOTES
To get all available options run sp_configure on the SQL Server instance, or refer to https://msdn.microsoft.com/en-us/library/ms189631.aspx
#>
$configurationData = @{
AllNodes = ... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerConfiguration/2-ConfigureInstanceToEnablePriorityBoost.ps1 | 2-ConfigureInstanceToEnablePriorityBoost.ps1 | <#
.EXAMPLE
This example shows how to configure two SQL Server instances on the same server to have the setting 'priority boost' enabled.
.NOTES
To get all available options run sp_configure on the SQL Server instance, or refer to https://msdn.microsoft.com/en-us/library/ms189631.aspx
#>
Configuration E... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerNetwork/1-EnableTcpIpWithStaticPort.ps1 | 1-EnableTcpIpWithStaticPort.ps1 | <#
.EXAMPLE
This example will enable TCP/IP protocol and set the custom static port to 4509.
When RestartService is set to $true the resource will also restart the SQL service.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCre... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerNetwork/2-EnableTcpIpWithDynamicPort.ps1 | 2-EnableTcpIpWithDynamicPort.ps1 | <#
.EXAMPLE
This example will enable TCP/IP protocol and set the custom static port to 4509.
When RestartService is set to $true the resource will also restart the SQL service.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCre... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerEndpointPermission/1-AddConnectPermission.ps1 | 1-AddConnectPermission.ps1 | <#
.EXAMPLE
This example will add connect permission to the credentials provided in $SqlServiceCredential
to the endpoint named 'DefaultMirrorEndpoint'.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Examples/Resources/xSQLServerEndpointPermission/2-RemoveConnectPermission.ps1 | 2-RemoveConnectPermission.ps1 | <#
.EXAMPLE
This example will add connect permission to the credentials provided in $SqlServiceCredential
to the endpoint named 'DefaultMirrorEndpoint'.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[System.Management.Automation.PSCredential]
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/xSQLServerCommon.Tests.ps1 | xSQLServerCommon.Tests.ps1 | [CmdletBinding()]
# Suppressing this because we need to generate a mocked credentials that will be passed along to the examples that are needed in the tests.
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param()
$script:moduleRoot = Split-Path $PSScriptR... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerRole.Tests.ps1 | MSFT_xSQLServerRole.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerRole'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Test... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerDatabasePermission.Tests.ps1 | MSFT_xSQLServerDatabasePermission.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerDatabasePermission'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DS... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerScript.Tests.ps1 | MSFT_xSQLServerScript.Tests.ps1 | <#
.SYNOPSIS
Automated unit test for MSFT_xSQLServerScript DSC Resource
#>
# Suppression of this PSSA rule allowed in tests.
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
Param()
#region HEADER
# Unit Test Template Version: 1.2.0
$sc... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerDatabaseRecoveryModel.Tests.ps1 | MSFT_xSQLServerDatabaseRecoveryModel.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerDatabaseRecoveryModel'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath ... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/xSQLServerHelper.Tests.ps1 | xSQLServerHelper.Tests.ps1 | # To run these tests, we have to fake login credentials
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
param ()
# Unit Test Template Version: 1.1.0
$script:moduleName = 'xSQLServerHelper'
[String] $script:moduleRoot = Split-Path -Parent (Split-Path -... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerAlwaysOnAvailabilityGroup.Tests.ps1 | MSFT_xSQLServerAlwaysOnAvailabilityGroup.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerAlwaysOnAvailabilityGroup'
# Unit Test Template Version: 1.1.0
[String] $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCR... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerDatabase.Tests.ps1 | MSFT_xSQLServerDatabase.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerDatabase'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerNetwork.Tests.ps1 | MSFT_xSQLServerNetwork.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerNetwork'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.T... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerSetup.Tests.ps1 | MSFT_xSQLServerSetup.Tests.ps1 | # Suppressing this rule because PlainText is required for one of the functions used in this test
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
param()
$script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerSetup'
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerDatabaseRole.Tests.ps1 | MSFT_xSQLServerDatabaseRole.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerDatabaseRole'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerAlwaysOnAvailabilityGroupReplica.Tests.ps1 | MSFT_xSQLServerAlwaysOnAvailabilityGroupReplica.Tests.ps1 | #region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Tests'))) -or `
(-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResou... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerFirewall.Tests.ps1 | MSFT_xSQLServerFirewall.Tests.ps1 | # Suppressing this rule because PlainText is required for one of the functions used in this test
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
param()
$script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerFirewall'... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerConfiguration.Tests.ps1 | MSFT_xSQLServerConfiguration.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerConfiguration'
# Unit Test Template Version: 1.1.0
[String] $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Test... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerPermission.Tests.ps1 | MSFT_xSQLServerPermission.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerPermission'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResourc... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerMemory.Tests.ps1 | MSFT_xSQLServerMemory.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerMemory'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Te... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerEndpointPermission.Tests.ps1 | MSFT_xSQLServerEndpointPermission.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerEndpointPermission'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DS... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerAlwaysOnService.Tests.ps1 | MSFT_xSQLServerAlwaysOnService.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerAlwaysOnService'
# Unit Test Template Version: 1.1.0
[String] $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Te... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerEndpointState.Tests.ps1 | MSFT_xSQLServerEndpointState.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerEndpointState'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCReso... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerReplication.Tests.ps1 | MSFT_xSQLServerReplication.Tests.ps1 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param ()
$script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerReplication'
#region HEADER
# Unit Test Template Version: 1.1.0
[String] $script:moduleRoot = Split-Path -Parent (... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerAvailabilityGroupListener.Tests.ps1 | MSFT_xSQLServerAvailabilityGroupListener.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerAvailabilityGroupListener'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildP... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xWaitForAvailabilityGroup.Tests.ps1 | MSFT_xWaitForAvailabilityGroup.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xWaitForAvailabilityGroup'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCRe... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerMaxDop.Tests.ps1 | MSFT_xSQLServerMaxDop.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerMaxDop'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Te... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerLogin.Tests.ps1 | MSFT_xSQLServerLogin.Tests.ps1 | # Suppressing this rule because PlainText is required for one of the functions used in this test
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
$script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerLogin'
#region ... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerAlias.Tests.ps1 | MSFT_xSQLServerAlias.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerAlias'
#region HEADER
# Unit Test Template Version: 1.1.0
[String] $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCR... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLAOGroupEnsure.Tests.ps1 | MSFT_xSQLAOGroupEnsure.Tests.ps1 | # Suppressing this rule because PlainText is required for one of the functions used in this test
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
param ()
$script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLAOGroupEnsure... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerEndpoint.Tests.ps1 | MSFT_xSQLServerEndpoint.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerEndpoint'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLAOGroupJoin.Tests.ps1 | MSFT_xSQLAOGroupJoin.Tests.ps1 | # Suppressing this rule because PlainText is required for one of the functions used in this test
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
param()
$script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLAOGroupJoin'
... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/MSFT_xSQLServerDatabaseOwner.Tests.ps1 | MSFT_xSQLServerDatabaseOwner.Tests.ps1 | $script:DSCModuleName = 'xSQLServer'
$script:DSCResourceName = 'MSFT_xSQLServerDatabaseOwner'
#region HEADER
# Unit Test Template Version: 1.2.0
$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCReso... |
PowerShellCorpus/PowerShellGallery/xSQLServer/7.1.0.0/Tests/Unit/Stubs/Write-ModuleStubFile.ps1 | Write-ModuleStubFile.ps1 | <#
.SYNOPSIS
Generates a file contaning function stubs of all cmdlets from the module given as a parameter.
.PARAMETER ModuleName
The name of the module to load and generate stubs from. This module must exist on the computer where this function is ran.
.PARAMETER Path
Pat... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Private/Get-MVPOAuthAutorizationCode.ps1 | Get-MVPOAuthAutorizationCode.ps1 | Function Get-MVPOAuthAutorizationCode {
<#
.SYNOPSIS
Get an Oauth 2.0 autorization code
.DESCRIPTION
Use the authorization code grant flow described on https://msdn.microsoft.com/en-us/library/hh243647.aspx
Pop-up a window that asks you to grant permissions to the mvpapi.portal.azure-api.net applica... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Private/Show-MVPOAuthWindow.ps1 | Show-MVPOAuthWindow.ps1 | Function Show-MVPOAuthWindow {
<#
.SYNOPSIS
Function to show the Microsoft Authentication window
.NOTES
https://github.com/lazywinadmin/MVP
#Credit to https://raw.githubusercontent.com/1RedOne/PSWordPress/master/Private/Show-oAuthWindow.ps1
#>
[CmdletBinding()]
Param(
[Uri]$u... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Get-MVPProfileImage.ps1 | Get-MVPProfileImage.ps1 | Function Get-MVPProfileImage {
<#
.SYNOPSIS
Invoke the GetMVPProfileImage REST API to retrieve your MVP profile image
.DESCRIPTION
Gets your MVP profile image
.EXAMPLE
Get-MVPProfileImage
It gets your MVP profile image.
#>
[CmdletBinding()]
Param()
... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Remove-MVPContribution.ps1 | Remove-MVPContribution.ps1 | Function Remove-MVPContribution {
<#
.SYNOPSIS
Invoke the DeleteContribution REST API
.DESCRIPTION
Deletes a Contribution item
.PARAMETER ID
It's the id of a contribution
.EXAMPLE
#>
[CmdletBinding(SupportsShouldProcess,ConfirmImpact='High')]
Param(
[Paramet... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Get-MVPProfile.ps1 | Get-MVPProfile.ps1 | Function Get-MVPProfile {
<#
.SYNOPSIS
Invoke the GetMVPProfile REST API to retrieve an MVP profile summary
.DESCRIPTION
Gets a user public profile with the MVP id passed as a parameter or gets your MVP profile summary without parameter
.PARAMETER ID
It's an MVP id
... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/New-MVPContribution.ps1 | New-MVPContribution.ps1 | Function New-MVPContribution {
<#
.SYNOPSIS
Invoke the PostContribution REST API
.DESCRIPTION
Creates a new Contribution item
.PARAMETER ContributionTechnology
Specifies the Contribution technology
This parameter is dynamic and is retrieving the information from G... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Remove-MVPOnlineIdentity.ps1 | Remove-MVPOnlineIdentity.ps1 | Function Remove-MVPOnlineIdentity {
<#
.SYNOPSIS
Invoke the DeleteOnlineIdentity REST API
.DESCRIPTION
Deletes an online identity
.PARAMETER ID
It's the id of an online identity
.EXAMPLE
#>
[CmdletBinding(SupportsShouldProcess,ConfirmImpact='High')]
Param(
[... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/New-MVPOnlineIdentity.ps1 | New-MVPOnlineIdentity.ps1 | Function New-MVPOnlineIdentity {
<#
.SYNOPSIS
Invoke the PostOnlineIdentity REST API
.DESCRIPTION
Creates a new online identity
.PARAMETER ID
.PARAMETER SocialNetwork
.PARAMETER URL
.PARAMETER AllowMicrosoftToQueryMyId
.PARAMETER Visibility
.EXAMPLE
... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Set-MVPOnlineIdentity.ps1 | Set-MVPOnlineIdentity.ps1 | Function Set-MVPOnlineIdentity {
<#
.SYNOPSIS
Invoke the PutOnlineIdentity REST API
.DESCRIPTION
Updates an Online Identity
.PARAMETER ID
.PARAMETER SocialNetwork
.PARAMETER URL
.PARAMETER AllowMicrosoftToQueryMyId
.PARAMETER Visibility
.EXAMPLE
... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Set-MVPConfiguration.ps1 | Set-MVPConfiguration.ps1 | Function Set-MVPConfiguration {
<#
.SYNOPSIS
Get an Oauth Autorization code
.DESCRIPTION
Call the private Get-MVPOAuthAutorizationCode function and define both an MVPPrimaryKey and MVPAuthorizationCode global variable
.PARAMETER SubscriptionKey
It's the primary key or secondary key you get in you... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Get-MVPContributionArea.ps1 | Get-MVPContributionArea.ps1 | Function Get-MVPContributionArea {
<#
.SYNOPSIS
Invoke the GetContributionAreas REST API to retrieve your contribution areas
.DESCRIPTION
Gets a list of Contribution areas grouped by Award Names
.PARAMETER Other
It gets the list of Other Award Categories
.PARAMETER ... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Get-MVPOnlineIdentity.ps1 | Get-MVPOnlineIdentity.ps1 | Function Get-MVPOnlineIdentity {
<#
.SYNOPSIS
Invoke the GetOnlineIdentities REST API
.DESCRIPTION
Gets a list of your online identities in your MVP profile
.PARAMETER Id
It's the id of the online identity in a int32 format
.PARAMETER NominationId
It's yo... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Get-MVPContributionVisibility.ps1 | Get-MVPContributionVisibility.ps1 | Function Get-MVPContributionVisibility {
<#
.SYNOPSIS
Invoke the GetSharingPreferences REST API to retrieve contribution visibility types
.DESCRIPTION
Gets a list of Sharing Preference / Visibility Types for Contributions
.EXAMPLE
Get-MVPContributionVisibility
#>
[Cmd... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Remove-MVPConfiguration.ps1 | Remove-MVPConfiguration.ps1 | Function Remove-MVPConfiguration {
[CmdletBinding()]
Param(
[Parameter()]
[string]$ClientID='0000000048193351'
)
Begin {
$RedirectUri = 'https://login.live.com/oauth20_desktop.srf'
}
Process {
If ($MVPOauth2) {
# GET https://login.live.com/oauth20_logout.srf?client_id={client_id}&red... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Get-MVPContributionType.ps1 | Get-MVPContributionType.ps1 | Function Get-MVPContributionType {
<#
.SYNOPSIS
Invoke the GetContributionTypes REST API to retrieve contribution types
.DESCRIPTION
Gets a list of contribution types
.EXAMPLE
Get-MVPContributionType
It gets the list of contribution types
#>
[CmdletBinding()... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Set-MVPContribution.ps1 | Set-MVPContribution.ps1 | Function Set-MVPContribution {
<#
.SYNOPSIS
Invoke the PutContribution REST API
.DESCRIPTION
Updates a Contribution item
.PARAMETER ContributionTechnology
.PARAMETER ContributionType
.PARAMETER StartDate
.PARAMETER Title
.PARAMETER Description
.PARAMETER Re... |
PowerShellCorpus/PowerShellGallery/MVP/0.0.2.0/Public/Get-MVPContribution.ps1 | Get-MVPContribution.ps1 | Function Get-MVPContribution {
<#
.SYNOPSIS
Invoke the GetContributions REST API to retrieve your contributions
.DESCRIPTION
Gets yours contributions without parameter or by specifying the id of a contribution
.PARAMETER Offset
Page skip integer as int32
.PARAMETER Limit
Page take intege... |
PowerShellCorpus/PowerShellGallery/SCOrchDev-AzureAutomationIntegration/3.0.4/tests/SCOrchDev-AzureAutomationIntegration.tests.ps1 | SCOrchDev-AzureAutomationIntegration.tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$ModuleRoot = "$here\.."
$manifestPath = "$ModuleRoot\SCOrchDev-AzureAutomationIntegration.psd1"
Import-Module $manifestPath -Force -Scope Local
Describe 'Style rules' {
$_ModuleBase = (Get-Module SCOrchDev-AzureAutomationIntegration).ModuleBase
... |
PowerShellCorpus/PowerShellGallery/ADtoO365/1.4.0.1/Private/Get-ObjectAction.ps1 | Get-ObjectAction.ps1 | <#
.NOTES
Company: BitTitan, Inc.
Title: Get-ObjectAction.ps1
Author: SUPPORT@BITTITAN.COM
Requirements:
Version: 1.1
Date: DECEMBER 22, 2016
Disclaimer: This script is provided ‘AS IS’. No warrantee is provided either expresses or implied.
Copyright: Copyright© 2016 BitTitan.... |
PowerShellCorpus/PowerShellGallery/ADtoO365/1.4.0.1/Private/Get-SyncAction.ps1 | Get-SyncAction.ps1 | <#
.NOTES
Company: BitTitan, Inc.
Title: Get-SyncAction.ps1
Author: SUPPORT@BITTITAN.COM
Requirements:
Version: 1.1
Date: DECEMBER 22, 2016
Disclaimer: This script is provided ‘AS IS’. No warrantee is provided either expresses or implied.
Copyright: Copyright© 2016 BitTitan. A... |
PowerShellCorpus/PowerShellGallery/ADtoO365/1.4.0.1/Private/Sync-Objects.ps1 | Sync-Objects.ps1 | <#
.NOTES
Company: BitTitan, Inc.
Title: Sync-Objects.ps1
Author: SUPPORT@BITTITAN.COM
Requirements:
Version: 1.1
Date: DECEMBER 22, 2016
Disclaimer: This script is provided ‘AS IS’. No warrantee is provided either expresses or implied.
Copyright: Copyright© 2016 BitTitan. All... |
PowerShellCorpus/PowerShellGallery/ADtoO365/1.4.0.1/Private/SyncFunctions.ps1 | SyncFunctions.ps1 |
<#
.NOTES
Company: BitTitan, Inc.
Title: SyncFunctions.ps1
Author: SUPPORT@BITTITAN.COM
Requirements:
Version: 1.1
Date: DECEMBER 22, 2016
Disclaimer: This script is provided ‘AS IS’. No warrantee is provided either expresses or implied.
Copyright: Copyright© 2016 BitTitan. ... |
PowerShellCorpus/PowerShellGallery/ADtoO365/1.4.0.1/Private/GetTicket.ps1 | GetTicket.ps1 | <#
.NOTES
Company: BitTitan, Inc.
Title: GetTicket.ps1
Author: SUPPORT@BITTITAN.COM
Requirements:
Version: 1.1
Date: DECEMBER 22, 2016
Disclaimer: This script is provided ‘AS IS’. No warrantee is provided either expresses or implied.
Copyright: Copyright© 2016 BitTitan. All ri... |
PowerShellCorpus/PowerShellGallery/ADtoO365/1.4.0.1/Private/BitTitanTools/BitTitanTools.Tests.ps1 | BitTitanTools.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = "$here\BitTitanTools.psm1"
# ^If ever integrated with buildserver, will most likely have to change the above to the corresponding teamcity environment variables
Describe "BitTitanTools" {
Context "Meta: Verify runtype parameters" {
It... |
PowerShellCorpus/PowerShellGallery/ADtoO365/1.4.0.1/Public/Sync-ADtoO365.ps1 | Sync-ADtoO365.ps1 | <#
.NOTES
Company: BitTitan, Inc.
Title: Sync-ADtoO365.ps1
Author: SUPPORT@BITTITAN.COM
Requirements:
Version: 1.3
Date: DECEMBER 22, 2016
Disclaimer: This script is provided ‘AS IS’. No warrantee is provided either expresses or implied.
Copyright: Copyright© 2016 BitTitan. Al... |
PowerShellCorpus/PowerShellGallery/cUserRightsAssignment/1.0.2/Examples/Sample_cUserRight.ps1 | Sample_cUserRight.ps1 | <#
.SYNOPSIS
Assign logon rights.
.DESCRIPTION
This example shows how to use the cUserRight DSC resource to assign logon rights.
#>
Configuration Sample_cUserRight
{
Import-DscResource -ModuleName cUserRightsAssignment
# Ensure the 'Log on as a service' logon right is assigned to the local ... |
PowerShellCorpus/PowerShellGallery/cUserRightsAssignment/1.0.2/Tests/Unit/cUserRight.Tests.ps1 | cUserRight.Tests.ps1 | #requires -Version 4.0 -Modules Pester
$Global:DSCModuleName = 'cUserRightsAssignment'
$Global:DSCResourceName = 'cUserRight'
#region Header
$ModuleRoot = Split-Path -Path $Script:MyInvocation.MyCommand.Path -Parent | Split-Path -Parent | Split-Path -Parent
if (
(-not (Test-Path -Path (Join-Path -Path... |
PowerShellCorpus/PowerShellGallery/cUserRightsAssignment/1.0.2/Tests/Integration/cUserRight.Config.ps1 | cUserRight.Config.ps1 | $TestParameters = [PSCustomObject]@{
Constant = 'SeBatchLogonRight'
Principal = 'BUILTIN\Power Users'
}
Configuration cUserRight_Present
{
Import-DscResource -ModuleName cUserRightsAssignment
Node localhost
{
cUserRight TestPresent
{
Ensure = 'Present'
... |
PowerShellCorpus/PowerShellGallery/cUserRightsAssignment/1.0.2/Tests/Integration/cUserRight.Integration.Tests.ps1 | cUserRight.Integration.Tests.ps1 | #requires -Version 4.0 -Modules Pester
$Global:DSCModuleName = 'cUserRightsAssignment'
$Global:DSCResourceName = 'cUserRight'
#region Header
$ModuleRoot = Split-Path -Path $Script:MyInvocation.MyCommand.Path -Parent | Split-Path -Parent | Split-Path -Parent
if (
(-not (Test-Path -Path (Join-Path -Path... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Get-WFListBoxItem.ps1 | Get-WFListBoxItem.ps1 | function Get-WFListBoxItem
{
<#
.SYNOPSIS
Function to get item(s) from a ListBox Control
.DESCRIPTION
Function to get item(s) from a ListBox Control
.PARAMETER ListBox
Specifies the ListBox control to get
.PARAMETER SelectedItem
Show only the selected Item
.PARAMETER All
Show all ... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Get-WFCheckedListBoxItem.ps1 | Get-WFCheckedListBoxItem.ps1 | function Get-WFCheckedListBoxItem
{
<#
.SYNOPSIS
Function to get item(s) from a CheckedListBox Control
.DESCRIPTION
Function to get item(s) from a CheckedListBox Control
.PARAMETER CheckedListBox
Specifies the CheckedListBox control
.PARAMETER SelectedItem
Specifies that the function retu... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Get-WFListViewItem.ps1 | Get-WFListViewItem.ps1 | function Get-WFListViewItem
{
<#
.SYNOPSIS
Function to get item(s) from a ListView Control
.DESCRIPTION
Function to get item(s) from a ListView Control
.EXAMPLE
Get-WFListViewItem -ListView $ListView1 -SelectedItem
This will return all th... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Disable-WFTextBox.ps1 | Disable-WFTextBox.ps1 | function Disable-WFTextBox
{
<#
.SYNOPSIS
This function will disable a TextBox control
.DESCRIPTION
A detailed description of the Disable-WFTextBox function.
.PARAMETER TextBox
A description of the TextBox parameter.
.EXAMPLE
Disable-WFTextBox -TextBox $TextBox
.NOTES
Francois-Xav... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Clear-WFErrorProvider.ps1 | Clear-WFErrorProvider.ps1 | function Clear-WFErrorProvider
{
<#
.SYNOPSIS
The Clear-WFErrorProvider function will clear the error message on the Winforms control specified
.DESCRIPTION
The Clear-WFErrorProvider function will clear the error message on the Winforms control specified
.PARAMETER ErrorProvider
Specifies the Er... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Set-WFRichTextBox.ps1 | Set-WFRichTextBox.ps1 | function Set-WFRichTextBox
{
<#
.SYNOPSIS
The Set-WFRichTextBox function allow you to manage the richtextbox control
.DESCRIPTION
The Set-WFRichTextBox function allow you to manage the richtextbox control
.PARAMETER RichTextBox
Specifies the RichTextBox Control to use
.PARAMETER ScrollToCare... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Disable-WFRichTextBox.ps1 | Disable-WFRichTextBox.ps1 | function Disable-WFRichTextBox
{
<#
.SYNOPSIS
This function will disable a RichTextBox control
.DESCRIPTION
A detailed description of the Disable-WFRichTextBox function.
.PARAMETER RichTextBox
Specifies the RichTextBox control to disable
.EXAMPLE
Disable-WFRichTextBox -RichTextBox $RichTe... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/New-WFBalloonNotification.ps1 | New-WFBalloonNotification.ps1 | function New-WFBalloonNotification
{
<#
.SYNOPSIS
The New-WFBalloonNotification function will show a message to the user in the notification area of Windows.
.DESCRIPTION
The New-WFBalloonNotification function will show a message to the user in the notification area of Windows.
.PARAMETER CustomIcon... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/New-WFMessageBox.ps1 | New-WFMessageBox.ps1 | function New-WFMessageBox
{
<#
.SYNOPSIS
The New-WFMessageBox functio will show a message box to the user
.DESCRIPTION
The New-WFMessageBox functio will show a message box to the user
.PARAMETER Message
Specifies the message to show
.PARAMETER Title
Specifies the title of the message box
... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Add-WFDataGridViewColumn.ps1 | Add-WFDataGridViewColumn.ps1 | function Add-WFDataGridViewColumn
{
<#
.SYNOPSIS
This function add a column to a DataGridView
.DESCRIPTION
This function add a column to a DataGridView
.EXAMPLE
Add-WFDataGridViewColumn -DataGridView $datagridview1 -ColumnName $($textbox1.Text -split "," -replace '^\s+', '' -replace '\s+$', '')
.EXAMPLE
A... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Get-WFComboboxItem.ps1 | Get-WFComboboxItem.ps1 | function Get-WFComboboxItem
{
<#
.SYNOPSIS
Function to get item(s) from a Combobox Control
.DESCRIPTION
Function to get item(s) from a Combobox Control
.PARAMETER ComboBox
Specifies the Combobox control to
.PARAMETER SelectedItem
A description of the SelectedItem parameter.
.PARAMETE... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/New-WFInputBox.ps1 | New-WFInputBox.ps1 | function New-WFInputBox
{
<#
.SYNOPSIS
The New-WFInputBox function will prompt the user for input in a window.
.DESCRIPTION
The New-WFInputBox function will prompt the user for input in a window.
.PARAMETER Message
Specifies the question you want to ask to the user.
.PARAMETER Title
Speci... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Import-WFListBox.ps1 | Import-WFListBox.ps1 | function Import-WFListBox
{
<#
.SYNOPSIS
This functions helps you load items into a ListBox or CheckedListBox.
.DESCRIPTION
Use this function to dynamically load items into the ListBox control.
.PARAMETER ListBox
The ListBox control you want to add items to.
.PARAMETER Items
The object or ... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Clear-WFRichTextBox.ps1 | Clear-WFRichTextBox.ps1 | function Clear-WFRichTextBox
{
<#
.SYNOPSIS
This function will clear the content of a richtextbox control
.DESCRIPTION
A detailed description of the Clear-WFRichTextBox function.
.PARAMETER RichTextBox
A description of the RichTextBox parameter.
.EXAMPLE
Clear-WFRichTextBox -RichTextBox $... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/New-WFOpenFileDialog.ps1 | New-WFOpenFileDialog.ps1 | function New-WFOpenFileDialog
{
<#
.SYNOPSIS
The New-WFOpenFileDialog function will ask the user to select one of multiple files.
The function will return the literal path of the file(s) selected
.DESCRIPTION
The New-WFOpenFileDialog function will ask the user to select one of multiple files.
The f... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Disable-WFButton.ps1 | Disable-WFButton.ps1 | function Disable-WFButton
{
<#
.SYNOPSIS
This function will disable a button control
.DESCRIPTION
This function will disable a button control
.PARAMETER Button
Specifies the Button Control to disable
.EXAMPLE
Disable-WFButton -Button $Button
.NOTES
Francois-Xavier Cat
@lazywina... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Update-WFDataGridView.ps1 | Update-WFDataGridView.ps1 | function Update-WFDataGridView
{
<#
.SYNOPSIS
Function to refresh the content of a DataGridView control
.DESCRIPTION
Function to refresh the content of a DataGridView control
.PARAMETER DataGridView
Specifies the DataGridView control to update
.NOTES
Author: Francois-Xavier Cat
Twitter... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Add-WFDataGridViewRow.ps1 | Add-WFDataGridViewRow.ps1 | function Add-WFDataGridViewRow
{
<#
.SYNOPSIS
This function add a row to a DataGridView
.DESCRIPTION
This function add a row to a DataGridView
.PARAMETER DataGridView
Specifies the DataGridView Control to use
.PARAMETER Title
Specifies the Title to set on the new row
.PARAMETER Value... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Find-WFDataGridViewValue.ps1 | Find-WFDataGridViewValue.ps1 | function Find-WFDataGridViewValue
{
<#
.SYNOPSIS
The Find-WFDataGridViewValue function helps you to find a specific value and select the cell, row or to set a fore and back color.
.DESCRIPTION
The Find-WFDataGridViewValue function helps you to find a specific value and select the cell, row or to set a fo... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Enable-WFTabControl.ps1 | Enable-WFTabControl.ps1 | function Enable-WFTabControl
{
<#
.SYNOPSIS
This function will enable a TabControl control
.DESCRIPTION
This function will enable a TabControl control
.PARAMETER TabControl
Specifies the TabControl Control to enable.
.EXAMPLE
Enable-WFTabControl -TabControl $TabControl
.NOTES
Fran... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/New-WFOpenFolderDialog.ps1 | New-WFOpenFolderDialog.ps1 | function New-WFOpenFolderDialog
{
<#
.SYNOPSIS
The New-WFOpenFolderDialog function will ask the user to select one folder.
.DESCRIPTION
The New-WFOpenFolderDialog function will ask the user to select one folder.
.PARAMETER Description
Specifies a message to help the user select a folder
.PAR... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Enable-WFButton.ps1 | Enable-WFButton.ps1 | function Enable-WFButton
{
<#
.SYNOPSIS
This function will enable a button control
.DESCRIPTION
A detailed description of the Enable-WFButton function.
.PARAMETER Button
A description of the Button parameter.
.EXAMPLE
Enable-WFButton -Button $Button
.NOTES
Francois-Xavier Cat
@... |
PowerShellCorpus/PowerShellGallery/WinFormPS/1.0.0/Public/Enable-WFRichTextBox.ps1 | Enable-WFRichTextBox.ps1 | function Enable-WFRichTextBox
{
<#
.SYNOPSIS
This function will enable a RichTextBox control
.DESCRIPTION
A detailed description of the Enable-WFRichTextBox function.
.PARAMETER RichTextBox
A description of the RichTextBox parameter.
.EXAMPLE
Enable-WFRichTextBox -RichTextBox $RichTextBox... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.