full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/JacekTomaszewski_HashTrendy/webService/WebApiHash/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/rickrain_AzureX/Session3-ARM-Templates/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string[]] [Parameter(Mandatory=$true)] $Locations,
[string] $ResourceGroupNamePrefix = 'AzureX-Session-3',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageContainerN... |
PowerShellCorpus/Github/rickrain_AzureX/Session2-ARM-Templates/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = 'AzureX-Session-2',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageContai... |
PowerShellCorpus/Github/leeberg_TravisCI_Eval/wwwroot/MyLocalPoshFunction/run.ps1 | run.ps1 | # POST method: $req
$requestBody = Get-Content $req -Raw | ConvertFrom-Json
$name = $requestBody.name
# GET method: each querystring parameter is its own variable
if ($req_query_name)
{
$name = $req_query_name
}
Out-File -Encoding Ascii -FilePath $res -inputObject "Hello $name"
|
PowerShellCorpus/Github/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/packages/Microsoft.AspNet.Providers.LocalDB.2.0.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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/rafaellrochaa_ConsumindoWebService/FuncionarioApp/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/The-July-Polt_get_digest.ps1/get_digest.ps1 | get_digest.ps1 | ###############
# nettx.co.uk #
###############
#TODO: handel Errors
#TODO: Clear $vars after run
function Show-Menu
{
param (
[string]$Title = '
_______ __ ___________
\ \ _____/ |\__ ___/__ ___
/ | \_/ __ \ __\| | \ \/ /
/ | \ ... |
PowerShellCorpus/Github/nabil2199_UMProv/script_UM.ps1 | script_UM.ps1 | <#
User dialin pin setup and notification
Version 0.1
OCWS
CSV file path C:\Users\deploylnc\Desktop\users.csv
#>
param([string]$userCsv = "C:\Sources\users.csv",[string]$UMPolicy = "C:\Sources\ProvisioningPIN.csv")
$users = $null
$users = Import-Csv $userCsv
$count = $users.count
Write-Host "User count with... |
PowerShellCorpus/Github/NielZeeman_ApplicationInsights-PS/src/ApplicationInsights-PS/ApplicationInsights.ps1 | ApplicationInsights.ps1 | ####################
# Dabling in creating a powershell client for application inshgts
# Use at own risk...
# Author : Niel Zeeman
####################
[string]$TelemetryEndPoint = "https://dc.services.visualstudio.com/v2/track"
[string]$TelemetryKey = "0d3c13e3-40d2-4165-80ac-4e0e7c16ab5d";
#some randomly i... |
PowerShellCorpus/Github/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/packages/EntityFramework.6.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/gustavocoolt_usc/MeuPrimeiroProjeto/packages/EntityFramework.6.0.0/tools/init (1).ps1 | init (1).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/gustavocoolt_usc/MeuPrimeiroProjeto/packages/EntityFramework.6.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/gustavocoolt_usc/MeuPrimeiroProjeto/packages/EntityFramework.6.0.0/tools/install (1).ps1 | install (1).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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/packages/Newtonsoft.Json.6.0.8/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# open json.net splash page on package install
# don't open if json.net is installed as a dependency
try
{
$url = "http://james.newtonking.com/json/install?version=" + $package.Version
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWin... |
PowerShellCorpus/Github/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/gustavocoolt_usc/MeuPrimeiroProjeto/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/OPS-E2E-PPE_E2E_NewRepo_2017_4_15_28_5_16/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source url: ... |
PowerShellCorpus/Github/geoffrey-ps_geoffrey-samples/scss-compiling/g.ps1 | g.ps1 | requires geoffrey-sass
# From Powershell console, call this using "geoffrey -taskName scss".
task scss {
src "scss/site.scss" |
less |
dest "output/site.css"
}
# Default tasks can be invoked simply by calling "geoffrey" in the PowerShell console.
task default -dependsOn scss |
PowerShellCorpus/Github/geoffrey-ps_geoffrey-samples/less-compiling/g.ps1 | g.ps1 | requires geoffrey-less
# From Powershell console, call this using "geoffrey -taskName less".
task less {
src "less/site.less" |
less |
dest "output/site.css"
}
# Default tasks can be invoked simply by calling "geoffrey" in the PowerShell console.
task default -dependsOn less |
PowerShellCorpus/Github/geoffrey-ps_geoffrey-samples/bundling-minification/g.ps1 | g.ps1 | requires geoffrey-less
# From Powershell console, call this using "geoffrey -taskName css".
task css {
dir "css/*.css" |
src |
cssmin -CommentMode Hacks |
dest "output/combined.css"
}
# From Powershell console, call this using "geoffrey -taskName js".
task js {
src "js/a.js", "js/b.js" |
jsmin -... |
PowerShellCorpus/Github/kimizhu_fenx4.zh-cn/.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/swapnildalvi90_C_Sharp_Core/EntityFramework/EntityFramwork/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/swapnildalvi90_C_Sharp_Core/EntityFramework/EntityFramwork/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/swapnildalvi90_C_Sharp_Core/EntityFramework/EntityFramwork/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/swapnildalvi90_C_Sharp_Core/EntityFramework/EntityFramwork/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/swapnildalvi90_C_Sharp_Core/LINQ/LINQ/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/stufox_Powershell/Azure-DSC-DemoSetup - SE Asia.ps1 | Azure-DSC-DemoSetup - SE Asia.ps1 | Set-AzureSubscription -CurrentStorageAccountName "portalvhds2ymt8451rzdv8" -SubscriptionName "Visual Studio Ultimate with MSDN"
$svcname = "teau-sf-"+$(Get-Random -minimum 10000 -maximum 99999)
$adminUser="stufox"
$adminpassword="pass@word1"
$location="SouthEast Asia"
$vm1name = "teauvm1"
$vmimage = (Get-... |
PowerShellCorpus/Github/stufox_Powershell/adfsconfig.ps1 | adfsconfig.ps1 | configuration ADFSInstall
{
node "localhost"
{
WindowsFeature ADFS
{
Ensure = "Present"
Name = "ADFS-Federation"
}
}
} |
PowerShellCorpus/Github/stufox_Powershell/Azure-DSC-DemoSetup - West US.ps1 | Azure-DSC-DemoSetup - West US.ps1 | Set-AzureSubscription -SubscriptionName "Visual Studio Ultimate with MSDN" -CurrentStorageAccountName "portalvhdswrzr1c91mp504"
$svcname = "teau-sf-"+$(Get-Random -minimum 10000 -maximum 99999)
$adminUser="stufox"
$adminpassword="pass@word1"
$location="West US"
$vm1name = "teauvm2"
$vmimage = (Get-AzureV... |
PowerShellCorpus/Github/stufox_Powershell/CaptureImage.ps1 | CaptureImage.ps1 | workflow CaptureImage
{
param (
[Object]$RecoveryPlanContext
)
$cred = Get-AutomationPSCredential -Name "SubOwner"
Add-AzureAccount -Credential $cred
Set-AzureSubscription -SubscriptionName "Microsoft Azure Internal Consumption" -CurrentStorageAccountName "portalvhdsb1knryl743722"
... |
PowerShellCorpus/Github/stufox_Powershell/IgniteUDRDemo.ps1 | IgniteUDRDemo.ps1 | $vmimage = (Get-AzureVMImage |
Where { $_.ImageFamily -eq "Windows Server 2012 R2 Datacenter" } |
sort PublishedDate -Descending | Select-Object -First 1).ImageName
$linuximage = "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_3-LTS-amd64-server-20150805-en-us-30GB"
$fwsvcname0... |
PowerShellCorpus/Github/stufox_Powershell/MoveAzureRMNIC.ps1 | MoveAzureRMNIC.ps1 | $VNet = Get-AzureRMVirtualNetwork -ResourceGroupName "" -Name ""
$subnet = Get-AzureRMVirtualNetworkSubnetConfig -VirtualNetwork $VNet -Name BackEnd
$NIC = Get-AzureRMNetworkInterface -ResourceGroupName "" -Name ""
$NIC.IpConfigurations[0].Subnet = $subnet
$NIC.IpConfigurations[0].PrivateIpAllocationMethod = "Dynam... |
PowerShellCorpus/Github/stufox_Powershell/CopyBlob.ps1 | CopyBlob.ps1 | $StorageAccountName = ""
$StorageAccountKey = ""
$destcontainer = "snapshots"
$srccontainer = "vhds"
$ctx = New-AzureStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $StorageAccountKey
$blobname = ""
start-azurestorageblobcopy -srcblob $blobname -srccontainer $srccontainer -destcontai... |
PowerShellCorpus/Github/stufox_Powershell/PublishConfiguration.ps1 | PublishConfiguration.ps1 | Set-AzureSubscription -CurrentStorageAccountName "portalvhds2ymt8451rzdv8" -SubscriptionName "Visual Studio Ultimate with MSDN"
Publish-AzureVMDscConfiguration -ConfigurationPath C:\demos\sydney.ps1
Set-AzureSubscription -CurrentStorageAccountName "portalvhdswrzr1c91mp504" -SubscriptionName "Visual Studio Ultimat... |
PowerShellCorpus/Github/stufox_Powershell/LoadBalancingDemoSetupWithInternalLB.ps1 | LoadBalancingDemoSetupWithInternalLB.ps1 |
function InstallWinRMCert($serviceName, $vmname)
{
$winRMCert = (Get-AzureVM -ServiceName $serviceName -Name $vmname | select -ExpandProperty vm).DefaultWinRMCertificateThumbprint
$AzureX509cert = Get-AzureCertificate -ServiceName $serviceName -Thumbprint $winRMCert -ThumbprintAlgorithm sha1
$ce... |
PowerShellCorpus/Github/stufox_Powershell/fulladfsdscconfig.ps1 | fulladfsdscconfig.ps1 | configuration ADFSInstall
{
param(
[parameter(Mandatory=$true)]
[ValidateNotNullorEmpty()]
[PSCredential]
$credential,
[Parameter(Mandatory)]
[string]$MachineName,
[Parameter(Mandatory)]
[string]$Domain
)
Import-DscResource -Module xComputerManagement
node "localh... |
PowerShellCorpus/Github/stufox_Powershell/wapconfig.ps1 | wapconfig.ps1 | configuration WAPInstall
{
node "localhost"
{
WindowsFeature WAP
{
Ensure = "Present"
Name = "Web-Application-Proxy"
}
WindowsFeature WAPRSAT
{
Ensure = "Present"
Name = "RSAT-RemoteAccess"
Incl... |
PowerShellCorpus/Github/stufox_Powershell/DeployFromARMImage.ps1 | DeployFromARMImage.ps1 | ## Global
$rgName = "testrg"
$location = "westus"
## Storage
$storageName = "teststore"
$storageType = "Standard_GRS"
## Network
$nicname = "testnic"
$subnet1Name = "subnet1"
$vnetName = "testnet"
$vnetAddressPrefix = "10.0.0.0/16"
$vnetSubnetAddressPrefix = "10.0.0.0/24"
## Compute
$vmName = "testvm... |
PowerShellCorpus/Github/stufox_Powershell/domainjoin.ps1 | domainjoin.ps1 | configuration DomainJoin
{
param(
[parameter(Mandatory=$true)]
[ValidateNotNullorEmpty()]
[PSCredential]
$credential,
[Parameter(Mandatory)]
[string]$MachineName,
[Parameter(Mandatory)]
[string]$Domain
)
Import-DscResource -Module xComputerManagement
node "localhost"
... |
PowerShellCorpus/Github/stufox_Powershell/ADFS-MockSetup.ps1 | ADFS-MockSetup.ps1 |
function InstallWinRMCert($serviceName, $vmname)
{
$winRMCert = (Get-AzureVM -ServiceName $serviceName -Name $vmname | select -ExpandProperty vm).DefaultWinRMCertificateThumbprint
$AzureX509cert = Get-AzureCertificate -ServiceName $serviceName -Thumbprint $winRMCert -ThumbprintAlgorithm sha1
$ce... |
PowerShellCorpus/Github/stufox_Powershell/adfsenvconfig.ps1 | adfsenvconfig.ps1 | configuration WAPInstall
{
param(
[parameter(Mandatory=$true)]
[ValidateNotNullorEmpty()]
[PSCredential]
$credential,
[Parameter(Mandatory)]
[string]$MachineName,
[Parameter(Mandatory)]
[string]$Domain
)
Import-DscResource -Module xComputerManagement
node "localhost"
... |
PowerShellCorpus/Github/stufox_Powershell/webconfiguration.ps1 | webconfiguration.ps1 | configuration IISInstall
{
node "localhost"
{
WindowsFeature IIS
{
Ensure = "Present"
Name = "Web-Server"
}
}
} |
PowerShellCorpus/Github/meankraken_Portfolio/src/Portfolio/Properties/PublishProfiles/meankraken-publish.ps1 | meankraken-publish.ps1 | [cmdletbinding(SupportsShouldProcess=$true)]
param($publishProperties=@{}, $packOutput, $pubProfilePath)
# to learn more about this file visit https://go.microsoft.com/fwlink/?LinkId=524327
try{
if ($publishProperties['ProjectGuid'] -eq $null){
$publishProperties['ProjectGuid'] = '8f17a2dc-d2f5-4bb... |
PowerShellCorpus/Github/meankraken_Portfolio/src/Portfolio/wwwroot/lib/bootstrap/nuget/MyGet.ps1 | MyGet.ps1 | $nuget = $env:NuGet
# parse the version number out of package.json
$bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version
# create packages
& $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version ... |
PowerShellCorpus/Github/v-peliao_E2E_NewRepo_1489656508431/.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/martinh2011_uperrorrepro/testscript.ps1 | testscript.ps1 | [System.Reflection.Assembly]::LoadWithPartialName("System.DirectoryServices.AccountManagement")
$pc = new-object "System.DirectoryServices.AccountManagement.PrincipalContext" -ArgumentList Machine
# this should return a UserPrincipal object
[System.DirectoryServices.AccountManagement.UserPrincipal]::FindByIdentity($... |
PowerShellCorpus/Github/rsahi1_CCTB-345/MyCompany.ModelFirst/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/rsahi1_CCTB-345/MyCompany.ModelFirst/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/rsahi1_CCTB-345/CodeFirstSample/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/rsahi1_CCTB-345/CodeFirstSample/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/spaiter01_Mi-sitio-web/Utp/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/spaiter01_Mi-sitio-web/Utp/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/spaiter01_Mi-sitio-web/Utp/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/spaiter01_Mi-sitio-web/Utp/packages/EntityFramework.6.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/spaiter01_Mi-sitio-web/Utp/packages/EntityFramework.6.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/spaiter01_Mi-sitio-web/Utp/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/spaiter01_Mi-sitio-web/Utp/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/spaiter01_Mi-sitio-web/Utp/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/OpenLocalizationTestOrg_azure-docs-pr12_zh-CN/.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/PlagueHO_Powershell/Compare-ShareACLs/Compare-ShareACLs.ps1 | Compare-ShareACLs.ps1 | <#
.SYNOPSIS
This script will get all the ACLs for all shares on this computer and compare them with a baseline set of share ACLs. It will also get and store the file/folder ACL's for all files/folders in each share.
.DESCRIPTION
If this script is run it will look for specified baseline ACL. If none are found it... |
PowerShellCorpus/Github/PlagueHO_Powershell/Install-ContainerHostNano/Install-ContainerHostNano/Convert-WindowsImage.ps1 | Convert-WindowsImage.ps1 | Function
Convert-WindowsImage
{
<#
.NOTES
Copyright (c) Microsoft Corporation. All rights reserved.
Use of this sample source code is subject to the terms of the Microsoft
license agreement under which you licensed this sample source code. If
you did not accept the ter... |
PowerShellCorpus/Github/PlagueHO_Powershell/Install-ContainerHostNano/Install-ContainerHostNano/New-NanoServerVHD.ps1 | New-NanoServerVHD.ps1 | <#
.SYNOPSIS
Creates a bootable VHD/VHDx containing Windows Server Nano 2016.
.DESCRIPTION
Creates a bootable VHD/VHDx containing Windows Server Nano 2016 using the publically available Windows Server 2016 Technical Preview 3 ISO.
This script needs the Convert-WindowsImage.ps1 script to be in the sa... |
PowerShellCorpus/Github/PlagueHO_Powershell/Install-ContainerHostNano/Install-ContainerHostNano/Install-ContainerHostNano.ps1 | Install-ContainerHostNano.ps1 | <#
.NOTES
This script was based on the Install-ContainerHost.ps1 script from Microsoft.
It has been modified by Daniel Scott-Raynsford to install on a Windows Nano Server TP3
System with the following packages installed:
Guest
OEM-Drivers
Containers
Compute
The following things had to b... |
PowerShellCorpus/Github/PlagueHO_Powershell/Install-ContainerHostNano/Install-ContainerHostNano/New-ContainerHostNano.ps1 | New-ContainerHostNano.ps1 | # Customizable Parameters - Customize them!
$AdminPassword = 'P@ssword01!'
$WorkPath = "D:\Temp"
$IPAddress = '192.168.1.93'
$ComputerName = 'NS_Containers'
$VMPath = "c:\VM\Nano Servers"
$VMSwitchName = "General Purpose External"
$TP3ISOPath = "D:\ISOs\Windows Server 2016 TP3\10514.0.150808-1529.TH2_RELEASE_SER... |
PowerShellCorpus/Github/leancz_powershell_utils/Microsoft.Powershell_profile.ps1 | Microsoft.Powershell_profile.ps1 | # CUstomise Window
$host.ui.RawUI.WindowTitle = "PowerShell v" + $PSVersionTable.PSVersion + " on " + $env:COMPUTERNAME + " as " + (whoami /upn)
# Customise Prompt
function prompt {
(Get-Date | Select-Object -ExpandProperty DateTime) + " " + (Get-Location) + "> "
}
# Customise colours
$host.ui.RawUI.BackgroundCo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.