full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/JozefinaNikolova_AuctionWebsite/Auction/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/kedonov_VPRepoTesting_de-DE/.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 ur... |
PowerShellCorpus/Github/heiheihaho_usb/1.ps1 | 1.ps1 | cmd /c calc
|
PowerShellCorpus/Github/gilleslabs_learn-oo-1070/shell/configure_ras.ps1 | configure_ras.ps1 | mkdir ~/oo-src
cp -R $env:SystemDrive/vagrant/src/* ~/oo-src/
cd ~/oo-src
cp $env:SystemDrive/vagrant/src/oo-silent-install-ras ~/oo-src/epr/epr1070/build/
~/oo-src/epr/epr1070/build/installer-win64.exe -gm2 -s oo-silent-install-ras | Out-Null
$1 = New-WinUserLanguageList en-US
$1.Add("fr-FR")
Set-WinU... |
PowerShellCorpus/Github/gilleslabs_learn-oo-1070/shell/InstallChocolatey.ps1 | InstallChocolatey.ps1 | $env:chocolateyVersion = '0.9.9.12'
$ChocoInstallPath = "$env:SystemDrive\ProgramData\Chocolatey\bin"
if (!(Test-Path $ChocoInstallPath)) {
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
}
|
PowerShellCorpus/Github/gilleslabs_learn-oo-1070/shell/InstallTool.ps1 | InstallTool.ps1 | Import-Module Boxstarter.Chocolatey
Install-BoxStarterPackage -PackageName "C:\vagrant\shell\BoxStarterGist.txt" |
PowerShellCorpus/Github/gilleslabs_learn-oo-1070/shell/InstallToolRAS.ps1 | InstallToolRAS.ps1 | Import-Module Boxstarter.Chocolatey
Install-BoxStarterPackage -PackageName "C:\vagrant\shell\BoxStarterGistRAS.txt" |
PowerShellCorpus/Github/gilleslabs_learn-oo-1070/shell/configure_mgmt.ps1 | configure_mgmt.ps1 | mkdir ~/oo-src
cp -R $env:SystemDrive/vagrant/src/* ~/oo-src/
cd ~/oo-src
cp $env:SystemDrive/vagrant/src/oo-silent-install ~/oo-src/epr/epr1070/build/
~/oo-src/epr/epr1070/build/installer-win64.exe -gm2 -s oo-silent-install | Out-Null
$1 = New-WinUserLanguageList en-US
$1.Add("fr-FR")
Set-WinUserLangu... |
PowerShellCorpus/Github/mclxx2_scripts/UCS-HealthCheck-v6-single.ps1 | UCS-HealthCheck-v6-single.ps1 | $PowerShellWindow = (Get-Host).UI.RawUI
$PowerShellWindow.BackgroundColor = "White"
$PowerShellWindow.ForegroundColor = "Black"
clear-host
Write-Host -ForegroundColor White -BackgroundColor DarkBlue "Script Running..."
Write-Host ""
#pick debugging
$ErrorActionPreference = "SilentlyContinue"
#$ErrorActionPref... |
PowerShellCorpus/Github/mclxx2_scripts/UCS-HealthCheck-v6-dev.ps1 | UCS-HealthCheck-v6-dev.ps1 | $PowerShellWindow = (Get-Host).UI.RawUI
$PowerShellWindow.BackgroundColor = "White"
$PowerShellWindow.ForegroundColor = "Black"
clear-host
Write-Host -ForegroundColor White -BackgroundColor DarkBlue "Script Running..."
Write-Host ""
#pick debugging
$ErrorActionPreference = "SilentlyContinue"
#$ErrorActionPref... |
PowerShellCorpus/Github/tomarbuthnot_Module-Template/Cmdlet-Launcher.Private.ps1 | Cmdlet-Launcher.Private.ps1 |
# *.private.ps1 is set to be ignored in github gitignore
# Yammer-UserActivityFromExport Launcher
# This Fuction is written to be a True Function with no user editing
# This means all user inputs are Paramters
# Some people prefer to permentiny have Parameters set and output Pipes setup
# They can be set in ... |
PowerShellCorpus/Github/tomarbuthnot_Module-Template/Cmdlet-Launcher.ps1 | Cmdlet-Launcher.ps1 | # Yammer-UserActivityFromExport Launcher
# This Fuction is written to be a True Function with no user editing
# This means all user inputs are Paramters
# Some people prefer to permentiny have Parameters set and output Pipes setup
# They can be set in this Launcher File
# Variables
$UsersExport = 'C:\temp... |
PowerShellCorpus/Github/beigewell_Azure/guidance-compute-single-vm/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$ResourceGroupName = "ra-single-vm-rg",
[Parameter(Mandatory=$false)]
$Location = "Central US",
[Parameter(Mandatory=$false)]
[ValidateSet("Windows", "Linux")]
$OSType ... |
PowerShellCorpus/Github/beigewell_Azure/guidance-hybrid-network-secure-vnet-dmz/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$Location = "West US 2"
)
$ErrorActionPreference = "Stop"
$buildingBlocksRootUriString = $env:TEMPLATE_ROOT_URI
if ($buildingBlocksRootUriString -eq $null) {
$buildingBlock... |
PowerShellCorpus/Github/beigewell_Azure/guidance-compute-n-tier/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$Location = "Central US"
)
$OSType = "Linux"
$ErrorActionPreference = "Stop"
$templateRootUriString = $env:TEMPLATE_ROOT_URI
if ($templateRootUriString -eq $null) {
$tem... |
PowerShellCorpus/Github/beigewell_Azure/guidance-compute-multi-vm/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$Location = "Central US",
[Parameter(Mandatory=$false)]
[ValidateSet("Windows", "Linux")]
$OSType = "Windows"
)
$ErrorActionPreference = "Stop"
$templateRootUriString ... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$true)]
$Location,
[Parameter(Mandatory=$false)]
[ValidateSet("Prepare", "Adfs", "Proxy1", "Proxy2", "Onpremise", "Infrastructure", "CreateVpn", "AzureADDS", "AdfsVm", "PublicDmz"... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/adfsproxy-farm-first.ps1 | adfsproxy-farm-first.ps1 | # .\installWebAppProxy.ps1 -AdminUser adminUser -AdminPassword "adminP@ssw0rd" -NetBiosDomainName CONTOSO -FederationName adfs.contoso.com
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$NetBiosDoma... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/adfs-farm-first.ps1 | adfs-farm-first.ps1 | Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$NetBiosDomainName,
[Parameter(Mandatory=$True)]
[string]$FqDomainName,
[Parameter(Mandatory=$True)]
[string]$GmsaName,
[Parameter... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/adds-replication-site.ps1 | adds-replication-site.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$DomainName,
[Parameter(Mandatory=$True)]
[string]$SiteName,
[Parameter(Mandatory=$True)]
[string]$OnpremSiteName,
... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/adds.ps1 | adds.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$SafeModePassword,
[Parameter(Mandatory=$True)]
[string]$DomainName,
[Parameter(Mandatory=$True)]
[string]$SiteName
... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/adfs-farm-rest.ps1 | adfs-farm-rest.ps1 | Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$NetBiosDomainName,
[Parameter(Mandatory=$True)]
[string]$FqDomainName,
[Parameter(Mandatory=$True)]
[string]$GmsaName,
[Parameter(... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/domain-join1.ps1 | domain-join1.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$DomainName
)
# $DomainName = "contoso.com"
$secAdminPassword = ConvertTo-SecureString $AdminPassword -AsPlainText -Force
$crede... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/gmsa.ps1 | gmsa.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$NetBiosDomainName,
[Parameter(Mandatory=$True)]
[string]$FqDomainName,
[Parameter(Mandatory=$True)]
[string]$GmsaNa... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/adds-forest.ps1 | adds-forest.ps1 | [CmdletBinding()]
Param(
[string]$SafeModePassword = "SafeModeP@ssw0rd",
[string]$DomainName = "contoso.com",
[string]$DomainNetbiosName = "CONTOSO"
)
$ErrorActionPreference = "Stop"
Initialize-Disk -Number 2 -PartitionStyle GPT
New-Partition -UseMaximumSize -DriveLetter F -DiskNumber 2
Format-Volume -D... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adfs/extensions/adfsproxy-farm-rest.ps1 | adfsproxy-farm-rest.ps1 | # .\installWebAppProxy.ps1 -AdminUser adminUser -AdminPassword "adminP@ssw0rd" -NetBiosDomainName CONTOSO -FederationName adfs.contoso.com
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$NetBiosDoma... |
PowerShellCorpus/Github/beigewell_Azure/guidance-hybrid-network-secure-vnet/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$Location = "eastus"
)
$ErrorActionPreference = "Stop"
$buildingBlocksRootUriString = $env:TEMPLATE_ROOT_URI
if ($buildingBlocksRootUriString -eq $null) {
$buildingBlocksRo... |
PowerShellCorpus/Github/beigewell_Azure/guidance-hybrid-network-er/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$Location = "Central US",
[Parameter(Mandatory=$true)]
[ValidateSet("Circuit", "Network")]
$Mode
)
$ErrorActionPreference = "Stop"
$templateRootUriString = $env:TEMPLA... |
PowerShellCorpus/Github/beigewell_Azure/guidance-compute-n-tier-sql/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$true)]
$Location,
[Parameter(Mandatory=$true)]
[ValidateSet("Infrastructure", "Security", "Workload")]
$Mode
)
$ErrorActionPreference = "Stop"
$templateRootUriString = $env:TE... |
PowerShellCorpus/Github/beigewell_Azure/guidance-compute-n-tier-sql/extensions/adds.ps1 | adds.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$SafeModePassword,
[Parameter(Mandatory=$True)]
[string]$DomainName,
[Parameter(Mandatory=$True)]
[string]$SiteName
... |
PowerShellCorpus/Github/beigewell_Azure/guidance-compute-n-tier-sql/extensions/adds-forest.ps1 | adds-forest.ps1 | [CmdletBinding()]
Param(
[string]$SafeModePassword = "SafeModeP@ssw0rd",
[string]$DomainName = "contoso.com",
[string]$DomainNetbiosName = "CONTOSO"
)
$ErrorActionPreference = "Stop"
Initialize-Disk -Number 2 -PartitionStyle GPT
New-Partition -UseMaximumSize -DriveLetter F -DiskNumber 2
Format-Volume -D... |
PowerShellCorpus/Github/beigewell_Azure/guidance-hybrid-network-vpn-er/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$Location = "Central US",
[Parameter(Mandatory=$true)]
[ValidateSet("Circuit", "Network")]
$Mode
)
$ErrorActionPreference = "Stop"
$templateRootUriString = $env:TEMPLA... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adds-trust/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$true)]
$Location,
[Parameter(Mandatory=$false)]
[ValidateSet("Prepare", "Onpremise", "Infrastructure", "CreateVpn", "AzureADDS", "WebTier", "Workload", "PublicDmz", "PrivateDmz")]... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adds-trust/extensions/enable-windows-auth.ps1 | enable-windows-auth.ps1 | Set-WebConfigurationProperty -Filter "/system.webServer/security/authentication/windowsAuthentication" -Name Enabled -Value True -PSPath "IIS:\Sites\$SiteName\$AppName"
Set-WebConfigurationProperty -Filter "/system.webServer/security/authentication/anonymousAuthentication" -Name Enabled -Value False -PSPath "IIS:\Si... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adds-trust/extensions/outgoing-trust.ps1 | outgoing-trust.ps1 | # prerequiste:
# You need to first run incoming-trust.ps1 in ra-adtrust-onpremise-ad-vm1 (ip 192.168.0.4)
# Then,
# Run the following powershell script in ra-adtrust-ad-vm1 (ip 10.0.4.4)
$TrustedDomainName = "contoso.com"
$TrustedDomainDnsIpAddresses = "192.168.0.4,192.168.0.5"
#$TrustingDomainName = "treyre... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adds-trust/extensions/adds.ps1 | adds.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$SafeModePassword,
[Parameter(Mandatory=$True)]
[string]$DomainName,
[Parameter(Mandatory=$True)]
[string]$SiteName
... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adds-trust/extensions/adds-forest.ps1 | adds-forest.ps1 | [CmdletBinding()]
Param(
[string]$SafeModePassword = "SafeModeP@ssw0rd",
[string]$DomainName = "contoso.com",
[string]$DomainNetbiosName = "CONTOSO"
)
$ErrorActionPreference = "Stop"
Initialize-Disk -Number 2 -PartitionStyle GPT
New-Partition -UseMaximumSize -DriveLetter F -DiskNumber 2
Format-Volume -D... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-adds-trust/extensions/incoming-trust.ps1 | incoming-trust.ps1 | # Run the following powershell script in ra-adtrust-onpremise-ad-vm1 (ip 192.168.0.4)
$TrustedDomainName = "contoso.com"
#$TrustedDomainDnsIpAddresses = "192.168.0.4,192.168.0.5"
$TrustingDomainName = "treyresearch.com"
$TrustingDomainDnsIpAddresses = "10.0.4.4,10.0.4.5"
$ForwardIpAddress = $TrustingDomainD... |
PowerShellCorpus/Github/beigewell_Azure/guidance-hybrid-network-vpn/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$Location = "Central US"
)
$ErrorActionPreference = "Stop"
$templateRootUriString = $env:TEMPLATE_ROOT_URI
if ($templateRootUriString -eq $null) {
$templateRootUriString = "h... |
PowerShellCorpus/Github/beigewell_Azure/guidance-ra-identity-adds/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$true)]
$Location,
[Parameter(Mandatory=$true)]
[ValidateSet("All", "Onpremise", "Infrastructure", "CreateVpn", "AzureADDS", "Workload")]
$Mode
)
$ErrorActionPreference = "Stop"
... |
PowerShellCorpus/Github/beigewell_Azure/guidance-ra-identity-adds/extensions/adds-replication-site.ps1 | adds-replication-site.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$DomainName,
[Parameter(Mandatory=$True)]
[string]$SiteName,
[Parameter(Mandatory=$True)]
[string]$OnpremSiteName,
... |
PowerShellCorpus/Github/beigewell_Azure/guidance-ra-identity-adds/extensions/adds.ps1 | adds.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$SafeModePassword,
[Parameter(Mandatory=$True)]
[string]$DomainName,
[Parameter(Mandatory=$True)]
[string]$SiteName
... |
PowerShellCorpus/Github/beigewell_Azure/guidance-ra-identity-adds/extensions/adds-forest.ps1 | adds-forest.ps1 | [CmdletBinding()]
Param(
[string]$SafeModePassword = "SafeModeP@ssw0rd",
[string]$DomainName = "contoso.com",
[string]$DomainNetbiosName = "CONTOSO"
)
$ErrorActionPreference = "Stop"
Initialize-Disk -Number 2 -PartitionStyle GPT
New-Partition -UseMaximumSize -DriveLetter F -DiskNumber 2
Format-Volume -D... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-aad/Deploy-ReferenceArchitecture.ps1 | Deploy-ReferenceArchitecture.ps1 | #
# Deploy_ReferenceArchitecture.ps1
#
param(
[Parameter(Mandatory=$true)]
$SubscriptionId,
[Parameter(Mandatory=$false)]
$Location = "eastus",
[Parameter(Mandatory=$false)]
[ValidateSet("Windows", "Linux")]
$OSType = "Windows",
[Parameter(Mandatory=$true)]
[ValidateSet("onpremise", ... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-aad/extensions/adds.ps1 | adds.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
[string]$AdminUser,
[Parameter(Mandatory=$True)]
[string]$AdminPassword,
[Parameter(Mandatory=$True)]
[string]$SafeModePassword,
[Parameter(Mandatory=$True)]
[string]$DomainName,
[Parameter(Mandatory=$True)]
[string]$SiteName
... |
PowerShellCorpus/Github/beigewell_Azure/guidance-identity-aad/extensions/adds-forest.ps1 | adds-forest.ps1 | [CmdletBinding()]
Param(
[string]$SafeModePassword = "SafeModeP@ssw0rd",
[string]$DomainName = "contoso.com",
[string]$DomainNetbiosName = "CONTOSO"
)
$ErrorActionPreference = "Stop"
Initialize-Disk -Number 2 -PartitionStyle GPT
New-Partition -UseMaximumSize -DriveLetter F -DiskNumber 2
Format-Volume -D... |
PowerShellCorpus/Github/smartindale_nsbcon.fileprocessing/build/release_build.ps1 | release_build.ps1 | function Invoke-CommandLocalOrRemotely {
param(
$scriptBlock,
$argumentList = @(),
$session
)
if($session -ne $null) {
write-verbose ("Running on computer {0}" -f $session.ComputerName)
return invoke-command -session $session -argumentList $argumentList -scriptblock $scriptBlock
}
else {
... |
PowerShellCorpus/Github/smartindale_nsbcon.fileprocessing/build/package_build.ps1 | package_build.ps1 | #Input Parameters
$sln_name = "NsbCon.sln"
$ScriptPath = $MyInvocation.MyCommand.Path
$ScriptDir = Split-Path -Parent $ScriptPath
$base_directory= Split-Path -Parent (Split-Path -Parent $ScriptPath)
Write-Host $base_directory
$build_directory = "$base_directory\build"
$package_directory = "$base_director... |
PowerShellCorpus/Github/devkigauravpal_simple-codeblocks/http request/http request.ps1 | http request.ps1 | Start-Transcript -Path "log_trace.txt"
Import-Csv urls.csv |
ForEach-Object {
Write-Host "Testing : " $_.url "'r"
}
Stop-Transcript |
PowerShellCorpus/Github/uncas_scripts/GitBranchAge.ps1 | GitBranchAge.ps1 | $baseBranch = "main"
function GetAge($date){
$age = new-timespan -start $date -end (get-date)
return $age
}
function GetAgeOfFirstCommit($branch) {
$dates = git log --reverse $baseBranch..$branch --oneline --format=%ad --date=iso
if (!$dates){
return
}
$first = [DateTime]$dates[0]
return GetA... |
PowerShellCorpus/Github/uncas_scripts/rebase-show.ps1 | rebase-show.ps1 | function Cleanup {
if (Test-Path gamma) { rmdir -force -recurse gamma }
if (Test-Path beta) { rmdir -force -recurse beta }
if (Test-Path alpha) { rmdir -force -recurse alpha }
if (Test-Path mother) { rmdir -force -recurse mother }
}
function PrepareClone ($name) {
git clone mother $name
... |
PowerShellCorpus/Github/uncas_scripts/CountLines.ps1 | CountLines.ps1 | #$extensions = (dir -recurse | where {!($_.mode -match "d")} | select-object Extension -unique | Sort-Object Extension)
#foreach ($extension in $extensions) {
# $value = $extension.Extension
# "Extension $value"
#}
#return
$extensions = "*.cs", "*.asax", "*.ascx", "*.asp", "*.aspx", "*.bat", "*.cmd", ... |
PowerShellCorpus/Github/uncas_scripts/send-mail.ps1 | send-mail.ps1 | $smtp = "SMTP.DMZDK.LOCAL"
$from = "osoerensen@ebay.com"
$defaultContent = "To: ...
Subject: ...
Hej ...
Best regards,
Ole Lynge Sřrensen
Software Development, C2C Denmark | eBay Classifieds Group
Phone: +45 87 31 32 92 | osoerensen@ebay.com"
$tempFile = "$env:temp\ollsmail.txt"
Set-Content -Path $te... |
PowerShellCorpus/Github/uncas_scripts/conflicts.ps1 | conflicts.ps1 | function Conflict ($branch, $otherBranch, $files = @()) {
$this = "" | Select Branch, OtherBranch, Files
$this.Branch = $branch
$this.OtherBranch = $otherBranch
$this.Files = $files
return $this
}
function HasConflict ($output) {
$result = @()
$conflictPattern = "CONFLICT (content... |
PowerShellCorpus/Github/uncas_scripts/diffchanges.ps1 | diffchanges.ps1 | function diffstat ($from, $to) {
$range = "$from..$to"
$stat = (git diff $range --shortstat)
if (!$stat) { return }
$range
$statParts = $stat.Trim().Split()
$files = $statParts[0]
$insertions = $statParts[3]
$deletions = $statParts[5]
"$to, $files, $insertions, $deletions" >> "..\diffchanges.csv"
"$... |
PowerShellCorpus/Github/uncas_scripts/review.ps1 | review.ps1 | param($from, $to)
function GetLineType ($line) {
if ($line.StartsWith("diff")) { return "header" }
if ($line.StartsWith("index")) { return "header" }
if ($line.StartsWith("---")) { return "header" }
if ($line.StartsWith("+++")) { return "header" }
if ($line.StartsWith("@@")) { return "section" }
if... |
PowerShellCorpus/Github/uncas_scripts/nmap.ps1 | nmap.ps1 | param ($hostName = "127.0.0.1")
$hostEntry = [Net.DNS]::GetHostEntry($hostName)
$ip = $hostEntry.AddressList[0].IPAddressToString
Write-Host "Host '$hostName' at IP '$ip'."
$openPorts = @()
$ping = New-Object System.Net.Networkinformation.Ping
$pingStatus = $ping.Send($ip, 100)
if ($pingStatus.Status -eq... |
PowerShellCorpus/Github/uncas_scripts/cleanup-branches.ps1 | cleanup-branches.ps1 | function OutputMergedBranches () {
$branches = (git branch -r --merge main)
$count = 0
foreach ($branch in $branches) {
$branchShort = $branch.Replace("origin/", "").Trim()
if ($branchShort -eq "current") { continue }
if ($branchShort -eq "master") { continue }
if ($br... |
PowerShellCorpus/Github/uncas_scripts/whatbranch.ps1 | whatbranch.ps1 | param(
$ref
)
$merges = (git log --reverse --oneline --merges "$ref..")
foreach ($merge in $merges) {
if ($merge.Contains("main'")) { continue }
if (!$merge.Contains("into main")) { continue }
$parts = $merge.Split(' ')
$sha = $parts[0]
git merge-base --is-ancestor $ref $sha
if ($LASTEXITCODE -ne 0) { ... |
PowerShellCorpus/Github/uncas_scripts/nuget-updates.ps1 | nuget-updates.ps1 | param($projectName = "DBA", $databaseName = "NugetPackages")
cls
function Package ($id, $version) {
$this = "" | Select Id, Version, FullName
$this.Id = $id
$this.Version = $version
$this.FullName = "$id.$version"
return $this
}
function GetVersion ($versionString) {
$this = "" |... |
PowerShellCorpus/Github/uncas_scripts/changes.ps1 | changes.ps1 | param(
$from = "release0125",
$to = "HEAD"
)
$range = "$from..$to"
function Stat ($author, [int]$commits, [int]$files, [int]$insertions, [int]$deletions) {
$this = "" | Select Author, Commits, Files, Insertions, Deletions, `
DeletionsPerInsertion, ChangesPerCommit
$this.Author = $author
... |
PowerShellCorpus/Github/uncas_scripts/sourceStats.ps1 | sourceStats.ps1 | function FileInfo($name, $lines) {
$this = "" | Select Lines, Name
$this.Name = $name
$this.Lines = $lines
return $this
}
$files = (gci source -r -include *.cs)
$infos = @()
foreach ($file in $files) {
$lines = (Get-Content $file).count
if ($lines -gt 100) {
$infos += FileInfo $file.FullName.Replace(... |
PowerShellCorpus/Github/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/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/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/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/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/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/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/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/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/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/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/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/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/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/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/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/JasonHaley_BostonAzureBootcamp2016Material/HOL-WebSites/End/Todo/packages/Newtonsoft.Json.6.0.8/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# open json.net splash page on package install
# don't open if json.net is installed as a dependency
try
{
$url = "http://james.newtonking.com/json/install?version=" + $package.Version
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWin... |
PowerShellCorpus/Github/OpenLocalizationOrg_coreapi.ja-jp/.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 ur... |
PowerShellCorpus/Github/hfakhrulddin_15-Kanban-API/Kanban-API/Kanban.Web/bower_components/bootstrap/nuget/MyGet.ps1 | MyGet.ps1 | $nuget = $env:NuGet
#parse the version number out of package.json
$bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version
#create packages
& $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $b... |
PowerShellCorpus/Github/hfakhrulddin_15-Kanban-API/Kanban-API/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/hfakhrulddin_15-Kanban-API/Kanban-API/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/hfakhrulddin_15-Kanban-API/Kanban-API/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/hfakhrulddin_15-Kanban-API/Kanban-API/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/hfakhrulddin_15-Kanban-API/Kanban-API/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/Sunil6568_WCF_Demo/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/Sunil6568_WCF_Demo/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/Sunil6568_WCF_Demo/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/Sunil6568_WCF_Demo/packages/EntityFramework.6.0.0-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
# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/Sunil6568_WCF_Demo/packages/EntityFramework.6.0.0-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/Sunil6568_WCF_Demo/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/Sunil6568_WCF_Demo/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/Sunil6568_WCF_Demo/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/Sunil6568_WCF_Demo/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/Sunil6568_WCF_Demo/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/Sunil6568_WCF_Demo/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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.