full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/AD/AD-DCDeploy.ps1 | AD-DCDeploy.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/AD/ProvisionAD.ps1 | ProvisionAD.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/SharePoint/ProvisionSharePointVm.ps1 | ProvisionSharePointVm.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/SharePoint/ProvisionSharePoint.ps1 | ProvisionSharePoint.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/IIS/ProvisionIIS.ps1 | ProvisionIIS.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/IIS/ProvisionIISVm.ps1 | ProvisionIISVm.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/SharedComponents/autoconfigure.ps1 | autoconfigure.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/VS/ProvisionVisualStudioVm.ps1 | ProvisionVisualStudioVm.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Technofocus - PowerShell DSC Webinars/scripts/VS/ProvisionVisualStudio.ps1 | ProvisionVisualStudio.ps1 | <#
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Pluralsight - Building Tools with PowerShell/DemoMeta.ps1 | DemoMeta.ps1 | # script verification
$props = 'Initials','Department','Title','DistinguishedName','Enabled','Name','GivenName','SurName'
Get-ADUser -Filter { GivenName -eq 'Adam' -and SurName -eq 'Bertram'} -Properties $props | Select $props
Get-ADUser -Filter { GivenName -eq 'Joe' -and SurName -eq 'Murphy'} -Properties $props | S... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Pluralsight - Building Tools with PowerShell/Script.ps1 | Script.ps1 | ## Example Active Directory Account Automator #1: A Script ##
$Employees = Import-Csv -Path C:\Users.csv ## BAD: File path in the script itself
foreach ($Employee in $Employees)
{
#region Create the AD user account
## BAD: What if the desired username is taken? No validation here to check and
## try to us... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Pluralsight - Building Tools with PowerShell/Tool.ps1 | Tool.ps1 | ## Example Active Directory Account Automator #1: A Tool ##
[CmdletBinding()] ## We're talkin' advanced here
param (
[Parameter(Mandatory)] ## Parameters are a great way to prevent from modifying the script
[ValidateNotNullOrEmpty()]
[ValidateScript({ Test-Path -Path $_ -PathType Leaf })] ## Validation
[str... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/Pluralsight - Building Tools with PowerShell/AdAccountManagementAutomator.ps1 | AdAccountManagementAutomator.ps1 | function New-EmployeeOnboardUser {
<#
.SYNOPSIS
This function is part of the Active Directory Account Management Automator tool. It is used to perform all routine
tasks that must be done when onboarding a new employee user account.
.EXAMPLE
PS> New-EmployeeOnboardUser -FirstName 'adam' -MiddleInitial D ... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/PowerShell.org - Object-Oriented Function and Module Design/demo.ps1 | demo.ps1 | $demoFolder = 'C:\Dropbox\GitRepos\Session-Content\Webinars\PowerShell.org - Object-Oriented Function and Module Design\Demo'
#region Planning --no code yet
<#
1. Define all of my "objects" --these are the modules
- Garage,Car,Transmission
2. Define the hierarchy --like "inheritance"
- (Parent module) Garag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/PowerShell.org - Object-Oriented Function and Module Design/Demo/demo.ps1 | demo.ps1 | $demoFolder = 'C:\Dropbox\GitRepos\Session-Content\Webinars\PowerShell.org - Object-Oriented Function and Module Design\Demo'
#region Planning --no code yet
<#
1. Define all of my "objects" --these are the modules
- Garage,Car,Transmission
2. Define the hierarchy --like "inheritance"
- (Parent module) Garag... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/XenAppBlog - The Power of PowerShell/Demo/Demo.ps1 | Demo.ps1 | #region Demo Setup (DEMO purposes only)
$vms = Get-VM -ComputerName hyperv -Name 'win7x64','win8x86'
$vms | Start-VM
$vms | Get-VMSnapshot | Restore-VMSnapshot -Confirm:$false
del '\\win7x64\c$\windows\temp\*' -Recurse -ea SilentlyContinue
del '\\WIN81X86-1\c$\windows\temp\*' -Recurse -ea SilentlyContinue
$DemoPa... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/XenAppBlog - The Power of PowerShell/Demo/LaunchScript.ps1 | LaunchScript.ps1 | <#
.SYNOPSIS
This is the launch script for the SoftwareInstallManager PowerShell module. This script is reponsible for performing
the deployment. It tests multiple clients for connectivity and if passed, it will deploy software onto each client.
.PARAMETER Client
One or more client hostnames to deploy softwar... |
PowerShellCorpus/Github/adbertram_Session-Content/Webinars/XenAppBlog - The Power of PowerShell/Demo/NSClient++/install.ps1 | install.ps1 | Import-Module C:\MyDeployment\SoftwareInstallManager.psm1
Start-Log
$WorkingDir = $MyInvocation.MyCommand.Path | Split-Path -Parent
try
{
if (-not (Test-InstalledSoftware -Name 'NSClient++' -Version '0.4.2.93'))
{
$Architecture = Get-Architecture
if ($Architecture -eq 'x86')
{
$Installer = "$Work... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_Provision_2017_5_20_8_58_29/.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/ShawnJ013_10-FullStackTodo/Frontend/bower_components/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/ShawnJ013_10-FullStackTodo/Backend/packages/Microsoft.ApplicationInsights.WindowsServer.2.1.0/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.IO.File]::Exists($project.FullName))
{
function MarkItemASCopyToOutput($item)
{
Try
{
#mark it to copy if newer
$item.Properties.Item("CopyToOutputDirectory").Value = 2
}
Catch
{
write-host $_.Exception.ToString()
}... |
PowerShellCorpus/Github/ShawnJ013_10-FullStackTodo/Backend/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/ShawnJ013_10-FullStackTodo/Backend/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/ShawnJ013_10-FullStackTodo/Backend/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/ShawnJ013_10-FullStackTodo/Backend/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/ShawnJ013_10-FullStackTodo/Backend/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/CyberArkLabs_RiskySPN/Get-TGSCipher.ps1 | Get-TGSCipher.ps1 | <#
Author: Matan Hart (@machosec)
License: GNU v3
Required Dependencies: None
Optional Dependencies: None
#>
function Get-TGSCipher
{
<#
.SYNOPSIS
Requests Kerberos TGS (service ticket) for SPN(s) and retreives the encrypted portion (cipher) of the ticket(s).
Autho... |
PowerShellCorpus/Github/CyberArkLabs_RiskySPN/Find-PotentiallyCrackableAccounts.ps1 | Find-PotentiallyCrackableAccounts.ps1 | <#
Author: Matan Hart (@machosec)
License: GNU v3
Required Dependencies: None
Optional Dependencies: None
#>
function Find-PotentiallyCrackableAccounts
{
<#
.SYNOPSIS
Reveals juicy information about user accounts associated with SPN
Author: Matan Hart (@machosec)
... |
PowerShellCorpus/Github/CyberArkLabs_RiskySPN/Export-PotentiallyCrackableAccounts.ps1 | Export-PotentiallyCrackableAccounts.ps1 | <#
Author: Matan Hart (@machosec)
License: GNU v3
Required Dependencies: Find-PotentiallyCrackableAccounts
Optional Dependencies: None
#>
function Export-PotentiallyCrackableAccounts
{
<#
.SYNOPSIS
Report juicy information about user accounts associated with SPN
... |
PowerShellCorpus/Github/wasker_0-to-code/Invoke-ElevatedCommand.ps1 | Invoke-ElevatedCommand.ps1 | ##############################################################################
##
## Invoke-ElevatedCommand
##
## From Windows PowerShell Cookbook (O'Reilly)
## by Lee Holmes (http://www.leeholmes.com/guide)
##
##############################################################################
<#
.SYNOPSIS
Run... |
PowerShellCorpus/Github/wasker_0-to-code/install.ps1 | install.ps1 | Import-Module .\settings.psm1
Import-Module .\envy.psm1
$is64bit = "$env:PROCESSOR_ARCHITECTURE" -like "AMD64"
# Setup chocolatey in known location.
Set-Var -scope Process -name ChocolateyInstall -value "$chocolateyRoot"
(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')))>$n... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSSetup/Private/invoke-xmlPreprocess.ps1 | invoke-xmlPreprocess.ps1 | Function invoke-xmlPreprocess {
[cmdletbinding()]
Param(
[parameter(mandatory)]
[string[]]$inFile,
[parameter(mandatory)]
[string]$logicalenvironment,
[parameter(mandatory)]
[string]$settingsSpreadsheet,
[string]$outfile = 'NULL',
... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSSetup/Public/invoke-CHFSWebSetup.ps1 | invoke-CHFSWebSetup.ps1 | #the below function is run within the container, and hosts the main process for setting up all IIS resources
Function invoke-CHFSWebSetup {
[cmdletbinding()]
Param(
[string]$logicalEnvironment,
[string]$track #this tells us what kind of site/application we are looking to install
)
... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Private/get-buildVariable.tests.ps1 | get-buildVariable.tests.ps1 | $here = split-path -path $MyInvocation.MyCommand.path -parent
$sut = (split-path -path $MyInvocation.MyCommand.path -Leaf).replace('.tests','')
. "$here\$sut"
Describe "get-buildVariable" {
Context "Read data correctly" {
It 'Reads data from the data file correctly' {
get-buildvariable... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Private/find-BuildArtifacts.ps1 | find-BuildArtifacts.ps1 | Function find-buildArtifacts{
[cmdletbinding()]
Param(
[string]$buildNumber,
[validateset('package','consoleapp','rules')]
[string]$type
)
Begin {
$buildArgs = $buildNumber.split('_')
$branch = $buildArgs[0]
$track = $buildArgs[1]
... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Private/get-buildVariable.ps1 | get-buildVariable.ps1 | Function get-BuildVariable {
Param(
[string]$Name = 'Package.SearchPath'
)
$path_ModuleData = "$(split-path -parent $psscriptroot)\Bin\moduleData.ps1"
$dataSource = . $path_ModuleData
#use the name to search through the data file
$split_name = $name.split('.')
$cu... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Private/invoke-MakeImage.ps1 | invoke-MakeImage.ps1 | Function invoke-makeImage {
[cmdletbinding()]
param(
[string]$context,
[string]$type,
[string[]]$tagInfo,
[string]$buildNumber,
[switch]$force
)
if($docker_host){$env:docker_host = $docker_host}
$makeImage = @{'context'=$context}
if($tagInfo){... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Public/publish-containerimage.ps1 | publish-containerimage.ps1 | Function publish-containerimage {
[cmdletbinding()]
Param(
[string]$repository,
[string]$image
)
} |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Public/new-containerimage.ps1 | new-containerimage.ps1 | Function new-containerimage {
[cmdletbinding()]
Param(
[string]$imagetype = 'chfsrootcontainerimage',
[string]$buildNumber,
[string[]]$tagInfo,
[string]$docker_host = (get-buildvariable -name docker_host),
[switch]$force
)
Begin{
function getcont... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Bin/moduleData.ps1 | moduleData.ps1 | @{
buildDrops = "\\hfsne121-037013\BuildDrops"
buildConfiguration = 'Release'
guid = $([guid]::NewGuid() | select-object -ExpandProperty guid)
DockerRepository = 'USLOUCHAERTZEN1:5000'
Docker_host = if(test-connection -computername 'kyhbe-win2016-2' -Count 1 -Quiet){$env:docker_host = 'tcp://ky... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Bin/chfsrootcontainerimage/make-image.ps1 | make-image.ps1 | [cmdletbinding()]
Param(
[string]$context,
[string]$flag_tag,
[string]$buildNumber, #irrelevant to this type of image
[switch]$force
)
if($force.IsPresent){
$flag_rebuild = "--no-cache=true"
}
docker build $flag_rebuild $flag_tag -t chfsrootcontainerimage $context | foreach-object {write-v... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Bin/chfsrootcontainerimage/iis/make-image.ps1 | make-image.ps1 | [cmdletbinding()]
Param(
[string]$context,
[string]$flag_tag,
[string]$buildNumber, #irrelevant to this type of image
[switch]$force
)
$parentImage = 'chfsrootcontainerimage'
if(!(docker image ls $parentImage -q)){
. "..\make-image.ps1"
}
if($force.IsPresent){
$flag_rebuild = "--no-c... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Bin/chfsrootcontainerimage/iis/wp/make-image.ps1 | make-image.ps1 | [cmdletbinding()]
Param(
[string]$context,
[string]$flag_tag,
[string]$buildNumber,
[string]$logicalEnvironment = 'Dev1',
[switch]$force
)
$parentImage = 'iis'
if(!(docker image ls -q $parentImage)){
. "..\make-image.ps1"
}
$dockerbuild = ""
<#
if($force.IsPresent){
$d... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerImageManagement/Bin/chfsrootcontainerimage/console/make-image.ps1 | make-image.ps1 | [cmdletbinding()]
Param(
[string]$flag_tag,
[string]$buildNumber, #irrelevant to this type of image
[switch]$force
)
$parentImage = 'iis'
if(!(docker image ls $parentImage -q)){
. "..\make-image.ps1"
}
if($force.IsPresent){
$flag_rebuild = "--no-cache=true"
}
docker build $flag_rebuild ... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerServerManagement/Private/get-buildVariable.ps1 | get-buildVariable.ps1 | Function get-BuildVariable {
Param(
[string]$Name = 'Package.SearchPath'
)
$path_ModuleData = "$(split-path -parent $psscriptroot)\Bin\moduleData.ps1"
$dataSource = . $path_ModuleData
#use the name to search through the data file
$split_name = $name.split('.')
$cu... |
PowerShellCorpus/Github/Nibons_CHFSContainers/CHFSContainerServerManagement/Bin/moduleData.ps1 | moduleData.ps1 | @{
DockerOpenlocalports = @(
@{name='Docker_Inbound';Protocol='tcp';localport=2375}
@{name='Docker_Secure';Protocol='tcp';localport=2376}
@{name='Docker_Swarm_Listen';Protocol='tcp';localport=2377}
@{name='Docker_Swarm_InterCom-TCP';Protocol='tcp';localport=7946}
@{name... |
PowerShellCorpus/Github/Nibons_CHFSContainers/Tests/CHFSContainerImageManagement.tests.ps1 | CHFSContainerImageManagement.tests.ps1 | [cmdletbinding()]
param([switch]$rebuildDependencies)
$here = if($myinvocation.MyCommand.Path ){split-path -Parent -path $MyInvocation.MyCommand.path}else{$pwd.path}
$repositoryRoot = Split-Path -parent -Path $here
$script_start = (get-date)
$module_Root = "$repositoryRoot\CHFSContainerImageManagement\CHFSCo... |
PowerShellCorpus/Github/Nibons_CHFSContainers/Tests/CHFSSetup.tests.ps1 | CHFSSetup.tests.ps1 | $here = split-path -Parent -path $MyInvocation.MyCommand.path
$repositoryRoot = Split-Path -parent -Path $here
$module_Root = "$repositoryRoot\CHFSSetup\CHFSSetup.psd1"
import-module $module_Root -Force
Describe 'CHFSSetup' {
Context 'invoke-xmlPreProcess' {
$infile = get-item -pat... |
PowerShellCorpus/Github/Nibons_CHFSContainers/Tests/CHFSContainerServerManagement.tests.ps1 | CHFSContainerServerManagement.tests.ps1 | $here = split-path -Parent -path $MyInvocation.MyCommand.path
$repositoryRoot = Split-Path -parent -Path $here
$module_Root = "$repositoryRoot\CHFSContainerServerManagement"
import-module $module_Root -Force
Describe 'ServerImages' {
$windowsServerCore = docker image ls -q microsoft/windowsservercore
... |
PowerShellCorpus/Github/Nibons_CHFSContainers/Tests/appveyor.pester.ps1 | appveyor.pester.ps1 | # This script will invoke pester tests
# It should invoke on PowerShell v2 and later
# We serialize XML results and pull them in appveyor.yml
#If Finalize is specified, we collect XML output, upload tests, and indicate build errors
param(
[switch]$Finalize,
[switch]$Test,
[string]$ProjectRoot = $EN... |
PowerShellCorpus/Github/nitinpuri777_checkmate-sql/send_reports.ps1 | send_reports.ps1 | $script_path = split-path -parent $MyInvocation.MyCommand.Definition
pushd $script_path
Import-Module .\Modules\get_report.psm1
Import-Module .\Modules\send_email.psm1
function ConvertFrom-Json([object] $item){
add-type -assembly system.web.extensions
$ps_js=new-object system.web.script.serializatio... |
PowerShellCorpus/Github/StackAdviser_add-azure-vm-powershell/Add-AzureRmVm.ps1 | Add-AzureRmVm.ps1 | [CmdletBinding()]
Param (
[string]
[Parameter(Mandatory=$true,
HelpMessage = "Enter the name for your virtual machine"
)]
$VMName,
[string]
[Parameter(Mandatory=$true,
HelpMessage = "Enter an existing resource group name"
)]
$ResourceGroupName,
[string]
[Paramet... |
PowerShellCorpus/Github/dotnetjalps_MVCDISimpleInjector/MVCDISimpleInjector/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/dotnetjalps_MVCDISimpleInjector/MVCDISimpleInjector/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/dotnetjalps_MVCDISimpleInjector/MVCDISimpleInjector/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/dotnetjalps_MVCDISimpleInjector/MVCDISimpleInjector/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/dotnetjalps_MVCDISimpleInjector/MVCDISimpleInjector/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/dotnetjalps_MVCDISimpleInjector/MVCDISimpleInjector/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/dotnetjalps_MVCDISimpleInjector/MVCDISimpleInjector/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/dotnetjalps_MVCDISimpleInjector/MVCDISimpleInjector/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/foremann_Projects/AD_Demo/CreateUserAccounts.ps1 | CreateUserAccounts.ps1 | $newpass = read-host "enter the new password" -AsSecureString
$i = 1
while($i -ne 200)
{
New-ADUser -DisplayName:"Test User$i" -GivenName:"Test" -Name:"Test User$i" -Path:"OU=UserAccounts,DC=test,DC=com" -SamAccountName:"usert$i" -Server:"PDC1.test.com" -Surname:"User$i" -Type:"user" -UserPrincipalName:"tes... |
PowerShellCorpus/Github/foremann_Projects/AD_Demo/CreateDomain.ps1 | CreateDomain.ps1 | #
# Windows PowerShell script for AD DS Deployment
#
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "WinThreshold" `
-DomainName "test.com" `
-DomainNetbiosName "TEST" `
-ForestMode "WinThreshold" `
-InstallDns:$true `
-LogPath... |
PowerShellCorpus/Github/acteru_powershell_scripts/create_minimal_ad_elements.ps1 | create_minimal_ad_elements.ps1 | # Simple OU/Group/User creation
$puzzle_ou = "OU=Puzzle,OU=IFA,DC=Example,DC=com"
$user_ou = "OU=Users,OU=Puzzle,OU=IFA,DC=Example,DC=com"
$group_ou = "OU=Groups,OU=Puzzle,OU=IFA,DC=Example,DC=com"
New-ADOrganizationalUnit -Name "Puzzle" -Path "OU=IFA,DC=Example,DC=com" -ProtectedFromAccidentalDeletion $true... |
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_D_Provision_2017_4_23_29_58_28/.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/DisantoJasper_hvremote/hvremote.ps1 | hvremote.ps1 | <?xml version="1.0" ?>
<!--
http://code.msdn.microsoft.com/HVRemote
See this site for license terms, a copy of the documentation and change history.
By: John Howard
Blog: http://blogs.technet.com/jhoward
Originally Created: October/November 2008 while on vacation!
Last Updated:... |
PowerShellCorpus/Github/alan-warren_PuTTYColourCopier/PuTTY_ColourSchemeCopy.ps1 | PuTTY_ColourSchemeCopy.ps1 | [CmdletBinding(SupportsShouldProcess=$true)]
param([Object]$Objects)
Try {
$sessionList = Get-Item -Path Registry::HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions -ErrorAction Stop
} Catch {
Write-Output "No sessions in registry"
exit
}
$sessionNames = $sessionList.GetSubKeyNames()
$colourC... |
PowerShellCorpus/Github/kendricktang_misc/profile.example.ps1 | profile.example.ps1 | Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-git module from current directory
Import-Module .\posh-git
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git
# Set u... |
PowerShellCorpus/Github/kendricktang_misc/Microsoft.PowerShell_profile.ps1 | Microsoft.PowerShell_profile.ps1 |
# Load posh-git example profile
. 'C:\Users\Kendrick\Documents\posh-git\profile.example.ps1' |
PowerShellCorpus/Github/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap10_Autenticacao/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap11_TratamentoDeErros/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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/herculeshssj_csharp/K19_K32_Cap6_CamadaDeApresentacao/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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.