full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/alexChuky_MusicStoreMVC/MVCMusicStore/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/alexChuky_MusicStoreMVC/MVCMusicStore/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/alexChuky_MusicStoreMVC/MVCMusicStore/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/alexChuky_MusicStoreMVC/MVCMusicStore/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/alexChuky_MusicStoreMVC/MVCMusicStore/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/pyrotimux_pyrotimux.ProfileSetup/library/win_ad_xsmbshare.ps1 | win_ad_xsmbshare.ps1 | #!powershell
# <COPYRIGHT>
# <CODEGENMETA>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... |
PowerShellCorpus/Github/pyrotimux_pyrotimux.ProfileSetup/library/win_pc_registry.ps1 | win_pc_registry.ps1 | #!powershell
# <COPYRIGHT>
# <CODEGENMETA>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... |
PowerShellCorpus/Github/pyrotimux_pyrotimux.ProfileSetup/library/win_oneget_source.ps1 | win_oneget_source.ps1 | #!powershell
# (c) 2015, Tal Auslander <tal@cloudshare.com>, and others
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
... |
PowerShellCorpus/Github/pyrotimux_pyrotimux.ProfileSetup/library/win_oneget.ps1 | win_oneget.ps1 | #!powershell
# (c) 2015, Trond Hindenes <trond@hindenes.com>, and others
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
... |
PowerShellCorpus/Github/pyrotimux_pyrotimux.ProfileSetup/library/win_pc_file.ps1 | win_pc_file.ps1 | #!powershell
# <COPYRIGHT>
# <CODEGENMETA>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.... |
PowerShellCorpus/Github/pyrotimux_pyrotimux.ProfileSetup/library/win_lcm5.ps1 | win_lcm5.ps1 | #!powershell
# (c) 2015, Trond Hindenes <trond@hindenes.com>, and others
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
... |
PowerShellCorpus/Github/pyrotimux_pyrotimux.ProfileSetup/library/ps_winacl.ps1 | ps_winacl.ps1 | #!powershell
# WANT_JSON
# POWERSHELL_COMMON
$result = New-Object psobject
$params = Parse-Args $args;
$path = Get-Attr $params "Path" -failifempty $true
$perms = Get-Attr $params "Permissions" -failifempty $true
$user = Get-Attr $params "User" -failifempty $true
$prorule = Get-Attr $params "InheritFlags" "... |
PowerShellCorpus/Github/OPS-E2E-Prod_E2E_P_Provision_2017_3_31_17_53_41/.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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/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/Shopwave_ShopwaveConnect-CSharpDotNet/Examples/ASPDotNetWebApplication/packages/Newtonsoft.Json.6.0.3/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/bsmienk_CMC_Gpo/DSCResources/CMC_GpoLink/test.ps1 | test.ps1 | $GpoName = "CFC01-WSUS-Targeting_Infra"
$Purge = $True
$GpoLinks = @(
@{ Target = "ou=cmc,dc=core-o,dc=local" ; LinkEnabled = 'Unspecified' ; Enforced = 'No' ; Order = 1 }
@{ Target = "OU=Users,OU=CMC,DC=CORE-O,DC=local" ; LinkEnabled = 'Unspecified' ; Enforced = 'No' ; Order = 1 }
)
... |
PowerShellCorpus/Github/jivoi_vagrant-packer/scripts/win-updates.ps1 | win-updates.ps1 | param($global:RestartRequired=0,
$global:MoreUpdates=0,
$global:MaxCycles=5,
$MaxUpdatesPerCycle=500)
$Logfile = "C:\Windows\Temp\win-updates.log"
function LogWrite {
Param ([string]$logstring)
$now = Get-Date -format s
Add-Content $Logfile -value "$now $logstring"
Write... |
PowerShellCorpus/Github/jivoi_vagrant-packer/scripts/dis-updates.ps1 | dis-updates.ps1 | <#
.SYNOPSIS
Disables automatic windows updates
.DESCRIPTION
Disables checking for and applying Windows Updates (does not prevent updates from being applied manually or being pushed down)
Run on the machine that updates need disabling on.
.PARAMETER <paramName>
None
.EXAMPLE
./Disable-WindowsUpd... |
PowerShellCorpus/Github/jivoi_vagrant-packer/scripts/openssh.ps1 | openssh.ps1 | param (
[switch]$AutoStart = $false
)
Write-Host "AutoStart: $AutoStart"
$is_64bit = [IntPtr]::size -eq 8
# setup openssh
$ssh_download_url = "http://www.mls-software.com/files/setupssh-6.6p1-1.exe"
if ($is_64bit) {
Write-Host "64 bit OS found"
$ssh_download_url = "http://www.mls-software.com/fil... |
PowerShellCorpus/Github/hebinhuang_MobiusShellEnv/Init.ps1 | Init.ps1 | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
<#
.SYNOPSIS
Sets up and initialize the developer Shell Environment for Mobius
.DESCRIPTION
Sets up the proper PATH and ENV to use Posh-Git shell and build... |
PowerShellCorpus/Github/mnozhchev_cloud_health_cli/dap-dotnet/dap-powercli/Script.ps1 | Script.ps1 | #
# Script.ps1
Set-ExecutionPolicy RemoteSigned
&("C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1")
Connect-VIServer vc-phonehome2.vmware.com
$vc = $global:DefaultVIServer
$vc.InstanceUuid
$url = "https://vcsa.vmware.com/ph-stg/api/v1/results?deploymentId... |
PowerShellCorpus/Github/caibanghoi9_cookbooktestapi/Web Service/packages/Newtonsoft.Json.5.0.8/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# open json.net splash page on package install
# don't open if json.net is installed as a dependency
try
{
$url = "http://james.newtonking.com/json"
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq "Package Manager Con... |
PowerShellCorpus/Github/caibanghoi9_cookbooktestapi/Web Service/packages/Microsoft.Bcl.Build.1.0.13/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
# This is the MSBuild targets file to add
$targetsFile = [System.IO.Path]::Combine($toolsPath, $package.Id + '.targets')
# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=ne... |
PowerShellCorpus/Github/caibanghoi9_cookbooktestapi/Web Service/packages/Microsoft.Bcl.Build.1.0.13/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
# Need to load MSBuild assembly if it's not loaded yet.
Add-Type -AssemblyName 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
# Grab the loaded MSBuild project for the project
$msbuild = [Microsoft.Build.Evaluatio... |
PowerShellCorpus/Github/caibanghoi9_cookbooktestapi/Web Service/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/caibanghoi9_cookbooktestapi/Web Service/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/ScottEvtuch_PSWink/Private/Invoke-WinkAPI.ps1 | Invoke-WinkAPI.ps1 | <#
.Synopsis
Short description
.DESCRIPTION
Long description
.EXAMPLE
Example of how to use this cmdlet
#>
function Invoke-WinkAPI
{
[CmdletBinding()]
[Alias()]
Param
(
# Relative path for the API
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
... |
PowerShellCorpus/Github/ScottEvtuch_PSWink/Public/Get-WinkDevices.ps1 | Get-WinkDevices.ps1 | <#
.Synopsis
Short description
.DESCRIPTION
Long description
.EXAMPLE
Example of how to use this cmdlet
#>
function Get-WinkDevices
{
[CmdletBinding()]
[Alias()]
Param()
Process
{
# Invoke the API
$Response = Invoke-WinkAPI -RelativePath '/users/me/wink_dev... |
PowerShellCorpus/Github/unkn0wnvariable_VMware-PowerShell/Make BL465C G7 Image.ps1 | Make BL465C G7 Image.ps1 | # Make BL465C G7 Image.ps1
#
# This script creates a custom installation image for VMware ESXi 6 using the custom depot from HPE
#
# The changes that are made are to add in the older Emulex v10 drivers instead of v11 (which is not working on the BL465C G7 blade)
# and to remove the Melanox nmst driver which caus... |
PowerShellCorpus/Github/unkn0wnvariable_VMware-PowerShell/Get ESXi Support Bundle.ps1 | Get ESXi Support Bundle.ps1 | # Get support bundle from an ESXi 5.5 or newer host using HTTP request method
$esxCredential = Get-Credential -Credential 'root'
$servers = @('')
$saveToFolder = 'c:\temp\'
ForEach ($server in $servers) {
$dateTime = Get-Date -UFormat '%Y-%m-%d--%H.%M'
$source = 'https://' + $server +'/cgi-bin/vm... |
PowerShellCorpus/Github/unkn0wnvariable_VMware-PowerShell/VMhost Firmwares.ps1 | VMhost Firmwares.ps1 | Add-PSSnapin VMware.VimAutomation.Core -ea "SilentlyContinue"
Add-PSSnapin VMware.VimAutomation.Vds -ea "SilentlyContinue"
.'C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1'
$outputfile = 'C:\Temp\VMware Firmware.csv'
$fileheader = '"vmhost","Driver","FirmwareVer... |
PowerShellCorpus/Github/maf-dosi_Synchro-Programmez/Synchro-Programmez.ps1 | Synchro-Programmez.ps1 | Param(
[Parameter(Mandatory=$true)]
[string]$user,
[Parameter(Mandatory=$true)]
[string]$password,
[string]$smtpServer = "",
[string]$dest = "pascal.audoux@maf.fr"
)
$filepath = "S:\Etudes\Commun_Etudes\Livres\Programmez\"
$baseurl = "http://www.programmez.com"
[string[]]$destMail = $dest.Split(",")
... |
PowerShellCorpus/Github/sergey-s-betke_ITG.RegExps/build.psake.test.ps1 | build.psake.test.ps1 | $psake.use_exit_on_error = $true;
task default -depends Test;
task Test {
Import-Module `
-Name Pester `
-Force `
-ErrorAction Stop `
;
Invoke-Pester;
};
|
PowerShellCorpus/Github/sergey-s-betke_ITG.RegExps/build.psake.HelpSystem.ps1 | build.psake.HelpSystem.ps1 | $psake.use_exit_on_error = $true;
properties {
$ModuleName = Split-Path -Path '.' -Leaf -Resolve;
}
task default -depends BuildHelpSystem;
task BuildHelpSystem -depends BuildReadme, BuildModuleAboutFile, BuildUpdatableHelp;
task BuildReadme -description "Build readme.md file for module $ModuleName" {
Imp... |
PowerShellCorpus/Github/sergey-s-betke_ITG.RegExps/build.psake.ps1 | build.psake.ps1 | $psake.use_exit_on_error = $true;
properties {
$CurrentDir = Resolve-Path . ;
$ModuleName = Split-Path -Path '.' -Leaf -Resolve;
$Invocation = Get-Variable MyInvocation -Scope 1 -ValueOnly;
}
task default -depends Build;
task Build -depends Test, BuildHelpSystem;
task Release -depends Build;
task Buil... |
PowerShellCorpus/Github/sergey-s-betke_ITG.RegExps/build.ps1 | build.ps1 | <#
Если psake включён в %Path%, этот файл в принципе не требуется, достаточно запустить psake build.psake.ps1, результат будет тот же.
#>
Import-Module psake;
Invoke-Psake `
-buildFile (
Join-Path `
-Path (
Split-Path `
-Path $MyInvocation.MyCommand.Path `
-Parent `
) `
-ChildP... |
PowerShellCorpus/Github/sergey-s-betke_ITG.RegExps/ITG.RegExps.Tests.ps1 | ITG.RegExps.Tests.ps1 | $ModuleName = Split-Path -Path '.' -Leaf -Resolve;
$ModuleDir = Resolve-Path -Path '.';
|
PowerShellCorpus/Github/Olafurjon_WIN3BU-Lokaverkefni/gui.ps1 | gui.ps1 | Add-Type -AssemblyName System.Windows.Forms | Out-Null
$Script:csv = " "
$Script:path = " "
#set þetta hér því af einhverri ástæðu festist þetta í 10% ef ég var með þetta innaní forminu
$dhcp = Get-WindowsFeature -Name DHCP | Select-Object -Property installed
if($dhcp.Installed -eq $false)
{
Install-WindowsF... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/hyper-v/CreateVmFromTemplate.ps1 | CreateVmFromTemplate.ps1 | # --------------------------------------------------------------------------------------------------------
# Script Name: CreateVmFromTemplate.ps1
# Version: 1.2
# Author: Paul Hindhaugh
# Purpose: This script can be used to create virtual machines from template virtual hard drives
# ... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/phit-azure-deployment-scripts/DeployNetworkingBothLocationsWithGatewayAndS2S.ps1 | DeployNetworkingBothLocationsWithGatewayAndS2S.ps1 | # Variables
$ukwResourceGroupName = 'NetworkingProdUkwRg'
$uksResourceGroupName = 'NetworkingProdUksRg'
$networkingTemplateFile = 'https://raw.githubusercontent.com/Hindy-UK/phit-vnet-subnet-gateway-p2s/master/azuredeploy.json'
$s2sVpnTemplateFile = 'https://raw.githubusercontent.com/Hindy-UK/phit-s2s-vnet-to-vne... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/phit-azure-deployment-scripts/ActiveDirectoryProd.ps1 | ActiveDirectoryProd.ps1 | configuration ActiveDirectoryProd
{
param
(
[Parameter(Mandatory)]
[String]$DomainName,
[Parameter(Mandatory)]
[String]$DomainNetbiosName,
[Parameter(Mandatory)]
[System.Management.Automation.PSCredential]$Domaincreds,
[Parameter(Mandatory)]... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/phit-azure-deployment-scripts/DeployFullNetworkAndAD.ps1 | DeployFullNetworkAndAD.ps1 | # Variables
$ukwResourceGroupName = 'NetworkingProdUkwRg'
$uksResourceGroupName = 'NetworkingProdUksRg'
$networkingTemplateFile = 'https://raw.githubusercontent.com/Hindy-UK/phit-vnet-subnet-gateway-p2s/master/azuredeploy.json'
$s2sVpnTemplateFile = 'https://raw.githubusercontent.com/Hindy-UK/phit-s2s-vnet-to-vne... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/phit-azure-deployment-scripts/DeployDomainControllerUKSouth.ps1 | DeployDomainControllerUKSouth.ps1 | # Variables
$currentTime = Get-Date -Format filedatetime
$uksResourceGroupName = 'ADProdUksRg'
$domainControllerTemplateFile = 'https://raw.githubusercontent.com/Hindy-UK/phit-vm-dsc-domain-controller/master/azuredeploy.json'
$parameters = @{}
$parameters.Add("timestamp", $currentTime)
# ---------------------... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/phit-azure-deployment-scripts/DeployDomainControllerSingleLocation.ps1 | DeployDomainControllerSingleLocation.ps1 | # Variables
$currentTime = Get-Date -Format filedatetime
$ukwResourceGroupName = 'ADProdUkwRg'
$domainControllerTemplateFile = 'https://raw.githubusercontent.com/Hindy-UK/phit-vm-dsc-domain-controller/master/azuredeploy.json'
$parameters = @{}
$parameters.Add("timestamp", $currentTime)
# ---------------------... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/phit-azure-deployment-scripts/DeployNetworkingSingleLocationWithoutGateway.ps1 | DeployNetworkingSingleLocationWithoutGateway.ps1 | # Variables
$ukwResourceGroupName = 'NetworkingProdUkwRg'
$networkingTemplateFile = 'https://raw.githubusercontent.com/Hindy-UK/phit-vnet-subnet-gateway-p2s/master/azuredeploy.json'
$parameters = @{}
$parameters.Add("vpnGateway", "Disabled")
# -------------------------------------------------------------------... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/phit-azure-deployment-scripts/DeployNetworkingSingleLocationWithGateway.ps1 | DeployNetworkingSingleLocationWithGateway.ps1 | # Variables
$ukwResourceGroupName = 'NetworkingProdUkwRg'
$networkingTemplateFile = 'https://raw.githubusercontent.com/Hindy-UK/phit-vnet-subnet-gateway-p2s/master/azuredeploy.json'
$ukwVNGName = 'GatewayProdUkwVng'
$ukwVpnClientPackageDownload = 'C:\Users\Paul\Documents\Azure VPN Client Packages\LanProdUkwVnet.e... |
PowerShellCorpus/Github/Hindy-UK_CustomScripts/phit-azure-deployment-scripts/CompileActiveDirectoryProd.ps1 | CompileActiveDirectoryProd.ps1 | $ConfigData =
@{
AllNodes =
@(
@{
NodeName = "*"
PSDscAllowPlainTextPassword = $True
}
@{
NodeName = "PhitDCProdUkw"
Role = “FirstDomainController”
DnsServerAddress = @(
'10.2.13.4'
'127.0.0.1'
)
SiteName = 'PhitProdAzureUkW... |
PowerShellCorpus/Github/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/tylerannis_Portfolio/Potfolio/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/Rutix_WindowsPowerShell/Microsoft.PowerShell_profile.ps1 | Microsoft.PowerShell_profile.ps1 | $scripts = "$(split-path $profile)\Scripts"
$modules = "$(split-path $profile)\Modules"
$docs = $(resolve-path "$Env:userprofile\documents")
$desktop = $(resolve-path "$Env:userprofile\desktop")
Import-Module Pscx
Import-Module Get-PSOwner
Import-Module PsGet
Import-Module PsUrl
# Load posh-git example... |
PowerShellCorpus/Github/Rutix_WindowsPowerShell/Modules/Pscx/Pscx.UserPreferences.ps1 | Pscx.UserPreferences.ps1 | # ---------------------------------------------------------------------------
# You can override individual preferences by passing a hashtable with just those
# preference defined as shown below:
#
# Import-Module Pscx -arg @{ModulesToImport = @{Prompt = $true}}
#
# Any value not specified will be retrieved f... |
PowerShellCorpus/Github/Rutix_WindowsPowerShell/Modules/Pscx/Modules/Prompt/Themes/Modern.ps1 | Modern.ps1 | # ---------------------------------------------------------------------------
# Author: Keith Hill
# Desc: Prompt, colors and host window title updates suited to UAC enabled
# Windows Vista and Windows 7. Elevated (admin) prompts are easy
# distinguish from non-elevated prompts.
# Date: Nov 07... |
PowerShellCorpus/Github/Rutix_WindowsPowerShell/Modules/Pscx/Modules/Prompt/Themes/WinXP.ps1 | WinXP.ps1 | # ---------------------------------------------------------------------------
# Author: Keith Hill
# Desc: Prompt, colors and host window title updates suited to Windows XP
# where folks tend to run with adminstrator privileges all the time.
# Date: Nov 07, 2009
# Site: http://pscx.codeplex.com
# Us... |
PowerShellCorpus/Github/Rutix_WindowsPowerShell/Modules/Pscx/Modules/Prompt/Themes/Jachym.ps1 | Jachym.ps1 | # ---------------------------------------------------------------------------
# Author: Jachymko
# Desc: Jachym's prompt, colors and host window title updates.
# Date: Nov 07, 2009
# Site: http://pscx.codeplex.com
# Usage: In your options hashtable place the following setting:
#
# PromptTheme = 'J... |
PowerShellCorpus/Github/Rutix_WindowsPowerShell/Scripts/Rename-Project.ps1 | Rename-Project.ps1 | #requires -version 2.0
[CmdletBinding()]
param (
[parameter(Mandatory=$true)]
[ValidateScript({ Test-Path -Path $_ })]
[string]
$Path,
[parameter(Mandatory=$true)]
[string]
$OldText,
[parameter(Mandatory=$true)]
[string]
$NewText,
[parameter(Mandatory=$false)]
... |
PowerShellCorpus/Github/Rutix_WindowsPowerShell/Scripts/Check-Url.ps1 | Check-Url.ps1 | <#
.SYNOPSIS
Takes a list of urls and verifies that the url is valid.
.DESCRIPTION
The Check-Url script takes a piped list of url and attempts download the HEAD of the file from the web. If it retrieves an HTTP status of OK then the URL is reported as valid. If the result is anything else or an exception, then th... |
PowerShellCorpus/Github/Rutix_WindowsPowerShell/Scripts/CalculateSHA1.ps1 | CalculateSHA1.ps1 | [Reflection.Assembly]::LoadWithPartialName("System.Security") | out-null
$sha1 = new-Object System.Security.Cryptography.SHA1Managed
$args | %{
resolve-path $_ | %{
write-host ([System.IO.Path]::GetFilename($_.Path))
$file = [System.IO.File]::Open($_.Path, "open", "read")
$sha1.Com... |
PowerShellCorpus/Github/OpenRA2_ra2/make.ps1 | make.ps1 | function FindMSBuild
{
$msBuildVersions = @("4.0")
foreach ($msBuildVersion in $msBuildVersions)
{
$key = "HKLM:\SOFTWARE\Microsoft\MSBuild\ToolsVersions\{0}" -f $msBuildVersion
$property = Get-ItemProperty $key -ErrorAction SilentlyContinue
if ($property -eq $null -or $property.MSBuildToolsPath -eq $nu... |
PowerShellCorpus/Github/Resul92_DTXK/dtxkcopy/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/Resul92_DTXK/dtxkcopy/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/NaveenVasamsetty_UtubeMVCApplication/JobReadyUtube/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/OPSTest_E2E_Provision_1488161227560/.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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/Chef-Code_Chef-Code.github.io/RecipeBuilder_Version_1/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/bostonmtc_azlab/T3/Connect-AzureVM-template.ps1 | Connect-AzureVM-template.ps1 | <#
.SYNOPSIS
Sets up the connection to an Azure VM
.DESCRIPTION
This runbook sets up a connection to an Azure virtual machine. It requires the Azure virtual machine to
have the Windows Remote Management service enabled, which is the default. It sets up a connection to the Azure
subscription and th... |
PowerShellCorpus/Github/bostonmtc_azlab/T3/Connect-AzureVM.ps1 | Connect-AzureVM.ps1 | <#
.SYNOPSIS
Sets up the connection to an Azure VM
.DESCRIPTION
This runbook sets up a connection to an Azure virtual machine. It requires the Azure virtual machine to
have the Windows Remote Management service enabled, which is the default. It sets up a connection to the Azure
subscription and th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.