full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/sl-NZ_Old_Scripts/getMailboxFolderStats.ps1 | getMailboxFolderStats.ps1 | #Get List of Mailbox Folders
Get-MailboxFolderStatistics -Identity architects@amchinarchitects.co.nz -Recurse |export-csv -path "C:\temp\Anna-Marie\Project-Filing-27-03-217.csv"
|
PowerShellCorpus/Github/sl-NZ_Old_Scripts/Update-Reboot-If-Required.ps1 | Update-Reboot-If-Required.ps1 | #Define update criteria.
$Criteria = "IsInstalled=0 and Type='Software'"
#Search for relevant updates.
$Searcher = New-Object -ComObject Microsoft.Update.Searcher
$SearchResult = $Searcher.Search($Criteria).Updates
#Download updates.
$Session = New-Object -ComObject Microsoft.Update.Session
$Do... |
PowerShellCorpus/Github/sl-NZ_Old_Scripts/Exchange-MailboxMonitor.ps1 | Exchange-MailboxMonitor.ps1 | param($mailboxName = "name@contoso.com",
$smtpServerName = "smtp.server.com",
$emailFrom = "name@contoso.com",
$emailTo = "name@contoso.com"
)
# Load the EWS Managed API
Add-Type -Path "C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll"
try {
$Exchange2007SP1 = [Mic... |
PowerShellCorpus/Github/sl-NZ_Old_Scripts/ExchangeGetDistGroupByUser.ps1 | ExchangeGetDistGroupByUser.ps1 | foreach ($group in Get-DistributionGroup) { get-distributiongroupmember $group | ft @{expression={$_.displayname};Label=”$group”}} |
PowerShellCorpus/Github/sl-NZ_Old_Scripts/Connect-Office365.ps1 | Connect-Office365.ps1 | #Connect to Office 365
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
|
PowerShellCorpus/Github/sl-NZ_Old_Scripts/Office365-RetrieveMailboxSize.ps1 | Office365-RetrieveMailboxSize.ps1 | <#
When we want to know the total storage of all the mailboxes we have in Office 365, we are encouraged to use PowerShell and Exchange Online cmdlets.
Before we get to the state where we can run scripts against our Exchange Online we have used the scripts to do so.
#>
#Connect to Office 365
$credential = Get-Cr... |
PowerShellCorpus/Github/sl-NZ_Old_Scripts/List-365-Mailbox-Aliases.ps1 | List-365-Mailbox-Aliases.ps1 | # List all Office 365 Mailboxes
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session
Get-Mailbox | Select-Object DisplayName,@{Name=”Email... |
PowerShellCorpus/Github/sl-NZ_Old_Scripts/SiteContentRetrieve.ps1 | SiteContentRetrieve.ps1 | [regex] $regex ='\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+'
$siteContent = Invoke-RestMethod -Uri http://www.medtechglobal.com/nz/support-nz/certified-engineers-nz/
$regex.Matches($siteContent) | foreach-object {$_.Value} | Out-File c:\temp\medtechcontacts.txt
|
PowerShellCorpus/Github/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/rabigado_SportMangmentSystem/SportsClubManger/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/mboyle84_WindowsVagrantScripts/install-CustomMSI.ps1 | install-CustomMSI.ps1 | $fromfile1 = "http://website.net/file.zip"
$tofile1 = "C:\tmp\file.zip"
$zippath = "C:\tmp"
$zipname = "file.zip"
$logfile= "C:\tmp\Softwarelog.txt"
$unzippath = "C:\tmp\Software"
$installfile="C:\tmp\Software\zippedfolder\Setup.exe"
function unzip($fileName, $sourcePath, $destinationPath)
{
$shell = n... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-Desktop.ps1 | install-Desktop.ps1 | #remove unwanted icons
Write-Host -Object "removing all existing icons from desktop";
#Remove-Item C:\Users\vagrant\Desktop\*lnk -Force
#echo All
Remove-Item C:\Users\Public\Desktop\*lnk -Force
echo All
|
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-TestingFrameWork.ps1 | install-TestingFrameWork.ps1 | $fromfile1 = "http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.5.3/jython-installer-2.5.3.jar"
$fromfile2 = "https://bootstrap.pypa.io/get-pip.py"
$fromfile3 = "https://launchpad.net/sikuli/sikulix/x1.0-rc3/+download/Sikuli-X-1.0rc3%20%28r905%29-win32.exe"
$fromfile4= "http://the.earth.li... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-puppet-modules.ps1 | install-puppet-modules.ps1 | $pfx = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
$certPath = "C:\vagrant\GeoTrust_Global_CA.pfx"
#$pfxPass = read-host "Password" -assecurestring
$pfx.import($certPath,$pfxPass,"Exportable,PersistKeySet")
$store = new-object System.Security.Cryptography.X509Certificates.X509Store(... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-SQL2012Express.ps1 | install-SQL2012Express.ps1 | $fromfile1 = "http://download.microsoft.com/download/8/D/D/8DD7BDBA-CEF7-4D8E-8C16-D9F69527F909/ENU/x64/SQLEXPRWT_x64_ENU.exe"
$tofile1 = "C:\tmp\SQLEXPRWT_x64_ENU.exe"
$sqlcmd = "C:\tmp\SQL\setup.exe"
$taskimport = "C:\vagrant\installSQL2012.xml"
$taskname = "installSQL2012"
$hostname = $env:computername
$inst... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-puppet.ps1 | install-puppet.ps1 | $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-3.7.1.msi"
$PuppetInstallerPath = 'c:\vagrantshared\resources\installers'
$PuppetInstallerFile = 'puppet.msi'
if ([System.IntPtr]::Size -eq 8) {
Write-Host "Going to Puppet 64-bit."
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-3.7.1-x64.m... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-SQL2008Express.ps1 | install-SQL2008Express.ps1 | $fromfile1 = "http://download.microsoft.com/download/0/4/B/04BE03CD-EAF3-4797-9D8D-2E08E316C998/SQLEXPRWT_x64_ENU.exe"
$tofile1 = "C:\tmp\SQLEXPRWT_x64_ENU.exe"
$sqlcmd = "C:\tmp\SQL\setup.exe"
$arguments = ' /q /ACTION=Install /FEATURES=SQLENGINE /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /SQL... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-WarehouseDatabase.ps1 | install-WarehouseDatabase.ps1 | $fromfile1 = "http://modusmed.com/images/downloads/QUASAR_eQA_Software.zip"
$tofile1 = "C:\tmp\QUASAR_eQA_Software.zip"
$zippath = "C:\tmp"
$zipname = "QUASAR_eQA_Software.zip"
$unzippath = "C:\tmp\eQA"
$logfile= "C:\tmp\WarehouseDatabaselog.txt"
$installfile="C:\tmp\eQA\eQA 2.1\Database\warehouse.2.1.0.setup.e... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-chocolatey.ps1 | install-chocolatey.ps1 | # ==============================================================================
#
# Fervent Coder Copyright 2011 - Present - Released under the Apache 2.0 License
#
# Copyright 2007-2008 The Apache Software Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# th... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/install-CustomLicensing.ps1 | install-CustomLicensing.ps1 | #license file locaiton in vagrant sync folder
$macdescription = Get-WmiObject win32_networkadapterconfiguration | select description, macaddress|where-object {$_.description -eq 'Intel(R) PRO/1000 MT Desktop Adapter'}
$TestingMac="08:00:27:89:C5:7A"
$User1Mac="08:00:27:89:C5:7B"
$User2Mac="08:00:27:89:C5:7C"
$Us... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/setchromedefault.ps1 | setchromedefault.ps1 | $chromePath = "${Env:ProgramFiles(x86)}\Google\Chrome\Application\"
$chromeApp = "chrome.exe"
$chromeCommandArgs = "--make-default-browser"
$chromeCommandArgs2 = "--homepage http://google.com --silent-launch"
Write-Host "set chrome to default browser"
& "$chromePath$chromeApp" $chromeCommandArgs
Write-Host "set... |
PowerShellCorpus/Github/mboyle84_WindowsVagrantScripts/Testing/Test.ps1 | Test.ps1 | $logfile="C:\tmp\SikuliCopy.txt"
$logfile2="C:\tmp\Testing\Test.sikuli\TestResults.txt"
$TestFolder="C:\tmp\Testing"
$Testing="C:\vagrant\Testing"
$Images="C:\vagrant\Images\"
$ImagesD="C:\tmp\Images\"
Write-Host -Object "Beginning Testing Setup";
echo D|xcopy $Testing $TestFolder /E >> $logfile
echo D|xcopy $I... |
PowerShellCorpus/Github/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/nicholpereira_Project2Nichol156130App/Project2Nichol156130/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/Belbrion_PowerShell/roaming_profile.ps1 | roaming_profile.ps1 | set-alias np c:\windows\notepad.exe
function dotdot {
cd ..
}
set-alias .. dotdot
function dotdotdot {
cd "..\.."
}
set-alias ... dotdotdot
function dotdotdotdot {
cd "..\..\.."
}
set-alias .... dotdotdotdot
function goroot {
cd $PSScriptRoot
}
set-alias root goroot
root
... |
PowerShellCorpus/Github/alfredo-falcone_locadora/EntityFramework/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/alfredo-falcone_locadora/EntityFramework/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/alfredo-falcone_locadora/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/alfredo-falcone_locadora/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/packages/jQuery.UI.Combined.1.8.24/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/packages/jQuery.UI.Combined.1.8.24/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/packages/jQuery.UI.Combined.1.8.24/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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/packages/jQuery.1.8.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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/packages/jQuery.1.8.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/adamlarssonftw_Infostruktur_grupp3/IIProjectWork/packages/jQuery.1.8.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/prprhyt_PythonSeleniumIEDriverSetup/PythonIEDriverInstall.ps1 | PythonIEDriverInstall.ps1 | $mypath =Split-Path ( & { $myInvocation.ScriptName } ) -parent;
$usepath1=$mypath+"\\python27installer.msi";
(new-object System.Net.WebClient).DownloadFile("https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi", $usepath1);
$usepath1= $mypath + "\\python27installer.msi";
$usepath2 = $mypath +"\\python27instal... |
PowerShellCorpus/Github/cactacae_powershell/LookupIP.ps1 | LookupIP.ps1 | $serverlist = (get-content hosts.txt)
$serverlist | foreach-object {
$server = $_
try {
$ip = [System.Net.Dns]::GetHostAddresses($_)
"$server, $ip"
} catch {
"$server, Unknown IP"
}
}
|
PowerShellCorpus/Github/jeffrey987_twochoseone/MyProduct/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/jeffrey987_twochoseone/MyProduct/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/jeffrey987_twochoseone/MyProduct/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/jeffrey987_twochoseone/MyProduct/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/jeffrey987_twochoseone/MyProduct/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/jeffrey987_twochoseone/MyProduct/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/jeffrey987_twochoseone/MyProduct/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/jeffrey987_twochoseone/MyProduct/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/jeffrey987_twochoseone/MyProduct/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/jeffrey987_twochoseone/MyProduct/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/jeffrey987_twochoseone/MyProduct/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3/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/jeffrey987_twochoseone/MyProduct/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/jmcnatt_Nagios/Check-Service.ps1 | Check-Service.ps1 | <#
.SYNOPSIS
Checks a Windows service health, CPU utilization, memory, and paging faults.
.DESCRIPTION
This script checks a Windows service's health. It can report on CPU utilization, memory,
and paging faults. This script uses WMI to check the state and status of the process
as reported by WMI. If t... |
PowerShellCorpus/Github/fjuza_secretserver-import/SecretServer_import/convert-toxml.ps1 | convert-toxml.ps1 | <#
.SYNOPSIS
Generates an XML file for import in SecretServer.
.Description
Generates an XML file for import in SecretServer.
.Parameter -Target
Where to save the xml-file
.Parameter -PathFolder
Target path for folder csv.
.Parameter -PathSecret
Target path for secrets csv.
.EXAMPLE
.\convert-toxml.ps1 -Tar... |
PowerShellCorpus/Github/fjuza_secretserver-import/SecretServer_import/convert-csv.ps1 | convert-csv.ps1 | <#
.SYNOPSIS
Converts Network Password Manager 2.2 export to readable CSV files. Outputs two files, folders.csv and secrets.csv.
.Description
Converts network password manager 2.2 export to two readable CSV files, for management and later export to XML
.Parameter -Path
Location of Network Password Manager outpu... |
PowerShellCorpus/Github/njanor_multi-configuration-squirrel/MyTestApplication/PowerShell/TransformConfigurations.ps1 | TransformConfigurations.ps1 | Param(
[Parameter(Mandatory=$True)]
[string]$ApplicationName,
[Parameter(Mandatory=$True)]
[string]$BuildDirectory,
[Parameter(Mandatory=$True)]
[string[]]$ConfigurationFileNames,
[Parameter(Mandatory=$True)]
[string]$ConfigurationTransformationRunner
)
Write-Host "Checking that the transfo... |
PowerShellCorpus/Github/njanor_multi-configuration-squirrel/MyTestApplication/PowerShell/TransformAndPackageNuSpecVariants.ps1 | TransformAndPackageNuSpecVariants.ps1 | Param(
[Parameter(Mandatory=$True)]
[string]$NuSpecFolder,
[Parameter(Mandatory=$True)]
[string]$Version,
[Parameter(Mandatory=$True)]
[string]$BuildDirectory,
[Parameter(Mandatory=$True)]
[string]$OutputDirectory,
[Parameter(Mandatory=$True)]
[string]$CurrentBuildConfiguration,
[Pa... |
PowerShellCorpus/Github/njanor_multi-configuration-squirrel/MyTestApplication/PowerShell/PackageNuSpec.ps1 | PackageNuSpec.ps1 | Param(
[Parameter(Mandatory=$True)]
[string]$NuSpecFileName,
[Parameter(Mandatory=$True)]
[string]$Version,
[Parameter(Mandatory=$True)]
[string]$OutputDirectory,
[Parameter(Mandatory=$True)]
[string]$NuGetExecutable
)
Write-Host "Verifying NuSpec file exists..."
if (-Not (Test-Path $NuSpe... |
PowerShellCorpus/Github/njanor_multi-configuration-squirrel/MyTestApplication/PowerShell/ReleasifyWithSquirrel.ps1 | ReleasifyWithSquirrel.ps1 | Param(
[Parameter(Mandatory=$True)]
[string]$PackageName,
[Parameter(Mandatory=$True)]
[string]$Version,
[Parameter(Mandatory=$True)]
[string]$PackageDirectory,
[Parameter(Mandatory=$True)]
[string]$BaseOutputDirectory,
[Parameter(Mandatory=$True)]
[string]$SquirrelExecutable
)
$Packa... |
PowerShellCorpus/Github/njanor_multi-configuration-squirrel/MyTestApplication/PowerShell/CopyApplication.ps1 | CopyApplication.ps1 | Param(
[Parameter(Mandatory=$True)]
[string]$ApplicationName,
[Parameter(Mandatory=$True)]
[string]$BuildDirectory,
[Parameter(Mandatory=$True)]
[string]$NuSpecDirectory,
[Parameter(Mandatory=$True)]
[string]$Configuration
)
$NuSpecFile = "$ApplicationName.nuspec"
$ApplicationDirectory = "$... |
PowerShellCorpus/Github/njanor_multi-configuration-squirrel/MyTestApplication/NuSpec/Deploy.ps1 | Deploy.ps1 | Write-Host $(Get-Location)
#Set-Location -Path $($OctopusParameters['Octopus.Tentacle.Agent.ApplicationDirectoryPath'])
$PackageName = $($OctopusParameters['Octopus.Action.Package.NuGetPackageId'])
Write-Host "PackageName: $PackageName"
$Version = $($OctopusParameters['Octopus.Release.Number'])
Write-Host "Ver... |
PowerShellCorpus/Github/jolegape_SCCM-Task-Sequence-Scripts/EmptySCCMCache.ps1 | EmptySCCMCache.ps1 | # Connect to UIResourceMgr
$CMObject = New-Object -ComObject "UIResource.UIResourceMgr"
$CMCacheObjects = $CMObject.GetCacheInfo()
$CMCacheElements = $CMCacheObjects.GetCacheElements()
foreach ($CMCacheElement in $CMCacheElements) {
$CMCacheObjects.DeleteCacheElementEx($CMCacheElement.CacheElementID, $true)
... |
PowerShellCorpus/Github/jolegape_SCCM-Task-Sequence-Scripts/DisablePowerSavingForWLAN.ps1 | DisablePowerSavingForWLAN.ps1 | ##############################################################################################################
#
# Name : DisablePowerSavingForWLAN.ps1
# Author : Ingmar Verheij - http://www.ingmarverheij.com
# Version : 1.0, 1 may 2014
# - Initial release
#
# Description : Prevent... |
PowerShellCorpus/Github/jolegape_SCCM-Task-Sequence-Scripts/TSVariables.ps1 | TSVariables.ps1 | ##############################################################################################################
#
# Name : TSVariables.ps1
# Author : Gavin Willett - http://github.com/jolegape
# Version : 1.0, 22 August 2016
# - Initial public release
#
# Description : Enables / cre... |
PowerShellCorpus/Github/jolegape_SCCM-Task-Sequence-Scripts/Remove_Win10_MetroApps.ps1 | Remove_Win10_MetroApps.ps1 | $apps_list = @(
"Microsoft.3DBuilder_10.9.50.0_neutral_~_8wekyb3d8bbwe"
"Microsoft.Appconnector_2015.707.550.0_neutral_~_8wekyb3d8bbwe"
"Microsoft.BingFinance_4.6.169.0_neutral_~_8wekyb3d8bbwe"
"Microsoft.BingNews_4.6.169.0_neutral_~_8wekyb3d8bbwe"
"Microsoft.BingSports_4.6.169.0_neutral_~_8wek... |
PowerShellCorpus/Github/jolegape_SCCM-Task-Sequence-Scripts/Windows10_OSD_Updates.ps1 | Windows10_OSD_Updates.ps1 | param(
[string]$arch
)
$BaseDir = "\\mgmtsv2\SCCMLibrary\SoftwareUpdatePackages\Windows 10 OSD"
gci $BaseDir\$arch | foreach {
WUSA ""$_.FullName /quiet /norestart""
Write-Progress -Activity "Applying Hotfixes" -status "Installing $_"
Wait-Process -Name wusa
} |
PowerShellCorpus/Github/Kommentakerfi_kommentakerfi/Kommentakerfi_Solution/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/Kommentakerfi_kommentakerfi/Kommentakerfi_Solution/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/Kommentakerfi_kommentakerfi/Kommentakerfi_Solution/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/Kommentakerfi_kommentakerfi/Kommentakerfi_Solution/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/Kommentakerfi_kommentakerfi/Kommentakerfi_Solution/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/Kommentakerfi_kommentakerfi/Kommentakerfi_Solution/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/Kommentakerfi_kommentakerfi/Kommentakerfi_Solution/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/Kommentakerfi_kommentakerfi/Kommentakerfi_Solution/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/proxb_PoshUSNJournal/Scripts/New-UsnJournal.ps1 | New-UsnJournal.ps1 | Function New-UsnJournal {
[cmdletbinding(
SupportsShouldProcess = $True
)]
Param (
[parameter()]
[ValidateScript({
If ($_ -notmatch '^\w:$') {
Throw "$($_) must match this format: C:"
} Else {$True}
})]
[string]$Drive... |
PowerShellCorpus/Github/proxb_PoshUSNJournal/Scripts/Remove-UsnJournal.ps1 | Remove-UsnJournal.ps1 | Function Remove-UsnJournal {
[cmdletbinding(
SupportsShouldProcess = $True
)]
Param (
[parameter()]
[ValidateScript({
If ($_ -notmatch '^\w:$') {
Throw "$($_) must match this format: C:"
} Else {$True}
})]
[string]$Dr... |
PowerShellCorpus/Github/proxb_PoshUSNJournal/Scripts/Get-UsnJournal.ps1 | Get-UsnJournal.ps1 | Function Get-UsnJournal {
[OutputType('System.Journal.UsnJournal')]
[cmdletbinding(
DefaultParameterSetName = '__DefaultParameterSet'
)]
Param (
[parameter(ParameterSetName='DriveLetter')]
[string]$DriveLetter = 'C:',
[parameter(ParameterSetName='Handle')]
... |
PowerShellCorpus/Github/proxb_PoshUSNJournal/Scripts/Get-UsnJournalEntry.ps1 | Get-UsnJournalEntry.ps1 | Function Get-UsnJournalEntry {
<#
.SYNOPSIS
Views the entries of the Usn Journal. Also allows the use of -Wait to
watch incoming entries.
.DESCRIPTION
Views the entries of the Usn Journal. Includes full file path and also allows
the use of -... |
PowerShellCorpus/Github/OPS-E2E-Prod_E2E_P_D_NewRepo_2017_5_25_11_25_2/.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/OPSTest_E2E_NewRepo_2017118152625/.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_UpdateFile1_Dynamic/.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.