full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/BrandonRoyal_build_demo/part1/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) $compilerPackageName = 'Microsoft.Net.Compilers' $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $libDirectory = Join-Path $installPath 'lib\net45' $projectRoot = $project.Properties.Item('FullPath').Value $binDirectory...
PowerShellCorpus/Github/justin-brazil_Get-QSyncDirectory/Get-QSyncDirectory.ps1
Get-QSyncDirectory.ps1
#####################SCRIPT_CONTROLS## #!#Name: FUNCTION: Get-QSyncDirectory #!#Author: Justin Brazil #!#Description: Targets the QNAP QSync NAS Client Utility. Provides local path to specified QNAP QSync directories,\ allowing them to be programmatically referenced regardless of their location. #!#Tags: QNAP...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.Packaging.3.3.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) $global:EPiServerPackagingScripts = Join-Path $toolsPath "Modules" $projectPath = Split-Path -Parent $project.FullName Import-Module (Join-Path $toolsPath "Modules\Install.psm1") Update-EPiServerSite $installPath $toolsPath $projectPath Remove-Module...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.Packaging.3.3.0/tools/Init.ps1
Init.ps1
param($installPath, $toolsPath, $package) $global:EPiServerPackagingScripts = Join-Path $toolsPath "Modules" # expose the Move-EPiServerProtectedModules cmdlet Import-Module (Join-Path $toolsPath "Modules\Init.psm1") VerifyProtectedModulePath # SIG # Begin signature block # MIIXnAYJKoZIhvcNAQcCoIIXjTC...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.Logging.Log4Net.2.1.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) ## ## Inserts a new or updates an existing dependentAssembly element for a specified assembly ## Function AddOrUpdateBindingRedirect([System.IO.FileInfo] $file, [System.Xml.XmlElement[]] $assemblyConfigs, [System.Xml.XmlDocument] $config) { $name = [System...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.Search.8.1.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Write-Host 'Importing Search.psm1' import-Module (join-path $toolsPath "Search.psm1") Add-EPiBindingRedirect $installPath $project Set-EPiBaseUri $project # SIG # Begin signature block # MIIXpAYJKoZIhvcNAQcCoIIXlTCCF5ECAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/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/pmo022_EPiServer-Training/EpiserverSiteSearch/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/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.CMS.UI.Core.10.0.2/tools/Install.ps1
Install.ps1
param ($installPath, $toolsPath, $package, $project) Import-Module (Join-Path $toolsPath "Get-ProtectedModulesPath.psm1") Import-Module (Join-Path $toolsPath "Get-WebConfig.psm1") Import-Module (Join-Path $toolsPath "Remove-Assembly.psm1") Import-Module (Join-Path $toolsPath "Update-PackagesConfig.psm1") Import-...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.CMS.Core.10.1.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) $fxPackage = Get-package | where-object { $_.id -eq "EPiServer.Framework"} | Sort-Object -Property Version -Descending | select-object -first 1 $cmsPackage = Get-package | where-object { $_.id -eq "EPiServer.Core"} | Sort-Object -Property Version -Descending| sele...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.CMS.Core.10.1.0/tools/AssemblyRedirects.ps1
AssemblyRedirects.ps1
param($installPath, $toolsPath, $package, $project) ## ## Inserts a new or updates an existing dependentAssembly element for a specified assembly ## Function AddOrUpdateBindingRedirect([System.IO.FileInfo] $file, [System.Xml.XmlElement[]] $assemblyConfigs, [System.Xml.XmlDocument] $config) { $name = [System...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EntityFramework.6.1.0/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/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EntityFramework.6.1.0/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/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/Newtonsoft.Json.6.0.8/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://james.newtonking.com/json/install?version=" + $package.Version $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWin...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.Framework.10.1.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) Import-Module (join-path $toolsPath "upgrade.psm1") -ArgumentList $installPath Import-Module (join-path $toolsPath "ConvertDatabaseToUtc.psm1") # SIG # Begin signature block # MIIXpAYJKoZIhvcNAQcCoIIXlTCCF5ECAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCi...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.Framework.10.1.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) ## ## Inserts a new or updates an existing dependentAssembly element for a specified assembly ## Function AddOrUpdateBindingRedirect([System.IO.FileInfo] $file, [System.Xml.XmlElement[]] $assemblyConfigs, [System.Xml.XmlDocument] $config) { $name = [System...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.CMS.10.1.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) #import Module Import-Module (Join-Path (join-path $installPath "tools") EPiServer.Cms.psm1) $projectFilePath = Get-ChildItem $project.Fullname $sitePath = $projectFilePath.Directory.FullName $WebConfigFile = GetWebConfigPath $sitePath $epiConnection...
PowerShellCorpus/Github/pmo022_EPiServer-Training/EpiserverSiteSearch/packages/EPiServer.CMS.UI.AspNetIdentity.10.0.2/tools/install.ps1
install.ps1
param ($installPath, $toolsPath, $package, $project) Import-Module (Join-Path $toolsPath "Update-AssemblyBinding.psm1") # Get the path to the current project $projectPath = Split-Path -Parent $project.FullName # Writing assembly redirect information #load the configuration file for the project $configPat...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.Packaging.3.3.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) $global:EPiServerPackagingScripts = Join-Path $toolsPath "Modules" $projectPath = Split-Path -Parent $project.FullName Import-Module (Join-Path $toolsPath "Modules\Install.psm1") Update-EPiServerSite $installPath $toolsPath $projectPath Remove-Module...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.Packaging.3.3.0/tools/Init.ps1
Init.ps1
param($installPath, $toolsPath, $package) $global:EPiServerPackagingScripts = Join-Path $toolsPath "Modules" # expose the Move-EPiServerProtectedModules cmdlet Import-Module (Join-Path $toolsPath "Modules\Init.psm1") VerifyProtectedModulePath # SIG # Begin signature block # MIIXnAYJKoZIhvcNAQcCoIIXjTC...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/jQuery.1.10.2/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/pmo022_EPiServer-Training/AlloyTraining/packages/jQuery.1.10.2/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/pmo022_EPiServer-Training/AlloyTraining/packages/jQuery.1.10.2/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/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.Logging.Log4Net.2.1.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) ## ## Inserts a new or updates an existing dependentAssembly element for a specified assembly ## Function AddOrUpdateBindingRedirect([System.IO.FileInfo] $file, [System.Xml.XmlElement[]] $assemblyConfigs, [System.Xml.XmlDocument] $config) { $name = [System...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.CMS.UI.Core.10.1.1/tools/Install.ps1
Install.ps1
param ($installPath, $toolsPath, $package, $project) Import-Module (Join-Path $toolsPath "Get-ProtectedModulesPath.psm1") Import-Module (Join-Path $toolsPath "Get-WebConfig.psm1") Import-Module (Join-Path $toolsPath "Remove-Assembly.psm1") Import-Module (Join-Path $toolsPath "Update-PackagesConfig.psm1") Import-...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EntityFramework.6.0.0/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/pmo022_EPiServer-Training/AlloyTraining/packages/EntityFramework.6.0.0/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/pmo022_EPiServer-Training/AlloyTraining/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/Modernizr.2.6.2/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 $modernizrFileName...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/Modernizr.2.6.2/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/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.Search.8.1.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) Write-Host 'Importing Search.psm1' import-Module (join-path $toolsPath "Search.psm1") Add-EPiBindingRedirect $installPath $project Set-EPiBaseUri $project # SIG # Begin signature block # MIIXpAYJKoZIhvcNAQcCoIIXlTCCF5ECAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.CMS.Core.10.1.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) $fxPackage = Get-package | where-object { $_.id -eq "EPiServer.Framework"} | Sort-Object -Property Version -Descending | select-object -first 1 $cmsPackage = Get-package | where-object { $_.id -eq "EPiServer.Core"} | Sort-Object -Property Version -Descending| sele...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.CMS.Core.10.1.0/tools/AssemblyRedirects.ps1
AssemblyRedirects.ps1
param($installPath, $toolsPath, $package, $project) ## ## Inserts a new or updates an existing dependentAssembly element for a specified assembly ## Function AddOrUpdateBindingRedirect([System.IO.FileInfo] $file, [System.Xml.XmlElement[]] $assemblyConfigs, [System.Xml.XmlDocument] $config) { $name = [System...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/Newtonsoft.Json.6.0.8/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://james.newtonking.com/json/install?version=" + $package.Version $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWin...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.Framework.10.1.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) Import-Module (join-path $toolsPath "upgrade.psm1") -ArgumentList $installPath Import-Module (join-path $toolsPath "ConvertDatabaseToUtc.psm1") # SIG # Begin signature block # MIIXpAYJKoZIhvcNAQcCoIIXlTCCF5ECAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCi...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.Framework.10.1.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) ## ## Inserts a new or updates an existing dependentAssembly element for a specified assembly ## Function AddOrUpdateBindingRedirect([System.IO.FileInfo] $file, [System.Xml.XmlElement[]] $assemblyConfigs, [System.Xml.XmlDocument] $config) { $name = [System...
PowerShellCorpus/Github/pmo022_EPiServer-Training/AlloyTraining/packages/EPiServer.CMS.10.1.0/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) #import Module Import-Module (Join-Path (join-path $installPath "tools") EPiServer.Cms.psm1) $projectFilePath = Get-ChildItem $project.Fullname $sitePath = $projectFilePath.Directory.FullName $WebConfigFile = GetWebConfigPath $sitePath $epiConnection...
PowerShellCorpus/Github/ihorHrubel_3D_Madness/3D_Madness_site/packages/jQuery.1.10.2/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/ihorHrubel_3D_Madness/3D_Madness_site/packages/jQuery.1.10.2/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/ihorHrubel_3D_Madness/3D_Madness_site/packages/jQuery.1.10.2/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/ihorHrubel_3D_Madness/3D_Madness_site/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/ihorHrubel_3D_Madness/3D_Madness_site/packages/Modernizr.2.6.2/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 $modernizrFileName...
PowerShellCorpus/Github/ihorHrubel_3D_Madness/3D_Madness_site/packages/Modernizr.2.6.2/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/ihorHrubel_3D_Madness/3D_Madness_site/packages/Microsoft.ApplicationInsights.WindowsServer.2.2.0/Tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) if ([System.IO.File]::Exists($project.FullName)) { function MarkItemASCopyToOutput($item) { Try { #mark it to copy if newer $item.Properties.Item("CopyToOutputDirectory").Value = 2 } Catch { write-host $_.Exception.ToString() }...
PowerShellCorpus/Github/ihorHrubel_3D_Madness/3D_Madness_site/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/ihorHrubel_3D_Madness/3D_Madness_site/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/ihorHrubel_3D_Madness/3D_Madness_site/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $compilerPackageName = 'Microsoft.Net.Compilers' $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $libDirectory = Join-Path $installPath 'lib\net45' $packageDirectory = Split-Path $installPath $compilerPackage = Get-Chil...
PowerShellCorpus/Github/ihorHrubel_3D_Madness/3D_Madness_site/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $projectRoot = $project.Properties.Item('FullPath').Value $binDirectory = Join-Path $projectRoot 'bin' $targetDirectory = Join-Path $binDirectory $roslynSubFolder if (Te...
PowerShellCorpus/Github/ihorHrubel_3D_Madness/3D_Madness_site/packages/Newtonsoft.Json.6.0.4/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://james.newtonking.com/json" $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindow.Caption -eq "Package Manager Con...
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_NewRepo_2017_5_27_12_58_33/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source url: ...
PowerShellCorpus/Github/LucasVera_OAuthTest/OAuthTest/packages/jQuery.1.9.1/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/LucasVera_OAuthTest/OAuthTest/packages/jQuery.1.9.1/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/LucasVera_OAuthTest/OAuthTest/packages/jQuery.1.9.1/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/LucasVera_OAuthTest/OAuthTest/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $compilerPackageName = 'Microsoft.Net.Compilers' $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $libDirectory = Join-Path $installPath 'lib\net45' $packageDirectory = Split-Path $installPath $compilerPackage = Get-Chil...
PowerShellCorpus/Github/LucasVera_OAuthTest/OAuthTest/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $projectRoot = $project.Properties.Item('FullPath').Value $binDirectory = Join-Path $projectRoot 'bin' $targetDirectory = Join-Path $binDirectory $roslynSubFolder if (Te...
PowerShellCorpus/Github/LucasVera_OAuthTest/OAuthTest/packages/Newtonsoft.Json.6.0.4/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://james.newtonking.com/json" $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindow.Caption -eq "Package Manager Con...
PowerShellCorpus/Github/OPSTest_E2E_Provision_1484816430940/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source u...
PowerShellCorpus/Github/OPSTest_E2E_Provision_1488533870155/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source u...
PowerShellCorpus/Github/camac_headless/buildnsf.ps1
buildnsf.ps1
$build_number = "%build.number%" $checkout_location = "%system.teamcity.build.checkoutDir%" Clear-Content HEADLESS0.log $args = '-RPARAMS -vmargs -Dcom.ibm.designer.cmd="true,true,HeadJenk.nsf,importandbuild,C:\Jenkins\Jobs\Headless\workspace\com.gregorbyte.headless.nsf\.project,HeadJenk.nsf"' Write-Host $...
PowerShellCorpus/Github/davidprowe_Xenapp-Perform-Action-on-User-Disconnect/PerformAction.ps1
PerformAction.ps1
#Make a published app with the command line executable: #ctxhide C:\Path\PerformAction.ps1 #Application to initially open by user: path to exe and processname as found by get-process $launch = "C:\windows\system32\notepad.exe" $procname = "notepad" #$arglist = "Arg1 Arg2 Arg3" #process to run on disconnected stat...
PowerShellCorpus/Github/dislin_YPK/Project/YPK/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) try { # Set up variables $timestamp = (Get-Date).ToString('yyyyMMddHHmmss') $projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar)) $catalogName = "aspnet-$projectNa...
PowerShellCorpus/Github/dislin_YPK/Project/YPK/packages/EntityFramework.5.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' } if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 ))) { $thisModuleManifest = 'EntityFramework.PS3.psd1' } else { $thisModuleManifest = 'EntityFramework.psd1' } $thisModule...
PowerShellCorpus/Github/dislin_YPK/Project/YPK/packages/EntityFramework.5.0.0/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project) { $appDomain = [AppDomain]::CreateDomain( 'EntityFramework.PowerShell', $null, (New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' })) ...
PowerShellCorpus/Github/dislin_YPK/Project/YPK/packages/jQuery.1.7.1.1/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/dislin_YPK/Project/YPK/packages/jQuery.1.7.1.1/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 $supportsJsIntelliSenseFile = [System.Version]::Parse($dte.Version).Major -ge 11 if (-not $supportsJsIntelliSenseFile) { Write-Host "IntelliSense JS files are n...
PowerShellCorpus/Github/dislin_YPK/Project/YPK/packages/jQuery.1.7.1.1/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/OPSTest_E2E_Provision_1484822702627/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source u...
PowerShellCorpus/Github/MSB365_OmsClientSetup.ps1/OmsClientSetup.ps1
OmsClientSetup.ps1
<# .SYNOPSIS OmsCientSetup.ps1 .DESCRIPTION This Script is downloading and installing the OMS Client Agent and the Service Map Client. During the Script you will be asked to Enter the OMS Portal credentials for your Workspace, this will be needed to register the Agent in your OMS Workspace. .PARAMETER ...
PowerShellCorpus/Github/OpenLocalizationOrg_hyperVTest.zh-tw/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1: Download buildcore script to local echo "download build core script to local with source u...
PowerShellCorpus/Github/johncwelch_windows10setup/Initial_Setup_Script.ps1
Initial_Setup_Script.ps1
###This script does a number of things under the initial local account we create ###First, it sets the script execution policy so that it can do the rest of its work ###Second, it configures the Windows Firewall to allow ping to and from the machine, IPv4 and IPv6 ###Third, it removes as much of the Dell/Intel crapw...
PowerShellCorpus/Github/johncwelch_windows10setup/Second_Setup_Script.ps1
Second_Setup_Script.ps1
###This script is the second setup script and should be run from a local admin account ###It does two things ###First, after setting the script execution policy, it adds the NWRDesktop AD group ###to the local administrator group. It should automatically ask for AD credentials as part of this if needed ###Second, ...
PowerShellCorpus/Github/nullmuse_Get-ScanKit/Get-Scankit.ps1
Get-Scankit.ps1
$ta = [PSObject].Assembly.GetType( 'System.Management.Automation.TypeAccelerators' ) $ta::Add('Marshal', [Runtime.InteropServices.Marshal]) Add-Type -Assembly "System.Net.NetworkInformation" Function Nping([String]$Target, [Int]$Count, [Int]$Ttl, [bool]$Frag, [Int]$Timeout, [String]$Data, ...
PowerShellCorpus/Github/GorovetskiyIgor_AX/CreateBuildParamsFile.ps1
CreateBuildParamsFile.ps1
Param( [string]$FileName, [string]$Version, [string]$VCSFilePath, [string]$ApplicationSourceDir, [string]$DropLocation, [string]$CompileAll, [string]$CleanupAfterBuild, [string]$CompileCIL, [string]$TFSIntegration, [string]$TFSUrl, [string]$TFSLabelPrefix, [string]$TFSWorkspace, [...
PowerShellCorpus/Github/GorovetskiyIgor_AX/Step-CompileAX.ps1
Step-CompileAX.ps1
#Load common automation library $c = . (join-path (Split-Path -Parent $MyInvocation.MyCommand.Path) "common.ps1") function Get-InputVariables ($homePath) { $script:AxBuildDir = $homePath $RunDeployParmFile = (Join-Path $AxBuildDir "DeployParameters.txt") Write-InfoLog "Input parameters" ...
PowerShellCorpus/Github/GorovetskiyIgor_AX/CreateAolcodesFile.ps1
CreateAolcodesFile.ps1
Param( [string]$FileName, [string[]]$Codes ) if ((Test-Path $FileName) -ne $false) { Remove-Item $FileName -Force } foreach ($c in $Codes) { Add-Content $FileName "$c" }
PowerShellCorpus/Github/GorovetskiyIgor_AX/Step-SynchronizeAX.ps1
Step-SynchronizeAX.ps1
#Load common automation library $c = . (join-path (Split-Path -Parent $MyInvocation.MyCommand.Path) "common.ps1") function Get-InputVariables ($homePath) { $script:AxBuildDir = $homePath $RunDeployParmFile = (Join-Path $AxBuildDir "DeployParameters.txt") Write-InfoLog "Input parameters" ...
PowerShellCorpus/Github/GorovetskiyIgor_AX/BuildAX.ps1
BuildAX.ps1
# Copyright (c) Microsoft # All rights reserved. # Microsoft Limited Public License: # This license governs use of the accompanying software. If you use the software, you # accept this license. If you do not accept the license, do not use the software. # 1. Definitions # The terms "reproduce," "reproduction," ...
PowerShellCorpus/Github/GorovetskiyIgor_AX/CreateDeployParamsFile.ps1
CreateDeployParamsFile.ps1
Param( [string]$FileName, [string]$SqlServer, [string]$SqlDatabase, [string]$SqlModelDatabase, [string]$BuildLocation, [string]$ServerBinDir, [string]$LogFolder, [string]$CompileAll, [string]$CompileCIL, [string]$AOSname, [string]$UninstallOnly, [string]$AOSNotOnDeployBox, [string...
PowerShellCorpus/Github/GorovetskiyIgor_AX/DeployAX.ps1
DeployAX.ps1
# Copyright (c) Microsoft # All rights reserved. # Microsoft Limited Public License: # This license governs use of the accompanying software. If you use the software, you # accept this license. If you do not accept the license, do not use the software. # 1. Definitions # The terms "reproduce," "reproduction," ...
PowerShellCorpus/Github/GorovetskiyIgor_AX/Step-CleanBuild.ps1
Step-CleanBuild.ps1
#Load common automation library $c = . (join-path (Split-Path -Parent $MyInvocation.MyCommand.Path) "common.ps1") function Get-InputVariables ($homePath) { $script:AxBuildDir = $homePath $RunDeployParmFile = (Join-Path $AxBuildDir "DeployParameters.txt") Write-InfoLog "Input parameters" ...
PowerShellCorpus/Github/GorovetskiyIgor_AX/Common.ps1
Common.ps1
# Copyright (c) Microsoft # All rights reserved. # Microsoft Limited Public License: # This license governs use of the accompanying software. If you use the software, you # accept this license. If you do not accept the license, do not use the software. # 1. Definitions # The terms "reproduce," "reproduction," ...
PowerShellCorpus/Github/GorovetskiyIgor_AX/Step-CleanModels.ps1
Step-CleanModels.ps1
#Load common automation library $c = . (join-path (Split-Path -Parent $MyInvocation.MyCommand.Path) "common.ps1") function Get-InputVariables ($homePath) { $script:AxBuildDir = $homePath $RunDeployParmFile = (Join-Path $AxBuildDir "DeployParameters.txt") Write-InfoLog "Input parameters" ...
PowerShellCorpus/Github/MicrosoftDocs_DocsRoot.sr-latn-rs/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1", [string]$parameters ) # Main $errorActionPreference = 'Stop' # Step-1 Download buildcore script to local echo "download build core script to local with source url: $...
PowerShellCorpus/Github/dabbank_web3-build-template-helpscripts/02_SetEnv.ps1
02_SetEnv.ps1
echo "" git version echo "" # GIT $proxy = "!!!!!!!!!INSERT HERE!!!!!!!!!!!" [Environment]::SetEnvironmentVariable("HTTP_PROXY", $proxy, "User") [Environment]::SetEnvironmentVariable("HTTPS_PROXY", $proxy, "User") git config --global http.proxy $proxy git config --global https.proxy $proxy git config...
PowerShellCorpus/Github/dabbank_web3-build-template-helpscripts/01_Install.ps1
01_Install.ps1
function askToInstall { $title = "Install Node and NPM Script" $message = "First copy 01_Install and 02_SetEnv to the folder you want node and npm to be installed. Continue?" $yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", "Install Node" $no = New-Object System.Managem...
PowerShellCorpus/Github/MSUDenverSystemsEngineering_VLC-Media-Player/Deploy-Application.ps1
Deploy-Application.ps1
<# .SYNOPSIS This script performs the installation or uninstallation of an application(s). .DESCRIPTION The script is provided as a template to perform an install or uninstall of an application(s). The script either performs an "Install" deployment type or an "Uninstall" deployment type. The install deploymen...
PowerShellCorpus/Github/MSUDenverSystemsEngineering_VLC-Media-Player/AppDeployToolkit/AppDeployToolkitExtensions.ps1
AppDeployToolkitExtensions.ps1
<# .SYNOPSIS This script is a template that allows you to extend the toolkit with your own custom functions. .DESCRIPTION The script is automatically dot-sourced by the AppDeployToolkitMain.ps1 script. .NOTES Toolkit Exit Code Ranges: 60000 - 68999: Reserved for built-in exit codes in Deploy-Applicatio...
PowerShellCorpus/Github/MSUDenverSystemsEngineering_VLC-Media-Player/AppDeployToolkit/AppDeployToolkitMain.ps1
AppDeployToolkitMain.ps1
<# .SYNOPSIS This script contains the functions and logic engine for the Deploy-Application.ps1 script. .DESCRIPTION The script can be called directly to dot-source the toolkit functions for testing, but it is usually called by the Deploy-Application.ps1 script. The script can usually be updated to the latest v...
PowerShellCorpus/Github/MSUDenverSystemsEngineering_VLC-Media-Player/AppDeployToolkit/AppDeployToolkitHelp.ps1
AppDeployToolkitHelp.ps1
<# .SYNOPSIS Displays a graphical console to browse the help for the App Deployment Toolkit functions .DESCRIPTION Displays a graphical console to browse the help for the App Deployment Toolkit functions .EXAMPLE AppDeployToolkitHelp.ps1 .NOTES .LINK http://psappdeploytoolkit.com #> ##*================...
PowerShellCorpus/Github/RiaMang_MyFirstApp/MyFirstApp/packages/jQuery.1.10.2/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/RiaMang_MyFirstApp/MyFirstApp/packages/jQuery.1.10.2/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/RiaMang_MyFirstApp/MyFirstApp/packages/jQuery.1.10.2/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/RiaMang_MyFirstApp/MyFirstApp/packages/Modernizr.2.6.2/Tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) # Update the _references.js file Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
PowerShellCorpus/Github/RiaMang_MyFirstApp/MyFirstApp/packages/Modernizr.2.6.2/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 $modernizrFileName...
PowerShellCorpus/Github/RiaMang_MyFirstApp/MyFirstApp/packages/Modernizr.2.6.2/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/RiaMang_MyFirstApp/MyFirstApp/packages/EntityFramework.6.1.1/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/RiaMang_MyFirstApp/MyFirstApp/packages/EntityFramework.6.1.1/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/RiaMang_MyFirstApp/MyFirstApp/packages/Newtonsoft.Json.6.0.4/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://james.newtonking.com/json" $dte2 = Get-Interface $dte ([EnvDTE80.DTE2]) if ($dte2.ActiveWindow.Caption -eq "Package Manager Con...
PowerShellCorpus/Github/demas_windows-setup/20_scoop_and_chocolatey.ps1
20_scoop_and_chocolatey.ps1
# install scoop & chocolatey package managers Set-ExecutionPolicy Unrestricted Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression Invoke-Expression (new-object net.webclient).downloadstring('https://get.scoop.sh') # install software # choco install tixati -y choco install...
PowerShellCorpus/Github/demas_windows-setup/10_windows_settings.ps1
10_windows_settings.ps1
########## # Win10 Initial Setup Script # Author: Disassembler <disassembler@dasm.cz> # Version: 1.7, 2016-08-15 # dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ # THIS IS A PERSONALIZED VERSION # This script leaves more MS defaults on, including MS security features. # Tweaked b...