full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/Eventbrite/0.0.2/Public/Get/Tests/Get-EventbriteEvent.Tests.ps1 | Get-EventbriteEvent.Tests.ps1 | Describe 'Get-EventbriteEvent Tests' {
Context 'Parameters for Get-EventbriteEvent'{
It 'Has a Parameter called EventbriteToken' {
$Function.Parameters.Keys.Contains('EventbriteToken') | Should Be 'True'
}
It 'EventbriteToken Parameter is Identified as Mandatory being... |
PowerShellCorpus/PowerShellGallery/Eventbrite/0.0.2/Public/Get/Tests/Get-EventbriteEventQuestions.Tests.ps1 | Get-EventbriteEventQuestions.Tests.ps1 | Describe 'Get-EventbriteEventQuestions Tests' {
Context 'Parameters for Get-EventbriteEventQuestions'{
It 'Has a Parameter called EventbriteToken' {
$Function.Parameters.Keys.Contains('EventbriteToken') | Should Be 'True'
}
It 'EventbriteToken Parameter is Identified ... |
PowerShellCorpus/PowerShellGallery/Eventbrite/0.0.2/Public/Get/Tests/Get-EventAttendees.Tests.ps1 | Get-EventAttendees.Tests.ps1 | Describe 'Get-EventAttendees Tests' {
Context 'Parameters for Get-EventAttendees'{
It 'Has a Parameter called EventbriteToken' {
$Function.Parameters.Keys.Contains('EventbriteToken') | Should Be 'True'
}
It 'EventbriteToken Parameter is Identified as Mandatory being T... |
PowerShellCorpus/PowerShellGallery/Eventbrite/0.0.2/Public/Get/Tests/Get-EventbriteEvents.Tests.ps1 | Get-EventbriteEvents.Tests.ps1 | Describe 'Get-EventbriteEvents Tests' {
Context 'Parameters for Get-EventbriteEvents'{
It 'Has a Parameter called EventbriteToken' {
$Function.Parameters.Keys.Contains('EventbriteToken') | Should Be 'True'
}
It 'EventbriteToken Parameter is Identified as Mandatory bei... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Set-PSNewRelicConfig.ps1 | Set-PSNewRelicConfig.ps1 | function Set-PSNewRelicConfig {
[cmdletbinding()]
param(
[string]$AccountID,
[string]$APIKey,
[string]$AdminAPIKey,
[string]$InsightsInsertKey,
[string]$InsightsQueryKey,
[string]$Path = "$ModuleRoot\$env:USERNAME-$env:COMPUTERNAME-PSNewRelic.xml"
)
Switch ($... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Invoke-NewRelicInsightsQuery.ps1 | Invoke-NewRelicInsightsQuery.ps1 | function Invoke-NewRelicInsightsQuery {
[cmdletbinding()]
Param
(
[parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]
$InsightsQuery,
[parameter(Mandatory=$false)]
[switch]
$Raw,
[parameter(Mandatory=$false)]
[ValidateNotNullOrEmpty()]
... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Get-NewRelicApplicationHostList.ps1 | Get-NewRelicApplicationHostList.ps1 | function Get-NewRelicApplicationHostList {
[cmdletbinding(DefaultParameterSetName="AllPages")]
Param
(
[parameter(Mandatory=$true)]
[String]
$ApplicationID,
[parameter(Mandatory=$false,ParameterSetName="PageNum")]
[int]
$PageNumber=1,
[parameter(Mandatory=$false,Par... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Get-NewRelicApplicationList.ps1 | Get-NewRelicApplicationList.ps1 | function Get-NewRelicApplicationList {
[cmdletbinding(DefaultParameterSetName="AllPages")]
Param
(
[parameter(Mandatory=$false)]
[string]
$Name,
[parameter(Mandatory=$false,ParameterSetName="PageNum")]
[int]
$PageNumber=1,
[parameter(Mandatory=$false,ParameterSetNam... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Get-NewRelicServerList.ps1 | Get-NewRelicServerList.ps1 | function Get-NewRelicServerList {
[cmdletbinding(DefaultParameterSetName="AllPages")]
Param
(
[parameter(Mandatory=$false)]
[string]
$Name,
[parameter(Mandatory=$false,ParameterSetName="PageNum")]
[int]
$PageNumber=1,
[parameter(Mandatory=$false,ParameterSetName="Al... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Get-NewRelicSyntheticsMonitorList.ps1 | Get-NewRelicSyntheticsMonitorList.ps1 | function Get-NewRelicSyntheticsMonitorList {
[cmdletbinding()]
Param
(
[parameter(Mandatory=$false)]
[switch]
$Raw,
[parameter(Mandatory=$false)]
[ValidateNotNullOrEmpty()]
[String]
$AdminAPIKey=$Script:PSNewRelic.AdminAPIKey,
[parameter(Mandatory=$false)]
... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Get-NewRelicDeploymentList.ps1 | Get-NewRelicDeploymentList.ps1 | function Get-NewRelicDeploymentList {
[cmdletbinding(DefaultParameterSetName="AllPages")]
Param
(
[parameter(Mandatory=$true)]
[string]
$ApplicationID,
[parameter(Mandatory=$false)]
[string]
$ApplicationName,
[parameter(Mandatory=$false,ParameterSetName="PageNum")]
... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Get-NewRelicSyntheticsSLAReport.ps1 | Get-NewRelicSyntheticsSLAReport.ps1 | function Get-NewRelicSyntheticsSLAReport {
[cmdletbinding(DefaultParameterSetName="Weeks")]
Param
(
[parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]
$MonitorName,
[parameter(Mandatory=$false,ParameterSetName="Weeks")]
[ValidateNotNullOrEmpty()]
[int]... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Invoke-NRQLQuery.ps1 | Invoke-NRQLQuery.ps1 | function Invoke-NRQLQuery {
[cmdletbinding(DefaultParameterSetName="Query")]
Param
(
[parameter(Mandatory=$false)]
[ValidateSet("Insert","Query")]
[string]
$Type="Query",
[parameter(Mandatory=$true,ParameterSetName="Query")]
[ValidateNotNullOrEmpty()]
[string]
... |
PowerShellCorpus/PowerShellGallery/PSNewRelic/0.8.4/Public/Get-PSNewRelicConfig.ps1 | Get-PSNewRelicConfig.ps1 | Function Get-PSNewRelicConfig {
[cmdletbinding(DefaultParameterSetName = 'source')]
param(
[parameter(ParameterSetName='source')]
[ValidateSet("PSNewRelic","PSNewRelic.xml")]
$Source = "PSNewRelic",
[parameter(ParameterSetName='path')]
[parameter(ParameterSetName='source... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Single Server/SharePoint.ps1 | SharePoint.ps1 | Configuration Example
{
param (
[Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [PSCredential] $FarmAccount,
[Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [PSCredential] $SPSetupAccount,
[Parameter(Mandatory=$true)] [ValidateNotNullorEmpty()] [PSCredential] $WebPoolMan... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Small Farm/SharePoint.ps1 | SharePoint.ps1 | $ConfigurationData = @{
AllNodes = @(
@{
NodeName = 'Server1'
PSDscAllowPlainTextPassword = $true
},
@{
NodeName = 'Server2'
PSDscAllowPlainTextPassword = $true
}
)
}
Configuration Example
{
param (
[Par... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWebAppBlockedFileTypes/2-SpecificList.ps1 | 2-SpecificList.ps1 | <#
.EXAMPLE
This example shows how to ensure that the blocked file type list always
specifically matches this list.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResourc... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWebAppBlockedFileTypes/1-Inclusion.ps1 | 1-Inclusion.ps1 | <#
.EXAMPLE
This example shows how to ensure that specific file types are always blocked while
others will always be allowed. Any file types not mentioned in this config will be
able to be managed manually.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $tr... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWebAppGeneralSettings/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example shows how to apply some of the available general settings to the
specified web app
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -Modu... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPStateServiceApp/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example creates a state service application in the local farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
nod... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPPublishServiceApplication/2-UnpublishServiceApplication.ps1 | 2-UnpublishServiceApplication.ps1 | <#
.EXAMPLE
This example shows how to ensure that the Secure Store Service is not
published within the farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -Mo... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPPublishServiceApplication/1-PublishServiceApplication.ps1 | 1-PublishServiceApplication.ps1 | <#
.EXAMPLE
This example shows how to ensure that the managed metadata service is published
within the farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -Mod... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWorkManagementServiceApp/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example creates a new work management service app in the local farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAppStoreSettings/1-EnableSharePointAppStore.ps1 | 1-EnableSharePointAppStore.ps1 | <#
.EXAMPLE
This example shows how to configure the AppCatalog in the farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node lo... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAppStoreSettings/2-EnableAppStores.ps1 | 2-EnableAppStores.ps1 | <#
.EXAMPLE
This example shows how to configure the AppCatalog in the farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node lo... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAppStoreSettings/3-DisableAppStores.ps1 | 3-DisableAppStores.ps1 | <#
.EXAMPLE
This example shows how to configure the AppCatalog in the farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node lo... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchContentSource/2-WebsiteSource.ps1 | 2-WebsiteSource.ps1 | <#
.EXAMPLE
This example shows how to create a website content source
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localho... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchContentSource/1-SharePointSource.ps1 | 1-SharePointSource.ps1 | <#
.EXAMPLE
This example shows how to create a SharePoint sites content source
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
nod... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPFeature/2-DisableFeature.ps1 | 2-DisableFeature.ps1 | <#
.EXAMPLE
This example shows how to disable a site collection scoped feature
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
no... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPFeature/1-EnableFeature.ps1 | 1-EnableFeature.ps1 | <#
.EXAMPLE
This example shows how to enable a site collection scoped feature
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
nod... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWeb/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example deploys a subsite in a specific location
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWebApplicationExtension/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example shows how to create a new web application extension in the local farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDs... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchFileType/2-DisableFileType.ps1 | 2-DisableFileType.ps1 | <#
.EXAMPLE
This example shows how to disable a specific file type in search
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node ... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchFileType/1-EnsureFileType.ps1 | 1-EnsureFileType.ps1 | <#
.EXAMPLE
This example shows how to apply settings to a specific file type in search, using the required parameters
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWebApplicationAppDomain/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example shows how to set the app domain for a specified web application
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWebAppProxyGroup/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example shows how to assign a specific proxy group to the specified web app
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchCrawlRule/1-BasicExample.ps1 | 1-BasicExample.ps1 | <#
.EXAMPLE
This example shows how to apply settings to a sepcific URL in search
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
n... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchCrawlRule/2-CertificateExample.ps1 | 2-CertificateExample.ps1 | <#
.EXAMPLE
This example shows how to set a certificate for authentication to a content source
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDs... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSite/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example creates a site collection with the provided details
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node ... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAlternateUrl/2-RemoveAlternateUrl.ps1 | 2-RemoveAlternateUrl.ps1 | <#
.EXAMPLE
This example shows how to remove an alternate URL from a specified zone for a specific
web application.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResourc... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAlternateUrl/1-CreateAlternateUrl.ps1 | 1-CreateAlternateUrl.ps1 | <#
.EXAMPLE
This example shows how to add a new alternate URL to a specific web application
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWebAppPolicy/1-SpecificMembers.ps1 | 1-SpecificMembers.ps1 | <#
.EXAMPLE
This example sets the specific web app policy for the specified web app to
match the provided list below.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResou... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPWebAppPolicy/2-IncludeMembers.ps1 | 2-IncludeMembers.ps1 | <#
.EXAMPLE
This example shows how to include specific members while excluding other members
from the policy of the web app.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPPasswordChangeSettings/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example sets the password change settings for managed accounts in the local farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePoin... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPDesignerSettings/1-ApplyDesignerConfig.ps1 | 1-ApplyDesignerConfig.ps1 | <#
.EXAMPLE
This example applies settings to disable SharePoint Designer access to the
specified web application.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPIrmSettings/1-ApplyIRMSConfig.ps1 | 1-ApplyIRMSConfig.ps1 | <#
.EXAMPLE
This example shows how to apply the RMS settings to a local farm, pointing to
a specific RMS server
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -M... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPMachineTranslationServiceApp/1-CreateServiceApp.ps1 | 1-CreateServiceApp.ps1 | <#
.EXAMPLE
This example shows how to deploy the SP Machine Translation Service App to the local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPMachineTranslationServiceApp/2-RemoveServiceApp.ps1 | 2-RemoveServiceApp.ps1 | <#
.EXAMPLE
This example shows how to remove the SP Machine Translation Service App to the local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPPowerPointAutomationServiceApp/1-NewServiceApp.ps1 | 1-NewServiceApp.ps1 | <#
.EXAMPLE
This example makes sure the service application exists and has a specific configuration
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePo... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPPowerPointAutomationServiceApp/2-RemoveServiceApp.ps1 | 2-RemoveServiceApp.ps1 | <#
.EXAMPLE
This example removes a word automation service app
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchAuthoritativePage/2 - DemotedPage.ps1 | 2 - DemotedPage.ps1 | <#
.EXAMPLE
This example shows how to create a Search Demoted Page
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost ... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchAuthoritativePage/1 - AuthoritativePage.ps1 | 1 - AuthoritativePage.ps1 | <#
.EXAMPLE
This example shows how to create a Search Authoritative Page
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node loca... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPContentDatabase/1-AddContentDatabase.ps1 | 1-AddContentDatabase.ps1 | <#
.EXAMPLE
This example creates a new content database for the specified web application.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPContentDatabase/2-RemoveContentDatabase.ps1 | 2-RemoveContentDatabase.ps1 | <#
.EXAMPLE
This example dismounts a content database from the specified web application. This
will not remove the database from SQL server however, only taking it out of the
web applications configuration.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $t... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAccessServiceApp/1-CreateServiceApp.ps1 | 1-CreateServiceApp.ps1 | <#
.EXAMPLE
This example shows how to deploy Access Services 2013 to the local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointD... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAccessServiceApp/2-RemoveServiceApp.ps1 | 2-RemoveServiceApp.ps1 | <#
.EXAMPLE
This example shows how to remove a specific Access Services 2013 from the local
SharePoint farm. Because Application pool and database server are both required
parameters, but are not acutally needed to remove the app, any text value can
be supplied for these as they will be ignored... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPPerformancePointServiceApp/1-RemoveServiceApp.ps1 | 1-RemoveServiceApp.ps1 | <#
.EXAMPLE
This example removes the specific performance point service app from the local
farm. The ApplicationPool parameter is still mandatory but it is not used, so
the value can be anything.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPPerformancePointServiceApp/1-NewServiceApp.ps1 | 1-NewServiceApp.ps1 | <#
.EXAMPLE
This example creates a new performance point service app in the local farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPServiceInstance/2-StopService.ps1 | 2-StopService.ps1 | <#
.EXAMPLE
This example shows how to ensure that the Business Data Connectivity Service
is not running on the local server.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPServiceInstance/1-StartService.ps1 | 1-StartService.ps1 | <#
.EXAMPLE
This example shows how to ensure that the managed metadata service is running
on the local server.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -M... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPExcelServiceApp/1-CreateServiceApp.ps1 | 1-CreateServiceApp.ps1 | <#
.EXAMPLE
This example shows how to deploy Excel Services to the local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPExcelServiceApp/2-RemoveServiceApp.ps1 | 2-RemoveServiceApp.ps1 | <#
.EXAMPLE
This example shows how to remove Excel Services from the local SharePoint farm.
Here application pool is a required parameter, but it is not actually used when
removing a service app and as such can be ignored and set to any value.
#>
Configuration Example
{
param(
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPUsageApplication/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example deploys a usage application to the local farm
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localh... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPOfficeOnlineServerBinding/1-AddBinding.ps1 | 1-AddBinding.ps1 | <#
.EXAMPLE
This example shows how to create bindings to the internal-https zone for the
local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPOfficeOnlineServerBinding/2-RemoveBinding.ps1 | 2-RemoveBinding.ps1 | <#
.EXAMPLE
This example shows how to remove bindings from the internal-http zone for the
local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource ... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPManagedAccount/1-NewManagedAccount.ps1 | 1-NewManagedAccount.ps1 | <#
.EXAMPLE
This example shows how to create a new managed account in a local farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount,
[Parameter(Mandatory = $true)]
[PSCredential]... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPManagedAccount/2-NewManagedAccountWithSchedule.ps1 | 2-NewManagedAccountWithSchedule.ps1 | <#
.EXAMPLE
This example shows how to create a new managed account in a local farm, using
the automatic password change schedule
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount,
[Paramet... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPFarmPropertyBag/1-RemoveFarmPropertyBag.ps1 | 1-RemoveFarmPropertyBag.ps1 | <#
.EXAMPLE
This example shows how remove property bag in the current farm.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SP... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPFarmPropertyBag/1-AddFarmPropertyBag.ps1 | 1-AddFarmPropertyBag.ps1 | <#
.EXAMPLE
This example shows how add property bag in the current farm.
#>
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPFar... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSessionStateService/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example creates a new session state service on the local farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
no... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPCreateFarm/2-CreateCustomCentralAdmin.ps1 | 2-CreateCustomCentralAdmin.ps1 | <#
.EXAMPLE
This example shows how a basic SharePoint farm can be created. The database server and names
are specified, and the accounts to run the setup as, the farm account and the passphrase are
all passed in to the configuration to be applied. Here the port for the central admin site to
run on,... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPCreateFarm/1-CreateBasicFarm.ps1 | 1-CreateBasicFarm.ps1 | <#
.EXAMPLE
This example shows how a basic SharePoint farm can be created. The database server and names
are specified, and the accounts to run the setup as, the farm account and the passphrase are
all passed in to the configuration to be applied. By default the central admin site in this
example i... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPCreateFarm/3-CreateFarmWithServerRole.ps1 | 3-CreateFarmWithServerRole.ps1 | <#
.EXAMPLE
This example shows how a basic SharePoint farm can be created. The database server and names
are specified, and the accounts to run the setup as, the farm account and the passphrase are
all passed in to the configuration to be applied. By default the central admin site in this
example ... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPRemoteFarmTrust/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example creates a remote farm trust so that the local web app trusts calls
that will come from the remote web app.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPBCSServiceApp/1-CreateServiceApp.ps1 | 1-CreateServiceApp.ps1 | <#
.EXAMPLE
This example shows how to deploy a Business Connectivity Services application to the
local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscRe... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPBCSServiceApp/2-RemoveServiceApp.ps1 | 2-RemoveServiceApp.ps1 | <#
.EXAMPLE
This example shows how to deploy a Business Connectivity Services application to the
local SharePoint farm. The application pool account is mandatory but the value is
ignored when removing a service app, so the value entered here does not matter.
#>
Configuration Example
{
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchTopology/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example shows how to apply a specific topology to the search service app
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPDistributedCacheService/3-MultiServerCache.ps1 | 3-MultiServerCache.ps1 | <#
.EXAMPLE
This example applies the distributed cache service to both "server1" and
"server2". The ServerProvisionOrder will ensure that it applies it to
server1 first and then server2, making sure they don't both attempt to
create the cache at the same time, resuling in errors.
Note: Do n... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPDistributedCacheService/1-SingleServerCache.ps1 | 1-SingleServerCache.ps1 | <#
.EXAMPLE
This example applies the distributed cache service to the current server,
also setting the rules in Windows firewall to allow communication with
other cache hosts.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPDistributedCacheService/2-CacheNoFirewall.ps1 | 2-CacheNoFirewall.ps1 | <#
.EXAMPLE
This example applies the distributed cache service to the current server,
but will not apply the rules to allow it to communicate with other cache
hosts to the Windows Firewall. Use this approach if you have an alternate
firewall solution.
#>
Configuration Example
{
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPUserProfileProperty/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example deploys/updates the WorkEmail2 property in the user profile service
app
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName Share... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPFarm/2-CreateCustomCentralAdmin.ps1 | 2-CreateCustomCentralAdmin.ps1 | <#
.EXAMPLE
This example shows how a basic SharePoint farm can be created. The database server and names
are specified, and the accounts to run the setup as, the farm account and the passphrase are
all passed in to the configuration to be applied. Here the port for the central admin site to
run on,... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPFarm/1-CreateBasicFarm.ps1 | 1-CreateBasicFarm.ps1 | <#
.EXAMPLE
This example shows how a basic SharePoint farm can be created. The database server and names
are specified, and the accounts to run the setup as, the farm account and the passphrase are
all passed in to the configuration to be applied. By default the central admin site in this
example i... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPFarm/3-CreateFarmWithServerRole.ps1 | 3-CreateFarmWithServerRole.ps1 | <#
.EXAMPLE
This example shows how a basic SharePoint farm can be created. The database server and names
are specified, and the accounts to run the setup as, the farm account and the passphrase are
all passed in to the configuration to be applied. By default the central admin site in this
example ... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPTrustedRootAuthority/2-RemoveExample.ps1 | 2-RemoveExample.ps1 | <#
.EXAMPLE
This example removes a SP Trusted Root Authority from the local farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPTrustedRootAuthority/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example deploys a SP Trusted Root Authority to the local farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
no... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPManagedPath/3-RemovePath.ps1 | 3-RemovePath.ps1 | <#
.EXAMPLE
This example shows how to remove a wildcard managed path from a specific web application
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName ShareP... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPManagedPath/1-ExplicitPath.ps1 | 1-ExplicitPath.ps1 | <#
.EXAMPLE
This example shows how to deploy an explicit managed path to a specifici web application
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName ShareP... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPManagedPath/2-WildcardPath.ps1 | 2-WildcardPath.ps1 | <#
.EXAMPLE
This example shows how to add a wildcard managed path to a specific web application
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointD... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPServiceAppPool/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example creates a service application pool for service apps to run in.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPSearchResultSource/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example shows how to create a remote sharepoint search result source
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPFarmSolution/1-DeploySolution.ps1 | 1-DeploySolution.ps1 | <#
.EXAMPLE
This example shows how to deploy a WSP to specific web applications.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPUserProfileSection/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example adds a new section for profile properties to the specified
user profile service app
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -Modu... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPConfigWizard/1-RunConfigWizard.ps1 | 1-RunConfigWizard.ps1 | <#
.EXAMPLE
This example runs the Configuration Wizard as soon as it is applied.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
n... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPConfigWizard/2-RunConfigWizardInWindow.ps1 | 2-RunConfigWizardInWindow.ps1 | <#
.EXAMPLE
This example only runs the Configuration Wizard in the specified window:
- Saturday and Sunday night between 3am and 5am.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPServiceAppSecurity/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example shows how full control permission can be given to the farm
account and service app pool account to the user profile service app's
sharing permission.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPUserProfileSyncService/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example provisions the user profile sync service to the local server
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount,
[Parameter(Mandatory = $true)]
[PSCredentia... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAccess2010ServiceApp/1-CreateServiceApp.ps1 | 1-CreateServiceApp.ps1 | <#
.EXAMPLE
This example shows how to deploy Access Services 2010 to the local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointD... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAccess2010ServiceApp/2-RemoveServiceApp.ps1 | 2-RemoveServiceApp.ps1 | <#
.EXAMPLE
This example shows how to remove a specific Access Services 2010 from the local
SharePoint farm. Because Application pool is a required parameters, but is not
acutally needed to remove the app, any text value can be supplied for these as
they will be ignored.
#>
Configurat... |
PowerShellCorpus/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPQuotaTemplate/1-Example.ps1 | 1-Example.ps1 | <#
.EXAMPLE
This example creates a specific quota template in the local farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.