full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1Environments.ps1 | Get-P1Environments.ps1 | function Get-P1Environments {
<#
.Synopsis
Get PlannerOne environments.
.Description
Return the PlannerOne environments informations
.Parameter Tenant
The PlannerOne tenant.
.Parameter Product
The PlannerOne product (Project or Production).
.Example
# Get t... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1MsiInstall.ps1 | Get-P1MsiInstall.ps1 | function Get-P1MsiInstall {
<#
.Synopsis
Get all PlannerOne installation done with MSI.
.Description
Read Windows registry to get all PlannerOne unsintall keys.
.Parameter OnlyServer
Display only server installation.
.Parameter InstallLocation
The MSI install loca... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1ClientPublicCertificate.ps1 | Get-P1ClientPublicCertificate.ps1 | function Get-P1ClientPublicCertificate {
<#
.Synopsis
Get the public client certificate.
.Description
If PlannerOne is configured with certificate authentication with ERP, a certificate should have been set with Set-P1AdapterParameters.
This command returns the public certificate associ... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Set-P1ApiKey.ps1 | Set-P1ApiKey.ps1 | function Set-P1ApiKey {
<#
.Synopsis
Stores the PlannerOne API key.
.Description
Store locally the PlannerOne API key to access private PlannerOne feed.
.Parameter ApiKey
The PlannerOne ApiKey to store.
#>
[cmdletbinding()]
param(
[Parameter(Mandatory=... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/New-P1WebApp.ps1 | New-P1WebApp.ps1 | function New-P1WebApp {
<#
.Synopsis
Install a new PlannerOne web application.
.Description
Install a new PlannerOne web application in IIS.
.Parameter Tenant
The tenant name of this web application.
.Parameter Port
The port to be used by the new site.
.Paramete... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Set-P1WebAuthentication.ps1 | Set-P1WebAuthentication.ps1 | function Set-P1WebAuthentication {
<#
.Synopsis
Set the PlannerOne Web server authentication mode.
.Description
Set the PlannerOne web application authentication mode to Windows authentication or Formular.
Change REST web service security accordingly.
The formular authentication ena... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Initialize-P1Environments.ps1 | Initialize-P1Environments.ps1 | function Initialize-P1Environments {
<#
.Synopsis
Initialize PlannerOne environments
.Description
Initialize PlannerOne environments
.Parameter Tenant
The PlannerOne tenant.
.Parameter Environments
The PlannerOne environments list to initialized.
.Example
#... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Uninstall-P1Msi.ps1 | Uninstall-P1Msi.ps1 | function Uninstall-P1Msi {
<#
.Synopsis
Uninstall a legacy MSI installation of PlannerOne.
.Description
Read Windows registry base for uninstall key and uninstall from PlannerOne from MSI.
Call Get-P1MsiInstall and use PSChildName key to uninstall with this command.
.Parameter Uni... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Update-P1ToggleEnvironmentsAutoPublish.ps1 | Update-P1ToggleEnvironmentsAutoPublish.ps1 | function Update-P1ToggleEnvironmentsAutoPublish {
<#
.Synopsis
Toggle auto publish on PlannerOne environments
.Description
Toggle auto publish on PlannerOne environments. The environment list must be up to date.
This command works only with PlannerOne project environments.
.Parame... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Remove-P1WebApp.ps1 | Remove-P1WebApp.ps1 | function Remove-P1WebApp {
<#
.Synopsis
Uninstall a existing PlannerOne web application.
.Description
Uninstall a existing PlannerOne web application with the given parameters.
.Parameter Tenant
The tenant name of this web application.
.Example
# Uninstall a Planner... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Remove-P1Environments.ps1 | Remove-P1Environments.ps1 | function Remove-P1Environments {
<#
.Synopsis
Remove PlannerOne environments
.Description
Remove PlannerOne environments
.Parameter Tenant
The PlannerOne tenant.
.Parameter Environments
The PlannerOne environments list to initialized.
.Example
# Remove all ... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Watch-P1WebModel.ps1 | Watch-P1WebModel.ps1 | function Watch-P1WebModel {
<#
.Synopsis
Watch the model versions on PlannerOne web.
.Description
Display for each session in PlannerOne Web application the model versions.
.Parameter Tenant
The tenant to use to retrieve connection informations.
.Parameter HostName
The... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Test-P1Prerequisites.ps1 | Test-P1Prerequisites.ps1 | function Test-P1Prerequisites {
<#
.Synopsis
Test if prerequisites of PlannerOne are installed on the machine.
.Description
Look for a list a features that must be installed.
Use Install parameter to force installation of missing features.
.Parameter Install
Force installatio... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1Packages.ps1 | Get-P1Packages.ps1 | function Get-P1Packages {
<#
.Synopsis
List all available packages from PlannerOne NuGet server.
.Description
Connect to remote repository and list the latest release.
#>
[cmdletbinding()]
param(
)
Process {
Write-Verbose "Reading PlannerOne package fro... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Start-P1.ps1 | Start-P1.ps1 | function Start-P1 {
<#
.Synopsis
Start PlannerOne product.
.Description
Start PlannerOne product with web client.
.Parameter Tenant
The target tenant.
.Example
# Start PlannerOne for tenant named Prod.
Start-P1 -Tenant Prod
#>
[cmdletbinding()]
par... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Unregister-P1Tenant.ps1 | Unregister-P1Tenant.ps1 | function Unregister-P1Tenant {
<#
.Synopsis
DEV TOOL - Use Remove-P1Tenant cmdlet if you want to uninstall an existing PlannerOne tenant.
Unregister an existing PlannerOne tenant.
.Description
DEV TOOL.
Unregister an existing PlannerOne tenant with the given parameters.
This c... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Remove-P1Tenant.ps1 | Remove-P1Tenant.ps1 | function Remove-P1Tenant {
<#
.Synopsis
Uninstall an existing PlannerOne tenant (service + web app).
.Description
Uninstall an existing PlannerOne tenant with the given parameters.
.Parameter Tenant
The tenant name.
.Parameter RemoveData
Remove all the data stored f... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Restart-P1Tenant.ps1 | Restart-P1Tenant.ps1 | function Restart-P1Tenant {
<#
.Synopsis
Restart a PlannerOne tenant
.Description
Restart a PlannerOne tenant by restarting web application and service.
.Parameter Tenant
The target tenant.
#>
[cmdletbinding()]
param(
[Parameter(Mandatory=$true)]
[stri... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1ApiKey.ps1 | Get-P1ApiKey.ps1 | function Get-P1ApiKey {
<#
.Synopsis
Gets the stored the PlannerOne API key.
.Description
Read the locally stored PlannerOne API key to access private PlannerOne feed.
#>
[cmdletbinding()]
param(
)
Process {
return Get-ApiKey
}
}
|
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1SampleScripts.ps1 | Get-P1SampleScripts.ps1 | function Get-P1SampleScripts {
<#
.Synopsis
Get sample scripts from PlannerOne Web Site.
.Description
The sample scripts could be adapted and customized to your need. It should work as-is if you're using Demo envrionment.
.Example
The ERP associated to sample scripts (NAV or SAGE... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1Log.ps1 | Get-P1Log.ps1 | function Get-P1Log {
<#
.Synopsis
Get the logs for a tenant
.Description
Return the list of logs of their content.
.Parameter Tenant
The tenant name.
.Parameter LogType
logService, logManager or logWeb
.parameter LogName
The log name to display
.par... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Register-P1Tenant.ps1 | Register-P1Tenant.ps1 | function Register-P1Tenant {
<#
.Synopsis
DEV TOOL - Use New-P1Tenant cmdlet if you want to install a new PlannerOne tenant.
Register a new PlannerOne tenant.
.Description
DEV TOOL.
Register a new PlannerOne tenant with the given parameters.
Does not deploy the product.
... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Watch-P1Commands.ps1 | Watch-P1Commands.ps1 | function Watch-P1Commands {
<#
.Synopsis
Watch the commands on PlannerOne server.
.Description
Display for one environment loaded in PlannerOne the current command, queued commands and executed commands.
.Parameter Tenant
The tenant to use to retrieve connection informations.
... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Update-P1LegacyRole.ps1 | Update-P1LegacyRole.ps1 | function Update-P1LegacyRole {
<#
.Synopsis
Migrate an installed legacy role to new tenant and WMF system.
.Description
Search for existing Role and existing MSI installation to migrate to new tenant and WMF install system.
.Parameter Role
The role name to migrate.
.Paramet... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1LegacyRole.ps1 | Get-P1LegacyRole.ps1 | function Get-P1LegacyRole {
<#
.Synopsis
Get PlannerOne legacy role list and information.
.Description
Return the PlannerOne legacy (version < 5.1) role informations
#>
[cmdletbinding()]
param(
[string] $Role
)
Process
{
$roleConfigPath = Get-Lega... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1AdapterParameters.ps1 | Get-P1AdapterParameters.ps1 | function Get-P1AdapterParameters {
<#
.Synopsis
Get the adapter parameters.
.Description
Get the adapter parameters for tenant.
.Parameter Tenant
The target tenant.
#>
[cmdletbinding()]
param(
[Parameter(Mandatory=$true)]
[string] $Tenant
... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Start-P1Manager.ps1 | Start-P1Manager.ps1 | function Start-P1Manager {
<#
.Synopsis
Start PlannerOne manager for the given tenant.
.Description
Start PlannerOne manager for the given tenant.
.Parameter Tenant
The target tenant.
.Example
# Start PlannerOne manager for tenant named Prod.
Start-P1Manager -Ten... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Set-P1LogLevel.ps1 | Set-P1LogLevel.ps1 | function Set-P1LogLevel {
<#
.Synopsis
Set the log level of PlannerOne
.Description
Set the log level of PlannerOne service and PlannerOne Web.
Standard level are Info and Debug.
PlannerOne Web and Service must be restarted to take the new option into account.
PlannerOne Web an... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1MigrationReport.ps1 | Get-P1MigrationReport.ps1 | function Get-P1MigrationReport {
<#
.Synopsis
Get PlannerOne migration reports.
.Description
Return the PlannerOne migration reports for tenant list or for tenant configuration
.Parameter Tenant
The tenant name.
.Parameter Report
The report name.
.Example
... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1AdapterStatus.ps1 | Get-P1AdapterStatus.ps1 | function Get-P1AdapterStatus {
<#
.Synopsis
Get the PlannerOne adapter health status.
.Description
Work only for NAV.
Get the PlannerOne adapter status.
Global status is the base status of the adapter. It is on error in case of global error like network.
Environments are the st... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1Version.ps1 | Get-P1Version.ps1 | function Get-P1Version {
<#
.Synopsis
Get the PlannerOne version for tenant.
.Description
Get the PlannerOne server version for tenant.
.Parameter Tenant
The tenant name.
.Example
# Get version of tenant Prod
Get-P1Version Prod
#>
[cmdletbinding()]
... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Watch-P1ServerModel.ps1 | Watch-P1ServerModel.ps1 | function Watch-P1ServerModel {
<#
.Synopsis
Watch the model versions on PlannerOne server.
.Description
Display for each environment loaded in PlannerOne the real model and cache versions.
.Parameter Tenant
The tenant to use to retrieve connection informations.
.Parameter H... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/New-P1ManagerShortcut.ps1 | New-P1ManagerShortcut.ps1 | function New-P1ManagerShortcut {
<#
.Synopsis
Creates a desktop shortcut to PlannerOne Manager, for a given tenant.
.Description
Creates a shortcut on the desktop.
.Parameter Tenant
The tenant name.
.Example
# Creates a PlannerOne Manager shortcut for tenant named D... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/New-P1Tenant.ps1 | New-P1Tenant.ps1 | function New-P1Tenant {
<#
.Synopsis
Install a new PlannerOne tenant (service + web app).
.Description
Install a new PlannerOne tenant with the given parameters.
One tenant should be:
* One Windows service
* One application pool
* One web site
* One web application
... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Start-P1Tenant.ps1 | Start-P1Tenant.ps1 | function Start-P1Tenant {
<#
.Synopsis
Start a PlannerOne tenant
.Description
Start a PlannerOne tenant by restarting web application and service.
.Parameter Tenant
The target tenant.
#>
[cmdletbinding()]
param(
[Parameter(Mandatory=$true)]
[string] $T... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Set-P1WebSSL.ps1 | Set-P1WebSSL.ps1 | function Set-P1WebSSL {
<#
.Synopsis
Enable or disable SSL for the PlannerOne Web server.
.Description
Enable or disable SSL for PlannerOne web application.
Set certificate and binding on web site.
Change REST web service security accordingly.
.Parameter Tenant
The targe... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Get-P1Tenant.ps1 | Get-P1Tenant.ps1 | function Get-P1Tenant {
<#
.Synopsis
Get PlannerOne tenant list and information.
.Description
Return the PlannerOne tenants informations
.Parameter Tenant
The tenant name.
.Example
# Get the list of tenants
Get-P1Tenant
.Example
# Get a tenant inform... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Install-P1Package.ps1 | Install-P1Package.ps1 | function Install-P1Package {
<#
.Synopsis
Get all required packages from PlannerOne NuGet server.
.Description
Connect to remote repository and get the latest release.
.Parameter Package
The PlannerOne package list.
.Parameter ERP
The target ERP to get default packages... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Remove-P1ServerInstance.ps1 | Remove-P1ServerInstance.ps1 | function Remove-P1ServerInstance {
<#
.Synopsis
Uninstall a existing PlannerOne service.
.Description
Uninstall a existing PlannerOne service with the given parameters.
.Parameter Tenant
The tenant name of this service.
.Example
# Uninstall a PlannerOne service for ... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Set-P1Adapter.ps1 | Set-P1Adapter.ps1 | function Set-P1Adapter {
<#
.Synopsis
Configuration of the adapter for the ERP.
.Description
Configure the adapter for PlannerOne.
.Parameter Tenant
The tenant name.
.Parameter Server
The ERP host server name.
.Parameter SOAPPort
The ERP Web service SOAP po... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Stop-P1Tenant.ps1 | Stop-P1Tenant.ps1 | function Stop-P1Tenant {
<#
.Synopsis
Stop a PlannerOne tenant
.Description
Stop a PlannerOne tenant by restarting web application and service.
.Parameter Tenant
The target tenant.
#>
[cmdletbinding()]
param(
[Parameter(Mandatory=$true)]
[string] $Tena... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Export-P1Environment.ps1 | Export-P1Environment.ps1 | function Export-P1Environment {
<#
.Synopsis
Export PlannerOne environment to file.
.Description
Export an existing and initialized environment save it to file system.
Each environments found for Production Scheduler and ResourcePlanner will be exported in its own file in -OutDir direct... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Start-P1TenantManager.ps1 | Start-P1TenantManager.ps1 | function Start-P1TenantManager {
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
[xml]$mainXaml = Get-Content "$PSScriptRoot\UI\MainWindow.xaml"
[xml]$tenantXaml = Get-Content "$PSScriptRoot\UI\Tenant.xaml"
$reader=(New-Object System.Xml.XmlNodeReader $mainXaml)
try {
$main... |
PowerShellCorpus/PowerShellGallery/PlannerOne.Deployment/1.0.151/Public/Compress-P1Logs.ps1 | Compress-P1Logs.ps1 | function Compress-P1Logs {
<#
.Synopsis
Archive to zip the logs for a tenant
.Description
Zip all PlannerOne logs for tenant in a given file
.Parameter Tenant
The tenant name.
.Parameter OutFile
The zip file to write.
.Example
# Zip Prod logs
Archive-P... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Examples/Sample_BizTalkServerHost.ps1 | Sample_BizTalkServerHost.ps1 | Configuration BizTalkServerHostExample
{
Import-DSCResource -ModuleName BizTalkServer
BizTalkServerHost SampleBizTalkServerHost
{
Name = 'SampleBizTalkServerApplication'
Ensure = 'Present'
Is32Bit = $false
Trusted = $true
Tracking = $true
Type = 'I... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Examples/Sample_BizTalkServerReceiveHandler.ps1 | Sample_BizTalkServerReceiveHandler.ps1 | Configuration BizTalkServerReceiveHandlerExample
{
Import-DSCResource -ModuleName BizTalkServer
BizTalkServerAdapter SampleBizTalkServerAdapter
{
Name = 'WCF-SQL'
Ensure = 'Present'
MgmtCLSID = '{59B35D03-6A06-4734-A249-EF561254ECF7}'
}
BizTalkServerHost SampleBi... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Examples/Sample_BizTalkServerSendHandler.ps1 | Sample_BizTalkServerSendHandler.ps1 | Configuration BizTalkServerSendHandlerExample
{
Import-DSCResource -ModuleName BizTalkServer
BizTalkServerAdapter SampleBizTalkServerAdapter
{
Name = 'WCF-SQL'
Ensure = 'Present'
MgmtCLSID = '{59B35D03-6A06-4734-A249-EF561254ECF7}'
}
BizTalkServerHost SampleBizTa... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Examples/Sample_BizTalkServerAdapter.ps1 | Sample_BizTalkServerAdapter.ps1 | Configuration BizTalkServerAdapterExample
{
Import-DSCResource -ModuleName BizTalkServer
BizTalkServerAdapter SampleBizTalkServerAdapter
{
Name = 'WCF-SQL'
Ensure = 'Present'
MgmtCLSID = '{59B35D03-6A06-4734-A249-EF561254ECF7}'
}
}
|
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Examples/Sample_BizTalkServerHostInstance.ps1 | Sample_BizTalkServerHostInstance.ps1 | $password = ConvertTo-SecureString 'Pass@word1' -AsPlainText -Force
$credentials = New-Object System.Management.Automation.PSCredential ('.\Administrator', $password)
Configuration BizTalkServerHostExample
{
Import-DSCResource -ModuleName BizTalkServer
BizTalkServerHost SampleBizTalkServerHost
{... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerHost.integration.tests.ps1 | MSFT_BizTalkServerHost.integration.tests.ps1 | <#
.Synopsis
Template for creating DSC Resource Integration Tests
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.Integration.tests.ps1 (e.g. MSFT_xNeworking.Integration.tests.ps1)
2. Customize TODO sections.
3. Create test DSC Configurtion file <Resource... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerReceiveHandler.integration.tests.ps1 | MSFT_BizTalkServerReceiveHandler.integration.tests.ps1 | <#
.Synopsis
Template for creating DSC Resource Integration Tests
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.Integration.tests.ps1 (e.g. MSFT_xNeworking.Integration.tests.ps1)
2. Customize TODO sections.
3. Create test DSC Configurtion file <Resource... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerReceiveHandler.config.ps1 | MSFT_BizTalkServerReceiveHandler.config.ps1 | <#
.Synopsis
DSC Configuration Template for DSC Resource Integration tests.
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.config.ps1 (e.g. MSFT_xFirewall.config.ps1)
2. Customize TODO sections.
.NOTES
#>
# Integration Test Config Template Version: 1.... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerSendHandler.integration.tests.ps1 | MSFT_BizTalkServerSendHandler.integration.tests.ps1 | <#
.Synopsis
Template for creating DSC Resource Integration Tests
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.Integration.tests.ps1 (e.g. MSFT_xNeworking.Integration.tests.ps1)
2. Customize TODO sections.
3. Create test DSC Configurtion file <Resource... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerSendHandler.config.ps1 | MSFT_BizTalkServerSendHandler.config.ps1 | <#
.Synopsis
DSC Configuration Template for DSC Resource Integration tests.
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.config.ps1 (e.g. MSFT_xFirewall.config.ps1)
2. Customize TODO sections.
.NOTES
#>
# Integration Test Config Template Version: 1.... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerHostInstance.config.ps1 | MSFT_BizTalkServerHostInstance.config.ps1 | <#
.Synopsis
DSC Configuration Template for DSC Resource Integration tests.
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.config.ps1 (e.g. MSFT_xFirewall.config.ps1)
2. Customize TODO sections.
.NOTES
#>
# Integration Test Config Template Version: 1.... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerAdapter.config.ps1 | MSFT_BizTalkServerAdapter.config.ps1 | <#
.Synopsis
DSC Configuration Template for DSC Resource Integration tests.
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.config.ps1 (e.g. MSFT_xFirewall.config.ps1)
2. Customize TODO sections.
.NOTES
#>
# Integration Test Config Template Version: 1.... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerAdapter.integration.tests.ps1 | MSFT_BizTalkServerAdapter.integration.tests.ps1 | <#
.Synopsis
Template for creating DSC Resource Integration Tests
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.Integration.tests.ps1 (e.g. MSFT_xNeworking.Integration.tests.ps1)
2. Customize TODO sections.
3. Create test DSC Configurtion file <Resource... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerHostInstance.integration.tests.ps1 | MSFT_BizTalkServerHostInstance.integration.tests.ps1 | <#
.Synopsis
Template for creating DSC Resource Integration Tests
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.Integration.tests.ps1 (e.g. MSFT_xNeworking.Integration.tests.ps1)
2. Customize TODO sections.
3. Create test DSC Configurtion file <Resource... |
PowerShellCorpus/PowerShellGallery/BizTalkServer/0.1.1.4/Tests/Integration/MSFT_BizTalkServerHost.config.ps1 | MSFT_BizTalkServerHost.config.ps1 | <#
.Synopsis
DSC Configuration Template for DSC Resource Integration tests.
.DESCRIPTION
To Use:
1. Copy to \Tests\Integration\ folder and rename <ResourceName>.config.ps1 (e.g. MSFT_xFirewall.config.ps1)
2. Customize TODO sections.
.NOTES
#>
# Integration Test Config Template Version: 1.... |
PowerShellCorpus/PowerShellGallery/PrtgAPI/0.6.9/PrtgAPI.GoPrtg.ps1 | PrtgAPI.GoPrtg.ps1 | function Get-GoPrtgServer
{
[CmdletBinding()]
param (
[Parameter(Mandatory = $false, Position = 0)]
[string]
$Server
)
if(Get-Command -Name __goPrtgGetServers -ErrorAction SilentlyContinue)
{
$serversText = @(__goPrtgGetServers)|foreach {
"`"[ ]`",$_"
}
$servers = $serversText | ConvertFro... |
PowerShellCorpus/PowerShellGallery/InvokeQuery/1.0.1/DebugSetup.ps1 | DebugSetup.ps1 | Write-Host "Importing module...."
Import-Module .\InvokeQuery.dll
Write-Host "Hello world"
## CREATE TABLE [dbo].[sometable]([id] [int] NOT NULL, [somestring] [nvarchar](255) NOT NULL, [someint] [int] NOT NULL, [somedate] [datetime2](7) NOT NULL, CONSTRAINT [PK_sometable] PRIMARY KEY CLUSTERED ([id] ASC))
##
$... |
PowerShellCorpus/PowerShellGallery/Log/1.0.2/Public/Add-Log.ps1 | Add-Log.ps1 | function Add-Log
{
<#
.NOTES
Title: Add-Log.ps1
Author: Curtis Jones
Date: March 24th, 2017
Version: 1.0.1
Requirements: Powershell 3.0
.SYNOPSIS
Provides code execution string logging into $env:LOCALAPPDATA\PowerShellLogging directory along with the abi... |
PowerShellCorpus/PowerShellGallery/Log/1.0.2/Public/Set-LogFile.ps1 | Set-LogFile.ps1 | function Set-LogFile
{
<#
.NOTES
Title: Set-LogFile.ps1
Author: Curtis Jones
Date: March 24th, 2017
Version: 1.0.0
Requirements: Powershell 3.0
.SYNOPSIS
Provides log file generation in the $env:LOCALAPPDATA\PowerShellLogging folder based on input from t... |
PowerShellCorpus/PowerShellGallery/coveralls/1.0.25/Coveralls.ps1 | Coveralls.ps1 | function Add-CoverageInfo {
[CmdletBinding()]
param
(
[parameter(Position=1)]
$CoverageResultSet,
[parameter(Mandatory = $true,Position=2)]
$Value
)
foreach ($coverageResult in $CoverageResultSet) {
$coverageResult | Add-Member -MemberType NoteProperty -Name... |
PowerShellCorpus/PowerShellGallery/coveralls/1.0.25/Coveralls.Tests.ps1 | Coveralls.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\$sut"
Describe "Get-CoveragePercentage" {
Context "Providing a correct return" {
BeforeAll {
$content = "{""created_at"":""2017-03-16T12:37:17Z"",""url... |
PowerShellCorpus/PowerShellGallery/xOSSEC/1.0.2/Example/Sample_xOSSEC.ps1 | Sample_xOSSEC.ps1 | # Sample configuration using xOSSEC
# Vasken Houdoverdov
#
# Each of the calls to Sample_InstallxOSSEC below will generate a MOF file which can then be fed into Start-DscConfiguration
#
# Sample_InstallxOSSEC -VersionNumber "2.8" -LocalPath "C:\Windows\DtlDownloads\ossec-agent-win32-2.8.exe"
# Sample_InstallxOSSE... |
PowerShellCorpus/PowerShellGallery/PS.HealthChecks/1.0.19/Public/Connect-HealthCheck.ps1 | Connect-HealthCheck.ps1 | function Connect-HealthCheck
{
<#
.SYNOPSIS
The Connect-HealthCheck cmdlet store the API key for the HealthCheck module cmdlets.
Connect-HealthCheck will only store the API key, no validation is done.
.DESCRIPTION
The Connect-B2Cloud cmdlet is used to store the API key for the HealthCheck cmdlets.
The... |
PowerShellCorpus/PowerShellGallery/PS.HealthChecks/1.0.19/Public/Get-HealthCheck.ps1 | Get-HealthCheck.ps1 | using module ..\Class\Check.Class.psm1
function Get-HealthCheck
{
<#
.SYNOPSIS
The Get-HealthCheck cmdlet will list all checks associated with the account.
.DESCRIPTION
The Get-HealthCheck cmdlet will list all checks associated with the account.
An API key is required to use this cmdlet.
.EXAMPLE
Get-H... |
PowerShellCorpus/PowerShellGallery/PS.HealthChecks/1.0.19/Public/New-HealthCheck.ps1 | New-HealthCheck.ps1 | using module ..\Class\Check.Class.psm1
function New-HealthCheck
{
<#
.SYNOPSIS
New-HealthCheck will create a new health check.
.DESCRIPTION
New-HealthCheck will create a new health check.
An API key is required to use this cmdlet.
.EXAMPLE
New-HealthCheck -Name stoic-barbarian-lemur -Tag "prod db-dump"... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMSCCMTask.Helper.ps1 | Matrix42.EMPSSDK.EMSCCMTask.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM SCCM Tasks
# Author: Koenig, David
#
# --------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMSequences.ps1 | Matrix42.EMPSSDK.EMSequences.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Sequences
# Author: Koenig, David
#
# ---------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMBase.ps1 | Matrix42.EMPSSDK.EMBase.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: General functions
# Author: Koenig, David
#
# -------------------------------------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMComputergroups.Helper.ps1 | Matrix42.EMPSSDK.EMComputergroups.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Computergroups
# Author: Koenig, David
#
# ----------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMComputergroups.ps1 | Matrix42.EMPSSDK.EMComputergroups.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Computergroups
# Author: Koenig, David
#
# ----------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMComputer.Helper.ps1 | Matrix42.EMPSSDK.EMComputer.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Computer
# Author: Koenig, David
#
# ----------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMFolder.Helper.ps1 | Matrix42.EMPSSDK.EMFolder.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Folder
# Author: Koenig, David
#
# ------------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.Variables.ps1 | Matrix42.EMPSSDK.Variables.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Variables that can be changed by customer
# Author: Koenig, David
#
# --------------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMUser.ps1 | Matrix42.EMPSSDK.EMUser.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Users
# Author: Koenig, David
#
# -------------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMRolloutplans.Helper.ps1 | Matrix42.EMPSSDK.EMRolloutplans.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Rolloutplans
# Author: Koenig, David
#
# ------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/RunBuild.ps1 | RunBuild.ps1 | Param
(
[Parameter(Mandatory=$false, Position=0)]
[ValidateNotNullorEmpty()]
$TargetDir="C:\BUILD\EMPSSDK"
)
function Work
{
foreach($File in $FileList)
{
Write-Host "Copy File $File"
Copy-Item -Path "$($PSScriptRoot)\$File" -Destination "$TargetDir\$File"
... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMUser.Helper.ps1 | Matrix42.EMPSSDK.EMUser.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Users
# Author: Koenig, David
#
# -------------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMSCCMTask.ps1 | Matrix42.EMPSSDK.EMSCCMTask.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Sequences
# Author: Koenig, David
#
# ---------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMConditions.Helper.ps1 | Matrix42.EMPSSDK.EMConditions.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Conditions
# Author: Koenig, David
#
# --------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMReleasegroups.Helper.ps1 | Matrix42.EMPSSDK.EMReleasegroups.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Releasegroups
# Author: Koenig, David
#
# -----------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMConditions.ps1 | Matrix42.EMPSSDK.EMConditions.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Conditions
# Author: Koenig, David
#
# --------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/RunTest.ps1 | RunTest.ps1 | $FilesToTest = @()
$FilesToTest += ,"EMActions"
$FilesToTest += ,"EMBase"
$FilesToTest += ,"EMComputer"
$FilesToTest += ,"EMConditions"
$FilesToTest += ,"EMFolder"
$FilesToTest += ,"EMReleasegroups"
$FilesToTest += ,"EMRolloutplans"
$FilesToTest += ,"EMSequences"
$FilesToTest += ,"EMUser"
$OverallCoverage = 0... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.SystemVariables.ps1 | Matrix42.EMPSSDK.SystemVariables.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: System variables that are used internal. Please do not touch.
# Author: Koenig, David
#
# ------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMActions.ps1 | Matrix42.EMPSSDK.EMActions.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Actions
# Author: Koenig, David
#
# -----------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMBase.Helper.ps1 | Matrix42.EMPSSDK.EMBase.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: General functions
# Author: Koenig, David
#
# -------------------------------------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Build-Publish-Module.ps1 | Build-Publish-Module.ps1 | Param(
$Path=$null,
$ApiKey=$null
)
Write-Host "Starting Script ""Build-Publish-Module.ps1""" -ForegroundColor Gray -BackgroundColor White
Publish-Module -Path $Path -NuGetApiKey $ApiKey
Write-Host "Finished Script ""Build-Publish-Module.ps1""" -ForegroundColor Gray -BackgroundColor White |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMFolder.ps1 | Matrix42.EMPSSDK.EMFolder.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Folder
# Author: Koenig, David
#
# ------------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMReleasegroups.ps1 | Matrix42.EMPSSDK.EMReleasegroups.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Releasegroups
# Author: Koenig, David
#
# -----------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMComputer.ps1 | Matrix42.EMPSSDK.EMComputer.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Computer
# Author: Koenig, David
#
# ----------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMRolloutplans.ps1 | Matrix42.EMPSSDK.EMRolloutplans.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Rolloutplans
# Author: Koenig, David
#
# ------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMSequences.Helper.ps1 | Matrix42.EMPSSDK.EMSequences.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Sequences
# Author: Koenig, David
#
# ---------------------... |
PowerShellCorpus/PowerShellGallery/EMPSSDK/1.6.0.55898/Matrix42.EMPSSDK.EMActions.Helper.ps1 | Matrix42.EMPSSDK.EMActions.Helper.ps1 | # ----------------------------------------------------------------------------------------------------------------------
#
# Project: Powershell Module for "Matrix42 Enterprise Manager for SCCM" (EMPSSDK)
# Purpose: Functions that are used to manage EM Actions
# Author: Koenig, David
#
# -----------------------... |
PowerShellCorpus/PowerShellGallery/AutomatedLab/3.9.0.6/AutomatedLab.init.ps1 | AutomatedLab.init.ps1 | Add-Type -Path $PSScriptRoot\AutomatedLab.dll |
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Appclusive.Client/5.2.1.20161201/Format-Exception.ps1 | Format-Exception.ps1 | function Format-Exception {
<#
.SYNOPSIS
Displays details of an exception.
.DESCRIPTION
Displays details of an exception.
For a given exception that occurred during execution of an Appclusive API call
this Cmdlet will show you the details of.
.INPUTS
The Cmdlet can either return all available versions o... |
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Appclusive.Client/5.2.1.20161201/Get-Time.ps1 | Get-Time.ps1 | function Get-Time {
<#
.SYNOPSIS
Get the actual time of the Appclusive server.
.DESCRIPTION
Get the actual time of the Appclusive server.
.INPUTS
See PARAMETERS section for possible inputs.
.OUTPUTS
default | json | json-pretty | xml | xml-pretty | DateTimeOffset
.EXAMPLE
# In this example we... |
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Appclusive.Client/5.2.1.20161201/Set-ManagementUri.ps1 | Set-ManagementUri.ps1 | function Set-ManagementUri {
<#
.SYNOPSIS
Sets or creates a ManagementUri entry in Appclusive.
.DESCRIPTION
Sets or creates a ManagementUri entry in Appclusive.
By updating a ManagementUri entry you can specify if you want to update the name, type or description or any combination thereof. For a new name or... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.