full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/baunegaard_vagrant-vs2017-devbox/provision/install-software-post-visualstudio.ps1
install-software-post-visualstudio.ps1
choco feature enable -n=allowGlobalConfirmation cinst sql-server-management-studio # ---- ReSharper Ultimate ---- # Commercial cinst resharper cinst resharpercpp cinst dotcover cinst dottrace cinst dotmemory # Free cinst dotpeek cinst teamcityaddin choco feature disable -n=allowGlobalConfirmation
PowerShellCorpus/Github/baunegaard_vagrant-vs2017-devbox/provision/install-windowsfeatures.ps1
install-windowsfeatures.ps1
choco feature enable -n=allowGlobalConfirmation # ---- Windows Features ---- cinst IIS-WebServerRole --source windowsfeatures cinst NetFx4Extended-ASPNET45 --source windowsfeatures cinst IIS-NetFxExtensibility45 --source windowsfeatures cinst IIS-ISAPIExtensions --source windowsfeatures cinst IIS-ISAPIFilter --...
PowerShellCorpus/Github/baunegaard_vagrant-vs2017-devbox/provision/configure-pre-windowssettings.ps1
configure-pre-windowssettings.ps1
# Set power plan to high performance. Write-Host "Setting power plan to high performance" Try { $HighPerf = powercfg -l | ForEach-Object{if($_.contains("High performance")) {$_.split()[3]}} $CurrPlan = $(powercfg -getactivescheme).split()[3] if ($CurrPlan -ne $HighPerf) {powercfg -setactive $HighPerf} } Cat...
PowerShellCorpus/Github/baunegaard_vagrant-vs2017-devbox/provision/configure-post-windowssettings.ps1
configure-post-windowssettings.ps1
New-Item ~\.ssh -Type Directory Copy-Item C:\vagrant\ssh\bashrc -Destination ~\.bashrc Install-BoxstarterPackage -PackageName ~\boxstarter\boxstarter-post-windowssettings.txt -DisableReboots # Cleanup Remove-Item ~\boxstarter -Recurse -Force Remove-Item C:\tmp -Recurse -Force
PowerShellCorpus/Github/HMcC-Tek_ActiveDirectory/massCreator.ps1
massCreator.ps1
# AD Module Check Write-Host "Checking if the Active Directory Module is installed" if ((Get-Module -name ActiveDirectory -ErrorAction SilentlyContinue | foreach { $_.Name }) -ne "ActiveDirectory") { Write-Host Active Directory Management has not been added to this session, adding it now... Import-Module Activ...
PowerShellCorpus/Github/gloob_gpii-build/windows/Build.ps1
Build.ps1
<# This script execute all the needed steps to build all the Windows GPII components. #> # Turn verbose on, change to "SilentlyContinue" for default behaviour. $VerbosePreference = "continue" # Include main Provisioning module. $scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path Import-Module (Jo...
PowerShellCorpus/Github/gloob_gpii-build/windows/Npm.ps1
Npm.ps1
<# This script install and setup all the needed npm packages. #> Import-Module (Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) 'Provisioning.psm1') -Force $npm = "npm" -f $env:SystemDrive Invoke-Command $npm "config set msvs_version 2015 --global" Invoke-Command $npm "install grunt-cli -g" Inv...
PowerShellCorpus/Github/gloob_gpii-build/windows/Installer.ps1
Installer.ps1
<# This script create all the installers for Windows GPII. #> Import-Module (Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) 'Provisioning.psm1') -Force $installerRepo = "https://github.com/gpii/gpii-wix-installer" $installerBranch = "v1.2.0" $mainDir = Join-Path $env:SystemDrive "vagrant" $ins...
PowerShellCorpus/Github/gloob_gpii-build/windows/Chocolatey.ps1
Chocolatey.ps1
<# This script install all the chocolatey packages and configure them. #> Import-Module (Join-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) 'Provisioning.psm1') -Force $chocolatey = "$env:ChocolateyInstall\bin\choco.exe" -f $env:SystemDrive $nodePath = "C:\Program Files (x86)\nodejs" $nodeVersion =...
PowerShellCorpus/Github/cerner-ebi_data-integration-deployment/Runbooks/ag052463TestGit.ps1
ag052463TestGit.ps1
$CredentialAssetName = 'ag052463' #Get the credential with the above name from the Automation Asset store $Cred = Get-AutomationPSCredential -Name $CredentialAssetName if(!$Cred) { Throw "Could not find an Automation Credential Asset named '${CredentialAssetName}'. Ma...
PowerShellCorpus/Github/cerner-ebi_data-integration-deployment/Runbooks/Hello.ps1
Hello.ps1
Write-Output "Hello World"
PowerShellCorpus/Github/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/cristianFSQ_Servicio_Tecnico_Automotriz/Proyecto/MvcApplicationSTA/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/brandonwardlaw_vZeroReclaim/vZeroReclaim.ps1
vZeroReclaim.ps1
#Title: vZeroReclaim.ps1 #Purpose: Downloads sdelete.exe from a file share, saves it to a local drive, then executes sdelete.exe -z against all drive letters. This is intended to zero out unused disk space to faciliate more efficient use of thin virtual disk provisioning. #See https://github.com/brandonwardlaw/vZe...
PowerShellCorpus/Github/ProjektyATH_MTGCM/Visual Project/packages/System.Data.SQLite.EF6.1.0.98.1/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/ProjektyATH_MTGCM/Visual Project/packages/System.Data.SQLite.EF6.1.0.98.1/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/ProjektyATH_MTGCM/Visual Project/packages/System.Data.SQLite.EF6.1.0.98.1/tools/net46/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/ProjektyATH_MTGCM/Visual Project/packages/System.Data.SQLite.EF6.1.0.98.1/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/ProjektyATH_MTGCM/Visual Project/packages/EntityFramework.6.0.2/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/ProjektyATH_MTGCM/Visual Project/packages/EntityFramework.6.0.2/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Json_In_MVC/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery-part2/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery-part2/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery-part2/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery-part2/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery-part2/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery-part2/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery-part2/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery-part2/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/packages/jQuery.1.9.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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/packages/jQuery.1.9.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 $vsVersion = [System.Version]::Parse($dte.Version) $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11 if (-not $supportsJsIntelliSenseFile) { $displayVersio...
PowerShellCorpus/Github/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/packages/jQuery.1.9.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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/dayan2_Json-MVC-POST-GET/Axaj_Add_Confirmation_jquery/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/sbandge_MyFiles/CreateFolder.ps1
CreateFolder.ps1
# Configure SMB Share and Set permissions New-Item -ItemType Directory -Force -Path "C:\tmp\Share" if(!(Get-SMBShare -Name "Share" -ea 0)){ New-SMBShare -Name "Share" -Path "C:\tmp\Share" -Description "A Share" } Get-SmbShareAccess -Name "Share" | Grant-SmbShareAccess -AccountName Every...
PowerShellCorpus/Github/hoangsoft90_hw-ngrok-tool/functions.ps1
functions.ps1
#Set-ExecutionPolicy RemoteSigned function randomStr($Length){ $set = "abcdefghijklmnopqrstuvwxyz0123456789".ToCharArray() $result = "" for ($x = 0; $x -lt $Length; $x++) { $result += $set | Get-Random } return $result } function tcpPort($port){ $null, $null, $null, $null, $net...
PowerShellCorpus/Github/hoangsoft90_hw-ngrok-tool/test.ps1
test.ps1
#winscp #open ftp://hwvn@216.172.164.142/ $i=0 $cond=1 while($cond -eq 1){ $i++; Write-Host $i if($i -ge 10) { $cond=0 } }
PowerShellCorpus/Github/hoangsoft90_hw-ngrok-tool/hw-start-ngrok.ps1
hw-start-ngrok.ps1
#Set-ExecutionPolicy RemoteSigned #do not enable this line #current project directory $ScriptRoot = Split-Path $MyInvocation.MyCommand.Path ."$ScriptRoot\functions.ps1" $pinvoke = add-type -name pinvoke -passThru -memberDefinition @' [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern ...
PowerShellCorpus/Github/hoangsoft90_hw-ngrok-tool/hw-ngrok-reset.ps1
hw-ngrok-reset.ps1
#do not enable this line #Set-ExecutionPolicy RemoteSigned $pinvoke = add-type -name pinvoke -passThru -memberDefinition @' [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern bool SetWindowText(IntPtr hwnd, String lpString); '@ #current project directory $ScriptRoot = Split-Path $MyInvo...
PowerShellCorpus/Github/hoangsoft90_hw-ngrok-tool/build.ps1
build.ps1
Set-ExecutionPolicy RemoteSigned cd "E:\HoangData\softwares\utilities\PS2EXE-v0.5.0.0" $source="E:\HoangData\HoangWeb\projects\public-ngrok" .\ps2exe.ps1 -inputFile "$source/hw-ngrok-reset.ps1" -outputFile "$source/hw-ngrok-reset.exe"
PowerShellCorpus/Github/hoangsoft90_hw-ngrok-tool/hosts.ps1
hosts.ps1
Param( [Parameter( Mandatory = $true, ParameterSetName = '', ValueFromPipeline = $true)] [string]$Query ) $MySQLAdminUserName = 'root' $MySQLAdminPassword = '' $MySQLDatabase = 'wpmultisite' $MySQLHost = 'MySQL-Host' $ConnectionString = "server=" + $MySQLHost + ";port=3306;uid=" + $MySQLAdminUs...
PowerShellCorpus/Github/bobalob_Azure-VM-Snapshots/AzureStorageFunctions.ps1
AzureStorageFunctions.ps1
<# .SYNOPSIS Helper functions for AzureSnapFunctions.ps1 .NOTES File Name : AzureStorageFunctions.ps1 Author : Dave Hall Prerequisite : PowerShell V5 (Tested, may work in earlier) AzureRM Powershell Module Copyright 2016 - Dave Hall .LINK http://supe...
PowerShellCorpus/Github/bobalob_Azure-VM-Snapshots/AzureSnapFunctions.ps1
AzureSnapFunctions.ps1
<# .SYNOPSIS A set of functions to create, delete or revert to a snapshot of an Azure RM VM .DESCRIPTION A detailed description of the function or script. This keyword can be used only once in each topic. .NOTES File Name : AzureSnapFunctions.ps1 Author : Dave Hall Prerequi...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Invoke-DockerBuild.ps1
Invoke-DockerBuild.ps1
#requires -runasadministrator param( [Parameter(Mandatory=$true,ParameterSetName="WindowsServerCore")] [Parameter(Mandatory=$true,ParameterSetName="MSSQLExpress")] [string]$ISHVersion, [Parameter(Mandatory=$true,ParameterSetName="WindowsServerCore")] [string]$MockConnectionString, [Para...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Bake-ISHFromAWSS3.ps1
Bake-ISHFromAWSS3.ps1
#requires -runasadministrator param( [Parameter(Mandatory=$true,ParameterSetName="Default Authorization")] [Parameter(Mandatory=$true,ParameterSetName="Custom Authorization")] [ValidateSet("12.0.3","12.0.4","13.0.0")] [string]$ISHVersion, [Parameter(Mandatory=$false,ParameterSetName="Default...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Invoke-PackerBuild.ps1
Invoke-PackerBuild.ps1
[CmdletBinding(SupportsShouldProcess=$true)] param( [Parameter(Mandatory=$true,ParameterSetName="AWS EC2 AMI")] [Parameter(Mandatory=$true,ParameterSetName="Vagrant Hyper-V")] [string]$ISHVersion, [Parameter(Mandatory=$false,ParameterSetName="AWS EC2 AMI")] [Parameter(Mandatory=$true,Parameter...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/Initialize-ISH.Instance.ps1
Initialize-ISH.Instance.ps1
#requires -runasadministrator param( [Parameter(Mandatory=$true,ParameterSetName="External Database")] [string]$ConnectionString, [ValidateSet("sqlserver2014")] [Parameter(Mandatory=$false,ParameterSetName="External Database")] [string]$DbType="sqlserver2014", [Parameter(Mandatory=$true...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/Initialize-ISHImage.ps1
Initialize-ISHImage.ps1
#reguires -runasadministrator <# # Script developed for Windows Server 2016 # Windows PowerShell 5.1 is already installed # PowerShellGet is also available #> param( [Parameter(Mandatory=$true,ParameterSetName="From FTP")] [Parameter(Mandatory=$true,ParameterSetName="From AWS S3")] [ValidateSe...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/DevelopFriendly/Install-IISManagement.ps1.ps1
Install-IISManagement.ps1.ps1
param( ) $cmdletsPaths="$PSScriptRoot\..\..\Cmdlets" . "$cmdletsPaths\Helpers\Write-Separator.ps1" Write-Separator -Invocation $MyInvocation -Header $blockName="[DEVELOPFRIENDLY][Windows Server]:Installing IIS Management Console (inetmgr.exe)" Write-Host $blockName Get-WindowsFeature -Name Web-Mgmt-Con...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/Default/Install-ISHBootstrapPrerequisites.ps1
Install-ISHBootstrapPrerequisites.ps1
#reguires -runasadministrator param( [Parameter(Mandatory=$true,ParameterSetName="From AWS S3")] [Parameter(Mandatory=$true,ParameterSetName="From FTP")] [ValidateSet("12.0.3","12.0.4","13.0.0")] [string]$ISHVersion, [Parameter(Mandatory=$false,ParameterSetName="From AWS S3")] [Paramete...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/Default/New-ISHBootstrapAWSReferences.ps1
New-ISHBootstrapAWSReferences.ps1
param( [Parameter(Mandatory=$true)] [ValidateSet("12.0.3","12.0.4","13.0.0")] [string]$ISHVersion ) if ($PSBoundParameters['Debug']) { $DebugPreference = 'Continue' } switch($ISHVersion) { '12.0.3' { $hash=@{ BucketName="sct-released" ISHServerFolder="...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/Database/Restore-MockDatabase.ps1
Restore-MockDatabase.ps1
param( [Parameter(Mandatory=$true)] [ValidateSet("12.0.3","12.0.4","13.0.0")] [string]$ISHVersion ) $cmdletsPaths="$PSScriptRoot\..\..\Cmdlets" . "$cmdletsPaths\Helpers\Write-Separator.ps1" . "$cmdletsPaths\Helpers\Get-ProgressHash.ps1" Write-Separator -Invocation $MyInvocation -Header $scriptP...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/Database/Initialize-MockDatabase.ps1
Initialize-MockDatabase.ps1
param( [Parameter(Mandatory=$true)] [string]$OSUserSqlUser ) $cmdletsPaths="$PSScriptRoot\..\..\Cmdlets" . "$cmdletsPaths\Helpers\Write-Separator.ps1" Write-Separator -Invocation $MyInvocation -Header $sqlServerItem=Get-ChildItem -Path "${env:ProgramFiles(x86)}\Microsoft SQL Server" -Filter "*0" ...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/Database/Install-MockDatabase.ps1
Install-MockDatabase.ps1
param( [Parameter(Mandatory=$true,ParameterSetName="Database")] [ValidateSet("12.0.3","12.0.4","13.0.0")] [string]$ISHVersion ) $cmdletsPaths="$PSScriptRoot\..\..\Cmdlets" . "$cmdletsPaths\Helpers\Write-Separator.ps1" Write-Separator -Invocation $MyInvocation -Header $sql_express_download_url=...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Builders/Database/Get-MockConnectionString.ps1
Get-MockConnectionString.ps1
param( ) $cmdletsPaths="$PSScriptRoot\..\..\Cmdlets" . "$cmdletsPaths\Helpers\Write-Separator.ps1" . "$cmdletsPaths\Helpers\Get-ProgressHash.ps1" Write-Separator -Invocation $MyInvocation -Header $scriptProgress=Get-ProgressHash -Invocation $MyInvocation $sqlServerItem=Get-ChildItem -Path "${env:Progra...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Remove-ModuleFromRemote.ps1
Remove-ModuleFromRemote.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Get-PendingReboot.ps1
Get-PendingReboot.ps1
Function Get-PendingReboot { <# .SYNOPSIS Gets the pending reboot status on a local or remote computer. .DESCRIPTION This function will query the registry on a local or remote computer and determine if the system is pending a reboot, from either Microsoft Patching or a Software Installation...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Get-ProgressHash.ps1
Get-ProgressHash.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Add-ModuleFromRemote.ps1
Add-ModuleFromRemote.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Get-RandomString.ps1
Get-RandomString.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Write-Separator.ps1
Write-Separator.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Format-TidyXml.ps1
Format-TidyXml.ps1
#https://www.hanselman.com/blog/AnXmlTidyInPowerShellOrFormattingXmlWithIndentingWithPowerShell.aspx function Format-TidyXml { begin { $private:str = "" # recursively concatenate strings from passed-in arrays of schmutz # not sure how to improve this... function Conca...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Invoke-CommandWrap.ps1
Invoke-CommandWrap.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Cmdlets/Helpers/Test-PendingReboot.ps1
Test-PendingReboot.ps1
#Adapted from https://gist.github.com/altrive/5329377 #Based on <http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542> function Test-PendingReboot { if (Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" -EA Ignore) { return $true }...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/PowerShellGet/Install-Module.ps1
Install-Module.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/PowerShellGet/Register-Repository.ps1
Register-Repository.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/Certificates/Install-Certificate.ps1
Install-Certificate.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/Install/Install-ISHDeployment.ps1
Install-ISHDeployment.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/Install/Uninstall-ISHDeployment.ps1
Uninstall-ISHDeployment.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/IIS/Set-IISRequireSSL.ps1
Set-IISRequireSSL.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/IIS/Set-IISSslBinding.ps1
Set-IISSslBinding.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
PowerShellCorpus/Github/Sarafian_ISHBootstrap/Source/Server/PackageManagement/Install-PackageManagement.ps1
Install-PackageManagement.ps1
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...