full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/vkorppi_PowerShellScript-to-unify-AccessRights-of-mailboxes/UnifyAccessRights.ps1 | UnifyAccessRights.ps1 |
<#
########################################################
Can be used to change mailbox-level AccessRights of one or more mailboxes to be same as given mailbox's rights.
Works against Exchange-servers
Copyright (C) 2013 Ville Korppi <korppi.villekorppi.ville@gmail.com>
This program is fre... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/ExecutionPlan/GetDnsIpAddressesOnDc/Get-DnsListeningIpAddress.ps1 | Get-DnsListeningIpAddress.ps1 | function Get-DnsListeningIpAddress {
Import-Module DnsServer
(Get-DNSServer -ComputerName localhost).ServerSetting.ListeningIpAddress |
Where-Object { $_ -match "\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}" }
}
|
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/ExecutionPlan/InstallIIS/Install-WebServer.ps1 | Install-WebServer.ps1 | function Copy-Prerequisites {
param (
[String] $Path = '',
[String] $Destination = ''
)
Write-Log "--> Copy-Prerequisites"
if ($Destination -eq '') {
throw("Copy-Prerequisites: Destination path not specified!")
}
if ($Path -eq '') {
$Path = [Environment]::GetEnvironmen... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/ExecutionPlan/3.CreateSecondaryDC/Install-RoleSecondaryDomainController.ps1 | Install-RoleSecondaryDomainController.ps1 | Function Install-RoleSecondaryDomainController
{
<#
.SYNOPSIS
Install additional (secondary) domain controller.
#>
param
(
[String]
# Domain name to join to.
$DomainName,
[String]
# Domain user who is allowed to join computer to domain.
$UserName,
[String]
# User's password.
... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/ExecutionPlan/1.CreatePrimaryDC/Install-RolePrimaryDomainController.ps1 | Install-RolePrimaryDomainController.ps1 |
Function Install-RolePrimaryDomainController
{
<#
.SYNOPSIS
Configure node's network adapters.
Create first domain controller in the forest.
.EXAMPLE
PS> Install-RolePrimaryDomainController -DomainName acme.local -SafeModePassword "P@ssw0rd"
Install DNS and ADDS, create forest and domain 'acme.local'.
Se... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/ExecutionPlan/4.JoinAndPromote/Install-RoleSecondaryDomainController.ps1 | Install-RoleSecondaryDomainController.ps1 | Function Install-RoleSecondaryDomainController
{
<#
.SYNOPSIS
Install additional (secondary) domain controller.
#>
param
(
[String]
# Domain name to join to.
$DomainName,
[String]
# Domain user who is allowed to join computer to domain.
$UserName,
[String]
# User's password.
... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/ExecutionPlan/DeployWebApp/Deploy-WebApp.ps1 | Deploy-WebApp.ps1 |
function Register-WebApp {
<#
.LINKS
http://www.iis.net/learn/manage/powershell/powershell-snap-in-creating-web-sites-web-applications-virtual-directories-and-application-pools
#>
param (
[String] $Source,
[String] $Path = "C:\inetpub\wwwroot",
[String] $Name = "",
[String] $Username = "",
[Str... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k12r2-standard/1.Windows-Post-Install.ps1 | 1.Windows-Post-Install.ps1 | trap {
Log "Exception trapped:"
Log ($_ -as 'string')
$CanGo=0;
exit
}
$CanGo=1;
$srcDir = $env:systemdrive + "\Murano";
$srcPacksPath = $srcDir + "\Files";
$srcScriptsPath = $srcDir + "\Scripts";
$agentDir = ${srcDir} + "\Agent"
$modulesDir = ${srcDir} + "\PS";
$sysIntDir = ${env:ProgramF... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k12r2-standard/2.Start-Sysprep.ps1 | 2.Start-Sysprep.ps1 | param (
[Switch] $BatchExecution
)
if (-not $BatchExecution) {
$ConfirmationString = 'start sysprep'
$UserResponse = Read-Host -Prompt @"
==========================================================
Please confirm that you want run sysprep on this computer.
Type '$ConfirmationString' to continue... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k12r2-standard/3.Start-AtFirstBoot.ps1 | 3.Start-AtFirstBoot.ps1 |
foreach ($ServiceName in @('cloudbase-init')) {
Write-Host "Enabling service '$ServiceName'"
& "sc.exe" config "$ServiceName" start= auto
Start-Service "$ServiceName"
}
Remove-Item C:\Murano\nextunattend.xml
|
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k8r2-core/1.Windows-Post-Install.ps1 | 1.Windows-Post-Install.ps1 | trap {
$_
$CanGo=0;
exit
}
$CanGo=1;
$srcDir = $env:systemdrive+"\Murano";
$srcPacksPath=$srcDir+"\Files";
$srcScriptsPath=$srcDir+"\Scripts";
$agentDir = ${srcDir} + "\Agent"
$modulesDir = ${srcDir} + "\PS";
$sysIntDir = ${env:ProgramFiles(x86)}+"\Sysinternals Suite";
#Logging levels: 0 - no ... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k8r2-core/2.Start-Sysprep.ps1 | 2.Start-Sysprep.ps1 | param (
[Switch] $BatchExecution,
[String] $CoreFunctionsPath
)
if (-not $BatchExecution) {
$ConfirmationString = 'start sysprep'
$UserResponse = Read-Host -Prompt @"
==========================================================
Please confirm that you want run sysprep on this computer.
Type... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k8r2-core/3.Start-AtFirstBoot.ps1 | 3.Start-AtFirstBoot.ps1 |
foreach ($ServiceName in @('cloudbase-init')) {
Write-Host "Enabling service '$ServiceName'"
& "sc.exe" config "$ServiceName" start= auto
Start-Service "$ServiceName"
}
Remove-Item C:\Murano\nextunattend.xml
|
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k8r2-standard/1.Windows-Post-Install.ps1 | 1.Windows-Post-Install.ps1 | trap {
$_
$CanGo=0;
exit
}
$CanGo=1;
$srcDir = $env:systemdrive+"\Murano";
$srcPacksPath=$srcDir+"\Files";
$srcScriptsPath=$srcDir+"\Scripts";
$agentDir = ${srcDir} + "\Agent"
$modulesDir = ${srcDir} + "\PS";
$sysIntDir = ${env:ProgramFiles(x86)}+"\Sysinternals Suite";
#Logging levels: 0 - no ... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k8r2-standard/2.Start-Sysprep.ps1 | 2.Start-Sysprep.ps1 | param (
[Switch] $BatchExecution,
[String] $CoreFunctionsPath
)
if (-not $BatchExecution) {
$ConfirmationString = 'start sysprep'
$UserResponse = Read-Host -Prompt @"
==========================================================
Please confirm that you want run sysprep on this computer.
Type... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k8r2-standard/3.Start-AtFirstBoot.ps1 | 3.Start-AtFirstBoot.ps1 |
foreach ($ServiceName in @('cloudbase-init')) {
Write-Host "Enabling service '$ServiceName'"
& "sc.exe" config "$ServiceName" start= auto
Start-Service "$ServiceName"
}
Remove-Item C:\Murano\nextunattend.xml
|
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k12r2-core/1.Windows-Post-Install.ps1 | 1.Windows-Post-Install.ps1 | trap {
Log "Exception trapped:"
Log ($_ -as 'string')
$CanGo=0;
exit
}
$CanGo=1;
$srcDir = $env:systemdrive + "\Murano";
$srcPacksPath = $srcDir + "\Files";
$srcScriptsPath = $srcDir + "\Scripts";
$agentDir = ${srcDir} + "\Agent"
$modulesDir = ${srcDir} + "\PS";
$sysIntDir = ${env:ProgramF... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k12r2-core/2.Start-Sysprep.ps1 | 2.Start-Sysprep.ps1 | param (
[Switch] $BatchExecution
)
if (-not $BatchExecution) {
$ConfirmationString = 'start sysprep'
$UserResponse = Read-Host -Prompt @"
==========================================================
Please confirm that you want run sysprep on this computer.
Type '$ConfirmationString' to continue... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/image-builder/lib/windowssetup/scripts/w2k12r2-core/3.Start-AtFirstBoot.ps1 | 3.Start-AtFirstBoot.ps1 |
foreach ($ServiceName in @('cloudbase-init')) {
Write-Host "Enabling service '$ServiceName'"
& "sc.exe" config "$ServiceName" start= auto
Start-Service "$ServiceName"
}
Remove-Item C:\Murano\nextunattend.xml
|
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/Write-InvocationInfo.ps1 | Write-InvocationInfo.ps1 |
function Write-InvocationInfo {
param (
$Invocation,
[Switch] $End
)
if ($End) {
Write-LogDebug "</function name='$($Invocation.MyCommand.Name)'>"
}
else {
Write-LogDebug "<function name='$($Invocation.MyCommand.Name)'>"
Write-LogDebug "<param>"
... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/SQLServerForAOAG.ps1 | SQLServerForAOAG.ps1 |
trap {
&$TrapHandler
}
function Install-SqlServerPowerShellModule {
param (
[String] $SetupRoot = ''
)
begin {
Show-InvocationInfo $MyInvocation
}
end {
Show-InvocationInfo $MyInvocation -End
}
process {
trap {
&$TrapHandler
... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/Failover-Cluster.ps1 | Failover-Cluster.ps1 | <#
.DESCRIPTION
## Failover Cluster Input Data (from the UI)
* Domain Membership
- [String] / [Select box] $DomainName - Domain name
* Domain User Credentials
- [String] $UserName - Username
- [Password string] $UserPassword - User password
* Shared Folder Information
- [String] $ShareServe... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/Join-Domain.ps1 | Join-Domain.ps1 |
trap {
&$TrapHandler
}
Function Join-Domain {
<#
.SYNOPSIS
Executes "Join domain" action.
Requires 'CoreFunctions' module.
#>
param (
[String] $DomainName = '',
[String] $UserName = '',
[String] $Password = '',
[String] $OUPath = '',
[Switch] $AllowRestart
)
if ($UserNa... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/OptionParser.ps1 | OptionParser.ps1 | function New-Option ([string]$Name, [switch]$Switch, [switch]$Boolean, [switch]$String, [switch]$List, $Constraints=$null) {
<#
.SYNOPSIS
Creates Option object
.DESCRIPTION
Option object is a virtual object represtnting typed command line option. These objects encapsulate escaping and
va... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/Start-PowerShellProcess.ps1 | Start-PowerShellProcess.ps1 |
trap {
&$TrapHandler
}
function Select-CliXmlBlock {
param (
[String] $Path,
[String] $OutFile = [IO.Path]::GetTempFileName()
)
$TagFound = $false
Get-Content $Path |
ForEach-Object {
if ($_ -eq '#< CLIXML') {
$TagFound = $tru... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/SQLServerInstaller.ps1 | SQLServerInstaller.ps1 | Import-Module NetSecurity
function Test-Key([string]$path, [string]$key) {
if(!(Test-Path $path)) { return $false }
if ((Get-ItemProperty $path).$key -eq $null) { return $false }
return $true
}
function Resolve-SQLServerPrerequisites {
<#
.SYNOPSIS
Installs MS SQL Server prerequisit... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/New-SqlServerSystemAccount.ps1 | New-SqlServerSystemAccount.ps1 |
trap {
&$TrapHandler
}
function New-SqlServerSystemAccount {
param (
# (REQUIRED) Domain Name
[Parameter(Mandatory=$true)]
[String] $DomainName,
# (REQUIRED) User name who has permissions to create and modify userPassword
# Usually this is the domain ad... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/Update-ServiceConfig.ps1 | Update-ServiceConfig.ps1 |
trap {
&$TrapHandler
}
function Update-ServiceConfig {
param (
[String] $Name,
[String] $RunAsUser = '',
[String] $DomainName = '.',
[String] $Password = '',
[Switch] $RunAsLocalService
)
begin {
Show-InvocationInfo $MyInvocation
}... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/FailoverCluster.ps1 | FailoverCluster.ps1 | function Init-Clustering {
<#
.SYNOPSIS
Installs all the prerequisites for windows failover cluster.
.DESCRIPTION
Checks that computer is a part of Windows Domain.
Installs Failover Clustering windows feature with management tools if needed.
Restart may be required to continue insta... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/SQLServerOptionParsers.ps1 | SQLServerOptionParsers.ps1 | function New-OptionParserInstall {
<#
.SYNOPSIS
Creates an option parser for MS SQL Server 2012 setup "INSTALL" action.
.DESCRIPTION
Use this cmdlet to create an option parser for MS SQL Server 2012 setup "INSTALL" action.
All documented option are supported. See the following link for d... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/ImportCoreFunctions.ps1 | ImportCoreFunctions.ps1 | Import-Module CoreFunctions -Force
function Show-InvocationInfo {
param (
$Invocation,
[Switch] $End
)
if ($End) {
Write-LogDebug "</function name='$($Invocation.MyCommand.Name)'>"
}
else {
Write-LogDebug "<function name='$($Invocation.MyCommand.Name)'... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/Export-Function.ps1 | Export-Function.ps1 |
trap {
&$TrapHandler
}
function Export-Function {
param (
[String[]] $Name,
[Parameter(ValueFromPipeline=$true)]
[String] $Path = [IO.Path]::GetTempFileName(),
[Switch] $All
)
if ([IO.Path]::GetExtension($Path) -ne 'ps1') {
$null = Rename-Item... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Functions/Install-SQLServer.ps1 | Install-SQLServer.ps1 |
trap {
&$TrapHandler
}
Function ConvertTo-Boolean {
param (
$InputObject,
[Boolean] $Default = $false
)
try {
[System.Convert]::ToBoolean($InputObject)
}
catch {
$Default
}
}
Function Show-Environment {
foreach ($item in (Get-... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/Config.ps1 | Config.ps1 | <#
Naming convention:
== Normal variables
** Set: $NormalVar = 123
** Get: Write-Host $NormalVar
== Script-scope variables
** Set: $script:__ScriptScopeVar = 123
** Get: Write-Host $__ScriptScopeVar
== Global-scope variables
** Set: $global:__GlobalScopeVar__ = 123
** Get: Write-Host $__GlobalScopeVar__... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/include/NotCoreFunctions.ps1 | NotCoreFunctions.ps1 | Function Set-LocalUserPassword {
param (
[String] $UserName,
[String] $Password,
[Switch] $Force
)
trap { Stop-Execution $_ }
if ((Get-WmiObject Win32_UserAccount -Filter "LocalAccount = 'True' AND Name='$UserName'") -eq $null) {
throw "Unable to find local us... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/include/Base64.ps1 | Base64.ps1 |
Function ConvertTo-Base64String {
<#
#>
[CmdletBinding(DefaultParameterSetName="FromString")]
param (
[Parameter(Position=1,ParameterSetName="FromString")]
[String] $String,
[Parameter(ParameterSetName="FromFile")]
[String] $Path,
[Parameter(ParameterSetNam... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/include/ExecutionPlan.ps1 | ExecutionPlan.ps1 | function New-ExecutionResult {
param (
[Object] $Result = $null,
[Switch] $IsException
)
$obj = New-Object -TypeName PSObject |
Add-Member -Type NoteProperty -Name IsException -Value ([Bool] $IsException) -PassThru |
Add-Member -Type NoteProperty -Name Result -Value ... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/include/Logger.ps1 | Logger.ps1 | Function Initialize-Logger {
param (
[String] $ModuleName = $__ModuleName,
[String] $LogPath = $__DefaultLogPath
)
if (-not ("log4net.LogManager" -as [type])) {
$FileStream = ([System.IO.FileInfo] (Get-Item "$__ModulePath\log4net.dll")).OpenRead()
$AssemblyBytes = ... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/include/Zip.ps1 | Zip.ps1 | [Void] [System.Reflection.Assembly]::LoadFrom("$__ModulePath\Ionic.Zip.dll")
Function Compress-Folder {
<#
#>
[CmdLetBinding()]
param (
[Parameter(Mandatory=$true)]
[String] $Path,
[String] $ZipFile = "",
[Switch] $TempFile,
[Switch] $ContentOnly
... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/include/Module.ps1 | Module.ps1 | |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/include/Functions.ps1 | Functions.ps1 | Function Stop-Execution {
<#
.SYNOPSIS
Breaks execution with specified error code.
.DESCRIPTION
Function break script execution with error code provided. Error code may be 0 in case of non-error stop.
It also tries to parse ErrorRecord or Exception object (if provided) and logs this information.
#>
[Cmd... |
PowerShellCorpus/Github/openstack_murano-deployment/contrib/windows/WindowsPowerShell/Modules/CoreFunctions/include/SqlFunctions.ps1 | SqlFunctions.ps1 | |
PowerShellCorpus/Github/LaurenceCheng_slackbot_UAT_result_for_teamcity_agent/script.ps1 | script.ps1 | Function ExtractString([String]$string, [String]$prefix, [String]$end_char) {
$start_index = $string.IndexOf($prefix) + $prefix.Length
$end_index = $string.IndexOf($end_char, $start_index)
$string.Substring($start_index, $end_index - $start_index)
}
<# ============================ Authentication Setu... |
PowerShellCorpus/Github/suleyman6186_git_test/MvcMovie/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
try {
# Set up variables
$timestamp = (Get-Date).ToString('yyyyMMddHHmmss')
$projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar))
$catalogName = "aspnet-$projectNa... |
PowerShellCorpus/Github/suleyman6186_git_test/MvcMovie/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/suleyman6186_git_test/MvcMovie/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/suleyman6186_git_test/MvcMovie/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/suleyman6186_git_test/MvcMovie/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/suleyman6186_git_test/MvcMovie/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/GLiMPSEiNATOR-reddit_MEServiceDeskAPI/MESDAPI.ps1 | MESDAPI.ps1 | If (Test-Path -Path .\key.txt)
{
$MEBaseURL = @(Get-Content -Path .\key.txt)[0]
$MEAPIKey = @(Get-Content -Path .\key.txt)[1]
}
else {
Write-Error -Message 'You need your ME SD URL and API key in key.txt, one per line.'
}
<#
This is how the Category > Subcategory > Item structure ends up.
$CategoryHash['48... |
PowerShellCorpus/Github/OPSTest_E2E_Provision_1486634320890/.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/j0t4_powershell_tests/word_img_2_clipboard.ps1 | word_img_2_clipboard.ps1 | $Word = New-Object -ComObject Word.Application
$Document=$Word.documents.open("c:\tmp\worddoc.docx")
$paras = $Document.Paragraphs
write-host $paras.count
foreach ($para in $paras)
{
Write-Host ("-"+$para.Range.Text+"-")
if ($para.Range.inlineshapes.count -gt 0){
write-host $para.Rang... |
PowerShellCorpus/Github/j0t4_powershell_tests/clipboard_img_2_file.ps1 | clipboard_img_2_file.ps1 | #Add-Type -Assembly PresentationCore
$img = [Windows.Clipboard]::GetImage()
if ($img -eq $null) {
Write-Host "Imagen no encontrada."
Exit
}
Write-Host ("Imagen encontrada. {0}x{1} Pixels." -f $img.PixelWidth,$img.PixelHeight)
$fcb = new-object Windows.Media.Imaging.FormatConvertedBitmap($img, [Windows.... |
PowerShellCorpus/Github/sampka_AddIndividualBindings/UpdateIndividualbindings.ps1 | UpdateIndividualbindings.ps1 |
$AppCmd = "C:\Windows\system32\inetsrv\appcmd.exe"
$Sitename = "TSIMidware"
$bothnumbers = [regex]::matches($($env:computername), "[/\d+/]")
$Datacenter = $bothnumbers[0].value
$Servernumber = [int]$bothnumbers[1].value + 4
if ($Datacenter -eq 1)
{
$Iurl = $Enviroment + "1w... |
PowerShellCorpus/Github/TerribleDev_ScmOutOfOffice/src/ScmOutOfOffice/Properties/PublishProfiles/tparnellOutOfOffice-publish.ps1 | tparnellOutOfOffice-publish.ps1 | [cmdletbinding(SupportsShouldProcess=$true)]
param($publishProperties=@{}, $packOutput, $pubProfilePath)
# to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327
try{
if ($publishProperties['ProjectGuid'] -eq $null){
$publishProperties['ProjectGuid'] = '802e67be-09d3-4b3... |
PowerShellCorpus/Github/VojtechGalla_PilsFree_Hack/IfExist.ps1 | IfExist.ps1 | $source = 'C:\Users\Vojtěch\Desktop\script\ip-hash.txt'
$output = 'C:\Users\Vojtěch\Desktop\script\hash.txt'
$delka = (Get-Content $source).Length
for($i = 0;$i -le ($delka-1); $i++ )
{
$ip = (Get-Content $source)[$i]
$ipp = "C:\Users\Vojtěch\Desktop\John179\Hashe\"+$ip
If (Test-Path $ipp){
... |
PowerShellCorpus/Github/VojtechGalla_PilsFree_Hack/GetIPs.ps1 | GetIPs.ps1 | $source = 'C:\Users\Vojtěch\Desktop\script\ip.txt'
$output = 'C:\Users\Vojtěch\Desktop\script\outip.txt'
$strFileName = 'C:\Users\Vojtěch\Desktop\script\web1.html'
$delka = (Get-Content $source).Length
for($i = 0;$i -le ($delka-1); $i++ )
{
If (Test-Path $strFileName){
Remove-Item $strFileName
}
... |
PowerShellCorpus/Github/VojtechGalla_PilsFree_Hack/GetHashes.ps1 | GetHashes.ps1 | $source = 'C:\Users\Vojtěch\Desktop\script\outip.txt'
$delka = (Get-Content $source).Length
[void] [System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")
[void] [System.Reflection.Assembly]::LoadWithPartialName("'Microsoft.VisualBasic")
Add-Type -Assembly "Microsoft.VisualBasic"
$ie=New-Objec... |
PowerShellCorpus/Github/VojtechGalla_PilsFree_Hack/IPtoPasswd.ps1 | IPtoPasswd.ps1 | $source = 'C:\Users\Vojtěch\Desktop\PilsFree_Hack\John179\run\Hashe_IP'
$output = 'C:\Users\Vojtěch\Desktop\PilsFree_Hack\h.txt'
$ls = 'C:\Users\Vojtěch\Desktop\PilsFree_Hack\ls.txt'
ls -name $source > $ls
$delka = (ls $source).Count
for($i = 0;$i -le $delka; $i++ )
{
$ip = (Get-Content $ls)[$i]
$ans = C... |
PowerShellCorpus/Github/mccannjake_test/lazy.ps1 | lazy.ps1 |
# This does nothing because I am lazy |
PowerShellCorpus/Github/mccannjake_test/hello.ps1 | hello.ps1 |
$name = "Hello World"
echo $name
|
PowerShellCorpus/Github/xl-Tw1sT-lx_DUxxxUNlimited/Invoke-Shellcode.ps1 | Invoke-Shellcode.ps1 | function Invoke-Shellcode
{
<#
.SYNOPSIS
Inject shellcode into the process ID of your choosing or within the context of the running PowerShell process.
.DESCRIPTION
Portions of this project was based upon syringe.c v1.2 written by Spencer McIntyre
PowerShell expects shellcode to be in the form 0xXX,0xXX,... |
PowerShellCorpus/Github/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/packages/NLog.Config.3.1.0.0/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
$configItem = $project.ProjectItems.Item("NLog.config")
# set 'Copy To Output Directory' to 'Copy if newer'
$copyToOutput = $configItem.Properties.Item("CopyToOutputDirectory")
$copyToOutput.Value = 1
# set 'Build Action' to 'Content'
$buildAction = $confi... |
PowerShellCorpus/Github/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
try {
# Set up variables
$timestamp = (Get-Date).ToString('yyyyMMddHHmmss')
$projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar))
$catalogName = "aspnet-$project... |
PowerShellCorpus/Github/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/9ICOH_PsychologyVisitSite/trank/PsychologyVisitSite/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/kbrinley_CRUDApp/CRUDApp.Web/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
try {
# Set up variables
$timestamp = (Get-Date).ToString('yyyyMMddHHmmss')
$projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar))
$catalogName = "aspnet-$project... |
PowerShellCorpus/Github/kbrinley_CRUDApp/CRUDApp.Web/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/kbrinley_CRUDApp/CRUDApp.Web/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/kbrinley_CRUDApp/CRUDApp.Web/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/kbrinley_CRUDApp/CRUDApp.Web/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/kbrinley_CRUDApp/CRUDApp.Web/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/PlagueHO_WSManGPOTools/Install-WsManHttpsListener.ps1 | Install-WsManHttpsListener.ps1 | <#
.SYNOPSIS
Is used to install an HTTPS WSMan Listener on a computer with a valid certificate.
.DESCRIPTION
This script is designed to be called from a Startup/Logon PowerShell GPO.
The Distinguished Name of the certificate issuer must be passed to the script.
.PARAMETER Issuer
The full Distingu... |
PowerShellCorpus/Github/frenchsomething_KACE-User-Alert/KACE-Alert.ps1 | KACE-Alert.ps1 | <#
.SYNOPSIS
Launch, Control, and Track the KACE Alert dialog windows.
.DESCRIPTION
You can use KACE-Prompt to launch, udpate, or destroy KACE Agent Alert windows.
.PARAMETER Name
Required parameter, unique string that identifies the alert window for updates or termination. This string also appears in the ... |
PowerShellCorpus/Github/magdalena70_Back-End_Database-Applications/2.Homework-Entity-Framework-CodeFirst/01.CodeFirst_StudentSystem/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/magdalena70_Back-End_Database-Applications/2.Homework-Entity-Framework-CodeFirst/01.CodeFirst_StudentSystem/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/magdalena70_Back-End_Database-Applications/2.Homework-Entity-Framework-CodeFirst/01.CodeFirst_StudentSystem/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/magdalena70_Back-End_Database-Applications/2.Homework-Entity-Framework-CodeFirst/01.CodeFirst_StudentSystem/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/magdalena70_Back-End_Database-Applications/JSON_Demo/packages/Newtonsoft.Json.7.0.1/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://www.newtonsoft.com/json/install?version=" + $package.Version
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindo... |
PowerShellCorpus/Github/magdalena70_Back-End_Database-Applications/JSON_Demo/packages/NServiceBus.5.1.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if($toolsPath){
if (-Not (Get-Module NServiceBus.Powershell)) {
$pathToNServiceBusPSCmdLets = Join-Path $toolsPath NServiceBus.Powershell.Development.dll
if(Test-Path $pathToNServiceBusPSCmdLets){
Import-Module $pathToNServiceBusPSCmdLets
Write-... |
PowerShellCorpus/Github/magdalena70_Back-End_Database-Applications/JSON_Demo/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/magdalena70_Back-End_Database-Applications/DbAppsExamPreparation/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/magdalena70_Back-End_Database-Applications/DbAppsExamPreparation/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/magdalena70_Back-End_Database-Applications/DbAppsExamPreparation/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/magdalena70_Back-End_Database-Applications/DbAppsExamPreparation/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/magdalena70_Back-End_Database-Applications/DbAppsExamPreparation/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/magdalena70_Back-End_Database-Applications/DbAppsExamPreparation/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/magdalena70_Back-End_Database-Applications/1.Homewor-Entity-Framework/DbContext-SoftUniDatabase_DbFirst/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/magdalena70_Back-End_Database-Applications/1.Homewor-Entity-Framework/DbContext-SoftUniDatabase_DbFirst/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/magdalena70_Back-End_Database-Applications/4.Homework-Entity-Framework-Transactions/1.News Database (Code-First)/NewsDB/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/magdalena70_Back-End_Database-Applications/4.Homework-Entity-Framework-Transactions/1.News Database (Code-First)/NewsDB/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.