full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/jrh0617_Canvas-to-SQL-Server-Powershell/users.ps1
users.ps1
Import-Module CanvasFunctions ### Set procedure variables $table_name = "CANVAS_users" $server_name = "SETON-SQL3" $db_name = "canvas_sync" $api_key = "3925~lTUMZwIlZTksziBGPfzcyWgFD107hHGqs6CInmD9HTqsoaPmEdCIHygBw13XeQ4j" $pgnum=1 $headers = @{"Authorization"="Bearer "+$api_key} ### Initialize the SQL Te...
PowerShellCorpus/Github/jrh0617_Canvas-to-SQL-Server-Powershell/accounts.ps1
accounts.ps1
Import-Module CanvasFunctions ### Set procedure variables $table_name = "CANVAS_accounts" $server_name = "SETON-SQL3" $db_name = "canvas_sync" $api_key = "3925~lTUMZwIlZTksziBGPfzcyWgFD107hHGqs6CInmD9HTqsoaPmEdCIHygBw13XeQ4j" $headers = @{"Authorization"="Bearer "+$api_key} ### Initialize the SQL Text obje...
PowerShellCorpus/Github/jrh0617_Canvas-to-SQL-Server-Powershell/courses.ps1
courses.ps1
Import-Module CanvasFunctions ### Set procedure variables $table_name = "CANVAS_courses" $server_name = "SETON-SQL3" $db_name = "canvas_sync" $api_key = "3925~lTUMZwIlZTksziBGPfzcyWgFD107hHGqs6CInmD9HTqsoaPmEdCIHygBw13XeQ4j" $first_sem_id = 5 $second_sem_id = 6 $pgnum=1 $headers = @{"Authorization"="Bearer...
PowerShellCorpus/Github/jrh0617_Canvas-to-SQL-Server-Powershell/sections.ps1
sections.ps1
Import-Module CanvasFunctions ### Set procedure variables $server_name = "SETON-SQL3" $db_name = "canvas_sync" $api_key = "3925~lTUMZwIlZTksziBGPfzcyWgFD107hHGqs6CInmD9HTqsoaPmEdCIHygBw13XeQ4j" $pgnum=1 $headers = @{"Authorization"="Bearer "+$api_key} ### Grab all the courses from database. Put it into $cour...
PowerShellCorpus/Github/simonlelut_PPE_ASP.netMVC4/PPE_ASP.net/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/simonlelut_PPE_ASP.netMVC4/PPE_ASP.net/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/simonlelut_PPE_ASP.netMVC4/PPE_ASP.net/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/simonlelut_PPE_ASP.netMVC4/PPE_ASP.net/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/simonlelut_PPE_ASP.netMVC4/PPE_ASP.net/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/syntraffic_ansible/setup/ConfigureRemotingForAnsible.ps1
ConfigureRemotingForAnsible.ps1
# Configure a Windows host for remote management with Ansible # ----------------------------------------------------------- # # This script checks the current WinRM/PSRemoting configuration and makes the # necessary changes to allow Ansible to connect, authenticate and execute # PowerShell commands. # # Set $Ver...
PowerShellCorpus/Github/OPSTest_E2E_Provision_1488715541306/.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/v-peliao_Test1124/.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/Delubear_Scripts/SendADEmail.ps1
SendADEmail.ps1
#Import Module Active Directory #Import Email Snapin Import-Module ActiveDirectory -ErrorAction 'Stop' Add-PSSnapin Microsoft.Exchange.Management.Powershell.Admin -erroraction silentlyContinue Write-Host "This sends an Email" -ForegroundColor Green $UserProf = $Null while($UserProf -eq $Null){ $userID = Read-...
PowerShellCorpus/Github/Delubear_Scripts/GetMailBoxSizes.ps1
GetMailBoxSizes.ps1
##Must be run on Exchange Server## Import-module Activedirectory Add-PSSnapin *exchange* write-host "Cleaning up previous files" If(Test-Path "filepath"){ Remove-Item "filepath"} If(Test-Path "filepath2"){ Remove-Item "filepath2"} write-host "Getting list of AD Users" Get-ADUser -Filter * -properties Samac...
PowerShellCorpus/Github/Delubear_Scripts/GetPrintFleet.ps1
GetPrintFleet.ps1
$ErrorActionPreference = "SilentlyContinue" $dc = "domain controller" $domain = "domain" write-host "Cleaning up previous files" #removes previous days file If(Test-Path P:\Scripts\hosts.csv){ Remove-Item P:\Scripts\Hosts.csv} write-host "Pulling today's log file from PrintFleet" #get date since file is f...
PowerShellCorpus/Github/Delubear_Scripts/ConvertWordToPDF.ps1
ConvertWordToPDF.ps1
$documents_path = 'P:\Scripts\test' $word_app = New-Object -ComObject Word.Application # This filter will find .doc as well as .docx documents Get-ChildItem -Path $documents_path -Recurse -Filter *.doc? | ForEach-Object { write-host "Beginning new document - $_" $document = $word_app.Documents.Open($_.Full...
PowerShellCorpus/Github/Delubear_Scripts/Unzip.ps1
Unzip.ps1
Add-Type -AssemblyName System.IO.Compression.FileSystem $zip = "path" $outPath = "path" function Unzip { param([string]$zipfile, [string]$outpath) [System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath) } Unzip "$zip" "$outPath"
PowerShellCorpus/Github/Delubear_Scripts/getSID.ps1
getSID.ps1
Import-Module ActiveDirectory $domain = Read-Host "Enter domain" $UserProf = $Null while($UserProf -eq $Null){ $userID = Read-Host "Enter UserID" $UserProf = Get-ADUser -LDAPFilter "(sAMAccountName=$UserID)" if($UserProf -eq $Null){write-host "User does not exist, please check UserID"}} $objUser = New-Object...
PowerShellCorpus/Github/Delubear_Scripts/ReplaceWordTextBulk.ps1
ReplaceWordTextBulk.ps1
Add-Type -AssemblyName Microsoft.Office.Interop.Word #Gets list of all word files in folder #$include = $list = Get-ChildItem "P:\Scripts\test\*" -Recurse -Include "*.doc*" #processes each item, one at a time foreach($item in $list){ $objWord = New-Object -comobject Word.Application $objWord.Visible = $false ...
PowerShellCorpus/Github/Delubear_Scripts/FileDownloadWithHeaders.ps1
FileDownloadWithHeaders.ps1
$url = "url" $path = "path" $webClient = New-Object System.Net.WebClient $webClient.Headers.add('header1','id') $webClient.Headers.add('header2','id2') $webClient.DownloadFile($url, $path)
PowerShellCorpus/Github/Delubear_Scripts/UnlockScript.ps1
UnlockScript.ps1
Import-module Activedirectory Write-Host "Enter UserID to Unlock in Active Directory" -ForegroundColor Green $UserProf = $Null while($UserProf -eq $Null){ $userID = Read-Host "Enter UserID" $UserProf = Get-ADUser -LDAPFilter "(sAMAccountName=$UserID)" if($UserProf -eq $Null){write-host "User does not exist, ple...
PowerShellCorpus/Github/Delubear_Scripts/xaml-test-sendEmails.ps1
xaml-test-sendEmails.ps1
#Import Module Active Directory #Import Email Snapin Import-Module ActiveDirectory -ErrorAction 'Stop' Add-PSSnapin Microsoft.Exchange.Management.Powershell.Admin -erroraction silentlyContinue #hides CMD window Add-Type -Name Window -Namespace Console -MemberDefinition ' [DllImport("Kernel32.dll")] public stati...
PowerShellCorpus/Github/Delubear_Scripts/addExcelSheets - Copy.ps1
addExcelSheets - Copy.ps1
$filePath = "P:\Scripts\test\test.xlsx" $excelObj = New-Object -ComObject Excel.Application $excelObj.Visible = $true $workBook = $excelObj.Workbooks.Open($filePath) $workSheet = $workBook.Sheets.Item("test2") $workBook.worksheets.add() $workBook.worksheets.add() $workBook.worksheets.add() #$workShe...
PowerShellCorpus/Github/Delubear_Scripts/readCell.ps1
readCell.ps1
$excel = new-object -com Excel.Application -Property @{Visible = $false} $workbook = $excel.Workbooks.Open("path.xls") $workbook.sheets.item(1).activate() $WorkbookTotal=$workbook.Worksheets.item(1) $value = $WorkbookTotal.Cells.Item(66, 5).Text $workbook.Close($false) # Close workbook and dont save changes $exc...
PowerShellCorpus/Github/AGlinov_test/Сброс зависших терминальных сессий.ps1
Сброс зависших терминальных сессий.ps1
Function RDP_Resetfailure($server){ $ts = qwinsta /server:$server $td = ($ts | where { ($_ -like "*Disc*" -or $_ -like "*Диск*" -or $_ -like "*ЁбЄ*" ) -and $_ -notlike "*services*"}) $tdselect = $td # Для отладки или внесения в лог: Login Id State $td = $td -ireplace ("[^0-9]","") # оставляем только id сессий ...
PowerShellCorpus/Github/ianrossi_powershell-sql2012/sql2008R2.ps1
sql2008R2.ps1
# Set the AppD properties # If no sysadmin account provided, use the local machine administrators group if ($sql_sysadmin_accounts -eq "") { $sysadmin_accounts = $env:COMPUTERNAME + "\Administrators" } Else { $sysadmin_accounts = $sql_sysadmin_accounts } $sql_instance_id = "SQL01" $sql_instance_name = "SQL12" ...
PowerShellCorpus/Github/TP-SmartTV-Quiz_SMARTMKT-QUIZ/SmartTV/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/TP-SmartTV-Quiz_SMARTMKT-QUIZ/SmartTV/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/zjkyz8_PS/src/ParseIni.ps1
ParseIni.ps1
Function ParseIni ($filePath, $sectionName) { $ini = @{} switch -regex -file $filePath { "^\[(.+)\]$" { $section = $matches[1].Trim() $ini[$section] = @{} } "^\s*([^#].+?)\s*=\s*(.*)" { $name,$value = $matches[1..2] $ini[$section][$name] = $value.Trim() ...
PowerShellCorpus/Github/zjkyz8_PS/test/ParseIniTests.ps1
ParseIniTests.ps1
."..\src\ParseIni.ps1" $currentPath = $MyInvocation.MyCommand.Path | Split-Path -parent Function PrepareIniFile($fileName) { $fileContent='[default] returnUrl="http://www.google.com?question={0}"' $sw = [System.IO.StreamWriter] ($currentPath + "\" + $fileName) $sw.WriteLine($fileContent) $sw.Close() } ...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/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/dwandja_MVCWebApp/WebApp/MvcWebApp/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/dwandja_MVCWebApp/WebApp/MvcWebApp/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/dwandja_MVCWebApp/WebApp/MvcWebApp/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/dwandja_MVCWebApp/WebApp/MvcWebApp/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/dwandja_MVCWebApp/WebApp/MvcWebApp/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/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/wp8/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.E...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/wp8/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $platformSpecificRef = $project.ProjectItems | Where-Object { $_.Name.StartsWith("AutoMapper.") -and $_.Name.EndsWith(".dll") -and $_.Properties.Item("ItemType").Value -eq "Content" } if ($platformSpecificRef) { $platformSpecificRef.Remove() }
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/sl5/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.E...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/sl5/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $platformSpecificRef = $project.ProjectItems | Where-Object { $_.Name.StartsWith("AutoMapper.") -and $_.Name.EndsWith(".dll") -and $_.Properties.Item("ItemType").Value -eq "Content" } if ($platformSpecificRef) { $platformSpecificRef.Remove() }
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/windows8/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.E...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/windows8/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $platformSpecificRef = $project.ProjectItems | Where-Object { $_.Name.StartsWith("AutoMapper.") -and $_.Name.EndsWith(".dll") -and $_.Properties.Item("ItemType").Value -eq "Content" } if ($platformSpecificRef) { $platformSpecificRef.Remove() }
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/MonoTouch/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.E...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/MonoTouch/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $platformSpecificRef = $project.ProjectItems | Where-Object { $_.Name.StartsWith("AutoMapper.") -and $_.Name.EndsWith(".dll") -and $_.Properties.Item("ItemType").Value -eq "Content" } if ($platformSpecificRef) { $platformSpecificRef.Remove() }
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/MonoAndroid/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.E...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/MonoAndroid/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $platformSpecificRef = $project.ProjectItems | Where-Object { $_.Name.StartsWith("AutoMapper.") -and $_.Name.EndsWith(".dll") -and $_.Properties.Item("ItemType").Value -eq "Content" } if ($platformSpecificRef) { $platformSpecificRef.Remove() }
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/net40/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.E...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/packages/AutoMapper.3.1.1/tools/net40/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $platformSpecificRef = $project.ProjectItems | Where-Object { $_.Name.StartsWith("AutoMapper.") -and $_.Name.EndsWith(".dll") -and $_.Properties.Item("ItemType").Value -eq "Content" } if ($platformSpecificRef) { $platformSpecificRef.Remove() }
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/MvcWebApp/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/dwandja_MVCWebApp/WebApp/MvcWebApp/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/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/wp8/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/wp8/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/sl5/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/sl5/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/windows8/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/windows8/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/MonoTouch/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/MonoTouch/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/MonoAndroid/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/MonoAndroid/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/wpa81/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/wpa81/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/net40/Install.ps1
Install.ps1
param($installPath, $toolsPath, $package, $project) # This is the MSBuild targets file to add $targetsFile = [System.IO.Path]::Combine($toolsPath, '..\' + $package.Id + '.targets') # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Cu...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/packages/AutoMapper.3.2.1/tools/net40/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) # Need to load MSBuild assembly if it's not loaded yet. Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' # Grab the loaded MSBuild project for the project $msbuild = [Microsoft.Build.Evaluatio...
PowerShellCorpus/Github/dwandja_MVCWebApp/WebApp/INT422TestTwo/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/dwandja_MVCWebApp/WebApp/INT422TestTwo/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/dwandja_MVCWebApp/WebApp/INT422TestTwo/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/dwandja_MVCWebApp/WebApp/INT422TestTwo/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/dwandja_MVCWebApp/WebApp/INT422TestTwo/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/dwandja_MVCWebApp/WebApp/INT422TestTwo/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/dwandja_MVCWebApp/WebApp/INT422TestTwo/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/dwandja_MVCWebApp/WebApp/INT422TestTwo/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/dwandja_MVCWebApp/WebApp/CodeFirstIdentity/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/dwandja_MVCWebApp/WebApp/CodeFirstIdentity/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/dwandja_MVCWebApp/WebApp/CodeFirstIdentity/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/dwandja_MVCWebApp/WebApp/CodeFirstIdentity/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/dwandja_MVCWebApp/WebApp/CodeFirstIdentity/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/dwandja_MVCWebApp/WebApp/CodeFirstIdentity/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/dwandja_MVCWebApp/WebApp/CodeFirstIdentity/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/dwandja_MVCWebApp/WebApp/CodeFirstIdentity/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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/bigdream530_MvcMovies/MvcMovie/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_NewRepo_201711882234/.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/jkovolski_PowerShell/get-mbfolderlevelpermissions.ps1
get-mbfolderlevelpermissions.ps1
Import-Module MSOnline $O365Cred = Get-Credential $O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection Import-PSSession $O365Session Connect-MsolService –Credential $O365Cred $mailbox =...
PowerShellCorpus/Github/jkovolski_PowerShell/Get-RR-Processing-Configuration.ps1
Get-RR-Processing-Configuration.ps1
<# This script prompts the user to search for a room or equipment mailbox. Once the search is narrowed down to a single mailbox, the user can proceed to showing how the mailbox is configured to process bookings from the users. The user is also shown the permissions assigned to the mailbox's calendar folder. ...
PowerShellCorpus/Github/jkovolski_PowerShell/Update-SharedMailboxSettings.ps1
Update-SharedMailboxSettings.ps1
#requires -version 4 <# .SYNOPSIS Import a CSV containing shared mailboxes, the autoreply message, and forwarding address if applicable. Then update the shared mailbox settings accordingly .DESCRIPTION This script will update the shared mailbox settings with a new autoreply message for both internal and extern...
PowerShellCorpus/Github/jkovolski_PowerShell/Get-HoldPolicy.ps1
Get-HoldPolicy.ps1
#requires -version 4 <# .SYNOPSIS This will gather all in place hold policies are report it's members to a CSV .DESCRIPTION The script will sign into O365 then query the In-place hold policies. For each policy found, it will the gather the members found in the SourceMailboxes parameter, query Active Dire...
PowerShellCorpus/Github/ProgHedgehog_RVIP_5/Server/packages/Apache.Ignite.1.8.0/tools/PostBuild.ps1
PostBuild.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
PowerShellCorpus/Github/ProgHedgehog_RVIP_5/Server/packages/Apache.Ignite.1.8.0/tools/Install.ps1
Install.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
PowerShellCorpus/Github/ProgHedgehog_RVIP_5/Server/packages/Apache.Ignite.1.8.0/tools/Uninstall.ps1
Uninstall.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
PowerShellCorpus/Github/ProgHedgehog_RVIP_5/Client/packages/Apache.Ignite.1.8.0/tools/PostBuild.ps1
PostBuild.ps1
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...