full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/rupeshray_SmartSchool/SmartSchool/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/oswilehi_Laboratorio-Estructuras/Lab02-JoseAlvarez-OscarLemus/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/pratibhama_Cybage_assign/Study/C#/Demo/EntityFrameworkDemo/ConsoleApplication1/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/pratibhama_Cybage_assign/Study/C#/Demo/EntityFrameworkDemo/ConsoleApplication1/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/pratibhama_Cybage_assign/Study/C#/Demo/EntityFrameworkDemo/ConsoleApplication1/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/pratibhama_Cybage_assign/Study/C#/Demo/EntityFrameworkDemo/ConsoleApplication1/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/pratibhama_Cybage_assign/Study/C#/Demo/LinqDemo/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/pratibhama_Cybage_assign/Study/C#/Demo/LinqDemo/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/pratibhama_Cybage_assign/Study/C#/Demo/EFDemos/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/pratibhama_Cybage_assign/Study/C#/Demo/EFDemos/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/pratibhama_Cybage_assign/Study/MVC/Demo/ControllerViews/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/ControllerViews/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/ControllerViews/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/ControllerViews/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/ControllerViews/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/ControllerViews/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/ControllerViews/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/ControllerViews/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/HelloMvcDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/Models/ModelsDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/Models/ModelsDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/Models/ModelsDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/Models/ModelsDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/Models/ModelsDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/Models/ModelsDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/Models/ModelsDemo/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/pratibhama_Cybage_assign/Study/MVC/Demo/Models/ModelsDemo/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/Nurfballs_PowerShell/Deploy-Office.ps1 | Deploy-Office.ps1 | #Map Deployment Share
NET USE z: \\192.168.0.1\DeploymentShare$ /user:vmdomain\Administrator pa55word!
# Get local machine serial number
$LocalSerialNumber = Get-WmiObject Win32_ComputerSystemProduct -ComputerName localhost | Select-Object -ExpandProperty IdentifyingNumber
# Import matching keys from spreadshee... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Generate-Password.ps1 | Generate-Password.ps1 | [string]$Password = ''
# Define all lower case characters
[char[]]$lowercase = ''
foreach ($i in 98..100) { $lowercase += ([char]($i)) } # b-d
foreach ($i in 102..104) { $lowercase += ([char]($i)) } # f-h
foreach ($i in 106..110) { $lowercase += ([char]($i)) } # j-n
foreach ($i in 112..116) { $lowercase += ([c... |
PowerShellCorpus/Github/Nurfballs_PowerShell/MyHotline/Generate-MyHotlineExchangeReport.ps1 | Generate-MyHotlineExchangeReport.ps1 | Add-PSSnapin Microsoft.Exchange.Management.Powershell.E2010
Import-Module ActiveDirectory
$data = Invoke-WebRequest https://mpanel.myhotline.com.au/webservices/machpanelservice.asmx -method post -ContentType "text/xml" -InFile C:\HotlineIT\Scripts\MPanelSOAP_GetAllSubscriptions.txt
[xml]$xml = $data.content
$Su... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Networking/Get-NetworkInformation.ps1 | Get-NetworkInformation.ps1 | function Export-NetworkInfo
{
param(
#[parameter(ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$True)]
[parameter(Mandatory=$True)]
[string[]]$ComputerName = $env:computername
)
begin{ New-Item -ItemType Directory -Force -Path C:\Hotline | Out-Null }
process ... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Windows XP/Deploy-PowershellToXP.ps1 | Deploy-PowershellToXP.ps1 | param([string]$ComputerName)
# ----------------------------------------------
# Define executible locations
# ----------------------------------------------
$ScriptPath = "C:\Hotline\Scripts\PowerShell for XP"
$psExec = "$ScriptPath\psexec.exe"
$dotNetFramework = "$ScriptPath\NetFx20SP1_x86.exe"
$WindowsManagementFame... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Windows Server/Move-DataShare.ps1 | Move-DataShare.ps1 | <#
.SYNOPSIS
Moves data from one share to another.
.DESCRIPTION
The Move-ShareData function will use robocoppy to move all files from one share to another, keeping in tact all NTFS permissions.
All copy operations are logged to a log file you specify.
Upon script completion, the log file will be emailed to ... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Windows Server/Copy-WindowsShare.ps1 | Copy-WindowsShare.ps1 | <#
.SYNOPSIS
Gatheres the share information from a remote share, and creates the folder, and replicates the permissions on to a local folder.
.DESCRIPTION
The Copy-WindowsShare funtion will query the permissions of a share on a remote server, create a folder on the local machine, and apply the same share name and... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Misc/Parse-DNSZones.ps1 | Parse-DNSZones.ps1 | $files = Get-Childitem "I:\Clients\HVG\HVGDomains\" -filter "*.txt"
foreach ($File in $files)
{
$domain = Get-Content $file.FullName
$outputfile = "I:\Clients\HVG\HVGDomains\Processed\" + $File.Name
foreach ($line in $domain)
{
# search for A records
$regex = [regex]"\b(A)\... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Misc/Set-BingWallpaper.ps1 | Set-BingWallpaper.ps1 | Function Set-WallPaper($value){
add-type @"
using System;
using System.Runtime.InteropServices;
using Microsoft.Win32;
namespace Wallpaper
{
public enum Style : int
{
Tile, Center, Stretch, NoChange
}
public class Setter {
public const int SetDesktopWallpaper = 20;
public... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Veeam/Veeam-CopyToUSB.ps1 | Veeam-CopyToUSB.ps1 | Function Create-CWTicket {
param(
[string]$Summary,
[string]$Status="New",
[string]$Board="Service/MSP",
[String]$Description,
[String]$CompanyName="Hotline"
)
# Generate the POST URL
$url = "https://cw.hotlineit.com/v4_6_release/services/system_io... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Veeam/Veeam-ResetCBT.ps1 | Veeam-ResetCBT.ps1 | param (
[Parameter(Mandatory=$true)][string]$VMFolder,
[Parameter(Mandatory=$true)][string]$VMName
)
Write-Output "Loading VMWare PowerCLI snappins ... "
Add-PSSnapin VMWare.VIMAutomation.Core
Add-PSSnapin VMWare.VIMAutomation.VDS
Remove-Module -Name Hyper-V
Write-Output "Connecting to vc.hotline.... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Active Directory/Set-ExtendedUserAccountInfo.ps1 | Set-ExtendedUserAccountInfo.ps1 | Import-Module ActiveDirectory
$ImportedUsers = Import-CSV C:\Hotline\signatures.csv
ForEach ($User in $ImportedUsers)
{
Write-Output "Processing $($User.SAMAccountName)"
ForEach ($Property in $user.PSObject.Properties)
{
# If the field is blank in the CSV
# set the value t... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Active Directory/Get-ExtendedUserAccountInfo.ps1 | Get-ExtendedUserAccountInfo.ps1 | # !! Must be run on a Domain Controller !! #
# !! or machine with AD module installed !! #
Import-Module ActiveDirectory
$DetailedUsers = @()
# ' Get a list of all enabled user accounts
$users = Get-ADUser -Filter {Enabled -eq "True"} -Properties SAMAccountName, GivenName, Surname, Title, MobilePhone, Street... |
PowerShellCorpus/Github/Nurfballs_PowerShell/WoW/WoW-PerfectGemCutProfitAnalyzer.ps1 | WoW-PerfectGemCutProfitAnalyzer.ps1 | # Wowuction URL
$url = "http://www.wowuction.com/us/bloodscalp/alliance/Tools/RealmDataExportGetFileStatic?type=csv&token=Oq_4EsX7G1zjuxD7Fits0w2"
# Download the file
$workingdir = "C:\Windows\Temp"
$webclient = New-Object System.Net.WebCLient
$file = "$workingdir\wowuction.csv"
$webclient.DownloadFile($url,$fi... |
PowerShellCorpus/Github/Nurfballs_PowerShell/WoW/WoW_Get-Recipe.ps1 | WoW_Get-Recipe.ps1 | $WebClient = New-Object net.webclient
# Recipe Lookup
$RecipeID = '148290'
$FeedURL = "http://us.battle.net/api/wow/recipe/$RecipeID"
$Recipe = $WebClient.Downloadstring($FeedURL) | ConvertFrom-Json
Write-Output $Recipe
|
PowerShellCorpus/Github/Nurfballs_PowerShell/WoW/WoW-GlyphTechniqueFinder.ps1 | WoW-GlyphTechniqueFinder.ps1 | # API Documentation = http://blizzard.github.io/api-wow-docs/
$Character = "Girthy"
$Realm = "Bloodscalp"
$FeedURL = "http://us.battle.net/api/wow/character/$Realm/$($Character)?fields=professions"
$WebClient = New-Object net.webclient
$Json = $WebClient.Downloadstring($FeedURL) | ConvertFrom-Json
$Primar... |
PowerShellCorpus/Github/Nurfballs_PowerShell/WoW/WoW-CharacterFeed.ps1 | WoW-CharacterFeed.ps1 | Function Get-NewsFeed {
param(
[String]$Character,
[String]$Realm
)
#$Character = "Chunder"
#$Realm = "Blackrock"
Write-Host "Displaying news feed for $Character @ $Realm" -ForegroundColor Yellow
$FeedURL = "http://us.battle.net/api/wow/character/$Realm/$($Character)?fi... |
PowerShellCorpus/Github/Nurfballs_PowerShell/WoW/WoW_Get-Spell.ps1 | WoW_Get-Spell.ps1 | $WebClient = New-Object net.webclient
# Spell Lookup
$SpellID = '148266'
$FeedURL = "http://us.battle.net/api/wow/spell/$SpellID"
$Spell = $WebClient.Downloadstring($FeedURL) | ConvertFrom-Json
Write-Output $Spell
|
PowerShellCorpus/Github/Nurfballs_PowerShell/WoW/WoW_Get-Item.ps1 | WoW_Get-Item.ps1 | $WebClient = New-Object net.webclient
# Item Lookup
$ItemID = '104219'
$FeedURL = "http://us.battle.net/api/wow/item/$ItemID"
$Item = $WebClient.Downloadstring($FeedURL) | ConvertFrom-Json
Write-Output $Item
|
PowerShellCorpus/Github/Nurfballs_PowerShell/Project Euler/Problem2.ps1 | Problem2.ps1 | # Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
# 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
# By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
... |
PowerShellCorpus/Github/Nurfballs_PowerShell/Project Euler/Problem1.ps1 | Problem1.ps1 | # If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
# Find the sum of all the multiples of 3 or 5 below 1000.
$answer = 0
for ($i=1; $i -lt 1000; $i++)
{
if ($i/3 -is [int]) { $answer += $i }
elseif ($i/5 -is [int]) { $answ... |
PowerShellCorpus/Github/Nurfballs_PowerShell/LabTech/Get-DiskUsage.ps1 | Get-DiskUsage.ps1 |
# Requirements:
# MySQL .NET connector
# http://dev.mysql.com/downloads/file.php?id=450594
function MySQLQuery
{
Param(
[Parameter(
Mandatory = $true,
ParameterSetName = '',
ValueFromPipeline = $true)]
[string]$Query
)
$MySQLAdminUserName = 'username'
... |
PowerShellCorpus/Github/Nurfballs_PowerShell/HIT/HIT_Verify-IMReplicationPath.ps1 | HIT_Verify-IMReplicationPath.ps1 | # Created by Casey Mullineaux
# Date: 21-05-2013
# This script will query the ImageManager database for the list of folders that images
# are being replicated to, and make sure they exist. If they dont, it will create them.
# Exit Codes
# 1 - Error occurred connecting to IM database
# 2 - Error occurred boo... |
PowerShellCorpus/Github/Nurfballs_PowerShell/vCloud UsageMeter/Get-Customers.ps1 | Get-Customers.ps1 | # Example
# http://blog.briankmarsh.com/vmware-usage-meter-api/
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate ... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/~Configure_XTMv.ps1 | ~Configure_XTMv.ps1 | $GuestUsername = "admin"
$GuestPassword = ConvertTo-SecureString "readwrite" -AsPlainText -Force
$PSCred = New-Object System.Management.Automation.PSCredential($GuestUsername,$GuestPassword)
$vm = Get-VM -Name XTMv -Location "TestCustomer"
Invoke-VMScript -ScriptText 'configure; interface FastEthernet 0; ip addre... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/Create-VeeamBackupJob.ps1 | Create-VeeamBackupJob.ps1 | param (
[Parameter(Mandatory=$true)][string]$CustomerID
)
# Load the Veeaem Powershell Snapin
Add-PsSnapin -Name VeeamPSSnapIn
# Find the resource pool matching the CustomerID
$respool = Find-VBRViEntity -ResourcePools -Server vsphere.hotline.net.au | Where-Object { $_.Name -eq $CustomerID }
$respool
... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/Provision-VM.ps1 | Provision-VM.ps1 | [Cmdletbinding()]
param(
[Parameter(Mandatory=$True, HelpMessage="CustomerID as defined by the VMware tag for this customer.")]
[string]$CustomerID,
[Parameter(Mandatory=$True, HelpMessage="Hostname to set for the new virtual machine.")]
[Alias('hostname')]
[Alias('computername')]
[... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/Provision-HostedCustomer.ps1 | Provision-HostedCustomer.ps1 | # Reqirements:
# 1. A tag in VMWare exists for the CustomerID.
# 2. ovftool is installed: - Required to deploy Watchguard XTMv
# -- Download: https://developercenter.vmware.com/web/dp/tool/ovf
# 3. VMWare PowerCLI
param (
[Parameter(Mandatory=$True)][string]$CustomerID,
[Parameter(Mandatory=$true)][str... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/~Configure-ProvisionedVM.ps1 | ~Configure-ProvisionedVM.ps1 | #$VM = "Automatic-2012"
Param(
[Parameter(Mandatory=$True)]
[Vmware.VIMAutomation.ViCore.Impl.V1.Inventory.VirtualMachineImpl]$VM
)
$GuestUsername = "hotadmin"
$GuestPassword = ConvertTo-SecureString "Hotline68+1" -AsPlainText -Force
$PSCred = New-Object System.Management.Automation.PSCredential($G... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/Update-VMSettings.ps1 | Update-VMSettings.ps1 | param(
[Parameter(Mandatory=$True)]
[string]$VMName
)
Add-PSSnapin VMWare.VimAutomation.Core
Connect-VIServer localhost
#$VMName = "SVR-COLO-VO"
# Shutdown the guest
Get-VM $VMName | Shutdown-VMGuest -Confirm:$False
Write-Output "Stopping VM Guest"
Do {
Write-Output "Sleeping for 10 second... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/Testing.ps1 | Testing.ps1 | # Set credentials for SVR-COLO-BACK
$username = "hotadmin"
$password = ConvertTo-SecureString (Read-Host "Enter password to connect to SVR-COLO-BCK (hotadmin)") -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential("SVR-COLO-BCK\$username",$password)
# Create a new PS Session ... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/Migrate-HostNetworks.ps1 | Migrate-HostNetworks.ps1 | param (
[Parameter(Mandatory=$True)][string]$VMHost,
[Parameter(Mandatory=$True)][string]$ManagementIP
)
#$VMhost = "svr-inf-esxi1.hotline.net.au"
#$ManagementIP = "210.87.22.81"
# Add the VMWare Snappin
Try
{
Write-Verbose "Loading VMWare PowerCLI snappins ... "
Add-PSSnapin VMWare.VIMAuto... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/~Deploy-XTMv.ps1 | ~Deploy-XTMv.ps1 | param(
[Parameter(Mandatory=$true)][string]$CustomerID
#[Parameter(Mandatory=$true)][string]$VLANID,
#[Parameter(Mandatory=$true)][string]$PublicIP
)
# Requirements:
# -- Download: https://developercenter.vmware.com/web/dp/tool/ovf
# Make sure ovftool is installed
if ((Test-Path 'C:\Program Fi... |
PowerShellCorpus/Github/Nurfballs_PowerShell/VMWare/~Deploy-XTMv_Hotline.ps1 | ~Deploy-XTMv_Hotline.ps1 | param(
[Parameter(Mandatory=$true)][string]$CustomerID
#[Parameter(Mandatory=$true)][string]$VLANID,
#[Parameter(Mandatory=$true)][string]$PublicIP
)
# Requirements:
# -- Download: https://developercenter.vmware.com/web/dp/tool/ovf
# Make sure ovftool is installed
if ((Test-Path 'C:\Program Fi... |
PowerShellCorpus/Github/Nurfballs_PowerShell/ESET/Generate-ESETAntiVirusReport.ps1 | Generate-ESETAntiVirusReport.ps1 | Function SQLQuery {
Param(
[Parameter(
Mandatory = $true,
ParameterSetName = '',
ValueFromPipeline = $true)]
[string]$Query
)
$MySQLAdminUserName = 'sqlusername'
$MySQLAdminPassword = 'sqlpassword!'
$MySQLDatabase = 'sqldatabase'
$MySQLHost = 'sqlhost'
$ConnectionString = "server=" + $MySQLH... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_Provision_2017_4_14_30_5_16/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source url: ... |
PowerShellCorpus/Github/mhdr_BarcodeScanner_FoldingMachine_Sobhan/BarcodeScanner/packages/System.Data.SQLite.EF6.1.0.94.0/tools/net45/install.ps1 | install.ps1 | ###############################################################################
#
# provider.ps1 --
#
# Written by Joe Mistachkin.
# Released to the public domain, use at your own risk!
#
###############################################################################
param($installPath, $toolsPath, $package, ... |
PowerShellCorpus/Github/mhdr_BarcodeScanner_FoldingMachine_Sobhan/BarcodeScanner/packages/System.Data.SQLite.EF6.1.0.94.0/tools/net451/install.ps1 | install.ps1 | ###############################################################################
#
# provider.ps1 --
#
# Written by Joe Mistachkin.
# Released to the public domain, use at your own risk!
#
###############################################################################
param($installPath, $toolsPath, $package, ... |
PowerShellCorpus/Github/mhdr_BarcodeScanner_FoldingMachine_Sobhan/BarcodeScanner/packages/System.Data.SQLite.EF6.1.0.94.0/tools/net40/install.ps1 | install.ps1 | ###############################################################################
#
# provider.ps1 --
#
# Written by Joe Mistachkin.
# Released to the public domain, use at your own risk!
#
###############################################################################
param($installPath, $toolsPath, $package, ... |
PowerShellCorpus/Github/mhdr_BarcodeScanner_FoldingMachine_Sobhan/BarcodeScanner/packages/Newtonsoft.Json.6.0.6/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/mhdr_BarcodeScanner_FoldingMachine_Sobhan/BarcodeScanner/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/mhdr_BarcodeScanner_FoldingMachine_Sobhan/BarcodeScanner/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/mepples21_broan_office365/Mail Migration/Enable-O365Mailboxes.ps1 | Enable-O365Mailboxes.ps1 | <#
.SYNOPSIS
Creates mailboxes in Office 365 and links existing user accounts on-prem.
.DESCRIPTION
.PARAMETER CsvPath
Specifies the CSV file to import to use for user account generation. The CSV can have 3 columns, Identity and RemoteRoutingAddress. All other columns will be ignored.
The Identity column ... |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Set-EmailToMatchUPN.ps1 | Set-EmailToMatchUPN.ps1 | #Run from on-prem Exchange Management Shell to set the WindowsEmailAddress field to match the userPrincipalName field
Get-User abner.guo | Where { -Not [string]::IsNullOrEmpty($_.UserPrincipalName) } | ForEach { Set-User -Identity $_.Guid.ToString() -WindowsEmailAddress $_.UserPrincipalName.ToString() } |
PowerShellCorpus/Github/mepples21_broan_office365/Mail Migration/Remove-EmailAddresses.ps1 | Remove-EmailAddresses.ps1 | <#
.SYNOPSIS
Removes email addresses from relevant domains so that the domains may be moved over to the new Office 365 tenant.
.DESCRIPTION
.EXAMPLE
.LINK
.NOTES
Version: 1.0
Date: 03/30/2017
Authors: Michael Epping (mepping@concurrency.com)
Wishlist
- Better error checking and handling... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.