full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/karangitbub_MVC/MVCExplorer_VS2015/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/karangitbub_MVC/MVCExplorer_VS2015/packages/Microsoft.CodeAnalysis.Analyzers.1.0.0-rc2/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
# Uninstall the language agnostic analyzers.
$analyzersPath = join-path $toolsPath "analyzers"
foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll)
{
if($project.Object.AnalyzerReferences)
{
$project.Object.AnalyzerRefer... |
PowerShellCorpus/Github/karangitbub_MVC/MVCExplorer_VS2015/packages/Microsoft.CodeAnalysis.Analyzers.1.0.0-rc2/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
$analyzersPath = join-path $toolsPath "analyzers"
# Install the language agnostic analyzers.
foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll)
{
if($project.Object.AnalyzerReferences)
{
$project.Object.AnalyzerReferen... |
PowerShellCorpus/Github/karangitbub_MVC/MVCExplorer_VS2015/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/karangitbub_MVC/MVCExplorer_VS2015/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/karangitbub_MVC/MVCExplorer_VS2015/packages/EntityFramework.Commands.7.0.0-beta4/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) -DisableNameChecking
# SIG # Begin signature block
# MIIkCwYJKoZIhvcNAQcCoIIj/DCCI/gCAQExDzANBglghkgBZQMEAgEFADB5B... |
PowerShellCorpus/Github/karangitbub_MVC/MVCApp_ModelControler_Sample1/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/karangitbub_MVC/MVCApp_ModelControler_Sample1/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/karangitbub_MVC/UnderstandingViewModelController/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/karangitbub_MVC/UnderstandingViewModelController/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/Sobieck_ComputerSettingsAndScripts/chocolatey/chocolateycommands.ps1 | chocolateycommands.ps1 | Function ChocolateyCommands()
{
$command = read-host "List Installed(l), Upgrade(u), First Time Setup (ft), Install Chocolatey (install), Exit(E)"
IF($command -eq "u")
{
cup all
}
IF($command -eq "l")
{
choco list --local-only
}
IF($command -eq "install")
... |
PowerShellCorpus/Github/Sobieck_ComputerSettingsAndScripts/powershellScripts/covertDocxAndCommitToGit.ps1 | covertDocxAndCommitToGit.ps1 | git config --global credential.helper wincred
$whatAreYourEditsAbout = read-host "What were your edits about?"
cd c:\docToGit
.\DocxToGit c:\github\lisasbook\ "When Doctor Becomes Patient v 2" .docx
cd c:\github\lisasbook\
git add .
git commit -m $whatAreYourEditsAbout
git push
|
PowerShellCorpus/Github/Sobieck_ComputerSettingsAndScripts/powershellScripts/addToPath.ps1 | addToPath.ps1 | $newPathItem = Read-Host "What is the path you want to add?"
Add-PathVariable $newPathItem -Target Machine
|
PowerShellCorpus/Github/dansonnenburg_Add-SmstsIniToBootImage/Set-SMSTSLogSizeInWinPE.ps1 | Set-SMSTSLogSizeInWinPE.ps1 | # Increases smsts.log size to 5MB in WinPE
# Written by: Dan Sonnenburg
Function Set-SMSTSLogSizeInWinPE {
[cmdletbinding(SupportsShouldProcess=$true)]
param(
[Parameter(Mandatory = $true)][string]$WinPEWim
)
$MountPoint = "${env:SystemDrive}\WinPEMount"
Try {
# Import t... |
PowerShellCorpus/Github/yukonfan_AspNetCore.WebAPI/src/AspNetCore.WebAPI/Properties/PublishProfiles/Web Deploy Package-publish.ps1 | Web Deploy Package-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'] = '92fc3f3a-f113-4d0... |
PowerShellCorpus/Github/epennaz_azure-rest-api-metrics/GetSetAzureVMPIMetrics.ps1 | GetSetAzureVMPIMetrics.ps1 | # ***********************************************************************
# * DISCLAIMER:
# *
# * All sample code is provided by OSIsoft for illustrative purposes only.
# * These examples have not been thoroughly tested under all conditions.
# * OSIsoft provides no guarantee nor implies any reliability,
# * servi... |
PowerShellCorpus/Github/jrgiant_AzureAutomation/dailyVMShutdown.ps1 | dailyVMShutdown.ps1 | <#
.SYNOPSIS
This Azure Automation runbook automates the scheduled shutdown and startup of virtual machines in an Azure subscription.
.DESCRIPTION
The runbook implements a solution for scheduled power management of Azure virtual machines in combination with tags
on virtual machin... |
PowerShellCorpus/Github/jrgiant_AzureAutomation/Assert-AutoShutdownSchedule.ps1 | Assert-AutoShutdownSchedule.ps1 | <#
.SYNOPSIS
This Azure Automation runbook automates the scheduled shutdown and startup of virtual machines in an Azure subscription.
.DESCRIPTION
The runbook implements a solution for scheduled power management of Azure virtual machines in combination with tags
on virtual machin... |
PowerShellCorpus/Github/falcjohnny_puppet_bootstrap/windows.ps1 | windows.ps1 | <#
.SYNOPSIS
Installs Puppet on this machine.
.DESCRIPTION
Downloads and installs the PuppetLabs Puppet MSI package.
This script requires administrative privileges.
You can run this script from an old-style cmd.exe prompt using the
following:
powershell.exe -ExecutionPolicy Unr... |
PowerShellCorpus/Github/foxbot_Discord.Addons.SimpleInjectorBridge/build.ps1 | build.ps1 | ##########################################################################
# This is the Cake bootstrapper script for PowerShell.
# This file was downloaded from https://github.com/cake-build/resources
# Feel free to change this file to fit your needs.
###############################################################... |
PowerShellCorpus/Github/erben22_atcsLogManager/src/atcsLogManager/Properties/PublishProfiles/File system-publish.ps1 | File system-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'] = '589cb3ee-2378-4d6... |
PowerShellCorpus/Github/OPSTest_E2E_Provision_1489093538886/.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/JasonvanBrackel_powershell/Clean-Solution.Tests.ps1 | Clean-Solution.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
Describe "Clean-Solution" {
$configuration = "Debug"
$solutionPath = Join-Path $testDrive "CleanSolutiontest.sln"
Copy-Item ./CleanSolutionTest -Rec... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/Clean-Solution.ps1 | Clean-Solution.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
. .\Test-MsBuildInstalled.ps1
<#
.SYNOPSIS
Cleans a visual studio solution using a given solution file.
.DESCRIPTION
Cleans a visual studio solution using a given solution file.
.PARAMETER SolutionPath
Path... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/Build-Solution.Tests.ps1 | Build-Solution.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
Describe "Build-Solution" {
$configuration = "Debug"
$solutionPath = Join-Path $testDrive "CleanSolutiontest.sln"
Copy-Item ./CleanSolutionTest -Rec... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/Get-MsBuildVersion.ps1 | Get-MsBuildVersion.ps1 |
<#
.SYNOPSIS
Gets a list of MSBuild versions installed on the machine
.DESCRIPTION
Reads from the machine's registry and serializes the keys into an easily digestible format.
.PARAMETER VersionNumber
When used returns the data for a single version of MSBuild installed o... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/Publish-Solution.ps1 | Publish-Solution.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
. .\Test-MsBuildInstalled.ps1
<#
.SYNOPSIS
Publishes a visual studio solution using a given publish profile.
.DESCRIPTION
Publishes a visual studio solution using a given publish profile. When the profile is not there, th... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/Test-MsBuildInstalled.ps1 | Test-MsBuildInstalled.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
. .\Get-MsBuildVersion.ps1
function Test-MsBuildInstalled {
$versions = Get-MsBuildVersion
return !(($versions -eq $null) -or ($versions | Measure-Object | Select-Object -Property Count) -eq 0)
}
|
PowerShellCorpus/Github/JasonvanBrackel_powershell/Test-MsBuildInstalled.Tests.ps1 | Test-MsBuildInstalled.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
Describe "Test-MsBuildInstalled" {
Context "MSBuild is installed." {
$fakeKey = New-MockObject -Type Microsoft.Win32.RegistryKey
Mock Get-Ms... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/sudo.ps1 | sudo.ps1 | function RunLastCommandUnderSudo
{
$cmd = (Get-History ((Get-History).Count))[0].CommandLine
Write-Host "Running $cmd at $pwd"
sudo powershell -Command "pushd '$PWD'; Write-host 'sudo $cmd'; $cmd"
}
function Sudo
{
if($args[0] -eq '!!') {
RunLastCommandUnderSudo;
}
else ... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/Publish-Solution.Tests.ps1 | Publish-Solution.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
Describe "Publish-Solution" {
$configuration = "Debug"
$solutionPath = Join-Path $testDrive "CleanSolutiontest.sln"
$profileName = "TestProfileName"... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/Get-MsBuildVersion.Tests.ps1 | Get-MsBuildVersion.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
Describe "Get-MsBuildVersion" {
Mock Get-ChildItem -MockWith { return @( [pscustomobject]@{Name = "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\T... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/Build-Solution.ps1 | Build-Solution.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
. .\Test-MsBuildInstalled.ps1
<#
.SYNOPSIS
Builds a visual studio solution using a given solution file.
.DESCRIPTION
Builds a visual studio solution using a given solution file.
.PARAMETER SolutionPath
Path... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/tools/Deploy-PowershellModule.ps1 | Deploy-PowershellModule.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
. .\Build-PowershellModule.ps1
function Deploy-PowershellModule {
param
(
[string]$ModuleName
)
process {
$modulePath = ".\$ModuleName"
if(!(Test-Path $modulePath))
{
"$ModuleName Mod... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/tools/Package-PowershellModule.ps1 | Package-PowershellModule.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
. .\Build-PowershellModule.ps1
function Package-PowershellModule {
[CmdletBinding()]
param
(
[string]$ModuleName
)
process {
$buildPath = ".\$ModuleName"
if(!(Test-Path $buildPath))
{
... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/tools/Build-PowershellModule.ps1 | Build-PowershellModule.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
function Build-PowershellModule {
[CmdletBinding()]
param
(
[string]$ModuleName
)
process {
Write-Host "Clean build directory: $ModuleName"
$buildPath = ".\$ModuleName"
if(Test-Path $buildPa... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/tools/Install-PowershellJvB.ps1 | Install-PowershellJvB.ps1 | Push-Location .\tools
. .\Build-PowershellModule.ps1
. .\Deploy-PowershellModule.ps1
. .\Package-PowershellModule.ps1
Pop-Location
$moduleName = "PowershellJvB"
Build-PowershellModule $moduleName
Package-PowershellModule $moduleName
Deploy-PowershellModule $moduleName |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Get-ApprendaAddOnInstance.Tests.ps1 | Get-ApprendaAddOnInstance.Tests.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
. "$here\Test-Helpers.ps1"
Describe "Get-ApprendaAddOnInstance" {
$expectedAlias = "addO... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Set-ApprendaPlatformEndUserStorePlugin.ps1 | Set-ApprendaPlatformEndUserStorePlugin.ps1 | # Set-StrictMode -Version Latest
# $ErrorActionPreference = 'Stop'
# [CmdletBinding()]
# function Set-ApprendaPlatformEndUserStorePlugin {
# param(
# # Path to End user store pluging
# [Parameter(Mandatory=$true)]
# [string]$Path
# )
# }
|
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/New-ApprendaAddOnInstance.Tests.ps1 | New-ApprendaAddOnInstance.Tests.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
. "$here\Test-Helpers.ps1"
Describe "New-ApprendaAddOnInstance" {
$expectedAlias = "addO... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Get-ApprendaAddOnInstance.ps1 | Get-ApprendaAddOnInstance.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
function Get-ApprendaAddOnInstance {
<#
.SYNOPSIS
Gets an instance of a deployed add on for a development team
.PARAMETER Alias
Alias of the AddOn as set in the Apprenda SOC
.PARAMETER InstanceA... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/New-ApprendaAddOn.ps1 | New-ApprendaAddOn.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
. "$here\Encode-ToBase64.ps1"
function New-ApprendaAddOn {
<#
.SYNOPSIS
Creates a new Apprenda AddOn in the soc
.PARAMETER Alias
Alias of the Ad... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Package-ApprendaAddOn.ps1 | Package-ApprendaAddOn.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
function Package-ApprendaAddOn {
<#
.SYNOPSIS
Packages an apprenda addon archive from an existing sources.
.DESCRIPTION
This Cmdlet is designed to allow to user to describe build an apprenda add on per http://docs.appren... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Get-ApprendaAddOn.Tests.ps1 | Get-ApprendaAddOn.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
. "$here\test-helpers.ps1"
Describe "Get-ApprendaAddOn" {
Context "User is not logged in." {
Remove-Variable -Name apprendaSession -Scope Global -Er... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Set-ApprendaPlatformEndUserStorePlugin.Tests.ps1 | Set-ApprendaPlatformEndUserStorePlugin.Tests.ps1 | # $here = Split-Path -Parent $MyInvocation.MyCommand.Path
# $sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
# . "$here\$sut"
# Describe "Set-ApprendaPlatformEndUserStorePlugin" {
# Context "User is not logged in." {
# Mock Test-Path { return $false }
# It "... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Get-ApprendaAddOn.ps1 | Get-ApprendaAddOn.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
function Get-ApprendaAddOn {
<#
.SYNOPSIS
Gets an Apprenda-AddOn based by alias in the Apprenda SOC
.DESCRIPTION
Returns the http response an is a facade for the Platform Management API calls for add ons.
http:/... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Encode-ToBase64.Tests.ps1 | Encode-ToBase64.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
. "$here\Test-Helpers.ps1"
Describe "Encode-ToBase64" {
#Mock a file
$expectedPath = "$TestDrive\archive.zip"
New-FakeFile $expectedPath
$expe... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/New-ApprendaAddOnInstance.ps1 | New-ApprendaAddOnInstance.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
function New-ApprendaAddOnInstance {
<#
.SYNOPSIS
Create an instance of a deployed add on for a development team
.PARAMETER Alias
Alias of the AddOn as set in the Apprenda SOC
.PARAMETER Instanc... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/New-ApprendaAddOn.Tests.ps1 | New-ApprendaAddOn.Tests.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
. "$here\Test-Helpers.ps1"
. "$here\Encode-ToBase64.ps1"
Describe "New-ApprendaAddOn" {
#... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Encode-ToBase64.ps1 | Encode-ToBase64.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
function Encode-ToBase64 {
<#
.SYNOPSIS
Returns a Base64 string representation of a file
.DESCRIPTION
Gets the byte content of a file and converts those bytes to a base 64 string.
.PARAMETER Path
... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Set-ApprendaGlobalLogLevel.Tests.ps1 | Set-ApprendaGlobalLogLevel.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
. "$here\Test-Helpers.ps1"
Describe "Set-ApprendaGlobalLogLevel" {
Context "User is not logged in." {
Mock Test-Path { return $false }
It... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Package-ApprendaApplication.Tests.ps1 | Package-ApprendaApplication.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
. "$here\Test-Helpers.ps1"
Describe "Package-ApprendaApplication" {
# Create paths for single test files
$manifestPath = "$testDrive\manifest.xml"
... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Test-Helpers.ps1 | Test-Helpers.ps1 |
function New-FakeObjectCollection
(
[string]$name,
[string]$path
) {
$count = Get-Random -Minimum 1 -Maximum 5
$list = @()
for ($index = 1; $index -le $count; $index++) {
$folderPath = "$path\$([System.IO.Path]::GetRandomFileName())"
New-FakeFolder $folderPath | Out-Null
... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Package-ApprendaApplication.ps1 | Package-ApprendaApplication.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
function Package-ApprendaApplication {
<#
.SYNOPSIS
Packages an apprenda archive from an existing source folder
.DESCRIPTION
This Cmdlet is designed to allow to user to describe the layout of binaries to be deployed in... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Set-ApprendaGlobalLogLevel.ps1 | Set-ApprendaGlobalLogLevel.ps1 | Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
function Set-ApprendaGlobalLogLevel {
<#
.SYNOPSIS
Sets the global log level in the Apprenda SOC
.DESCRIPTION
Sets the global log level in the Apprenda SOC. Acceptable values are
"debug", "... |
PowerShellCorpus/Github/JasonvanBrackel_powershell/apprenda/Package-ApprendaAddOn.Tests.ps1 | Package-ApprendaAddOn.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.'
. "$here\$sut"
. "$here\Test-Helpers.ps1"
Describe "Package-ApprendaAddOn" {
# Mock the temp drive
$rootDrive = $TestDrive
$tempDrive = "$rootDrive\$([System.Guid... |
PowerShellCorpus/Github/jeffpatton1971_PTECH_DSDiagnosticLogging/NetLogonDebugLoggingMode.ps1 | NetLogonDebugLoggingMode.ps1 | Configuration NetLogonDebugLoggingMode
{
param
(
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$ComputerName
)
Import-DscResource -ModuleName PTECH_DSDiagnosticLogging;
Node $ComputerName
{
#
#region Enable NETLOGON debug logging
... |
PowerShellCorpus/Github/jeffpatton1971_PTECH_DSDiagnosticLogging/SetNtdsDiagnosticLogging.ps1 | SetNtdsDiagnosticLogging.ps1 | Configuration SetNtdsDiagnosticLogging
{
param
(
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$ComputerName
)
Import-DscResource -ModuleName PTECH_DSDiagnosticLogging;
Node $ComputerName
{
#
#region Configure NTDS Diagnostic Logg... |
PowerShellCorpus/Github/mbsj_PowerShell/Profile.ps1 | Profile.ps1 | Get-ChildItem "$($env:USERPROFILE)\OneDrive\PowerShell\dot-source\" -Include *.ps1 -Force -Recurse | ForEach-Object {
. $_.FullName
} |
PowerShellCorpus/Github/mbsj_PowerShell/VSCode_ScriptAnalyzerRules.ps1 | VSCode_ScriptAnalyzerRules.ps1 | @{
IncludeRules = @(
"PSAvoidDefaultValueForMandatoryParameter",
"PSAvoidDefaultValueSwitchParameter",
"PSAvoidGlobalAliases",
"PSAvoidGlobalFunctions",
"PSAvoidGlobalVars",
"PSAvoidInvokingEmptyMembers",
"PSAvoidNullOrEmptyHelpMessageAttribute",
... |
PowerShellCorpus/Github/mbsj_PowerShell/Invoke-PesterBuild.ps1 | Invoke-PesterBuild.ps1 | param(
[string]$SourceDir = $env:BUILD_SOURCESDIRECTORY,
[string]$TempDir = $env:TEMP
)
$ErrorActionPreference = "Stop"
$modulePath = Join-Path $TempDir Pester-master\Pester.psm1
if (-not(Test-Path $modulePath)) {
$tempFile = Join-Path $TempDir pester.zip
Invoke-WebRequest https://github.... |
PowerShellCorpus/Github/mbsj_PowerShell/dot-source/Profile.ps1 | Profile.ps1 | [CmdletBinding()]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseDeclaredVarsMoreThanAssignments", "")]
param()
Set-StrictMode -Version Latest
function prompt
{
$Host.UI.RawUI.WindowTitle = $Env:USERNAME + " - " + $Env:COMPUTERNAME + " - " + $Host.Name + " - " + $Host.Version
"PS " + $(get-... |
PowerShellCorpus/Github/mbsj_PowerShell/Modules/Misc/Misc.Tests.ps1 | Misc.Tests.ps1 | Import-Module $PSScriptRoot -Force
InModuleScope Misc {
Describe "Get-Password" {
Context "Default" {
$defaultPassword = Get-Password
It "Generates 1 password" {
$defaultPassword | Measure-Object | Select-Object -ExpandProperty Count | Should Be 1
... |
PowerShellCorpus/Github/mbsj_PowerShell/Modules/SQL/SQL.Tests.ps1 | SQL.Tests.ps1 | Import-Module $PSScriptRoot -Force
<#
TODO: Create better tests for SQL
#>
InModuleScope SQL {
Describe "Limited testing of Invoke-SQL" {
Context "Trusted Connection" {
It "Should throw a connection error" {
{ Invoke-SQL -Query "SELECT" -Server "NonServer" -Database "No... |
PowerShellCorpus/Github/mbsj_PowerShell/Modules/AD/AD.Tests.ps1 | AD.Tests.ps1 | Import-Module $PSScriptRoot -Force
InModuleScope AD {
Describe "Test-ADAuthentication" {
Context "test authentication" {
It "Should run without error" {
{ Test-ADAuthentication -Username "InvalidUser" -PlainTextPassword ")%lU^H~P3]cmn&3!iRg2=},n~&wmFY" } | Should Not Throw... |
PowerShellCorpus/Github/mbsj_PowerShell/Modules/MySQL/MySQL.Tests.ps1 | MySQL.Tests.ps1 | Import-Module $PSScriptRoot -Force
<#
TODO: Create better tests for MySQL
#>
InModuleScope MySQL {
Describe "Limited testing of Invoke-MySQL" {
Context "Default" {
if (-not [System.Reflection.Assembly]::LoadWithPartialName("MySql.Data")) {
It "Should throw an error abou... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Merge-ADGroups.ps1 | Merge-ADGroups.ps1 | <#
.SYNOPSIS
Merges all groups in a specified OU into a single destination group.
.DESCRIPTION
Takes a source LDAP path for an OU and gathers all groups in that OU.
Then takes the members of each group and adds it to a specified destination group as provided by LDAP distinguished named.
If a me... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Check-HomeDirs.ps1 | Check-HomeDirs.ps1 | $ldapPath = "LDAP://DC=triostaging,DC=local"
$homePath = "D:\KMD-PCO3"
$domainName = "TRIOSTAGING"
# Whether or not to give full access if needed
$giveAccess = $false
$domain = New-Object System.DirectoryServices.DirectoryEntry($ldapPath)
$searcher = New-Object System.DirectoryServices.DirectorySearcher
$s... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Get-AccessRights.ps1 | Get-AccessRights.ps1 | <#
.SYNOPSIS
Gets any users and groups as well as their access rights on a given file or folder.
.DESCRIPTION
Checks the file or folder access control lists and returns an object for each user, describing their access.
This returns objects for both users and groups.
The switch -ResolveGroups wi... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Get-PendingReboot.ps1 | Get-PendingReboot.ps1 | <#
.SYNOPSIS
Gets the pending reboot status on a local or remote computer.
.DESCRIPTION
This function will query the registry on a local or remote computer and determine if the
system is pending a reboot, from Microsoft updates, Configuration Manager Client SDK, Pending Computer
Rename, Domain ... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Migrate-HomeDir.ps1 | Migrate-HomeDir.ps1 | $oneDriveRegPath = "HKCU:\SOFTWARE\Microsoft\Office\15.0\Common\Internet"
$oneDriveName = "OneDrive for Business"
$oneDrivePath = "$env:ProgramFiles\Microsoft Office 15\root\office15\groove.exe"
$oneDrivePDF = "\\domain.local\Arden\Faelles\OneDrive\OneDrive for Business.pdf"
Add-Type -AssemblyName System.Windows.... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Get-DiskSize.ps1 | Get-DiskSize.ps1 | <#
.SYNOPSIS
Queries servers for disk sizes.
.DESCRIPTION
Uses CIM to query the list of servers for drive volumes and returns the size and free space.
If no list of servers are supplied, will check the local machine.
.EXAMPLE
.\Get-DiskSize.ps1
Returns disk information from the local machine... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Start-WsusCleanUp.ps1 | Start-WsusCleanUp.ps1 | <#
.SYNOPSIS
Starts a cleanup of the WSUS service on the default WSUS server
.DESCRIPTION
Runs locally on the WSUS server or on a client with WSUS admin tools installed
and triggers a cleanup job based on the configuration provided.
Possible cleanups to run are one or more of the following:
... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Sync-Directories.ps1 | Sync-Directories.ps1 | <#
.Synopsis
Sync directories either based on a explicitly defined source and destination folders.
.DESCRIPTION
Synchronizes the content of the source folder into the destination folder.
When a source and destination is defined, will synchronize directly from one to the other.
.EXAMPLE
.\Sync-Dire... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Get-DotNetVersion.ps1 | Get-DotNetVersion.ps1 | <#
.SYNOPSIS
Gets any and all installed .NET versions
.DESCRIPTION
Looking in the registry, returns any and all installed .NET versions in a table.
Also returns any additional software directly related to .NET.
By providing a computer name, a remote machine can be checked, however this requires Po... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Set-LogonWallpaper.ps1 | Set-LogonWallpaper.ps1 | <#
.SYNOPSIS
Sets the logon wallpaper on Windows 7
.DESCRIPTION
Sets a logon wallpaper on Windows 7 be exploiting the "Out Of Box Experience".
Sets the registry key for OEM background and places the specified image file in the out of box experience backgrounds folder.
.EXAMPLE
.\Set-LogonWallpape... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Compare-HomeDirsToUsers.ps1 | Compare-HomeDirsToUsers.ps1 | <#
.Synopsis
Compare folders in homedir to actual users in AD.
.DESCRIPTION
Traverses a homedir folder and checks Active Directory for any user with the same name. If no user exists a warning is displayed.
Can also check if a user has access to his home folder and if not, provide "Full Control" access... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Export-ADUserProperties.ps1 | Export-ADUserProperties.ps1 | <#
.Synopsis
Exports a CSV with a list of AD users and chosen properties.
.DESCRIPTION
List Active Directory users recursively in a chose OU and get any chosen properties. Finally, export to a CSV file.
Default properties are:
samaccountname
givenname
sn
mail
homephone
... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Tests/Get-DiskSize.Tests.ps1 | Get-DiskSize.Tests.ps1 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingComputerNameHardcoded', '')]
param()
Describe "Get-DiskSize" {
$scriptFile = Join-Path -Path $PSScriptRoot -ChildPath "..\Get-DiskSize.ps1"
$diskSizeXml = @"
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Tests/Start-WsusCleanUp.Tests.ps1 | Start-WsusCleanUp.Tests.ps1 | Describe "Start-WsusCleanUp" {
$scriptFile = Join-Path -Path $PSScriptRoot -ChildPath "..\Start-WsusCleanUp.ps1"
It "Should throw missing type" {
$scriptRun = { & $scriptFile }
$scriptRun | Should Throw "Unable to find type [Microsoft.UpdateServices.Administration.AdminProxy... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Tests/Set-LogonWallpaper.Tests.ps1 | Set-LogonWallpaper.Tests.ps1 | Describe "Set-LogonWallpaper" {
$scriptFile = Join-Path -Path $PSScriptRoot -ChildPath "..\Set-LogonWallpaper.ps1"
$imagePath = "TestDrive:\wallpaper.png"
Mock Set-ItemProperty {}
Mock Remove-Item {}
Mock New-Item {}
Mock Copy-Item {}
Set-Content -Value "" -Path $imagePath
... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Tests/Sync-Directories.Tests.ps1 | Sync-Directories.Tests.ps1 | Describe "Sync-Directories" {
$scriptFile = Join-Path -Path $PSScriptRoot -ChildPath "..\Sync-Directories.ps1"
$testDriveRoot = "TestDrive:\SyncTest"
$testDriveSource = Join-Path -Path $testDriveRoot -ChildPath "Source"
$testDriveDestination = Join-Path -Path $testDriveRoot -ChildPath "Destination... |
PowerShellCorpus/Github/mbsj_PowerShell/Scripts/Tests/Get-DotNetVersion.Tests.ps1 | Get-DotNetVersion.Tests.ps1 | [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingComputerNameHardcoded', '')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
param()
Describe "Get-DotNetVersion" {
$scriptFile = Join-Path -Path $PSScriptRoot -ChildPath "..\Get-DotNetVer... |
PowerShellCorpus/Github/OPS-E2E-Prod_E2E_P_Provision_2017_4_26_11_47_19/.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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ashiqsilent_bdBusinessFinder/bdBusinessFinder/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/ngohungphuc_Owin-And-Katana/Owin-And-Katana/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/ngohungphuc_Owin-And-Katana/Owin-And-Katana/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/ngohungphuc_Owin-And-Katana/Owin-And-Katana/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/ngohungphuc_Owin-And-Katana/Owin-And-Katana/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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.