full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/HEG-Arc_quiz/frontend/Quiz/AppPackages/Quiz_1.0.0.3_AnyCPU_Test/Add-AppDevPackage.ps1
Add-AppDevPackage.ps1
# # Add-AppxDevPackage.ps1 is a PowerShell script designed to install app # packages created by Visual Studio for developers. To run this script from # Explorer, right-click on its icon and choose "Run with PowerShell". # # Visual Studio supplies this script in the folder generated with its # "Prepare Package" c...
PowerShellCorpus/Github/DamirSemiz_Queue-system-with-business-value/QueueSystem/Properties/PublishProfiles/AcademyQuesystem - Web Deploy-publish.ps1
AcademyQuesystem - Web Deploy-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'] = '0592b82e-4bf0-42a...
PowerShellCorpus/Github/kolamo_Export-SPSiteObjects/Export-SPSiteObjects.ps1
Export-SPSiteObjects.ps1
function Export-SPObjects { param( [System.String]$siteUrl, [System.String[]]$excludeWeb, [System.String[]]$excludeList, [System.String]$exportPath ) Add-PSSnapin Microsoft.SharePoint.PowerShell $SPSite = Get-SPSite $siteUrl # Run through Webs fo...
PowerShellCorpus/Github/aaruhya_projectTransactions/PRFinance/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/aaruhya_projectTransactions/PRFinance/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/aaruhya_projectTransactions/PRFinance/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/aaruhya_projectTransactions/PRFinance/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/aaruhya_projectTransactions/PRFinance/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/aaruhya_projectTransactions/PRFinance/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/aaruhya_projectTransactions/PRFinance/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/aaruhya_projectTransactions/PRFinance/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/mateuspozzi_ValidadorCartaoCredito/ValidadorCartaoCredito/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/mateuspozzi_ValidadorCartaoCredito/ValidadorCartaoCredito/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/mateuspozzi_ValidadorCartaoCredito/ValidadorCartaoCredito/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/mateuspozzi_ValidadorCartaoCredito/ValidadorCartaoCredito/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/mateuspozzi_ValidadorCartaoCredito/ValidadorCartaoCredito/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/mateuspozzi_ValidadorCartaoCredito/ValidadorCartaoCredito/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/PhoneCatalog/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/SlavikBstu_Asp.net/Skins/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/SlavikBstu_Asp.net/Skins/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/SlavikBstu_Asp.net/Skins/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/SlavikBstu_Asp.net/AspAjax/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/SlavikBstu_Asp.net/AspAjax/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/SlavikBstu_Asp.net/AspAjax/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/SlavikBstu_Asp.net/WebService/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/SlavikBstu_Asp.net/WebService/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/SlavikBstu_Asp.net/WebService/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/ericyew_AzureHybridWorkers/Connect-RemoteDomain.ps1
Connect-RemoteDomain.ps1
<# .DESCRIPTION This runbook will connect to a trusted remote domain with a credential asset for the domain. To ensure it connects to the nearest domain, it will look for a domain controller in Active Directory Site1 first, if non found, it will look for one in Active Directory...
PowerShellCorpus/Github/ericyew_AzureHybridWorkers/Set-O365ImmutableID.ps1
Set-O365ImmutableID.ps1
<# .SYNOPSIS Set a custom attribute to an AD Object utilising the Office 365 ImmutableID .DESCRIPTION This runbook is designed to run within a domain and set a custom attribute utilising the Office 365 ImmutableID instead of the default ObjectGUID attribute. .PARAMETER Domain ...
PowerShellCorpus/Github/ericyew_AzureHybridWorkers/Template-TasksOnOtherDomain.ps1
Template-TasksOnOtherDomain.ps1
<# .DESCRIPTION This is an Azure Hybrid Worker Runbook. This is a template for other tasks, utilising Connect-RemoteDomain.ps1 runbook to: Connect to a trusted domain with a credential for the domain. It will look for a domain controller in AD Site1 first, ...
PowerShellCorpus/Github/JaminShanti_aws_powershell/CreateAMIsForAllServers.ps1
CreateAMIsForAllServers.ps1
############################################################################## ## ## Create AMIs for all Servers ## Created by Jamin Shanti ## Date : 3/9/2015 ## Version : 1.0 ############################################################################## $ErrorActionPreference = "Stop" Import-Module AWSPowe...
PowerShellCorpus/Github/JaminShanti_aws_powershell/ExportSecurityGroups_v2.ps1
ExportSecurityGroups_v2.ps1
############################################################################## ## ## dump Iam Policies ## Created by Jamin Shanti ## Date : 3/9/2015 ## Version : 1.0 ## Update: adding url check ## reference : http://techdebug.com/blog/2014/08/05/powershell-aws-and-iam-policy-retrieval/ ## copies the group and...
PowerShellCorpus/Github/duckli1_contosoads/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/duckli1_contosoads/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/duckli1_contosoads/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/duckli1_contosoads/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/duckli1_contosoads/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/duckli1_contosoads/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/duckli1_contosoads/packages/Microsoft.Web.WebJobs.Publish.1.0.2/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' $msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProjectCollection.GetLoadedProjects($project.FullName) | Select-Object -First 1 ...
PowerShellCorpus/Github/duckli1_contosoads/packages/Microsoft.Web.WebJobs.Publish.1.0.2/tools/install.ps1
install.ps1
param($installPath, $toolsPath, $package, $project) $targetsFile = [System.IO.Path]::Combine($toolsPath, 'webjobs.targets') Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' $msbuild = [Microsoft.Build.Evaluation.ProjectCollection]::GlobalProje...
PowerShellCorpus/Github/duckli1_contosoads/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/duckli1_contosoads/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/duckli1_contosoads/packages/EntityFramework.6.1.2-beta1/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 # MIIa2AYJKoZIhvcNAQcCoIIayTCCGsUCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
PowerShellCorpus/Github/duckli1_contosoads/packages/EntityFramework.6.1.2-beta1/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/duckli1_contosoads/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/duckli1_contosoads/packages/Newtonsoft.Json.6.0.3/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/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning.WebApi/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning.WebApi/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning.WebApi/_CreateNewNuGetPackage/DoNotModify/New-NuGetPackage.ps1
New-NuGetPackage.ps1
#Requires -Version 2.0 <# .SYNOPSIS Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery. .DESCRIPTION Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file. Additional parameters may be provided to also upload the ...
PowerShellCorpus/Github/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning.WebApi/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning/_CreateNewNuGetPackage/Config.ps1
Config.ps1
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Bu...
PowerShellCorpus/Github/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning/_CreateNewNuGetPackage/DoNotModify/UploadNuGetPackage.ps1
UploadNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is uploaded, modify the Config.ps1 file. # To run this script from inside Visual Studio, right-click on the "RunMeToUploadNuGetPackage.cmd" file and choose "Run". #=======================...
PowerShellCorpus/Github/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning/_CreateNewNuGetPackage/DoNotModify/New-NuGetPackage.ps1
New-NuGetPackage.ps1
#Requires -Version 2.0 <# .SYNOPSIS Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file, and optionally uploads it to a NuGet Gallery. .DESCRIPTION Creates a NuGet Package (.nupkg) file from the given Project or NuSpec file. Additional parameters may be provided to also upload the ...
PowerShellCorpus/Github/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning/_CreateNewNuGetPackage/DoNotModify/CreateNuGetPackage.ps1
CreateNuGetPackage.ps1
#========================================================== # DO NOT EDIT THIS FILE. # If you want to configure how your package is created, modify the Config.ps1 file. # # This script is ran automatically after every successful build. # This script creates a NuGet package for the current project, and places the ....
PowerShellCorpus/Github/TonyValenti_SmartSql.Versioning/src/SmartSql.Versioning.Samples.Entities/Testing.ps1
Testing.ps1
Clear-Host $Headers = @{"Content-Type" = "application/json"} $EntityName = "Original Person" $AllPeople = Invoke-RestMethod -Method Post -Uri "http://localhost:47503/api/EntityApi/List" foreach($Person in $AllPeople){ $Details = Invoke-RestMethod -Method Post -Uri "http://localhost:47503/api/Entity...
PowerShellCorpus/Github/Sanjidhalim_WindowsFingerTracker/FingerTracker/AppPackages/FingerTracker_1.0.0.0_AnyCPU_Debug_Test/Add-AppDevPackage.ps1
Add-AppDevPackage.ps1
# # Add-AppxDevPackage.ps1 is a PowerShell script designed to install app # packages created by Visual Studio for developers. To run this script from # Explorer, right-click on its icon and choose "Run with PowerShell". # # Visual Studio supplies this script in the folder generated with its # "Prepare Package" c...
PowerShellCorpus/Github/Sanjidhalim_WindowsFingerTracker/FingerTracker/AppPackages/FingerTracker_1.0.0.2_AnyCPU_Debug_Test/Add-AppDevPackage.ps1
Add-AppDevPackage.ps1
# # Add-AppxDevPackage.ps1 is a PowerShell script designed to install app # packages created by Visual Studio for developers. To run this script from # Explorer, right-click on its icon and choose "Run with PowerShell". # # Visual Studio supplies this script in the folder generated with its # "Prepare Package" c...
PowerShellCorpus/Github/Sanjidhalim_WindowsFingerTracker/FingerTracker/AppPackages/FingerTracker_1.0.0.1_AnyCPU_Debug_Test/Add-AppDevPackage.ps1
Add-AppDevPackage.ps1
# # Add-AppxDevPackage.ps1 is a PowerShell script designed to install app # packages created by Visual Studio for developers. To run this script from # Explorer, right-click on its icon and choose "Run with PowerShell". # # Visual Studio supplies this script in the folder generated with its # "Prepare Package" c...
PowerShellCorpus/Github/mtraatabladaa94_Software-Biblioteca/Prestamos/Desarrollo y Codificaciвn/Biblioteca/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/mtraatabladaa94_Software-Biblioteca/Prestamos/Desarrollo y Codificaciвn/Biblioteca/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/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/process.ps1
process.ps1
#################################### #user preferences #################################### <# Specify the BaseNames of javascript files to minify eg @('bigfont') #> $arrTargetJavascriptFiles = @('bigfont'); <# Specify the BaseNames of less files to compile eg @('bootstrap', 'responsive', 'bigfont')...
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/sandbox.ps1
sandbox.ps1
#################################### #setup user preferences #################################### <# Optional. If set allows you to specify the javascript files to minify. eg @('bootstrap', 'bigfont') #> $arrTargetJavascriptFiles = @(); <# Optional. If set allows you to specify the less files to comp...
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/modules/image/Add-CropFilter.ps1
Add-CropFilter.ps1
#requires -version 2.0 function Add-CropFilter { <# .Synopsis Adds a Crop Filter to a list of filters, or creates a new filter .Description Adds a Crop Filter to a list of filters, or creates a new filter .Example $image = Get-Image .\Try.jpg ...
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/modules/image/Get-Image.ps1
Get-Image.ps1
#requires -version 2.0 function Get-Image { <# .Synopsis Returns an image object for a file .Description Uses the Windows Image Acquisition COM object to get image data .Example Get-ChildItem $env:UserProfile\Pictures -Recurse | Get-Image ...
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/modules/image/Set-ImageFilter.ps1
Set-ImageFilter.ps1
#requires -version 2.0 function Set-ImageFilter { <# .Synopsis Applies an image filter to one or more images .Description Applies an Windows Image Acquisition filter to one or more Windows Image Acquisition images .Example $image = Get-Image .\Try....
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/modules/image/Add-RotateFlipFilter.ps1
Add-RotateFlipFilter.ps1
#requires -version 2.0 function Add-RotateFlipFilter { <# .Synopsis Adds a Rotate Filter to a list of filters, or creates a new filter .Description Adds a Rotate Filter to a list of filters, or creates a new filter .Example $image = Get-Image ....
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/modules/image/Add-OverlayFilter.ps1
Add-OverlayFilter.ps1
#requires -version 2.0 function Add-OverlayFilter { <# .Synopsis Adds an Overlay Filter to a list of filters, or creates a new filter .Description Adds an Overlay Filter to a list of filters, or creates a new filter .Example $image = Get-Image ...
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/modules/image/Add-ScaleFilter.ps1
Add-ScaleFilter.ps1
#requires -version 2.0 function Add-ScaleFilter { <# .Synopsis Adds a Scale Filter to a list of filters, or creates a new filter .Description Adds a Scale Filter to a list of filters, or creates a new filter .Example $image = Get-Image .\Try.j...
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/modules/image/ConvertTo-Jpeg.ps1
ConvertTo-Jpeg.ps1
function ConvertTo-Jpeg { param( [Parameter(ValueFromPipeline=$true)] $image, [ValidateRange(1,100)] [int]$quality = 100 ) process { if (-not $image.Loadfile -and -not $image.Fullname) { return } $realItem = Get-Item -ErrorAction SilentlyConti...
PowerShellCorpus/Github/bigfont_GeneralResources/assetsOptimizer/assetsOptimizer-Process-v.20130610-1/modules/image/Example/FilterImagesInDirectory.ps1
FilterImagesInDirectory.ps1
dir *.jpg | Get-Random | Get-image | ForEach-Object { $image = $_ $filter = Add-ScaleFilter -width 1000 -height 1000 -passThru | Add-CropFilter -top 200 -left 200 -bottom 10 -right 10 -passThru | Add-RotateFlipFilter -angle 90 -passThru $image = $i...
PowerShellCorpus/Github/michalkarpierz_NPOI_demo/NPOIDemoApp/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/michalkarpierz_NPOI_demo/NPOIDemoApp/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/dgpt_GCMIS_scripts2/get-user.ps1
get-user.ps1
import-module activedirectory write-host $args[0] foreach ($a in $args) { $a = ($a).ToString("000000") get-aduser -server tuner.retail.guitarcenter.com -filter {samaccountname -like $a} }
PowerShellCorpus/Github/dgpt_GCMIS_scripts2/ls-tc.ps1
ls-tc.ps1
import-module activedirectory $server = "tuner.retail.guitarcenter.com" $delim = "-" foreach ($a in $args) { if (!($a.Contains($delim))) { $message = "`r`nArgument " + $a + " is not formatted correctly. `r`nPlease use the format xxx" + $delim + "yy, `r`nwhere x is the store number and y is the term...
PowerShellCorpus/Github/dgpt_GCMIS_scripts2/pigs.ps1
pigs.ps1
$a = 0 $b = 1 workflow pigs { Parallel { $a += $b $b += 1 write-host $a $b } }
PowerShellCorpus/Github/dgpt_GCMIS_scripts2/mv-tc.ps1
mv-tc.ps1
import-module activedirectory $servers = @("tuner.retail.guitarcenter.com", "hammer.retail.guitarcenter.com") $target = "OU=ThinClients,OU=Computers,OU=Guitar Center,DC=retail,DC=guitarcenter,DC=com" $delim = "-" foreach ($a in $args) { if (!($a.Contains($delim))) { $message = "`r`nArgument " + $a...
PowerShellCorpus/Github/dgpt_GCMIS_scripts2/rm-tc.ps1
rm-tc.ps1
import-module activedirectory $servers = @("tuner.retail.guitarcenter.com", "hammer.retail.guitarcenter.com") $delim = "-" foreach ($a in $args) { if (!($a.Contains($delim))) { $message = "`r`nArgument " + $a + " is not formatted correctly. `r`nPlease use the format xxx" + $delim + "yy, `r`nwhere...
PowerShellCorpus/Github/dgpt_GCMIS_scripts2/replace-text.ps1
replace-text.ps1
$file = $args[0] $original = $args[1] $new = $args[2] $in = Get-Content $file $in | foreach {$_ -replace $original, $new } | out-file $file
PowerShellCorpus/Github/sp1ndl3r_Artifacts/Disks/addDataDisk.ps1
addDataDisk.ps1
Add-AzureDataDisk -ImportFrom -MediaLocation ` "https://msdtlvm1614029072.blob.core.windows.net/vhds/disk-1.vhd" ` -DiskLabel "D" -LUN 1 ` Add-AzureDataDisk -ImportFrom -MediaLocation ` "https://msdtlvm1614029072.blob.core.windows.net/vhds/disk-2.vhd" ` -DiskLabel "L" -LUN 2 `
PowerShellCorpus/Github/sp1ndl3r_Artifacts/Disks/copy.ps1
copy.ps1
Function Get-RedirectedUrl { Param ( [Parameter(Mandatory=$true)] [String]$URL ) $request = [System.Net.WebRequest]::Create($url) $request.AllowAutoRedirect=$false $response=$request.GetResponse() If ($response.StatusCode -eq "Found") { $response.GetR...
PowerShellCorpus/Github/matthewrwilton_powershell-scripts/git-pull-and-rebase.ps1
git-pull-and-rebase.ps1
function git-pull-and-rebase([Parameter(Mandatory=$true)]$branch, [switch]$i) { git branch | select-string -pattern "\* " | ForEach-Object { $_.ToString().TrimStart("* ") } | ForEach-Object { git checkout $branch git pull origin $branch git checkout $_ if ($i) { git rebase $branch -i ...
PowerShellCorpus/Github/matthewrwilton_powershell-scripts/git-update-repos.ps1
git-update-repos.ps1
function git-update-repos { $reposJson = '[ { "name": "Repo1", "directory": "/repos/repo1", "branches": ["master"] }, { "name": "Repo2", "directory": "/repos/repo2", "branches": ["master"] } ]' Push-Location $repos = ConvertFrom-Json $reposJson foreach ($repo in $repos) ...
PowerShellCorpus/Github/matthewrwilton_powershell-scripts/kill-iis-express.ps1
kill-iis-express.ps1
function kill-iis-express() { taskkill /IM iisexpress.exe }
PowerShellCorpus/Github/matthewrwilton_powershell-scripts/git-rm-origs.ps1
git-rm-origs.ps1
function git-rm-origs([switch]$Confirm) { git status -su | select-string -pattern "\.orig$" | ForEach-Object { $_.ToString().TrimStart("?? ") } | ForEach-Object { if ($i) { rm $_ -Confirm } else { rm $_ } } }
PowerShellCorpus/Github/jsntcy_jsntcyRepo0401015139/.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/christofvg_CommonFiles/PowerShell-Template.ps1
PowerShell-Template.ps1
<# .NOTES Created with: <enter the title of the project> Creation Date: <enter the filename> Created by: <author> Filename: <filename> .SYNOPSIS A brief description of the function or script. This keyword can be used only once in each topic. .DESCRIPTION A ...
PowerShellCorpus/Github/niravhjoshi_GravDBAuto/LatestFiles.ps1
LatestFiles.ps1
#Drop Al Databases " ##################################################### Droping all App related DB hope you have made backup ##################################################### " &cmd /c "mysql --user=root --password=gravitant mysql < DropAllDB.SQL" #Crete all DB Schema " ################################...
PowerShellCorpus/Github/niravhjoshi_GravDBAuto/JbossDB.ps1
JbossDB.ps1
# get javaw process $jboss = Get-Process javaw -ErrorAction SilentlyContinue $a = new-object -comobject wscript.shell write $jboss if ($jboss) { $intAnswer = $a.popup("Do you want to Stop Java Jboss Process It is recomended to Stop Jboss before you start import of DB?",0,"Jboss is running !!!!"...
PowerShellCorpus/Github/pandaoncloud_windows/add_to_domain.ps1
add_to_domain.ps1
############################################################################################# #Version: V0.1 #Date : 21/01/2015 #Description: Windows Powershell script that changes the Computer Name of a new EC2 instance # by reading a list of already used names in the domain from aws s3 and adds # the sy...