full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Unit/PoShMon.Monitoring.SharePoint/Test-FarmHealth.Tests.ps1 | Test-FarmHealth.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
class SPFarmMock {
[string]$Name
[string]$BuildVersion
[string]$Status
[... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Unit/PoShMon.Monitoring.SharePoint/Test-SPServerStatus.Tests.ps1 | Test-SPServerStatus.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
Describe "Test-SPServerStatus" {
InModuleScope PoShMon {
class SPServerMock ... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Unit/PoShMon.Monitoring.SharePoint/Test-SPDatabaseHealth.Tests.ps1 | Test-SPDatabaseHealth.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
Describe "Test-SPDatabaseHealth" {
InModuleScope PoShMon {
class SPDatabaseM... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.Notifications/Send-RepairNotifications.Tests.ps1 | Send-RepairNotifications.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
$o365TeamsConfigPath = [Environment]::GetFolderPath("MyDocuments") + "\o365TeamsConfig.json"... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.Notifications/Send-MonitoringNotifications.Tests.ps1 | Send-MonitoringNotifications.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
$o365TeamsConfigPath = [Environment]::GetFolderPath("MyDocuments") + "\o365TeamsConfig.json"... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.Notifications/Initialize-Notifications.Tests.ps1 | Initialize-Notifications.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
Describe "Initialize-Notifications" {
It "Should return a the correct html for given te... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.Monitoring.OS/Invoke-OSMonitoring.Tests.ps1 | Invoke-OSMonitoring.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
Describe "Invoke-OSMonitoring" {
It "Should invoke OS monitoring" {
$poShMon... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.SelfHealing.Core/Repair-Environment.Tests.ps1 | Repair-Environment.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
#. (Join-Path $rootPath -ChildPath "Tests\CI\Integration\PoShMon.SelfHealing.Core\Dummy-Repa... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.SelfHealing.Core/Dummy-Repair2.ps1 | Dummy-Repair2.ps1 | Function Dummy-Repair2
{
[CmdletBinding()]
Param(
[hashtable]$PoShMonConfiguration,
[System.Collections.ArrayList]$PoShMonOutputValues
)
return @{
"SectionHeader" = "Another Mock Repair"
"RepairResult" = "Another repair message"
}
} |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.SelfHealing.Core/Failing-Repair.ps1 | Failing-Repair.ps1 | Function Failing-Repair
{
[CmdletBinding()]
Param(
[hashtable]$PoShMonConfiguration,
[System.Collections.ArrayList]$PoShMonOutputValues
)
throw "Something"
} |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.SelfHealing.Core/Dummy-Repair.ps1 | Dummy-Repair.ps1 | Function Dummy-Repair
{
[CmdletBinding()]
Param(
[hashtable]$PoShMonConfiguration,
[System.Collections.ArrayList]$PoShMonOutputValues
)
return @{
"SectionHeader" = "Mock Repair"
"RepairResult" = "Some repair message"
}
} |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.Notifications.Email/New-EmailBody.Tests.ps1 | New-EmailBody.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
Describe "New-EmailBody" {
InModuleScope PoShMon {
M... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.Monitoring.Web/Test-WebSite.Tests.ps1 | Test-WebSite.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
class WebRequestMock {
[int]$StatusCode
[string]$StatusDescription
[string]$C... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.Monitoring.Core/Invoke-MonitoringCore.Tests.ps1 | Invoke-MonitoringCore.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
Describe "Invoke-MonitoringCore" {
It "Should invoke core monitoring (non-farm)" {
... |
PowerShellCorpus/PowerShellGallery/PoShMon/0.13.0/Tests/CI/Integration/PoShMon.Monitoring.SharePoint/Invoke-SPMonitoring.Tests.ps1 | Invoke-SPMonitoring.Tests.ps1 | $rootPath = Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath ('..\..\..\..\') -Resolve
Remove-Module PoShMon -ErrorAction SilentlyContinue
Import-Module (Join-Path $rootPath -ChildPath "PoShMon.psd1")
Describe "Invoke-SPMonitoring" {
It "Should invoke SP monitoring" {
$poShMon... |
PowerShellCorpus/PowerShellGallery/xDefender/0.2.0.0/Examples/ExampleScript.ps1 | ExampleScript.ps1 | configuration Defender
{
Import-DscResource -ModuleName xDefender
node Localhost
{
xMpPreference Test1
{
Name = 'MyPreferences1'
CheckForSignaturesBeforeRunningScan = $True
HighThreatDefaultAction = 'Clean'
}
}
}
Defender -OutputPath 'c:\... |
PowerShellCorpus/PowerShellGallery/xDefender/0.2.0.0/Examples/xDefender_CreateScript.ps1 | xDefender_CreateScript.ps1 | $modules = 'C:\Program Files\WindowsPowerShell\Modules\'
$modulename = 'xDefender'
$Description = 'The xDefender allows you to configure Windows Defender preferences.'
if (!(test-path (join-path $modules $modulename))) {
$modulefolder = mkdir (join-path $modules $modulename)
$examplesFolder = mkdir (jo... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/build.ps1 | build.ps1 | [cmdletbinding()]
Param(
[string]$ModuleFileName = 'Numbers.psm1'
,
[switch]$Major
,
[switch]$Minor
,
[switch]$LoadModule
,
[string]$description = 'Convert numbers to different number formats'
)
END
{
write-verbose -message "ModuleFilename = $moduleFileName"
... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Functions/Test-OddNumber.ps1 | Test-OddNumber.ps1 | function Test-OddNumber
{
<#
.Synopsis
Check if a number is odd.
.DESCRIPTION
This will return a boolean value indicating if the number is odd.
.EXAMPLE
PS C:\> Test-OddNumber -Number 13
True
PS C:\>
This check if the number 13 is an odd number.
.EXAMPLE
PS C:\> 13 | Test-... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Functions/Get-HexNumber.ps1 | Get-HexNumber.ps1 | function Get-HexNumber
{
<#
.Synopsis
Converts an INT64 to a hex representation
.DESCRIPTION
This cmdlet takes a integer number as input and will return a string
object with the hex representation of the integer value. It
supports pipeline input. By default it will pad with a maximum of
3 ... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Functions/Convert-Number.ps1 | Convert-Number.ps1 | function Convert-Number
{
<#
.Synopsis
Convert any integer number to Hex, binary or byte array
.DESCRIPTION
This cmdlet takes a integer number as input and will return a PSCustomobject
with values for hex, binary, IsOddNumber and the byte array of the number.
This cmdlet support pipeline ... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Functions/Get-BinaryNumber.ps1 | Get-BinaryNumber.ps1 | function Get-BinaryNumber
{
<#
.Synopsis
Converts an INT64 to a binary representation
.DESCRIPTION
This cmdlet takes a integer number as input and will return a string
object with the binary representation of the integer value. It
supports pipeline input. By default it will pad with a maximum o... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Functions/Get-IntFromHex.ps1 | Get-IntFromHex.ps1 | function Get-IntFromHex
{
<#
.Synopsis
Convert a hex value to an integer value
.DESCRIPTION
This cmdlet takes a string as input and will return an int64 object
representing the hex value It supports pipeline input.
.EXAMPLE
PS C:\> Get-IntFromHex -HexValue 0x0010
16
PS C:\>
... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Functions/Get-IntFromBinary.ps1 | Get-IntFromBinary.ps1 | function Get-IntFromBinary
{
<#
.Synopsis
Convert a binary value to an integer value
.DESCRIPTION
This cmdlet takes a string as input and will return an int64 object
representing the binary value It supports pipeline input.
.EXAMPLE
PS C:\> Get-IntFromBinary -BinaryValue 10000
16
... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Functions/Get-IntFromByteArray.ps1 | Get-IntFromByteArray.ps1 | function Get-IntFromByteArray
{
<#
.Synopsis
Convert a byte array to an integer representation
.DESCRIPTION
This cmdlet takes an byte array as input and will return a int64 value.
This cmdlet support pipeline input.
.EXAMPLE
PS C:\> $bytesArray = @(16,0,0,0,0,0,0,0)
PS C:\> Get-IntFromBy... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Tests/Get-HexNumber.Tests.ps1 | Get-HexNumber.Tests.ps1 | #cd C:\Users\Tore\Dropbox\SourceTreeRepros\Numbers -ErrorAction SilentlyContinue
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | split-path -parent
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\functions\$sut"
$PSBoundParameters.clear()
Describe "Get-HexNumbe... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Tests/Get-IntFromHex.Tests.ps1 | Get-IntFromHex.Tests.ps1 | #cd C:\Users\Tore\Dropbox\SourceTreeRepros\Numbers -ErrorAction SilentlyContinue
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | split-path -parent
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\functions\$sut"
$PSBoundParameters.clear()
Describe "Get-IntFromH... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Tests/Get-IntFromByteArray.Tests.ps1 | Get-IntFromByteArray.Tests.ps1 | #cd C:\Users\Tore\Dropbox\SourceTreeRepros\Numbers -ErrorAction SilentlyContinue
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | split-path -parent
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\functions\$sut"
$PSBoundParameters.clear()
Describe "Get-IntFromB... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Tests/Get-BinaryNumber.Tests.ps1 | Get-BinaryNumber.Tests.ps1 | #cd C:\Users\Tore\Dropbox\SourceTreeRepros\Numbers -ErrorAction SilentlyContinue
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | split-path -parent
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\functions\$sut"
$PSBoundParameters.clear()
Describe "Get-BinaryNu... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Tests/Test-OddNumber.Tests.ps1 | Test-OddNumber.Tests.ps1 | #cd C:\Users\Tore\Dropbox\SourceTreeRepros\Numbers -ErrorAction SilentlyContinue
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | split-path -parent
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\functions\$sut"
$PSBoundParameters.clear()
Describe "Test-OddNumb... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Tests/Convert-Number.Tests.ps1 | Convert-Number.Tests.ps1 | #cd C:\Users\Tore\Dropbox\SourceTreeRepros\Numbers -ErrorAction SilentlyContinue
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | split-path -parent
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
#. "$here\functions\$sut"
import-module "$here\Numbers.psd1"
$PSBoundParamet... |
PowerShellCorpus/PowerShellGallery/Numbers/1.0.3.0/Tests/Get-IntFromBinary.Tests.ps1 | Get-IntFromBinary.Tests.ps1 | #cd C:\Users\Tore\Dropbox\SourceTreeRepros\Numbers -ErrorAction SilentlyContinue
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | split-path -parent
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. "$here\functions\$sut"
$PSBoundParameters.clear()
Describe "Get-IntFromB... |
PowerShellCorpus/PowerShellGallery/PSSQLite/1.0.3/New-SqliteConnection.ps1 | New-SqliteConnection.ps1 | function New-SQLiteConnection
{
<#
.SYNOPSIS
Creates a SQLiteConnection to a SQLite data source
.DESCRIPTION
Creates a SQLiteConnection to a SQLite data source
.PARAMETER DataSource
SQLite Data Source to connect to.
.PARAMETER Password
Speci... |
PowerShellCorpus/PowerShellGallery/PSSQLite/1.0.3/Invoke-SqliteBulkCopy.ps1 | Invoke-SqliteBulkCopy.ps1 | function Invoke-SQLiteBulkCopy {
<#
.SYNOPSIS
Use a SQLite transaction to quickly insert data
.DESCRIPTION
Use a SQLite transaction to quickly insert data. If we run into any errors, we roll back the transaction.
The data source is not limited to SQL Server; any data source can be used, as lo... |
PowerShellCorpus/PowerShellGallery/PSSQLite/1.0.3/Invoke-SqliteQuery.ps1 | Invoke-SqliteQuery.ps1 | function Invoke-SqliteQuery {
<#
.SYNOPSIS
Runs a SQL script against a SQLite database.
.DESCRIPTION
Runs a SQL script against a SQLite database.
Paramaterized queries are supported.
Help details below borrowed from Invoke-Sqlcmd, may be inaccurate here.
... |
PowerShellCorpus/PowerShellGallery/PSSQLite/1.0.3/Out-DataTable.ps1 | Out-DataTable.ps1 | function Out-DataTable
{
<#
.SYNOPSIS
Creates a DataTable for an object
.DESCRIPTION
Creates a DataTable based on an object's properties.
.PARAMETER InputObject
One or more objects to convert into a DataTable
.PARAMETER NonNullable
A list of columns to set disable AllowDBNull on
.INPU... |
PowerShellCorpus/PowerShellGallery/AwsDscToolkit/0.5.0.0/Examples/AwsDscToolkit.Examples.ps1 | AwsDscToolkit.Examples.ps1 | #--- Module Setup ---#
# Install the AWS DSC Toolkit from the PowerShellGallery
Install-Module AwsDscToolkit
Import-Module AwsDscToolkit
# Set your AWS credentials in the default profile
$AwsAccessKey = 'MyAccessKey'
$AwsSecretKey = 'MySecretKey'
Set-AWSCredentials -AccessKey $AwsAccessKey -SecretKey $AwsSec... |
PowerShellCorpus/PowerShellGallery/AwsDscToolkit/0.5.0.0/Tests/AwsDscToolkit.Tests.ps1 | AwsDscToolkit.Tests.ps1 | [CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[string]$AwsAccessKey,
[Parameter(Mandatory = $true)]
[string]$AwsSecretKey,
[Parameter(Mandatory = $true)]
[string]$AzureAutomationAccount,
[string]$AzureAutomationResourceGroup,
[string]$AwsRegion = 'us-west-2',
[st... |
PowerShellCorpus/PowerShellGallery/PoshTwit/0.1.6/PoshTwit-postbuild.ps1 | PoshTwit-postbuild.ps1 | Import-Module -Name $PSscriptRoot\PoshTwit.psd1;
$NuGetApiKey = Read-Host -Prompt 'NuGet API Key';
Publish-Module -Path $PSScriptRoot -NuGetApiKey $NuGetApiKey;
Set-PoshTwitToken;
Publish-Tweet -Tweet Testing -Verbose; |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchActiveSyncVirtualDirectory.Integration.Tests.ps1 | MSFT_xExchActiveSyncVirtualDirectory.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchActiveSyncVirtualDirectory\MSFT_xExchActiveSyncVirtualDirectory.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommo... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchMaintenanceMode.Integration.Tests.ps1 | MSFT_xExchMaintenanceMode.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
###This module also requires that this server is a member of a DAG"
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchMaintenanceMode\MSFT_xExchMaintenanceMode.psm1
Imp... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchEcpVirtualDirectory.Integration.Tests.ps1 | MSFT_xExchEcpVirtualDirectory.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchEcpVirtualDirectory\MSFT_xExchEcpVirtualDirectory.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbos... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchMailboxServer.Integration.Tests.ps1 | MSFT_xExchMailboxServer.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchMailboxServer\MSFT_xExchMailboxServer.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Import-... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchWebServicesVirtualDirectory.Integration.Tests.ps1 | MSFT_xExchWebServicesVirtualDirectory.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchWebServicesVirtualDirectory\MSFT_xExchWebServicesVirtualDirectory.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCom... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchOwaVirtualDirectory.Integration.Tests.ps1 | MSFT_xExchOwaVirtualDirectory.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchOwaVirtualDirectory\MSFT_xExchOwaVirtualDirectory.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbos... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchUMService.Integration.Tests.ps1 | MSFT_xExchUMService.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchUMService\MSFT_xExchUMService.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Import-Module $... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/xExchangeConfigHelper.Unit.Tests.ps1 | xExchangeConfigHelper.Unit.Tests.ps1 | Import-Module $PSScriptRoot\..\Examples\HelperScripts\ExchangeConfigHelper.psm1 -Verbose:0
Import-Module $PSScriptRoot\xExchange.Tests.Common.psm1 -Verbose:0
#Performs common tests against the specified MailboxDatabases.csv file
function Test-MailboxDatabasesCsv
{
[CmdletBinding()]
param([string]$Mailbo... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchClientAccessServer.Integration.Tests.ps1 | MSFT_xExchClientAccessServer.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchClientAccessServer\MSFT_xExchClientAccessServer.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchReceiveConnector.Integration.Tests.ps1 | MSFT_xExchReceiveConnector.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchReceiveConnector\MSFT_xExchReceiveConnector.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
I... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchTransportService.Integration.Tests.ps1 | MSFT_xExchTransportService.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchTransportService\MSFT_xExchTransportService.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
I... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchOabVirtualDirectory.Integration.Tests.ps1 | MSFT_xExchOabVirtualDirectory.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchOabVirtualDirectory\MSFT_xExchOabVirtualDirectory.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbos... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchEventLogLevel.Integration.Tests.ps1 | MSFT_xExchEventLogLevel.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchEventLogLevel\MSFT_xExchEventLogLevel.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Import-... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchDatabaseAvailabilityGroup.Integration.Tests.ps1 | MSFT_xExchDatabaseAvailabilityGroup.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
###This module has the following additional requirements;
### * Requires that the ActiveDirectory module is installed
### * Requires that the DAG computer account has been pr... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchExchangeCertificate.Integration.Tests.ps1 | MSFT_xExchExchangeCertificate.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")]
param ()
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchE... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchPowershellVirtualDirectory.Integration.Tests.ps1 | MSFT_xExchPowershellVirtualDirectory.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchPowershellVirtualDirectory\MSFT_xExchPowershellVirtualDirectory.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommo... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchMailboxDatabase.Integration.Tests.ps1 | MSFT_xExchMailboxDatabase.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchMailboxDatabase\MSFT_xExchMailboxDatabase.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Imp... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/xExchangeCommon.Unit.Tests.ps1 | xExchangeCommon.Unit.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Import-Module $PSScriptRoot\xExchange.Tests.Common.psm1 -Verbose:0
#Remove any existing Remote PowerSh... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchMailboxTransportService.Integration.Tests.ps1 | MSFT_xExchMailboxTransportService.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchMailboxTransportService\MSFT_xExchMailboxTransportService.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchPopSettings.Integration.Tests.ps1 | MSFT_xExchPopSettings.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchPopSettings\MSFT_xExchPopSettings.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Import-Modu... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchAntiMalwareScanning.Integration.Tests.ps1 | MSFT_xExchAntiMalwareScanning.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchAntiMalwareScanning\MSFT_xExchAntiMalwareScanning.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbos... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchImapSettings.Integration.Tests.ps1 | MSFT_xExchImapSettings.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchImapSettings\MSFT_xExchImapSettings.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Import-Mo... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchExchangeServer.Integration.Tests.ps1 | MSFT_xExchExchangeServer.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
###This module has the following additional requirements;
### * Requires that the ActiveDirectory module is installed
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExch... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchOutlookAnywhere.Integration.Tests.ps1 | MSFT_xExchOutlookAnywhere.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchOutlookAnywhere\MSFT_xExchOutlookAnywhere.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Imp... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchMapiVirtualDirectory.Integration.Tests.ps1 | MSFT_xExchMapiVirtualDirectory.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchMapiVirtualDirectory\MSFT_xExchMapiVirtualDirectory.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verb... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchUMCallRouterSettings.Integration.Tests.ps1 | MSFT_xExchUMCallRouterSettings.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchUMCallRouterSettings\MSFT_xExchUMCallRouterSettings.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verb... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchAutodiscoverVirtualDirectory.Integration.Tests.ps1 | MSFT_xExchAutodiscoverVirtualDirectory.Integration.Tests.ps1 | ###NOTE: This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user.
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchAutodiscoverVirtualDirectory\MSFT_xExchAutodiscoverVirtualDirectory.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeC... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/ConfigureDatabases-FromCalculator/ConfigureDatabases-FromCalculator.ps1 | ConfigureDatabases-FromCalculator.ps1 | Configuration ConfigureDatabasesFromCalculator
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Import-Module "$((Get-Item -LiteralPath "$($PSScriptRoot)").Parent.FullName)\HelperScripts\ExchangeConfigHelper.psm1"
Node $AllNodes.NodeName
{
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/QuickStartTemplate/QuickStartTemplate.ps1 | QuickStartTemplate.ps1 | Configuration QuickStartTemplate
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
#Used when passing credentials securely. This configures the thumbprint of the
#cert that will be used to decrypt the creds... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/PostInstallationConfiguration/PostInstallationConfiguration.ps1 | PostInstallationConfiguration.ps1 | Configuration PostInstallationConfiguration
{
param
(
[PSCredential]$ShellCreds,
[PSCredential]$CertCreds
)
Import-DscResource -Module xExchange
#This script shows examples of how to utilize most resources in the xExchange module.
#Where possible, configuration setti... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/ConfigureAutoMountPoints-Manual/ConfigureAutoMountPoints-Manual.ps1 | ConfigureAutoMountPoints-Manual.ps1 | ###See the following blog post for information on how to use this example:
###http://blogs.technet.com/b/mhendric/archive/2014/10/27/managing-exchange-2013-with-dsc-part-3-automating-mount-point-setup-and-maintenance-for-autoreseed.aspx
Configuration ConfigureAutoMountPointsManual
{
Import-DscResource -Module... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/CreateAndConfigureDAG/CreateAndConfigureDAG.ps1 | CreateAndConfigureDAG.ps1 | Configuration CreateAndConfigureDAG
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
#Thumbprint of the certificate used to decrypt credentials on the target node
LocalConfigurationManager
{
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/InstallExchange/InstallExchange.ps1 | InstallExchange.ps1 | Configuration InstallExchange
{
param
(
[PSCredential]$Creds
)
Import-DscResource -Module xExchange
Import-DscResource -Module xPendingReboot
Node $AllNodes.NodeName
{
LocalConfigurationManager
{
CertificateId = $Node.Thumbprint
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/ConfigureAutoMountPoints-FromCalculator/ConfigureAutoMountPoints-FromCalculator.ps1 | ConfigureAutoMountPoints-FromCalculator.ps1 | ###See the following blog post for information on how to use this example:
###http://blogs.technet.com/b/mhendric/archive/2014/10/27/managing-exchange-2013-with-dsc-part-3-automating-mount-point-setup-and-maintenance-for-autoreseed.aspx
Configuration ConfigureAutoMountPointsFromCalculator
{
Import-DscResource... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/WaitForADPrep/WaitForADPrep.ps1 | WaitForADPrep.ps1 | Configuration WaitForADPrep
{
param
(
[PSCredential]$Creds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
LocalConfigurationManager
{
CertificateId = $Node.Thumbprint
}
xExchWaitForADPrep WaitForADPrep
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/JetstressAutomation/1-InstallAndRunJetstress.ps1 | 1-InstallAndRunJetstress.ps1 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingCmdletAliases", "")]
[CmdletBinding()]
param()
Configuration InstallAndRunJetstress
{
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
#Create mount points for use with Jetstress. Here I prefer to use the same ... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/JetstressAutomation/2-CleanupJetstress.ps1 | 2-CleanupJetstress.ps1 | Configuration CleanupJetstress
{
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
LocalConfigurationManager
{
RebootNodeIfNeeded = $true
}
#Uninstall Jetstress from the computer
Package UninstallJetstress
{
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/ConfigureDatabases-Manual/ConfigureDatabases-Manual.ps1 | ConfigureDatabases-Manual.ps1 | Configuration ConfigureDatabasesManual
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
#Thumbprint of the certificate used to decrypt credentials on the target node
LocalConfigurationManager
{
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/ConfigureVirtualDirectories/ConfigureVirtualDirectories.ps1 | ConfigureVirtualDirectories.ps1 | Configuration ConfigureVirtualDirectories
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
$casSettings = $ConfigurationData[$Node.CASId] #Look up and retrieve the CAS settings for this node
#Thumbprint o... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/ConfigureNamespaces/RegionalNamespaces/RegionalNamespaces.ps1 | RegionalNamespaces.ps1 | Configuration RegionalNamespaces
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
$casSettings = $ConfigurationData[$Node.CASId] #Look up and retrieve the CAS settings for this node
#Thumbprint of the cer... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/ConfigureNamespaces/InternetFacingSite/InternetFacingSite.ps1 | InternetFacingSite.ps1 | Configuration InternetFacingSite
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
$casSettings = $ConfigurationData[$Node.CASId] #Look up and retrieve the CAS settings for this node
#Thumbprint of the cer... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/ConfigureNamespaces/SingleNamespace/SingleNamespace.ps1 | SingleNamespace.ps1 | Configuration SingleNamespace
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
#Thumbprint of the certificate used to decrypt credentials on the target node
LocalConfigurationManager
{
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/MaintenanceMode/MaintenanceModeStart.ps1 | MaintenanceModeStart.ps1 | Configuration MaintenanceModeStart
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
xExchMaintenanceMode EnterMaintenanceMode
{
Enabled = $true
Credential = $ShellCreds
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/MaintenanceMode/MaintenanceModePrep.ps1 | MaintenanceModePrep.ps1 | Configuration MaintenanceModePrep
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
LocalConfigurationManager
{
CertificateId = $Node.Thumbprint
ConfigurationMode = "ApplyOnly" ... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/MaintenanceMode/MaintenanceModeStop.ps1 | MaintenanceModeStop.ps1 | Configuration MaintenanceModeStop
{
param
(
[PSCredential]$ShellCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
xExchMaintenanceMode ExitMaintenanceMode
{
Enabled = $false
Credential = $ShellCreds
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/1-ConfigureLCMForDeployment.ps1 | 1-ConfigureLCMForDeployment.ps1 | Configuration ConfigureLCMForDeployment
{
Node $AllNodes.NodeName
{
LocalConfigurationManager
{
CertificateId = $Node.Thumbprint
ConfigurationMode = "ApplyAndMonitor"
RebootNodeIfNeeded = $true
}
}
}
###Compiles the example
Con... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/8-ConfigureDatabaseCopies.ps1 | 8-ConfigureDatabaseCopies.ps1 | Configuration ConfigureDatabaseCopies
{
param
(
[PSCredential]$ShellCreds,
[string]$NodeFilter = "*"
)
#Import required DSC Modules
Import-DscResource -Module xExchange
#Import the helper module. It is used for importing the .CSV's created by the Server Role Requirem... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/6-ConfigureDAG.ps1 | 6-ConfigureDAG.ps1 | Configuration ConfigureDAG
{
param
(
[PSCredential]$ShellCreds
)
#Import required DSC Modules
Import-DscResource -Module xExchange
#This first section only configures a single DAG node, the first member of the DAG.
#The first member of the DAG will be responsible for DAG... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/3-CleanupJetstress.ps1 | 3-CleanupJetstress.ps1 | Configuration CleanupJetstress
{
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
#Uninstall Jetstress from the computer
Package UninstallJetstress
{
Ensure = 'Absent'
Path = 'C:\Binaries\Jetstress\Jetstress.msi'
N... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/2-InstallAndRunJetstress.ps1 | 2-InstallAndRunJetstress.ps1 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingCmdletAliases", "")]
[CmdletBinding()]
param()
Configuration InstallAndRunJetstress
{
param
(
[PSCredential]$FileCopyCreds
)
Import-DscResource -Module xExchange
Node $AllNodes.NodeName
{
#Create... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/9-ConfigureLCMForContinuousChecking.ps1 | 9-ConfigureLCMForContinuousChecking.ps1 | Configuration ConfigureLCMForContinuousChecking
{
Node $AllNodes.NodeName
{
LocalConfigurationManager
{
CertificateId = $Node.Thumbprint
RebootNodeIfNeeded = $false
ConfigurationMode = "ApplyAndAutoCorrect"
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/5-ConfigureServerSettings.ps1 | 5-ConfigureServerSettings.ps1 | Configuration ConfigureServerSettings
{
param
(
[PSCredential]$ShellCreds,
[PSCredential]$CertCreds,
[PSCredential]$FileCopyCreds
)
#Import required DSC Modules
Import-DscResource -Module xExchange
Import-DscResource -Module xWebAdministration
Node $A... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/4-InstallExchange.ps1 | 4-InstallExchange.ps1 | Configuration InstallExchange
{
param
(
[PSCredential]$InstallCreds,
[PSCredential]$FileCopyCreds
)
Import-DscResource -Module xExchange
Import-DscResource -Module xPendingReboot
Node $AllNodes.NodeName
{
#Copy the Exchange setup files locally
... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/7-ConfigurePrimaryDatabases.ps1 | 7-ConfigurePrimaryDatabases.ps1 | Configuration ConfigurePrimaryDatabases
{
param
(
[PSCredential]$ShellCreds
)
#Import required DSC Modules
Import-DscResource -Module xExchange
#Import the helper module. It is used for importing the .CSV's created by the Server Role Requirements Calculator and using them to ... |
PowerShellCorpus/PowerShellGallery/xExchange/1.15.0.0/Examples/EndToEndExample/10-OngoingConfiguration.ps1 | 10-OngoingConfiguration.ps1 | Configuration OngoingConfiguration
{
param
(
[PSCredential]$ShellCreds,
[PSCredential]$CertCreds,
[PSCredential]$FileCopyCreds
)
#Import required DSC Modules
Import-DscResource -Module xExchange
Import-DscResource -Module xWebAdministration
Node $AllN... |
PowerShellCorpus/PowerShellGallery/xIISMail/1.0.0.1/DSCResources/xIISMail/Test.ps1 | Test.ps1 | $Has = @{
SiteName = "hphsite";
DeliveryMethod = "PickupDirectoryFromIis" ;
DefaultCredentials = $false;
MailHost = "asdasda.xxxx";
From = "sdas@sdad.com"
username = "asdads\asdasd"
password = "123.com"
PickupDir... |
PowerShellCorpus/PowerShellGallery/xIISMail/1.0.0.1/DSCResources/xIISMail/build.ps1 | build.ps1 | New-xDscResource -Name xIISMail -Property @(
New-xDscResourceProperty -Name SiteName -Type String -Attribute Key
New-xDscResourceProperty -Name MailHost -Type String -Attribute Write
New-xDscResourceProperty -Name Username -Type String -Attribute Write
New-xDscResourceProperty -Name Password -Type String -Attribute... |
PowerShellCorpus/PowerShellGallery/WiscO365/1.0/HelperFunctions.ps1 | HelperFunctions.ps1 | #Module variables
$moduleDataPath = "$env:LOCALAPPDATA\WindowsPowerShell\ModuleData\WiscO365"
$credPath = "$moduleDataPath\Connections"
$connectionsFile = "$moduleDataPath\Connections\connections.csv"
$defaultEndpoint = "https://wiscmail.wisc.edu/domainadmin.json"
Function Invoke-HelperO365Function ($body){
... |
PowerShellCorpus/PowerShellGallery/WiscO365/1.0/Update/Get-O365DomainAdminDoc.ps1 | Get-O365DomainAdminDoc.ps1 | <#
.Synopsis
Gets the documentation for the Domain Admin API, which is what you are viewing right now
.OUTPUTS
failure: undef
success: JSON array with all Domain Admin API documentation
.LINK
https://wiscmail.wisc.edu/admin/index.php?action=domain-domainadmin_api
#>
Function Get-O365DomainAdminDoc{... |
PowerShellCorpus/PowerShellGallery/WiscO365/1.0/Update/UpdateAPIFunctions.ps1 | UpdateAPIFunctions.ps1 | param(
#Defines the output location for the file
[Parameter(Mandatory=$false,Position=0)]
[string]
$outputFile = "$moduleDataPath\New APIFunctions.ps1",
#Defines if the alias is included
[Parameter(Mandatory=$false,Position=1)]
$includeAlias = $false
)
$actionWordsPath = "$P... |
PowerShellCorpus/PowerShellGallery/WiscO365/1.0/Update/psDoc-master/src/out-html-template.ps1 | out-html-template.ps1 | @"
<!DOCTYPE html>
<!--
<auto-generated>
<synopsis>
This code was generated by a tool. on: $(Get-Date)
</synopsis>
<description>
If you'd like to regenerate the documentation, please open up powershell and run
> .\psDoc.ps1 -moduleName NameOfYourModule
If the docu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.