full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/fong91_WebTraining/Github_Testing/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/fong91_WebTraining/Github_Testing/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/fong91_WebTraining/Github_Testing/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/fong91_WebTraining/Github_Testing/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/fong91_WebTraining/Github_Testing/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/fong91_WebTraining/Github_Testing/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/fong91_WebTraining/Github_Testing/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/fong91_WebTraining/Github_Testing/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/fong91_WebTraining/Github_Testing/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/spoonypirate_BoxstarterPackages/build.ps1 | build.ps1 | Write-Output "-=Build all chocolatey packs=-"
$nuspecs = Get-ChildItem -Path $PSScriptRoot -Filter *.nuspec -Recurse
# myget upgrade 0.9.8
# myget and chocolatey 0.9.9 are incompatible
Foreach($nuspec in $nuspecs){
choco pack $nuspec.FullName
}
$artifactsFolder = "./.artifacts"
remove-item -path ... |
PowerShellCorpus/Github/spoonypirate_BoxstarterPackages/lyx-nugetserver/tools/ChocolateyInstall.ps1 | ChocolateyInstall.ps1 | try {
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
$toolsDir = "$(Split-Path -parent $MyInvocation.MyComma... |
PowerShellCorpus/Github/spoonypirate_BoxstarterPackages/lyx-packer/tools/ChocolateyInstall.ps1 | ChocolateyInstall.ps1 | try {
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
$toolsDir = "$(Split-Path -parent $MyInvocation.MyComma... |
PowerShellCorpus/Github/spoonypirate_BoxstarterPackages/lyx-boxstarter/tools/user-profile.ps1 | user-profile.ps1 | #Set-Variable ProfileDir (Split-Path $MyInvocation.MyCommand.Path -Parent) -Scope Global -Option AllScope, Constant -ErrorAction SilentlyContinue
Write-Host "Loading Profile..."
. $profile
# Use this file to run your own startup commands
if((-not (Get-Module oh-my-posh)) -and (Get-Module -ListAvailable oh-my-posh... |
PowerShellCorpus/Github/spoonypirate_BoxstarterPackages/lyx-boxstarter/tools/ChocolateyInstall.ps1 | ChocolateyInstall.ps1 | try {
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
$toolsDir = "$(Split-Path -parent $MyInvocation.MyComma... |
PowerShellCorpus/Github/SPRAJIB_Stop-Start-Windows-Service/SingelService.ps1 | SingelService.ps1 | param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]
[bool] $IstoStop,
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]
[string]$ServiceName
)
function checkerror($ServiceName)
{
if($error.Count -gt 0)
{
Write-host "Can Not service :: " $ServiceName... |
PowerShellCorpus/Github/SPRAJIB_Stop-Start-Windows-Service/SingelService - Copy.ps1 | SingelService - Copy.ps1 | param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]
[bool] $IstoStop,
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]
[string]$ServiceName
)
function checkerror($ServiceName)
{
if($error.Count -gt 0)
{
Write-host "Can Not service :: " $ServiceName... |
PowerShellCorpus/Github/SPRAJIB_Stop-Start-Windows-Service/ServicefromXML.ps1 | ServicefromXML.ps1 | None |
PowerShellCorpus/Github/SPRAJIB_Stop-Start-Windows-Service/Main.ps1 | Main.ps1 | None |
PowerShellCorpus/Github/kevinye1980_SourceControlTest/Runbooks/SourceControlTest/Get-VMName.ps1 | Get-VMName.ps1 | workflow Get-VMName
{
# By default, errors in PowerShell do not cause workflows to suspend, like exceptions do.
# This means a runbook can still reach 'completed' state, even if it encounters errors
# during execution. The below command will cause all errors in the runbook to be thrown as
# exceptions, ther... |
PowerShellCorpus/Github/hobbit2000_PS/WeatherForecast/WeatherForecast.ps1 | WeatherForecast.ps1 | Set-PSDebug -Strict
$RunPath = (Split-Path -Parent (Get-Variable MyInvocation).Value.MyCommand.Path)
$ScriptBaseName = (Get-ChildItem (Get-Variable MyInvocation).Value.MyCommand.Path).BaseName
Function .\Save-URItoFile ($URI, $Path)
{
$WebRequest = Invoke-WebRequest -Uri $URI -Proxy 'http://contoso.local:... |
PowerShellCorpus/Github/hobbit2000_PS/Add-ADUserCertificates/Add-ADUserCertificates.ps1 | Add-ADUserCertificates.ps1 | <#
.SYNOPSIS
Добавляет сертификаты к учётным записям пользователей в AD
.NOTES
Name: Add-ADUserCertificates
Author: hobbit2000@list.ru
Version: 0.03 (2016-03-23)
#>
[CmdletBinding(SupportsShouldProcess=$True,ConfirmImpact="Medium")]
Param()
Set-PSDebug -Strict
$R... |
PowerShellCorpus/Github/mastoj_MyPSProfile/Microsoft.PowerShell_profile.ps1 | Microsoft.PowerShell_profile.ps1 | $env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin"
# Load posh-git example profile
. 'C:\dev\git\posh-git\profile.example.ps1'
. 'c:\dev\git\MyPsProfile\MyPsProfile.ps1'
cd c:\Dev\git\
|
PowerShellCorpus/Github/mastoj_MyPSProfile/MyPsProfile.ps1 | MyPsProfile.ps1 | set-alias msbuild C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe
set-alias s2 "C:\Program Files\Sublime Text 2\sublime_text.exe"
set-alias subl "C:\Program Files\Sublime Text 2\sublime_text.exe"
set-alias s3 "C:\Program Files\Sublime Text 3\sublime_text.exe"
set-alias vs13 "C:\Program Files (x86)\Micro... |
PowerShellCorpus/Github/lcaballero_MiniPack/build-package.ps1 | build-package.ps1 | <#
.Parameter ProjectName
The name used in the .dll, the .nuspec, the .csproj, etc
.Parameter LocalFeed
Local directory where the package can be placed and then
referenced by the package manager inside Visual Studio
#>
param (
[string] $ConfigName,
[string] $ProjectName)
<#
h... |
PowerShellCorpus/Github/lcaballero_MiniPack/bootstrap.ps1 | bootstrap.ps1 | $PackageDir = "Nupkgs"
$DirectoryOfBootstrap = Split-Path $MyInvocation.MyCommand.Path
$ConfigsToBuild = "Debug,Release"
$LocalPackageFeed = "$DirectoryOfBootstrap\$PackageDir"
$ErrorFile = "$DirectoryOfBootstrap\errors.txt"
############################
# Output to console
############################
$Direct... |
PowerShellCorpus/Github/lcaballero_MiniPack/query-environment.ps1 | query-environment.ps1 | <#
Simple script to examine what is set for the Mini Pack (MP) environment
variables.
#>
clear
function get-var {
param($name)
[Environment]::GetEnvironmentVariable($name, "Machine")
}
@{
"MP_HOME" = get-var "MP_HOME";
"MP_CONFIGS" = get-var "MP_CONFIGS";
"MP_PKGS" = get-var "MP_... |
PowerShellCorpus/Github/V1cent_Base-2014/GlobalStore Solution/GlobalStore/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/V1cent_Base-2014/GlobalStore Solution/GlobalStore/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/V1cent_Base-2014/GlobalStore Solution/GlobalStore/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/V1cent_Base-2014/GlobalStore Solution/GlobalStore/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/V1cent_Base-2014/GlobalStore Solution/GlobalStore/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/V1cent_Base-2014/GlobalStore Solution/GlobalStore/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/Apress_pro-win-8-dev-w-html5-javascript/Chapter 33/PhotoApp/PhotoApp/AppPackages/PhotoApp_1.0.0.1_AnyCPU_Test/Add-AppDevPackage.ps1 | Add-AppDevPackage.ps1 | #
# Add-AppxDevPackage.ps1 is a PowerShell script designed to install app
# packages created by Visual Studio for developers. To run this script from
# Explorer, right-click on its icon and choose "Run with PowerShell".
#
# Visual Studio supplies this script in the folder generated with its
# "Prepare Package" c... |
PowerShellCorpus/Github/Apress_pro-win-8-dev-w-html5-javascript/Chapter 33/PhotoApp/PhotoApp/AppPackages/PhotoApp_1.0.0.0_AnyCPU_Test/Add-AppDevPackage.ps1 | Add-AppDevPackage.ps1 | #
# Add-AppxDevPackage.ps1 is a PowerShell script designed to install app
# packages created by Visual Studio for developers. To run this script from
# Explorer, right-click on its icon and choose "Run with PowerShell".
#
# Visual Studio supplies this script in the folder generated with its
# "Prepare Package" c... |
PowerShellCorpus/Github/Apress_pro-win-8-dev-w-html5-javascript/Chapter 33/PhotoApp/PhotoApp/AppPackages/PhotoApp_1.0.0.3_AnyCPU_Test/Add-AppDevPackage.ps1 | Add-AppDevPackage.ps1 | #
# Add-AppxDevPackage.ps1 is a PowerShell script designed to install app
# packages created by Visual Studio for developers. To run this script from
# Explorer, right-click on its icon and choose "Run with PowerShell".
#
# Visual Studio supplies this script in the folder generated with its
# "Prepare Package" c... |
PowerShellCorpus/Github/Apress_pro-win-8-dev-w-html5-javascript/Chapter 33/PhotoApp/PhotoApp/AppPackages/PhotoApp_1.0.0.2_AnyCPU_Test/Add-AppDevPackage.ps1 | Add-AppDevPackage.ps1 | #
# Add-AppxDevPackage.ps1 is a PowerShell script designed to install app
# packages created by Visual Studio for developers. To run this script from
# Explorer, right-click on its icon and choose "Run with PowerShell".
#
# Visual Studio supplies this script in the folder generated with its
# "Prepare Package" c... |
PowerShellCorpus/Github/ibenbouzid_Office365Scripts/EnableUserLicenses.ps1 | EnableUserLicenses.ps1 |
Function Enable-UserLicence {
Param (
[Parameter(Mandatory=$true, HelpMessage = "Please enter the Domain name you want to remove")]
[String]$DomainName,
[Parameter(Mandatory=$true, HelpMessage = "Please enter Office 365 Credential")]
[PSCredential]$Credential
)
write "#######... |
PowerShellCorpus/Github/ibenbouzid_Office365Scripts/LabScripts.ps1 | LabScripts.ps1 | #
# To Run On Skype For Business Front End server
#
#region########################### Block 1 ####### PARAMETERS
$DomainName = "LabXXXXX.o365ready.com"
$subDomainName = "corp."+$DomainName
$O365defaultDomain = "xxxxxxxx.onmicrosoft.com"
$ResourceGroupName = "labXXXXX"
$subscriptionNam... |
PowerShellCorpus/Github/ibenbouzid_Office365Scripts/Office365scripts-MININT-8RE7CNK.ps1 | Office365scripts-MININT-8RE7CNK.ps1 | Function Add-CustomDomain {
Param (
[Parameter(Mandatory=$true, HelpMessage = "Please enter the Domain name you want to remove")]
[String]$DomainName,
[Parameter(Mandatory=$true, HelpMessage = "Please enter the O365 Admin User Name")]
[string]$Username,
[Parameter(Mandatory=$true, HelpM... |
PowerShellCorpus/Github/ibenbouzid_Office365Scripts/ExchangeOnlineScripts.ps1 | ExchangeOnlineScripts.ps1 | #
#To run in Skype for Business FE server
#
##################################function to Enable Oauth with Ex Online
Function Enable-ExOnlineOauth {
Param (
[Parameter(Mandatory=$true, HelpMessage = "Please enter the Domain name you want to remove")]
[String]$DomainName,
[Parameter(Mandatory=$t... |
PowerShellCorpus/Github/ibenbouzid_Office365Scripts/Office365scripts.ps1 | Office365scripts.ps1 | Function Add-CustomDomain {
Param (
[Parameter(Mandatory=$true, HelpMessage = "Please enter the Domain name you want to remove")]
[String]$DomainName,
[Parameter(Mandatory=$true, HelpMessage = "Please enter Office 365 Credential")]
[PSCredential]$Credential,
[Parameter(Mandatory=$true, Hel... |
PowerShellCorpus/Github/ErnestMushinge_Asp.Net/Lab 13GridView&DropDownControl/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/ErnestMushinge_Asp.Net/Lab 13GridView&DropDownControl/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/ErnestMushinge_Asp.Net/Lab 15Final_TouchesUpDatingDatabaseThroughGridView/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/ErnestMushinge_Asp.Net/Lab 15Final_TouchesUpDatingDatabaseThroughGridView/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/ErnestMushinge_Asp.Net/Lab12/Lab 12 Linq & Ado.Net/packages/EntityFramework.5.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' }
if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 )))
{
$thisModuleManifest = 'EntityFramework.PS3.psd1'
}
else
{
$thisModuleManifest = 'EntityFramework.psd1'
}
$thisModule... |
PowerShellCorpus/Github/ErnestMushinge_Asp.Net/Lab12/Lab 12 Linq & Ado.Net/packages/EntityFramework.5.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project)
{
$appDomain = [AppDomain]::CreateDomain(
'EntityFramework.PowerShell',
$null,
(New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' }))
... |
PowerShellCorpus/Github/OPSTest_E2E_NewRepo_2017118154248/.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/gcarrokc_powershell/WebAdminLibrary.ps1 | WebAdminLibrary.ps1 | Import-Module WebAdministration -ErrorAction SilentlyContinue
function RestartApplicationPools()
{
$pools = gci iis:\apppools
foreach ($a in $pools ){
$pool = $a.Name
Write-Host ""
Write-host "Restarting $pool"
Restart-WebAppPool $pool
}
Write-Host "Restar... |
PowerShellCorpus/Github/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/packages/EntityFramework.6.1.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
# MIIa2AYJKoZIhvcNAQcCoIIayTCCGsUCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/baraksu_MyAngular/MyAngular/packages/EntityFramework.6.1.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/baraksu_MyAngular/MyAngular/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/baraksu_MyAngular/MyAngular/PublishScripts/Publish-WebApplicationWebsite.ps1 | Publish-WebApplicationWebsite.ps1 | #Requires -Version 3.0
<#
.SYNOPSIS
Creates and deploys a Microsoft Azure Website for a Visual Studio web project.
For more detailed documentation go to: http://go.microsoft.com/fwlink/?LinkID=394471
.EXAMPLE
PS C:\> .\Publish-WebApplicationWebSite.ps1 `
-Configuration .\Configurations\WebApplication1-WAWS-... |
PowerShellCorpus/Github/tomarbuthnot_Test-LyncSynth/Test-LyncSynth.ps1 | Test-LyncSynth.ps1 | Function Test-LyncSynth {
<#
.SYNOPSIS
.DESCRIPTION
.PARAMETER Path
.PARAMETER Name
.PARAMETER Test
.EXAMPLE
PS C:\> Set-MyScript
.NOTES
Version: 0.3
Author : Tom Arbuthnot
Disclaimer: Use completely at your own risk. Test before using on any production system.
Do not run any script you don'... |
PowerShellCorpus/Github/krjensen_vmware-custom-puppet-facts/powercli/Start-push_tags_to_vm.ps1 | Start-push_tags_to_vm.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
$vcenter
)
write-host "Loading VMware.VimAutomation.Core module..."
Import-Module VMware.VimAutomation.Core -ErrorAction Stop
Write-Host "Connecting to vcenter on $vcenter..."
$VIServer = Connect-VIServer $vcenter
Write-Host "Connected to $vcenter... |
PowerShellCorpus/Github/krjensen_vmware-custom-puppet-facts/powercli/push_tags_to_vm.ps1 | push_tags_to_vm.ps1 | [CmdletBinding()]
Param(
[Parameter(Mandatory=$True)]
$vcenter,
[Parameter(Mandatory=$True)]
$vmHost
)
write-host "Loading VMware.VimAutomation.Core module..."
Import-Module VMware.VimAutomation.Core -ErrorAction Stop
Write-Host "Connecting to vcenter on $vcenter..."
$VIServer = Connect-VISe... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/packer/files/disable_winrm.ps1 | disable_winrm.ps1 | # Disable the WinRM service
Stop-Service winrm
Set-Service -Name winrm -StartupType Disabled
# Delete the WinRM listener
winrm delete winrm/config/Listener?Address=*+Transport=HTTP
# Disable WinRM firewall rules
Get-NetFirewallRule | ? {$_.Displayname -eq "WinRM"} | Set-NetFirewallRule -Enabled "False" |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/packer/files/userddata.ps1 | userddata.ps1 | <powershell>
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="2048"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall add rule name="WinRM 5985... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/packer/files/install_chef.ps1 | install_chef.ps1 | (New-Object System.Net.WebClient).DownloadFile('http://chef.io/chef/install.msi', 'C:\\Windows\\Temp\\chef.msi')
Start-Process 'msiexec' -ArgumentList '/qb /i C:\\Windows\\Temp\\chef.msi' -NoNewWindow -Wait
|
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/packer/dsc/BATDeployIISApp.ps1 | BATDeployIISApp.ps1 | Configuration BATDeployIISApp {
Import-DscResource -Module xWebAdministration
Import-DscResource -Module xComputerManagement
Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Node localhost
{
$AppNameParts = $Node.CodeDeploy.DEPLOYMENT_GROUP_NAME.Split('-')[0..2]
$Environment, $Servi... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/packer/dsc/RunDeployDSC.ps1 | RunDeployDSC.ps1 | # If you're debugging, set the following environment variables.
# Otherwise you wil get an error:
#
# PSDesiredStateConfiguration\Node : You cannot call a method on a null-valued expression.
# At C:\Tools\DSC\BATDeployIISApp.ps1:5 char:3
#
# $Env:DEPLOYMENT_ID = "d-ATG192LFJ"
# $Env:DEPLOYMENT_GROUP_ID = "... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/sample-deploy-package/deploy/10_configure_app.ps1 | 10_configure_app.ps1 | <#
.SYNOPSIS
Configures IIS application.
.DESCRIPTION
Moves pre-built Web.config files into place for the environment we're deploying on, and move the folder ready for IIS.
This expanded artifact does not exist in D:\sites\staging yet. This happens during the AfterInstall lifecycle.
@see http://docs.aws.amazo... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/sample-deploy-package/deploy/20_change_webapp.ps1 | 20_change_webapp.ps1 | <#
.SYNOPSIS
Changes IIS application.
.DESCRIPTION
Moves pre-built Web.config files into place for the environment we're deploying on, and move the folder ready for IIS.
#>
if ([Environment]::Is64BitProcess) {
# CodeDeploy runs in 32-bit powershell, because ruby (language the code deploy agent is b... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/sample-deploy-package/deploy/45_clean_iis.ps1 | 45_clean_iis.ps1 | # function GetActiveReleases($username, $password, $connectionString)
# {
# [string]$WAPNetProjectUsername = "my_username"
# $WAPNetProjectPassword = "my_password" | ConvertTo-SecureString -AsPlainText -Force
# $WAPNetProjectPassword.MakeReadOnly();
# $Credentials = New-Object System.Data.SqlCl... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/sample-deploy-package/deploy/00_deploy_dsc.ps1 | 00_deploy_dsc.ps1 | # $Env:DEPLOYMENT_ID = "d-ATG192LFJ"
# $Env:DEPLOYMENT_GROUP_ID = "8cc6b9b7-af0d-4d73-8655-f755e73cda42"
# $Env:DEPLOYMENT_GROUP_NAME = "playground-codedeploy-IISSample-CDGroup-K1YJ0PKQBD42"
if ([Environment]::Is64BitProcess) {
$ConfigurationData = @{
AllNodes = @(
@{
... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/sample-deploy-package/deploy/30_restart_webpool.ps1 | 30_restart_webpool.ps1 | <#
.SYNOPSIS
Reload IIS.
.DESCRIPTION
Reload the IIS WebAppPool and serve from our newly deployed App folder.
#>
$Environment, $Service, $Function, $CfnResourceName, $CfnId = $Env:DEPLOYMENT_GROUP_NAME.Split("-")
Restart-WebAppPool -Name ${Service}-${Function}
|
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/sample-deploy-package/deploy/40_validate_service.ps1 | 40_validate_service.ps1 | <#
.SYNOPSIS
Validate IIS Service is running correctly.
.DESCRIPTION
@TODO Write some powershell to confirm that IIS is running as expected. DSC should do this implicitly, but
if a seperation between setting the state and checking the state is required, then this seciton should be
filled out.
#>
|
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code-chef/bin/package_cookbooks.ps1 | package_cookbooks.ps1 | |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/awsTransform.ps1 | awsTransform.ps1 | Param([string]$environmentName, [string]$machineFunction)
[string]$file = (Get-Item *.exe.Release.config).BaseName
$applicationName = $file -replace ".exe.Release", ""
$fullPath = "d:\sites\staging"
$fullPath
function XmlDocTransform($xml, $xdt)
{
if (!$xml)
{
throw "Source file argumen... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/BATTools/BAT-MTPStopStart.ps1 | BAT-MTPStopStart.ps1 | <#
.NOTES
===========================================================================
Created on: 02/12/2014
Created by: Matt Seale
Organization: Bookatable
Filename: BAT-MTPStopStart.ps1
===========================================================================
.DESCRIPTION
#>
... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/BATTools/BAT-LaunchTools.ps1 | BAT-LaunchTools.ps1 | <#
.NOTES
===========================================================================
Created on: 01/12/2014
Created by: Matt Seale
Organization: Bookatable
Filename: BAT-LaunchTools.ps1
===========================================================================
.DESCRIPTION
Used as ... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/BATTools/BAT-Credentials.ps1 | BAT-Credentials.ps1 | <#
.NOTES
===========================================================================
Created on: 01/12/2014
Created by: Matt Seale
Organization: Bookatable
Filename: BAT-Credentials.ps1
===========================================================================
.DESCRIPTION
#>
... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/BATTools/BAT-CFNStacks.ps1 | BAT-CFNStacks.ps1 | <#
.NOTES
===========================================================================
Created on: 02/12/2014
Created by: Matt Seale
Organization: Bookatable
Filename: BAT-CFNStacks.ps1
===========================================================================
.DESCRIPTION
#>
fu... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Logentries/logentries.ps1 | logentries.ps1 | Param([string]$environmentName,
[string]$serviceName,
[string]$functionName
)
$logentries_account_key = "2ff7210f-538d-4cb2-8303-35c5a0c08f5d"
$bucket_name = "bookatable"
$key_name = "AMIBuilds/Logentries"
$logentries_installer = "Logentries-Windows-Agent.zip"
$nxloge_installer = "nxlog-ce-2.9.171... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/DataDogAgent/setupDataDog.ps1 | setupDataDog.ps1 | # Install DataDog Agent
Param(
[string]$S3BucketName,
[string]$Environment,
[string]$awsRegion,
[string]$Service,
[string]$Function
)
$PathToPackage = 'bootstrap/DataDogAgent'
$InstallerName = 'ddagent-cli.msi'
# Check if the package exists on S3
try {
Get-S3ObjectMetadata -BucketName ... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/3_ReStoreDBs.ps1 | 3_ReStoreDBs.ps1 | param([string]$Environment, [string]$Function)
###############################################
#Restore Databases
###############################################
#Restore Standard FILE Partern DBs
import-module "C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell\AWSPowerShell.psd1"
$AccessKey = 'AKIAIZ... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/DiskIni.ps1 | DiskIni.ps1 | <#
Script to parition and format attached drives (if required) and assign drive letters on SQL instances provisioned by <Env>-Data-SQL1 stacks.
#>
$ErrorActionPreference = "Stop"
try{
Get-Partition -DiskNumber 1
$diskone = @'
select disk 1
online disk
Attributes disk clear readonly
select partition 1... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/2_CreateServerdefaultsandrestoresystemdbs.ps1 | 2_CreateServerdefaultsandrestoresystemdbs.ps1 | param([string]$Environment, [string]$Function)
import-module "C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell\AWSPowerShell.psd1"
$AccessKey = 'AKIAIZFPES5CSIPAS5EQ'
$SecretKey = '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'
$BucketName = 'bookatable'
$BucketRegion = 'eu-west-1'
$S3Path = "SQLBackups\$... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/1_WrapperScript.ps1 | 1_WrapperScript.ps1 | param([string]$Environment, [string]$Function)
#Variables
$destDir = "G:\SQL_Data"
$fullrebuild = 0
If (!(Test-Path $destDir)) {
$fullrebuild=1
new-item E:\SQL_Logs -itemtype directory
new-item F:\Backups -itemtype directory
new-item F:\Restores -itemtype directory
new-item G:\SQL_Data... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/4_CreateLoginsandmatchdbrights.ps1 | 4_CreateLoginsandmatchdbrights.ps1 | ##############################################
##Create Users and Reattach
##############################################
$qryDatabaseInfo = "
SELECT db_loginName,
db_loginpassword,
db_defaultdb
FROM dba..DB_Logins
"
#execute query to pull data from server into an array
... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/3_ReCreateDBs.ps1 | 3_ReCreateDBs.ps1 | ###############################################
#Reattach DB - This needs DBA to run
###############################################
$qryDatabaseInfo = "SELECT createdb FROM DBA..DB_Locations"
$queryResults = @(Invoke-SQLCmd -query $qryDatabaseInfo -Server localhost)
Foreach ($queryResult in $queryResults)
... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/3_ReattachDBs.ps1 | 3_ReattachDBs.ps1 | ###############################################
#Reattach DB - This needs DBA to run
###############################################
$qryDatabaseInfo = "SELECT dbName, FName1, FName2, FName3, FName4, FName5 FROM DBA..DB_Locations"
$queryResults = @(Invoke-SQLCmd -query $qryDatabaseInfo -Server localhost)
Foreac... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/Restore_Content_db.ps1 | Restore_Content_db.ps1 | import-module "C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell\AWSPowerShell.psd1"
$AccessKey = 'AKIAIZFPES5CSIPAS5EQ'
$SecretKey = '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'
$BucketName = 'bookatable'
$BucketRegion = 'eu-west-1'
$S3Path = 'BATv2SQLBackup'
#Pull down latest copy of content db
... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQL/Restore_Mantle_db.ps1 | Restore_Mantle_db.ps1 | import-module "C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell\AWSPowerShell.psd1"
Import-Module SQLPS
$AccessKey = 'AKIAIZFPES5CSIPAS5EQ'
$SecretKey = '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'
$BucketName = 'bookatable'
$BucketRegion = 'eu-west-1'
$S3Path = 'SQLBackups\prod\SQL1\Mantle_b'
#Pu... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/LBScheduling/Test-SQL.ps1 | Test-SQL.ps1 | Param(
[string]$Environment
)
import-module "C:\tools\awsBookatable.psm1"
$SQLDWServer = GetKnownResourceEndPoint $Environment SQLDW1
$i = 0
function Test-SQLConn ($Server) {
while ($i -ne 12)
{
try {
$ConnectionString = "Data Source=$Server;Initial Catalog=LiveBookings_... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQLHATEST/ha_setup.ps1 | ha_setup.ps1 | $S3BucketName = "bookatable"
$keyPrefix = "SQLHATest/Scripts"
$localPath = "C:\Pshell"
if (!(Test-Path -LiteralPath $localPath)) {
New-Item -Path $localPath -ItemType directory
}
$objects = Get-S3Object -BucketName $S3BucketName -KeyPrefix $keyPrefix -Region eu-west-1
foreach($object in $objects) {
... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQLHATEST/Scripts/CopyuptoS3.ps1 | CopyuptoS3.ps1 |
Import-Module -Name AWSPowerShell
$BackupPath = 'C:\certs'
$ServerNames = $env:COMPUTERNAME
$BucketName = 'bookatable'
if(!(Test-Path $BackupPath)) {
New-Item $BackupPath -type directory
}
Write-S3Object -BucketName $BucketName -Folder $BackupPath -KeyPrefix /SQLHATest -Recurse
|
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQLHATEST/Scripts/MappingDrives.ps1 | MappingDrives.ps1 | $localPath = "C:\Pshell"
if (!(Test-Path -LiteralPath $localPath)) {
New-Item -Path $localPath -ItemType directory
}
$localPath = "C:\certs"
if (!(Test-Path -LiteralPath $localPath)) {
New-Item -Path $localPath -ItemType directory
}
$localPath = "C:\DBS"
if (!(Test-Path -LiteralPath $localPath)... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQLHATEST/Scripts/RunSQLWrap.ps1 | RunSQLWrap.ps1 | powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -command "C:\Pshell\TagsMirrorsetup_Step1.ps1"
#Copy up backups to S3 bucket
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -command "C:\Pshell\CopyuptoS3.ps1"
|
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/SQLHATEST/Scripts/TagsMirrorsetup_Step1.ps1 | TagsMirrorsetup_Step1.ps1 | import-module "C:\Program Files (x86)\AWS Tools\PowerShell\AWSPowerShell\AWSPowerShell.psd1"
$tag = New-Object Amazon.EC2.Model.Tag
#get instance id
$currentinstancenames = (Invoke-WebRequest -UseBasicParsing -Uri http://169.254.169.254/latest/meta-data/instance-id).Content
$tag = New-Object Amazon.EC2.Model.Tag
... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/Appfabric/AppFabricv2.ps1 | AppFabricv2.ps1 | if (!(Test-Path -LiteralPath C:\Tools\Scripts)) {
New-Item -Path C:\Tools\Scripts -ItemType directory
}
$AppFabricInstall = @'
$User = "CachingService"
Copy-S3Object -BucketName bookatable -Key bootstrap/AppFabric/WindowsServerAppFabricSetup_x64.exe -LocalFile C:\Temp\WindowsServerAppFabricSetup_x64.exe
Sta... |
PowerShellCorpus/Github/ggoinden_gibster/infrastructure-as-code/Powershell/Bootstrap/Bastions/AddUsers.ps1 | AddUsers.ps1 | Param([string]$environmentName)
if ($environmentName -eq 'dev'){
NET USER GMMAdmin HtRYtGrqj4y8sg /ADD
NET LOCALGROUP "Administrators" "GMMAdmin" /ADD
WMIC USERACCOUNT WHERE "Name='GMMAdmin'" SET PasswordExpires=FALSE
NET USER MantleAdmin VtQBl4ucmBZbiu /ADD
NET LOCALGROUP "Administrators"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.