full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPSearchTopology.Tests.ps1
SharePointDsc.SPSearchTopology.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPWebAppWorkflowSettings.Tests.ps1
SharePointDsc.SPWebAppWorkflowSettings.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPBCSServiceApp.Tests.ps1
SharePointDsc.SPBCSServiceApp.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPIrmSettings.tests.ps1
SharePointDsc.SPIrmSettings.tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4693.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPManagedAccount.Tests.ps1
SharePointDsc.SPManagedAccount.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPDatabaseAAG.Tests.ps1
SharePointDsc.SPDatabaseAAG.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPUserProfileSyncConnection.Tests.ps1
SharePointDsc.SPUserProfileSyncConnection.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPUserProfileSyncService.Tests.ps1
SharePointDsc.SPUserProfileSyncService.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPInstallPrereqs.Tests.ps1
SharePointDsc.SPInstallPrereqs.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPCreateFarm.Tests.ps1
SharePointDsc.SPCreateFarm.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPUserProfileServiceApp.Tests.ps1
SharePointDsc.SPUserProfileServiceApp.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPWebAppSiteUseAndDeletion.Tests.ps1
SharePointDsc.SPWebAppSiteUseAndDeletion.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPJoinFarm.Tests.ps1
SharePointDsc.SPJoinFarm.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPSearchContentSource.Tests.ps1
SharePointDsc.SPSearchContentSource.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPInstall.Tests.ps1
SharePointDsc.SPInstall.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPAlternateUrl.Tests.ps1
SharePointDsc.SPAlternateUrl.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPSearchResultSource.Tests.ps1
SharePointDsc.SPSearchResultSource.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPDesignerSettings.Tests.ps1
SharePointDsc.SPDesignerSettings.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPQuotaTemplate.Tests.ps1
SharePointDsc.SPQuotaTemplate.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPSearchIndexPartition.Tests.ps1
SharePointDsc.SPSearchIndexPartition.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPExcelServiceApp.Tests.ps1
SharePointDsc.SPExcelServiceApp.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPServiceAppPool.Tests.ps1
SharePointDsc.SPServiceAppPool.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPDistributedCacheService.Tests.ps1
SharePointDsc.SPDistributedCacheService.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPContentDatabase.Tests.ps1
SharePointDsc.SPContentDatabase.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPShellAdmins.Tests.ps1
SharePointDsc.SPShellAdmins.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPAppManagementServiceApp.Tests.ps1
SharePointDsc.SPAppManagementServiceApp.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Unit/SharePointDsc/SharePointDsc.SPWebApplicationAppDomain.Tests.ps1
SharePointDsc.SPWebApplicationAppDomain.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentS...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPSite.Tests.ps1
SharePointDsc.SPSite.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPAppCatalog.Tests.ps1
SharePointDsc.SPAppCatalog.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPWebApplication.Tests.ps1
SharePointDsc.SPWebApplication.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPAccessServiceApp.Tests.ps1
SharePointDsc.SPAccessServiceApp.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPAntivirusSettings.Tests.ps1
SharePointDsc.SPAntivirusSettings.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPManagedAccount.Tests.ps1
SharePointDsc.SPManagedAccount.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPCreateFarm.Tests.ps1
SharePointDsc.SPCreateFarm.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPAlternateUrl.Tests.ps1
SharePointDsc.SPAlternateUrl.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPSubscriptionSettingsServiceApp.Tests.ps1
SharePointDsc.SPSubscriptionSettingsServiceApp.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPServiceAppPool.Tests.ps1
SharePointDsc.SPServiceAppPool.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/SharePointDsc/SharePointDsc.SPAppManagementServiceApp.Tests.ps1
SharePointDsc.SPAppManagementServiceApp.Tests.ps1
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidGlobalVars", "")] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingComputerNameHardcoded", "")] param() $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).P...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SharePointDsc-dev/SharePointDsc-dev/Tests/Integration/PreflightChecks/Preflight.Tests.ps1
Preflight.Tests.ps1
[CmdletBinding()]param() $ErrorActionPreference = 'stop' Set-StrictMode -Off Describe -Tags @("Preflight") "SharePointDsc Integration Tests - Preflight Check" { it "Includes all required service accounts" { $Global:SPDscIntegrationCredPool.ContainsKey("Setup") | Should Be $true $Glob...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/HelloWorld/HelloWorld.ps1
HelloWorld.ps1
function HelloWorld($name ='Pester') { return "Hello from $name" }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/HelloWorld/HelloWorld.Tests.ps1
HelloWorld.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "HelloWorld" { It "does something useful" { $true | Should Be $true } It "returns a canonical phrase"{ HelloWorld | Shoul...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/HelloWorld/test.ps1
test.ps1
function test{ Write-Host $args[0] } $testParams =@{ Name='SharePoint - 80' } test $testParams
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/SPWebApp/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/Pester1/SPWebApp/SPWebApp.Tests.ps1
SPWebApp.Tests.ps1
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\SPWebApp\Microsoft.SP.PowerShell.psm1" -Resolve) ) $RepoRoot = (Resolve-Path $PSScriptRoot\..\..\..).Path $Global:CurrentSharePointStubModule = $SharePointCmdletModule Remove-Module -Name "Microsoft.Shar...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/Get-TextFileName/Get-TextFileName.Tests.ps1
Get-TextFileName.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "Get-TextFileName" { Mock Get-ChildItem {[PSCustomObject]@{Name = 'a.txt'}} It "returns one text filel" { Get-TextFileName | Sho...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/Get-TextFileName/Get-TextFileName.ps1
Get-TextFileName.ps1
function Get-TextFileName { Get-ChildItem | Where Name -Like *.txt | Select -expand Name }
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/PublicFunction/PublicFunction.Tests.ps1
PublicFunction.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Import-Module 'C:\Pester1\PublicFunction\MyModule.psm1' InModuleScope MyModule{ Describe "Testing MyModule" { It "Tests the Private function" { Pr...
PowerShellCorpus/Github/kumarksendhi_ekmuc/Initiatives/Work on Pester/Pester1/PublicFunction/PublicFunction.ps1
PublicFunction.ps1
function PublicFunction { return $false } function PrivateFunction{ return $true }
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/felixprofile.ps1
felixprofile.ps1
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) # Load posh-git module from current directory #Import-Module Modules\posh-git # If module is installed in a default location ($env:PSModulePath), # use this instead (see about_Modules for more information): Import-Module posh-git fu...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Get-ChildItemColor.ps1
Get-ChildItemColor.ps1
function Get-ChildItemColor { <# .Synopsis Returns childitems with colors by type. From http://poshcode.org/?show=878 .Description This function wraps Get-ChildItem and tries to output the results color-coded by type: Compressed - Yellow Directories - Dark Cyan Executables - Green Text Files ...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Microsoft.PowerShell_profile.ps1
Microsoft.PowerShell_profile.ps1
Import-Module PsGet Import-Module PSUrl Import-Module PowerTab if(Test-Path ~\.last) { (Get-Content ~\.last) | set-location rm ~\.last } # Makes git diff work $env:TERM = "msys" Set-Alias subl "C:\Program Files\Sublime Text 3\sublime_text.exe" Set-Alias vim "C:\Program Files (x86)\Vim\vim74\vim....
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/TabExpansionUtil.ps1
TabExpansionUtil.ps1
# TabExpansionUtil.ps1 # # ######################### ## Private functions ######################### Function Out-DataGridView { [CmdletBinding()] param( [Parameter(Position = 0)] [String] $ReturnField , [Parameter(ValueFromPipeline = $true)] [Object[]] ...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/TabExpansionResources.ps1
TabExpansionResources.ps1
Data Resources { @{ ## Default resources setup_wizard_caption = "Launch the setup wizard to create a PowerTab configuration file and database?" setup_wizard_message = "PowerTab can be setup manually without the setup wizard." setup_wizard_choice_profile_directory = "&Profile Directory" setup...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/TabExpansion.ps1
TabExpansion.ps1
Function global:TabExpansion { param($Line, $LastWord) Invoke-TabExpansion -Line $Line -LastWord $LastWord }
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/TabExpansionLib.ps1
TabExpansionLib.ps1
# TabExpansionLib.ps1 # # ######################### ## Public functions ######################### Function Invoke-TabActivityIndicator { [CmdletBinding()] param( [Switch] $Error ) end { if ($PowerTabConfig.TabActivityIndicator) { if ("ConsoleHos...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/ConsoleLib.ps1
ConsoleLib.ps1
# ConsoleLib.ps1 # # Function Out-ConsoleList { #[CmdletBinding()] param( [Parameter(Position = 1)] [ValidateNotNull()] [String] $LastWord = '' , [Parameter(Position = 2)] [ValidateNotNull()] [String] $ReturnWord = '' ##...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/TabExpansionHandlers.ps1
TabExpansionHandlers.ps1
<######################## ## Notes - The closures in this file make the code run outside the PowerTab module's context. This avoids some problems like Get-Module only seeing the modules loaded within PowerTab, or private functions showing up from Get-Command. ########################> ###################...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/TabExpansionCore.ps1
TabExpansionCore.ps1
# TabExpansionCore.ps1 # # # .ExternalHelp TabExpansionCore-Help.xml Function Invoke-TabExpansion { [CmdletBinding()] param( [Parameter(Position = 0, Mandatory = $true)] [AllowEmptyString()] [String] $Line , [Parameter(Position = 1, Mandatory = $true...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/TabExpansionCustomLib.ps1
TabExpansionCustomLib.ps1
# Add Enum Functions [Void](Add-TabExpansion '|%' '| foreach {$_}' 'Alias') [Void](Add-TabExpansion '|?' '| where {$_}' 'Alias') [Void](Add-TabExpansion 'tqb' 'The quick brown fox jumps over the lazy dog') [Void](Add-TabExpansion 'Localhost' 'Localhost' 'Computer') # Help Shortcuts [Void](Add-TabExpansion 'h'...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/Handlers/PSClientManager.ps1
PSClientManager.ps1
## PSClientManager $ClientFeatureHandler = { param($Context, [ref]$TabExpansionHasOutput) $Argument = $Context.Argument switch -exact ($Context.Parameter) { 'Name' { $TabExpansionHasOutput.Value = $true Get-ClientFeature "$Argument*" | Select-Object -ExpandProperty N...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/Handlers/Robocopy.ps1
Robocopy.ps1
## Robocopy & { Register-TabExpansion "robocopy.exe" -Type "Command" { param($Context, [ref]$TabExpansionHasOutput) $Argument = $Context.Argument switch -exact ($Context.Parameter) { 'Options' { $TabExpansionHasOutput.Value = $true if ($Arg...
PowerShellCorpus/Github/felixpalazuelos_WindowsPowerShell/Modules/PowerTab/Handlers/Utilities.ps1
Utilities.ps1
## netsh & { Register-TabExpansion netsh.exe -Type Command { param($Context, [ref]$TabExpansionHasOutput) $Argument = $Context.Argument switch -exact ($Context.Parameter) { 'r' { $TabExpansionHasOutput.Value = $true Get-TabExpansion "$Arg...
PowerShellCorpus/Github/PatrykMilewski_sqlcmdBackupTool/sqlcmdBackup.ps1
sqlcmdBackup.ps1
<# .SYNOPSIS This script is executer of sqlcmd.exe program with custom arguements. It's mainly designed for creating database copies back to 1 week + monthly copy, that is untouchable. It also compress backup with 7zip program (it may be changed, by sending different arguments .PARAMETER baseName Name of base...
PowerShellCorpus/Github/techthoughts2_2012R2HyperVHotfixes/hotfixes.ps1
hotfixes.ps1
<# .Synopsis Expand-ZipFile will extract zip files to the specified location .DESCRIPTION Expand-ZipFile will extract a zip file and put the extracted contents in the specified location. #> function Expand-ZipFile { #.Synopsis # Expand a zip file, ensuring it's contents go to a single folder ... [Cmd...
PowerShellCorpus/Github/scsomervill_VUU-PowerShell/UserModule/Get-ExchangeServer.ps1
Get-ExchangeServer.ps1
# Function Get-ExchangeServers # Written by Seth Somervill # Date 5-24-17 <# .Synopsis Returns all exchange servers in a Domain .DESCRIPTION Get-ExchangeServers will load the Active Directory module, if not already loaded, and find all the Microsoft Exchange Servers in the Domain. If the Active Dire...
PowerShellCorpus/Github/scsomervill_VUU-PowerShell/UserModule/Select-DataStore.ps1
Select-DataStore.ps1
function Select-DataStore { Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing $form = New-Object System.Windows.Forms.Form $form.Text = "Select a Computer" $form.Size = New-Object System.Drawing.Size(300,200) $form.StartPosition = "CenterScreen" ...
PowerShellCorpus/Github/scsomervill_VUU-PowerShell/UserModule/Get-FileName.ps1
Get-FileName.ps1
Function Get-FileName($initialDirectory) { [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null $OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog $OpenFileDialog.initialDirectory = $initialDirectory #$OpenFileDialog.filter = "CSV (*.csv)| *.csv" $OpenFile...
PowerShellCorpus/Github/scsomervill_VUU-PowerShell/UserModule/Test-User.ps1
Test-User.ps1
<# .Synopsis Check to see if a username already exists in a Domain .DESCRIPTION Long description .EXAMPLE Test that returns true PS C:\Windows\system32> Test-User scsomervill True .EXAMPLE Test that returns false PS C:\Windows\system32> test-user abcd123 False #> function Test-Us...
PowerShellCorpus/Github/scsomervill_VUU-PowerShell/UserModule/Select-ADOrganizationalUnit.ps1
Select-ADOrganizationalUnit.ps1
function Select-ADOrganizationalUnit { #======================================================================== # Code Generated By: SAPIEN Technologies, Inc., PowerShell Studio 2012 v3.1.24 # Generated On: 29-10-2013 13:45 # Generated By: Michaja van der Zouwen # Organization: - #======...
PowerShellCorpus/Github/scsomervill_VUU-PowerShell/UserModule/New-ExchangeSession.ps1
New-ExchangeSession.ps1
<# .Synopsis Create a new exchange session .DESCRIPTION Long description .EXAMPLE Example of how to use this cmdlet .EXAMPLE Another example of how to use this cmdlet #> function New-ExchangeSession { [CmdletBinding()] [Alias()] [OutputType([int])] Param ( # Para...
PowerShellCorpus/Github/cristianrm11_PluralsightFollowUp/GenericsCovariance-Contravariance/packages/EntityFramework.6.1.3/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/cristianrm11_PluralsightFollowUp/GenericsCovariance-Contravariance/packages/EntityFramework.6.1.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/lydiakim97_EMOJR-ASP/src/EMOJR/Properties/PublishProfiles/EMOJR1234-publish.ps1
EMOJR1234-publish.ps1
[cmdletbinding(SupportsShouldProcess=$true)] param($publishProperties=@{}, $packOutput, $pubProfilePath) # to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327 try{ if ($publishProperties['ProjectGuid'] -eq $null){ $publishProperties['ProjectGuid'] = '536da94d-ee04-4e7...
PowerShellCorpus/Github/edvineshagh_New-ScVsProj/New-VsScProj.ps1
New-VsScProj.ps1
################################################################################ ################################################################################ # Author: Edvin Eshagh # # Date: 3/19/2015 # # Purpose: Create a visual studio project that is inclusive of all Sitecore # files so that S...
PowerShellCorpus/Github/krasniypauk_ps_nicinfo/nicinfo.ps1
nicinfo.ps1
# Скрипт: "Nicinfo" # Версия: 1.0 # Автор: Красный паук # Описание: Выводит поочередно сетевые настройки адаптеров из списка компьютеров, указанных в файле computers.txt # Для успешной работы скрипта необходимо создать на рабочем столе файл computers.txt и указать там имена хостов (не IP-адреса!!!). $user = $env:...
PowerShellCorpus/Github/cezarypiatek_CodePresenter/src/CalculateMetrics.ps1
CalculateMetrics.ps1
[CmdletBinding()] param([Parameter(Mandatory=$true)]$CheckoutDir, $OutputFile=".\index.html") $scriptPath = if($PSScriptRoot -eq $null){"."} else {$PSScriptRoot} function Create-Node($Name) { @{name=$Name} } function AddTo-ObjectTree($Root, $Element) { foreach($child in $Root.Children) { ...
PowerShellCorpus/Github/daveyb_InitProfile/InitProfile.Tests.ps1
InitProfile.Tests.ps1
$here = Split-Path -Parent $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' . "$here\$sut" Describe "Main" { Context "Init with no args" { Mock Main {} -Verifiable $result = Main It "Creates a new $Profile.CurrentUserC...
PowerShellCorpus/Github/daveyb_InitProfile/InitProfile.ps1
InitProfile.ps1
<# InitProfile.ps1 Creates a new PowerShell profile if one doesn't exist #> [CmdletBinding()] param ( [string[]]$Types = "CurrentUserCurrentHost" ) function Main() { param ( [Parameter(Mandatory=$true)] [string[]]$Types ) ForEach ($Type in $Types) { ...
PowerShellCorpus/Github/eric72871_MovieSearcher/packages/jQuery.2.0.3/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/eric72871_MovieSearcher/packages/jQuery.2.0.3/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/eric72871_MovieSearcher/packages/jQuery.2.0.3/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/eric72871_MovieSearcher/packages/Newtonsoft.Json.7.0.1/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # open json.net splash page on package install # don't open if json.net is installed as a dependency try { $url = "http://www.newtonsoft.com/json/install?version=" + $package.Version $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindo...
PowerShellCorpus/Github/eric72871_MovieSearcher/packages/EntityFramework.6.0.0-rc1/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/eric72871_MovieSearcher/packages/EntityFramework.6.0.0-rc1/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/eric72871_MovieSearcher/packages/Microsoft.Bcl.Build.1.0.14/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=ne...
PowerShellCorpus/Github/eric72871_MovieSearcher/packages/Microsoft.Bcl.Build.1.0.14/tools/Uninstall.ps1
Uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project # Normalize project path before calli...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/jQuery.2.1.3/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Determine the file paths $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName if (Test-Path $projectIntelliSense...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/jQuery.2.1.3/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # VS 11 and above supports the new intellisense JS files $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/jQuery.2.1.3/Tools/common.ps1
common.ps1
function Get-Checksum($file) { $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider" $fileInfo = Get-Item $file trap { ; continue } $stream = $fileInfo.OpenRead() if ($? -eq $false) { # Couldn't open file for reading return $null } $bytes = $...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/WebGrease.1.5.2/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Visual Studio execution done via NuGet Package Manager Function VSExecution($toolsPath, $project) { $project.DTE.ExecuteCommand("File.SaveAll", [system.string]::Empty) # Get the msbuild version of the project and add the import $msbuild = [Microsof...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/WebGrease.1.5.2/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) # Return a relative path with reference to root as Uri object # $rootPath - root path # $relativePath - relative path # $appendToRelativePath - Optional parameter. If provided will be appended to relative Path using Path.Combine() Function GetRelativeUri($root...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/jQuery.UI.Combined.1.11.4/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx
PowerShellCorpus/Github/lsiteware_prova/SW/packages/jQuery.UI.Combined.1.11.4/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $juiFileNameRegEx ...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/jQuery.UI.Combined.1.11.4/Tools/common.ps1
common.ps1
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProject...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/EntityFramework.6.1.3/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/EntityFramework.6.1.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Initialize-EFConfiguration $project Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' Write-Host Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/AutoMapper.3.3.1/tools/wp8/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/AutoMapper.3.3.1/tools/wp8/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/AutoMapper.3.3.1/tools/sl5/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/lsiteware_prova/SW/packages/AutoMapper.3.3.1/tools/sl5/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...