full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Should.Tests.ps1
Should.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "Parse-ShouldArgs" { It "sanitizes assertions functions" { $parsedArgs = Parse-ShouldArgs TestFunction $parsedArgs.AssertionMethod | Should Be PesterTestFunction } It "works with strict mode whe...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeLike.ps1
BeLike.ps1
function PesterBeLike($value, $expectedMatch) { return ($value -like $expectedMatch) } function PesterBeLikeFailureMessage($value, $expectedMatch) { return "Expected: {$value} to be like the wildcard {$expectedMatch}" } function NotPesterBeLikeFailureMessage($value, $expectedMatch) { return "Ex...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Exist.ps1
Exist.ps1
function PesterExist($value) { & $SafeCommands['Test-Path'] $value } function PesterExistFailureMessage($value) { return "Expected: {$value} to exist" } function NotPesterExistFailureMessage($value) { return "Expected: ${value} to not exist, but it was found" }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeLikeExactly.Tests.ps1
BeLikeExactly.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "BeLike" { It "returns true for things that are like wildcard" { PesterBeLikeExactly "FOOBAR" "*OB*" | Should Be $true } It "returns false for things that do not match" { PesterBeLikeExactly "fo...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/PesterThrow.ps1
PesterThrow.ps1
$ActualExceptionMessage = "" $ActualExceptionWasThrown = $false # because this is a script block, the user will have to # wrap the code they want to assert on in { } function PesterThrow([scriptblock] $script, $expectedErrorMessage) { if ($null -eq $script) { throw (New-Object -TypeName Argument...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeLessThan.Tests.ps1
BeLessThan.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterBeLessThan" { It "passes if value Less than expected" { Test-PositiveAssertion (PesterBeLessThan 1 2) 1 | Should BeLessThan 2 } It "fails if values equal" { Test-NegativeAssert...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeGreaterThan.ps1
BeGreaterThan.ps1
function PesterBeGreaterThan($value, $expected) { return [bool]($value -gt $expected) } function PesterBeGreaterThanFailureMessage($value,$expected) { return "Expected {$value} to be greater than {$expected}" } function NotPesterBeGreaterThanFailureMessage($value,$expected) { return "Expected ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeNullOrEmpty.Tests.ps1
BeNullOrEmpty.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterBeNullOrEmpty" { It "should return true if null" { Test-PositiveAssertion (PesterBeNullOrEmpty $null) } It "should return true if empty string" { Test-PositiveAssertion (PesterBeNullOrEmp...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/MatchExactly.ps1
MatchExactly.ps1
function PesterMatchExactly($value, $expectedMatch) { return ($value -cmatch $expectedMatch) } function PesterMatchExactlyFailureMessage($value, $expectedMatch) { return "Expected: {$value} to exactly match the expression {$expectedMatch}" } function NotPesterMatchExactlyFailureMessage($value, $expe...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Match.Tests.ps1
Match.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "Match" { It "returns true for things that match" { PesterMatch "foobar" "ob" | Should Be $true } It "returns false for things that do not match" { PesterMatch "foobar" "slime" | Should Be $fals...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeGreaterThan.Tests.ps1
BeGreaterThan.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterBeGreaterThan" { It "passes if value greater than expected" { Test-PositiveAssertion (PesterBeGreaterThan 2 1) 2 | Should BeGreaterThan 1 } It "fails if values equal" { Test-Ne...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeLike.Tests.ps1
BeLike.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "BeLike" { It "returns true for things that are like wildcard" { PesterBeLike "foobar" "*ob*" | Should Be $true } It "returns false for things that do not match" { PesterBeLike "foobar" "oob" | ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Be.ps1
Be.ps1
#Be function PesterBe($value, $expected) { return ($expected -eq $value) } function PesterBeFailureMessage($value, $expected) { if (-not (($expected -is [string]) -and ($value -is [string]))) { return "Expected: {$expected}`nBut was: {$value}" } <#joining the output strings to a ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Contain.Tests.ps1
Contain.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterContain" { Context "when testing file contents" { Setup -File "test.txt" "this is line 1`nrush is awesome`nAnd this is Unicode: ☺" It "returns true if the file contains the specified content" { ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Test-Assertion.ps1
Test-Assertion.ps1
function Test-PositiveAssertion($result) { if (-not $result) { throw "Expecting expression to pass, but it failed" } } function Test-NegativeAssertion($result) { if ($result) { throw "Expecting expression to pass, but it failed" } }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeOfType.Tests.ps1
BeOfType.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterBeOfType" { It "passes if value is of the expected type" { Test-PositiveAssertion (PesterBeOfType 1 ([int])) Test-PositiveAssertion (PesterBeOfType 1 "Int") 1 | Should BeOfType Int ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Contain.ps1
Contain.ps1
function PesterContain($file, $contentExpecation) { return ((& $SafeCommands['Get-Content'] -Encoding UTF8 $file) -match $contentExpecation) } function PesterContainFailureMessage($file, $contentExpecation) { return "Expected: file ${file} to contain {$contentExpecation}" } function NotPesterContain...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Should.ps1
Should.ps1
function Parse-ShouldArgs([array] $shouldArgs) { if ($null -eq $shouldArgs) { $shouldArgs = @() } $parsedArgs = @{ PositiveAssertion = $true ExpectedValue = $null } $assertionMethodIndex = 0 $expectedValueIndex = 1 if ($shouldArgs.Count -gt 0 -and $shouldArgs[0].T...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeOfType.ps1
BeOfType.ps1
function PesterBeOfType($value, $expectedType) { trap [System.Management.Automation.PSInvalidCastException] { return $false } if($expectedType -is [string] -and !($expectedType -as [Type])) { $expectedType = $expectedType -replace '^\[(.*)\]$','$1' } return [bool]($value -is $expectedType...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Exist.Tests.ps1
Exist.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterExist" { It "returns true for paths that exist" { Test-PositiveAssertion (PesterExist $TestDrive) } It "returns false for paths do not exist" { Test-NegativeAssertion (PesterExist "$TestD...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/BeLessThan.ps1
BeLessThan.ps1
function PesterBeLessThan($value, $expected) { return [bool]($value -lt $expected) } function PesterBeLessThanFailureMessage($value,$expected) { return "Expected {$value} to be less than {$expected}" } function NotPesterBeLessThanFailureMessage($value,$expected) { return "Expected {$value} to ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/Be.Tests.ps1
Be.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterBe" { It "returns true if the 2 arguments are equal" { Test-PositiveAssertion (PesterBe 1 1) } It "returns true if the 2 arguments are equal and have different case" { Test-PositiveAssertio...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/ContainExactly.Tests.ps1
ContainExactly.Tests.ps1
Set-StrictMode -Version Latest InModuleScope Pester { Describe "PesterContainExactly" { Context "when testing file contents" { Setup -File "test.txt" "this is line 1`nPester is awesome`nAnd this is Unicode: ☺" It "returns true if the file contains the specified content exactly...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester-master/Pester-master/Functions/Assertions/ContainExactly.ps1
ContainExactly.ps1
function PesterContainExactly($file, $contentExpecation) { return ((& $SafeCommands['Get-Content'] -Encoding UTF8 $file) -cmatch $contentExpecation) } function PesterContainExactlyFailureMessage($file, $contentExpecation) { return "Expected: file ${file} to contain exactly {$contentExpecation}" } func...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Tests/MockInitiation.ps1
MockInitiation.ps1
function GenerateStub(){ $SPMockGenerator = (Join-Path $PSScriptRoot ".\Stub\SPMockGenerator.psm1" -Resolve) Import-Module $SPMockGenerator -WarningAction SilentlyContinue $stubPath = $PSScriptRoot +'\Stub\Microsoft.SP.PowerShell.psm1' if(![System.IO.File]::Exists($stubPath)){ Write-SharePo...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Tests/UnitTest/SPWeb.Tests.ps1
SPWeb.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stub\Microsoft.SP.PowerShell.psm1" -Resolve) ) $RepoRoot = (Resolve-Path $PSScriptRoot\..\..).Path $Global:CurrentSharePointStubModule = $SharePointCmdletModule Remove-Module -Name "Microsoft.SharePoint.PowerSh...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Tests/UnitTest/SPList.Tests.ps1
SPList.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stub\Microsoft.SP.PowerShell.psm1" -Resolve) ) $RepoRoot = (Resolve-Path $PSScriptRoot\..\..).Path $Global:CurrentSharePointStubModule = $SharePointCmdletModule $Global:CurrentSharePointStubLoadedModule = "Microsoft....
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Tests/UnitTest/SPWebApp.Tests.ps1
SPWebApp.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stub\Microsoft.SP.PowerShell.psm1" -Resolve) ) $RepoRoot = (Resolve-Path $PSScriptRoot\..\..).Path $Global:CurrentSharePointStubModule = $SharePointCmdletModule Remove-Module -Name "Microsoft.SharePoi...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Tests/UnitTest/SPSite.Tests.ps1
SPSite.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stub\Microsoft.SP.PowerShell.psm1" -Resolve) ) $RepoRoot = (Resolve-Path $PSScriptRoot\..\..).Path $Global:CurrentSharePointStubModule = $SharePointCmdletModule Remove-Module -Name "Microsoft.SharePoint.P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Scripts/SPWebApp.ps1
SPWebApp.ps1
function SPWebApp{ $params = $args[0] $wa = Get-SPWebApplication -Identity $params.Name return $wa } $testParams =@{ Name='SharePoint - 80' } SPWebApp $testParams
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Scripts/SPWeb.ps1
SPWeb.ps1
function SPWeb { $w = Get-SPWeb -identity $testParams.url return $w } $testParams =@{ url = "http://win-fhhao4r7hve/sites/AT" }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Scripts/SPSite.ps1
SPSite.ps1
function SPSite { $params = $args[0] $wa = Get-SPSite -ContentDatabase $params.Name return $wa } $testParams = @{ Id='5ee9389b-63c5-468d-99cc-edf4e9ce9b24' Name='WSS_Content_101' WebApplication='SPWebApplication Name=Social - 101' Server='WIN-FHHAO4R7HVE' CurrentSiteCount=3 } SPSite $testP...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SP-Pester/Scripts/SPList.ps1
SPList.ps1
<# Get the SPWeb #> function SPWeb(){ $i = $args[0]; $w= Get-SPWeb -Identity $i.url -ErrorAction SilentlyContinue return $w } function GetSPList(){ $i = $args[0]; $j = $args[1]; $l = $j.lists[$i.Title]; return $l } function SPList() { $i = $args[0]; $w = ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/SharePointMocking/spmock.ps1
spmock.ps1
function Write-xSharePointStubFiles() { param ( [parameter(Mandatory = $true)] [System.String] $SharePointStubPath ) Add-PSSnapin Microsoft.SharePoint.PowerShell $SPStubContent = ((Get-Command –PSSnapin "Microsoft.SharePoint.PowerShell" ) | ForEach-Object -Process { $signature = $null $command = ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SPWeb/SPWeb.Tests.ps1
SPWeb.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\SPWeb\Microsoft.SP.PowerShell.psm1" -Resolve) ) $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentSharePointStubModule = $SharePointCmdletModule Remove-Module -Name "Microsoft.SharePoint.Pow...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SPWeb/SPWeb.ps1
SPWeb.ps1
function SPWeb { $w = Get-SPWeb -identity $testParams.url return $w } $testParams =@{ url = "http://win-fhhao4r7hve/sites/AT" }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SPList/SPList.ps1
SPList.ps1
<# Get the SPWeb #> function SPWeb(){ $i = $args[0]; $w= Get-SPWeb -Identity $i.url -ErrorAction SilentlyContinue return $w } function GetSPList(){ $i = $args[0]; $j = $args[1]; $l = $j.lists[$i.Title]; return $l } function SPList() { $i = $args[0]; $w = ...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SPList/SPList.Tests.ps1
SPList.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\SPList\Microsoft.SP.PowerShell.psm1" -Resolve) ) $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentSharePointStubModule = $SharePointCmdletModule $Global:CurrentSharePointStubLoadedModule = "Micro...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SPSite/SPSite.ps1
SPSite.ps1
function SPSite { $params = $args[0] $wa = Get-SPSite -ContentDatabase $params.Name return $wa } $testParams = @{ Id='5ee9389b-63c5-468d-99cc-edf4e9ce9b24' Name='WSS_Content_101' WebApplication='SPWebApplication Name=Social - 101' Server='WIN-FHHAO4R7HVE' CurrentSiteCount=3 } SPSite $testP...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SPSite/SPSite.Tests.ps1
SPSite.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\SPSite\Microsoft.SP.PowerShell.psm1" -Resolve) ) $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentSharePointStubModule = $SharePointCmdletModule Remove-Module -Name "Microsoft.SharePo...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/Examples/Small Farm/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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. #> Config...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Modules/SharePointDsc/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...