code
stringlengths
2
1.05M
repo_name
stringlengths
5
101
path
stringlengths
4
991
language
stringclasses
3 values
license
stringclasses
5 values
size
int64
2
1.05M
$packageName = '{{PackageName}}' $installerType = 'EXE' $silentArgs = '/VERYSILENT' $validExitCodes = @(0,1) # HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FeedDemon_is1 $file = (Get-ItemProperty -Path "hklm:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FeedDemo...
ebugusey/chocolatey-coreteampackages
automatic/feeddemon/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
491
function Add-VSWAFv2RuleGroupSingleHeader { <# .SYNOPSIS Adds an AWS::WAFv2::RuleGroup.SingleHeader resource property to the template. .DESCRIPTION Adds an AWS::WAFv2::RuleGroup.SingleHeader resource property to the template. .LINK http://docs.aws.amazon.com/AWSCloudFormation...
scrthq/Vaporshell
VaporShell/Public/Resource Property Types/Add-VSWAFv2RuleGroupSingleHeader.ps1
PowerShell
apache-2.0
2,210
$ErrorActionPreference = "Stop" function Pack-Project { param([string] $DirectoryName) Push-Location $DirectoryName $revision = @{ $true = $env:APPVEYOR_BUILD_VERSION; $false = "0.0.1" }[$env:APPVEYOR_BUILD_VERSION -ne $NULL]; & dotnet pack -c Release -o ..\..\.\artifacts if($LASTEXITCODE -ne 0) {...
Cimpress-MCP/serilog-sinks-awscloudwatch
build.ps1
PowerShell
apache-2.0
1,491
function Update-PeanutButter() { param( [parameter(mandatory=$false)] [string] $version, [parameter(mandatory=$false)] [switch] $dummy ) if ($dummy) { Write-Host "(dummy operation requested)" } if (!$version) { write-host "Searching for latest version..." $version = (find-package -exactmatch pea...
fluffynuts/PeanutButter
source/Utils/PeanutButter.Utils/tools/UpdatePeanutButter.psm1
PowerShell
bsd-3-clause
1,150
Write-Host Write-Host "Installing web application to IIS" -ForegroundColor Yellow Write-Host # # Some variables used throughout the whole script # $scriptDirectory = Split-Path $script:MyInvocation.MyCommand.Path $toolsDirectory = Resolve-Path -Path (Join-Path -Path $scriptDirectory -ChildPath "Powershell\tools") $web...
Vector241-Eric/ZBuildLights
tools/scripts/Install-ZBuildLights.ps1
PowerShell
mit
7,697
# Private module-scope variables. $script:jsonContentType = "application/json;charset=utf-8" $script:formContentType = "application/x-www-form-urlencoded;charset=utf-8" $script:defaultAuthUri = "https://login.microsoftonline.com/" $script:defaultEnvironmentAuthUri = "https://login.windows.net/" $script:certificateAcce...
Microsoft/vso-agent-tasks
Tasks/Common/VstsAzureRestHelpers_/VstsAzureRestHelpers_.psm1
PowerShell
mit
46,306
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Write-Host -Object "Running $PSCommandpath" -ForegroundColor Cyan . "$PSScriptRoot\constants.ps1" Describe "$CommandName Unit Tests" -Tags "UnitTests" { Context "Validate parameters" { [object[]]$params = (Get-Command $CommandName).Param...
kozloski/dbatools
tests/Get-DbaRegServer.Tests.ps1
PowerShell
mit
4,959
Describe "Write-Verbose" -Tags "CI" { It "Should be able to call cmdlet without error" { { Write-Verbose -Message "test" -ErrorAction SilentlyContinue } | Should Not Throw } It "Should not display verbose output by default" { $VerbosePreference | Should Be SilentlyContinue Write-Verbose -Message "test"...
bingbing8/PowerShell
test/powershell/Modules/Microsoft.PowerShell.Utility/Write-Verbose.Tests.ps1
PowerShell
mit
995
<# .SYNOPSIS Outputs to a UTF-8-encoded file *without a BOM* (byte-order mark). .DESCRIPTION Mimics the most important aspects of Out-File: * Input objects are sent to Out-String first. * -Append allows you to append to an existing file, -NoClobber prevents overwriting of an existing file. * -Width allow...
cpoDesign/powershellrepository
Files/ConvertFileEncoding.ps1
PowerShell
mit
2,862
#============================================================================= # HELP: https://technet.microsoft.com/en-us/library/hh849827.aspx # FILE: search-n-replace.ps1 # USAGE: powershell.exe C:\Windows\System32\WindowsPowerShell\v1.0\search-n-replace.ps1 # DESCRIPTION: summary eve...
hinzigers/script
powershell/search-n-replace.ps1
PowerShell
mit
1,309
Function Find-Word { # inspired by: https://ridicurious.com/2018/03/14/highlight-words-in-powershell-console/ [Cmdletbinding()] [Alias("Highlight")] Param( [Parameter(Position = 1)] [ValidateNotNull()] [String[]] $Words = $(throw "Provide word[s] to be highlighted!"), [P...
copdips/PSScripts
Text/Find-Word.ps1
PowerShell
mit
2,828
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Describe 'Function Pipeline Behaviour' -Tag 'CI' { BeforeAll { $filePath = "$TestDrive\output.txt" if (Test-Path $filePath) { Remove-Item $filePath -Force } } Context "'Clean' block runs when any ...
JamesWTruher/PowerShell-1
test/powershell/Language/Scripting/PipelineBehaviour.Tests.ps1
PowerShell
mit
22,993
function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) { try { $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js") } catch { # _references.js file not found return } if ($referencesFileProjectItem -eq ...
MicrosoftLearning/20486-DevelopingASPNETMVCWebApplications
Allfiles/20486C/Mod09/LabFiles/PhotoSharingApplication_09_begin/packages/Modernizr.2.6.2/Tools/common.ps1
PowerShell
mit
13,556
<# .SYNOPSIS Watches file system and copies from src -> dest on file change .PARAMETER SourcePath Path to source .PARAMETER DestPath Path to destination #> param ( [parameter(Mandatory=$true)] [alias('s')] [ValidateScript({ Test-Path $_ })] [string]$SourcePath, [parameter(Mandatory=$true)] [ali...
victorzki/monk
monk.ps1
PowerShell
mit
2,923
$workingDirectory = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition; $NugetTools = [System.IO.Path]::Combine($workingDirectory, "[Tools]", "BuildTools", "Oragon.BuildTools.NugetTools.exe") $solutionFile = [System.IO.Path]::Combine($workingDirectory, "[Source]", "OragonArchitecture.sln") function myeval($...
luizcarlosfaria/Oragon.Architecture
UpdateNuSpecs.ps1
PowerShell
mit
1,239
Import-Module ActiveDirectory -PSSession (New-PSSession -ComputerName win2008r2dc) function New-GridView { param( [string[]]$Columns ) $view = New-Object System.Windows.Controls.GridView foreach($column in $Columns) { $c = New-Object System.Windows.Controls.GridViewColumn $c.He...
michaellwest/SystemAdministratorTool
App.ps1
PowerShell
mit
4,037
param ( [Parameter(Mandatory=$true)][string]$toolset ) Get-ChildItem .build/projects/$toolset -Filter *.vcxproj | Foreach-Object { $content = Get-Content $_.FullName $content -replace '<WarningLevel>Level3', '<WarningLevel>Level4' | Out-File -encoding UTF8 $_.FullName } (gc .build/projects/$toolset/unit_test....
siquel/kulma
vshax.ps1
PowerShell
mit
636
[CmdletBinding()] Param ( $RepoRoot, $DocGenDir ) Write-Verbose "Name Reccuring paths with variable names" $DocFxTool = "${RepoRoot}/docfx/docfx.exe" $DocOutDir = "${RepoRoot}/docfx_project" Write-Verbose "Initializing Default DocFx Site..." & "${DocFxTool}" init -q -o "${DocOutDir}" Write-Verbose "Copying t...
selvasingh/azure-sdk-for-java
eng/docgeneration/Generate-DocIndex.ps1
PowerShell
mit
6,613
# # Module manifest for module 'MsrcSecurityUpdates' # # Generated by: Microsoft Corporation # # Generated on: 3/6/2017 # @{ # Script module or binary module file associated with this manifest. RootModule = 'MsrcSecurityUpdates.psm1' # Version number of this module. ModuleVersion = '1.7.3' # Suppor...
ms-AlexDavis/webhook_test
src/MsrcSecurityUpdates/MsrcSecurityUpdates.psd1
PowerShell
mit
6,065
param( [Parameter(Mandatory = $True, Position = 1)] [string]$hostName, [Parameter(Mandatory = $False)] [string]$location = "southcentralus" ) $ErrorActionPreference = "Stop" if ([int](Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" -Name Release).Release -lt 393295) { throw "Your ver...
dotnet-architecture/eShopModernizing
VM/DockerCerts-Generation/CreateDockerCerts.ps1
PowerShell
mit
3,986
function New-WikiPage { <# .SYNOPSIS Create a new page in your Confluence instance. .DESCRIPTION Create a new page in Confluence. Optionally include content in -Body. Content needs to be in "Confluence storage format;" see also -Convert. .EXAMPLE New-WikiPage -Title 'Test New Page' -Pa...
brianbunke/ConfluencePS
ConfluencePS/Public/New-WikiPage.ps1
PowerShell
mit
5,063
########################################################################## # 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. ###################################################################...
DixonDs/Cake.Azure
build.ps1
PowerShell
mit
8,546
function GetLinuxOctalPermissions { [CmdletBinding()] Param( [Parameter(Mandatory=$True)] [string]$FullPath, [Parameter(Mandatory=$False)] [switch]$Children ) # If $FullPath ends with '/', remove it if ($FullPath[-1] -eq "/") { $FullPath = $FullPath.Substrin...
pldmgg/misc-powershell
MyFunctions/PowerShellCore_Compatible/SudoExperiment/GetLinuxOctalPermissions.ps1
PowerShell
apache-2.0
1,124
param([String]$solutionDirectory="") # ===== Load settings . $($(Split-Path $script:MyInvocation.MyCommand.Path) + "\Settings.ps1") -solutionDirectory $solutionDirectory $failCode = 0 # ====== Run Dnx test foreach ($prj in $dnxTests) { $dnxTestReportXml = $prj + ".xml" cd $($solutionDirectory + "\tests\" + $prj) ...
VeselovAndrey/LoreKeeper
build.scripts/Tests-Execute.AppVeyor.ps1
PowerShell
apache-2.0
1,243
######################################################################################## ## Description: ## Uninstall open-vm-tools-sdmp package and check the serviceDiscovery plugin gets removed ## ## Revision: ## v1.0.0 - ldu - 06/11/2020 - Build the script ## #######################################################...
VirtQE-S1/ESX-LISA
testscripts/ovt_uninstall_sdmp.ps1
PowerShell
apache-2.0
4,679
# Copyright © 2017 Chocolatey Software, Inc. # Copyright © 2015 - 2017 RealDimensions Software, LLC # Copyright © 2011 - 2015 RealDimensions Software, LLC & original authors/contributors from https://github.com/chocolatey/chocolatey # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not...
bazzilic/choco
src/chocolatey.resources/helpers/functions/Set-EnvironmentVariable.ps1
PowerShell
apache-2.0
4,453
function Add-VSMediaLiveChannelCaptionSelector { <# .SYNOPSIS Adds an AWS::MediaLive::Channel.CaptionSelector resource property to the template. Information about one caption to extract from the input. .DESCRIPTION Adds an AWS::MediaLive::Channel.CaptionSelector resource property to the tem...
scrthq/Vaporshell
VaporShell/Public/Resource Property Types/Add-VSMediaLiveChannelCaptionSelector.ps1
PowerShell
apache-2.0
4,061
$packageName = 'kvrt' $url = 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe' $checksum = '215a42164e91f1ae7b7db850ade031180df8042989af6c913c67e8e8ca380ed5' $checksumType = 'sha256' $toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsPath "kvrt...
dtgm/chocolatey-packages
automatic/_output/kvrt/2016.06.02.0104/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
957
@{ ensure = 'present' vCenter = 'vcenter01.local' datacenter = 'datacenter01' cluster = 'cluster01' vmTemplate = 'W2K12_R2_Std' customizationSpec = 'W2K12_R2' powerOnAfterCreation = $true totalvCPU = 2 coresPerSocket = 1 vRAM = 4 initialDatastore = 'datastore01' networks ...
devblackops/POSHOrigin_vSphere
POSHOrigin_vSphere/Examples/vm_defaults.psd1
PowerShell
apache-2.0
1,490
properties { $BaseDir = Resolve-Path "..\" $SolutionFile = "$BaseDir\src\Burrows.sln" $ProjectPath = "$BaseDir\src\Loggers\Burrows.NLog\Burrows.NLog.csproj" $ArchiveDir = "$BaseDir\Deploy\Archive" $NuGetPackageName = "Burrows.NLog" } . .\common.ps1
eswann/Burrows
deploy/Burrows.NLog.ps1
PowerShell
apache-2.0
268
function New-VSIAMManagedPolicy { <# .SYNOPSIS Adds an AWS::IAM::ManagedPolicy resource to the template. Creates a new managed policy for your AWS account. .DESCRIPTION Adds an AWS::IAM::ManagedPolicy resource to the template. Creates a new managed policy for your AWS account. This operati...
scrthq/Vaporshell
VaporShell/Public/Resource Types/New-VSIAMManagedPolicy.ps1
PowerShell
apache-2.0
21,102
function ApexExportCommit ( $CONNECTION ,$USER ,$PASSWORD ,$APP_ID ,$CHECKOUT_PATH, $DIR ) { write-host $CONNECTION write-host $USER write-host $PASSWORD write-host $APP_ID write-host $CHECKOUT_PATH write-host $DIR #write-host "APEX file export and commit - uses oracle.apex.APEXExport.class and java orac...
peter-genesys/SmartLogger
apex/apps/oracle/ApexExportCommitGIT.ps1
PowerShell
bsd-2-clause
1,740
#requires -Version 2 -Modules ScheduledTasks Start-Transcript -Path $PSScriptRoot\FirstRun.log #Create AtStartup Task. $Paramaters = @{ Action = New-ScheduledTaskAction -Execute '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -Argument '-NoProfile -ExecutionPolicy Bypass -File C:\PSTemp\AtStartup.p...
devopsteamberlin/DscTestLab
BuildVM/VMScripts/FirstRun.ps1
PowerShell
mit
635
Function Get-UnitypoolConfiguration { <# .SYNOPSIS System-recommended pool configuration settings. Instances of this resource type contain the output of the pool resource type's RecommendAutoConfiguration operation. <br/> .DESCRIPTION System-recommended pool configuration settings. Instance...
equelin/Unity-Powershell
Tools/Functions/Result_UnityVSA_41/Get-UnitypoolConfiguration.ps1
PowerShell
mit
2,320
param( [Parameter(Mandatory=$true)] [string] $VaultName, [Parameter(Mandatory=$false)] [string] $Prefix = "", [Parameter(Mandatory=$true)] [string] $Path, [Parameter(Mandatory=$true)] [string] $IngressHost, [Parameter(Mandatory=$false)] [string] $IngressPath = "/", [Para...
leotsarev/joinrpg-net
deployment/portal/scripts/Prepare-ChartValues.ps1
PowerShell
mit
2,191
Param( [Parameter(Mandatory=$true)] [string]$VmId ) # Include the following modules $Dir = Split-Path $script:MyInvocation.MyCommand.Path . ([System.IO.Path]::Combine($Dir, "utils\write_messages.ps1")) # Make sure the exception type is loaded try { # Microsoft.HyperV.PowerShell is present on all versions ...
taliesins/vagrant
plugins/providers/hyperv/scripts/get_vm_status.ps1
PowerShell
mit
1,772
$packageName = 'vcredist2013' $installerType = 'exe' $url = 'http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe' $checksum = 'df7f0a73bfa077e483e51bfb97f5e2eceedfb6a3' $checksumType = 'sha1' $url64 = 'http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3...
maharishi/chocolatey-packages
automatic/vcredist2013/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,495
[Reflection.Assembly]::LoadWithPartialName("Microsoft.WindowsAzure.ServiceRuntime") .\install-php-impl.cmd # Get PHP installation details Add-PsSnapin PHPManagerSnapin $phpConfiguration = Get-PHPConfiguration $phpExecutable = Get-ChildItem $phpConfiguration.ScriptProcessor $phpExtensionsPath = $phpExecutable...
peitehcheng/Geolocation-PHP-Service
source/OldSdk/Microsoft/WindowsAzure/CommandLine/Scaffolders/DefaultScaffolder/resources/Common/bin/install-php.ps1
PowerShell
apache-2.0
1,455
[CmdletBinding()] Param( [string]$Target = "Run-All-Tests", [switch]$SkipBuildingCake ) $Exclusive = '' if ($SkipBuildingCake.IsPresent) { $Exclusive = '--exclusive' } $PSScriptRoot = split-path -parent $MyInvocation.MyCommand.Definition $RootDirectory = (Join-Path $PSScriptRoot "../..") # Build Cake. t...
patriksvensson/cake
tests/integration/build.ps1
PowerShell
mit
611
function FindIISWebsite { param($name) Import-Module WebAdministration Try { Get-Item "IIS:\Sites\$name" -Erroraction silentlycontinue } Catch [System.IO.FileNotFoundException] { Get-Item "IIS:\Sites\$name" -Erroraction silentlycontinue } } function FindIISAppPool { param...
1tylermitchell/cluster-preflight
preflight-1.0.0-linux-ruby/lib/ruby/lib/ruby/gems/2.1.0/gems/specinfra-2.44.2/lib/specinfra/backend/powershell/support/find_iis_component.ps1
PowerShell
apache-2.0
2,010
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #The Measure-Command function is used to time the script. $time = Measure-Command { New-SPSite https://intranet.wingtip.com/sites/RegularBlankSite -Template STS#1 -ContentDatabase SharePoint_Content_Wingtip_Engineering -CompatibilityLevel ...
CriticalPathTraining/SSC2016
Student/Modules/05_SiteCollections/Test-FastSiteCreation.ps1
PowerShell
mit
785
#requires -Version 3 -Modules CWHelpers, Pester $here = Split-Path -Parent -Path $MyInvocation.MyCommand.Path $sut = (Split-Path -Leaf -Path $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' #. "$here\$sut" <-- since testing script and not method the script is included in the IT section Describe 'VES vendor imp...
jsk01/Powershell
VES vendor import.Tests.ps1
PowerShell
mit
788
############################################################################## # HP Insight Control server provisioning PowerShell Library ############################################################################## ############################################################################## ## (C) Copyright 2014-2...
HewlettPackard/POSH-HPICsp
HPICsp.psm1
PowerShell
mit
137,414
try { . .\Invoke-Installer.ps1 $innoInstallerArguments = @("/SILENT", "/NORESTART", "/CLOSEAPPLICATIONS", "/RESTARTAPPLICATIONS") if (# Microsoft Azure PowerShell https://github.com/Azure/azure-powershell (Invoke-Installer -Name "Microsoft Azure PowerShell" -Uri "http://az412849.vo....
paulmarsy/Console
Installation/Prerequisites/Install.ps1
PowerShell
mit
1,811
ParameterGenerator -name SymbolicLinkParameterValidationGenerator -definition { $returnObject = @() $targetValues = @("", $null, "$global:targetfile", "C:\NonExistentFile.txt", "HKLM:\Software") $pathValues = @("", $null, $(Join-Path $global:testDestinationRoot "ValidDestination.txt"), "Env:\APPDATA") ...
PowerShell/PowerShell-Tests
Commands/Cmdlets/SymbolicLinksGenerator.psm1
PowerShell
mit
5,691
function Expand-PSMDTypeName { <# .SYNOPSIS Returns the full name of the input object's type, as well as the name of the types it inherits from, recursively until System.Object. .DESCRIPTION Returns the full name of the input object's type, as well as the name of the types it inherits from, recursively until S...
FriedrichWeinmann/PSModuleDevelopment
PSModuleDevelopment/functions/assembly/Expand-PSMDTypeName.ps1
PowerShell
mit
959
# Variables # vCenter $vCenter = "192.168.7.10" $admin = "administrator@vsphere.local" $password = ConvertTo-SecureString -String "VMware1!" -AsPlainText -Force # Content Library $Content_Library = "Content-Library" $Item_Name = "VMware-NSX-Manager-6.3.3-6276725" # NSX Deploy settings $Folder_Name = "NSX_Test" $Host...
sammcgeown/vSphere-Content-Library
vsphere-content-library.ps1
PowerShell
mit
6,168
function Mount-DSCPullServerESEDatabase { [CmdletBinding()] param( [Parameter(Mandatory)] [DSCPullServerESEConnection] $Connection, [ValidateSet('None', 'ReadOnly', 'Exclusive')] [string] $Mode = 'None' ) $instanceName = [guid]::NewGuid().guid $systemPath = (Split-P...
bgelens/DSCPullServerAdmin
DSCPullServerAdmin/private/Mount-DSCPullServerESEDatabase.ps1
PowerShell
mit
3,685
<# .SYNOPSIS Script to create a checkpoint for all the VMs running on your Hypervisor and delete any checkpoints beyond the newest $KeptCheckpoints. .DESCRIPTION Desigened to work as a scheduled task, this script creates checkpoints for all the virtual machines on your hyper-v server. It also deletes any previo...
mostateresnet/Start-RollingCheckpoints
Start-RollingCheckpoints.ps1
PowerShell
mit
3,094
<# .SYNOPSIS Executes search and replace operations on text files. .DESCRIPTION This script is essentially a utility for running any number of search and replace operations (defined in an external JSON file) against any number of text-based files and logging the results. When a file matches a search pattern an...
Phanoteus/fixfiles
fixfiles.ps1
PowerShell
mit
27,722
[CmdletBinding()] param( [string] $SharePointCmdletModule = (Join-Path $PSScriptRoot "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm1" -Resolve) ) $ErrorActionPreference = 'stop' Set-StrictMode -Version latest $RepoRoot = (Resolve-Path $PSScriptRoot\..\..).Path $Global:CurrentSharePointStu...
wulfland/xSharePoint
Tests/xSharePoint/xSharePoint.xSPManagedMetadataServiceApp.Tests.ps1
PowerShell
mit
6,936
# 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 agreed to in writing, software # distributed under ...
lweniger/PowerShell
Modules/downloaded/powershellgallery/Carbon/2.2.0/Functions/Install-MsmqMessageQueue.ps1
PowerShell
mit
3,880
<# .Synopsis Uploads from a VSTS release build layout to python.org .Description Given the downloaded/extracted build artifact from a release build run on python.visualstudio.com, this script uploads the files to the correct locations. .Parameter build The location on disk of the extracted b...
batermj/algorithm-challenger
code-analysis/programming_anguage/python/source_codes/Python3.8.0/Python-3.8.0/Tools/msi/uploadrelease.ps1
PowerShell
apache-2.0
5,415
# Script parameters Param( [string] $PublicKeyTokenToCheck, # The build type. If not specified defaults to 'release'. [Parameter()] [string] $BuildType = "release" ) # Functions Function Get-PublicKeyToken { [CmdletBinding()] Param( # The assembly in question [Paramet...
rafd123/aws-sdk-net
buildtools/Copy-SDKAssemblies.ps1
PowerShell
apache-2.0
3,861
$packageName = 'csvfileview' $url = 'http://www.nirsoft.net/utils/csvfileview.zip' $checksum = 'ed4522fc5cb4f653b7e9929196651add38a9e1984e2644edeed0a6f0e0557a02' $checksumType = 'sha256' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsDir "$($packageName).exe" Inst...
dtgm/chocolatey-packages
automatic/_output/csvfileview/2.35/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
654
# This template is intended to be used with Chocolatey and Ketarin to automatically package and publish nuget-based packages for distribution with chocolatey. # Please remove comments before pushing. ### sed -ie '/^\s*#.*$/d' -ie 's_\s*#.*$__g' [:alpha:]*/tools/chocolateyInstall.ps1 && unix2dos [:alpha:]*/tools/chocola...
maharishi/chocolatey-packages
automatic/template-msi/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,335
$packageName = 'httpnetworksniffer' $url = 'http://www.nirsoft.net/utils/httpnetworksniffer.zip' $checksum = '56c78445868a2129a3dc0cc2f7b8f2cc99e120ac65fca6c328ee8da27e78aab8' $checksumType = 'sha256' $url64 = 'http://www.nirsoft.net/utils/httpnetworksniffer-x64.zip' $checksum64 = '6c25f0ee1268f8a523da2c3ae1e8d42bfc79e...
dtgm/chocolatey-packages
automatic/_output/httpnetworksniffer/1.61/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,015
# WARNING WARNING WARNING - DO NOT EDIT THIS FILE IN JENKINS DIRECTLY. # SUBMIT A PR TO https://github.com/jhowardmsft/docker-w2wCIScripts/blob/master/runCI/executeCI.ps1, # AND MAKE SURE https://github.com/jhowardmsft/docker-w2wCIScripts/blob/master/runCI/Invoke-DockerCI.ps1 # ISN'T BROKEN!!!!!!! VALIDATE USING A TEST...
rremer/moby
hack/ci/windows.ps1
PowerShell
apache-2.0
54,545
$packageName = 'httpnetworksniffer' $url = 'http://www.nirsoft.net/utils/httpnetworksniffer.zip' $checksum = '00677d14bcd35a77ce46c5c3c1c9d230db8514e1c6d3a13f2ed58e70bca793c4' $checksumType = 'sha256' $url64 = 'http://www.nirsoft.net/utils/httpnetworksniffer-x64.zip' $checksum64 = '0125c72ceb58231f04b679d2d064f1126a3f...
dtgm/chocolatey-packages
automatic/_output/httpnetworksniffer/1.60/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,018
$packageName = 'awscli' $installerType = 'msi' $silentArgs = '/quiet /qn /norestart' $url = 'https://s3.amazonaws.com/aws-cli/AWSCLI32-1.15.12.msi' $checksum = '4d72ffff23fe52a6fa852b3f9e6c0c8fee93b53dc0fceb5ac31aba3e3725b912' $checksumType = 'sha256' $url64 = 'https://s3.amazonaws.com/aws-cli/AWSCLI64-1.15.12.msi' $ch...
dtgm/chocolatey-packages
automatic/_output/awscli/1.15.12/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
982
# Define of argument parameter param( $ssid, $t ) Write-Output( "WorkDocs-NWchecker ver.0.2 (-t [interval(second)] -ssid [WiFi-SSID])") # CHANGE VALUE. SET YOUR WiFi-SSID, you want to stop WorkDocs. if ( $ssid -eq $null ) { $ssid = "yo1-007" } Write-Output( "WiFi SSID: " + $ssid ) # Set Checking interval for...
yo1t/WorkDocs-NWchecker
src/Multi-Platform/ver0.2/workdocs-NWchecker.ps1
PowerShell
apache-2.0
2,528
<# .SYNOPSIS Adds the domains listed in the CSV to the Office 365 tenant. .DESCRIPTION Connect to office 365 PowerShell Change directory and setup the Add-O365Domain.csv .NOTES Version: .01 .LINK https://technet.microsoft.com/en-us/library/dn705744.aspx .LINK https://docs.microsoft.com/en-us/powershell/module/msonl...
gruberjl/powershell
Add-O365Domain/Add-O365Domain.ps1
PowerShell
apache-2.0
1,675
<# .SYNOPSIS Creates and throws an invalid argument exception. .PARAMETER Message The message explaining why this error is being thrown. .PARAMETER ArgumentName The name of the invalid argument that is causing this error to be thrown. #> function New-InvalidArgumentException { ...
puppetlabs/puppetlabs-dsc
lib/puppet_x/dsc_resources/xDhcpServer/Modules/CommonResourceHelper.psm1
PowerShell
apache-2.0
6,950
param ( [Parameter(Mandatory, ValueFromPipelineByPropertyname)] [ValidateNotNullOrEmpty()] [string]$FirstName, [Parameter(Mandatory, ValueFromPipelineByPropertyname)] [ValidateNotNullOrEmpty()] [string]$LastName, [Parameter(Mandatory, ValueFromPipelineByPropertyname)] [ValidateNotNul...
sjcnyc/PowerShell
Start-UserOnboarding.ps1
PowerShell
mit
4,109
<# .SYNOPSIS Imports an existing certificate into an Azure KeyVault in the format used by Azure Service Fabric. .DESCRIPTION Imports an existing certificate into an Azure KeyVault in the format used by Azure Service Fabric. .PARAMETER SubscriptionName The name of the Azure Reso...
jsquire/Portfolio
src/CertificateStore/tools/service-fabric/Ingest-Certificate.ps1
PowerShell
mit
5,768
using namespace System.Management.Automation using namespace System.Management.Automation.Language using namespace System.Reflection function Get-FunctionInfo { <# .SYNOPSIS Get an instance of FunctionInfo. .DESCRIPTION FunctionInfo does not present a public constructor. This function call...
indented-automation/ScriptAnalyzerRules
Indented.ScriptAnalyzerRules/public/helper/Get-FunctionInfo.ps1
PowerShell
mit
2,734
data localizedData { # Localized messages; culture="en-US" ConvertFrom-StringData @' ResourceIncorrectPropertyState = Resource property '{0}' is NOT in the desired state. Expected '{1}', actual '{2}'. ResourceInDesiredState = Resource '{0}' is in the desired state. Resourc...
VirtualEngine/RESONEServiceStore
DSCResources/VE_ROSSWebPortal/VE_ROSSWebPortal.psm1
PowerShell
mit
13,964
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
ObjectivityBSS/PSCI.teamcityExtensions
Objectivity.TeamcityMetarunners/Public/Utils/Get-PredefinedSqlQuery.ps1
PowerShell
mit
6,163
[CmdletBinding()] # Needed to support -Verbose param( [Parameter(Position = 0, Mandatory=$true)] [ValidateSet("Release", "Debug")] [string]$Configuration, [Parameter(Position = 1, Mandatory=$true)] [ValidateSet("AnyCPU", "x86", "x64")] [string]$Platform, [Parameter(Position = 2)] [Val...
conniey/dotnet-apiport
build.ps1
PowerShell
mit
4,425
<# Copyright © 2013 Citrix Systems, Inc. All rights reserved. .SYNOPSIS Sample Cloudworks script to create a domain controller. .DESCRIPTION This is a sample script to illustrate how to use the Cloudworks PowerShell tools to rename a newly created CloudPlatform instance and promote it to be a domain controller....
siwater/Cloudworks
scripts/RenameComputerCreateDomainSample.ps1
PowerShell
mit
685
$ErrorActionPreference = 'Stop' $packageName = 'occt' $url32 = 'https://www.ocbase.com/download' $checksum32 = '48d7cc9bfbd52b73ba0fa89be6a66990beeccc1554f08246a282a06a4c36ac6d' $toolsPath = (Split-Path $MyInvocation.MyCommand.Definition) $packageArgs = @{ packageName = $packageName url ...
sippi90/chocolateyautomaticpackages
occt/tools/chocolateyinstall.ps1
PowerShell
mit
733
param($server, $database, $backupLocation, $migrationsAssemblyPath) # Backup location is base\server\timestamp $backupLocation = join-path (join-path $backupLocation $server) $(get-date -f yyyy_MM_dd_HH_mm_ss) # Backup current database mongodump -h $server -d $database -o $backupLocation # Load assembly wit...
phoenixwebgroup/DotNetMongoMigrations
MigrateMongo.ps1
PowerShell
mit
1,259
Configuration Params { param ( [Parameter(Mandatory)] [Switch] $DisableServerManager, [Parameter()] [Boolean] $ICMP ) Import-DscResource -ModuleName PSDesiredStateConfiguration; Import-DscResource -ModuleName xNetworking; Import-DscResource -modulename xWinEventLog...
powershellorguk/SouthCoast
Meetups/2018/March/DSC101_Params.ps1
PowerShell
mit
1,505
# # Module manifest for module 'PSGet_AzureRM.LogicApp' # # Generated by: Microsoft Corporation # # Generated on: 2/21/2017 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '2.6.0' # Supported PSEditions # CompatiblePSEditio...
zhencui/azure-powershell
src/ResourceManager/LogicApp/AzureRM.LogicApp.psd1
PowerShell
apache-2.0
6,117
# # 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 agreed to in writing, software # distribute...
duckback00/dxapikit
API_Powershell/delete_database_sqlserver.ps1
PowerShell
apache-2.0
4,023
# # Module manifest for module 'Microsoft.Azure.Commands.DataFactories' # # Generated by: Microsoft Corporation # # Generated on: 9/19/2015 # @{ # Version number of this module. ModuleVersion = '2.2.0' # ID used to uniquely identify this module GUID = 'e3c0f6bc-fe96-41a0-88f4-5e490a91f05d' ...
nemanja88/azure-powershell
src/ResourceManager/DataFactories/AzureRM.DataFactories.psd1
PowerShell
apache-2.0
3,387
# PSake makes variables declared here available in other scriptblocks Properties { $ProjectRoot = $ENV:BHProjectPath if (-not $ProjectRoot) { $ProjectRoot = "$PSScriptRoot/.." } $Timestamp = Get-Date -UFormat '%Y%m%d-%H%M%S' $PSVersion = $PSVersionTable.PSVersion.Major $lines = '------...
markwragg/PSHipchat
Build/build.psake.ps1
PowerShell
apache-2.0
10,054
# ---------------------------------------------------------------------------------- # # 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...
shuagarw/azure-powershell
src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.ps1
PowerShell
apache-2.0
11,342
$packageName = 'firefox-nightly' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $url = 'https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-58.0a1.en-US.win32.installer.exe' $checksum = '8173466e4315ff08c495cf386d7201a1a089b2161b66ba679bd9571a354cc779' $c...
dtgm/chocolatey-packages
automatic/_output/firefox-nightly/58.0.1.2017100400/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,131
# Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/GCP-deployment-scripts-for-PI-Core
powershell/ha/web-omf.ps1
PowerShell
apache-2.0
11,766
#requires -Version 3.0 #region Info <# Support: https://github.com/jhochwald/NETX/issues #> #endregion Info #region License <# Copyright (c) 2016, Quality Software Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fol...
jhochwald/NETX
Profile/functions/Get-ReqParams.ps1
PowerShell
bsd-3-clause
14,272
hab pkg install core/nginx --channel stable hab pkg install core/windows-service Describe "Clean Habitat Shutdown" { Start-Service Habitat hab pkg install core/nginx Wait-Supervisor -Timeout 45 hab svc load core/nginx Wait-SupervisorService nginx -Timeout 20 It "Starts running nginx" { ...
habitat-sh/habitat
test/end-to-end/test_supervisor_windows_shutdown.ps1
PowerShell
apache-2.0
920
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
Invenis/PSCI
PSCI/Private/deploy/SSAS/Update-SSASXmlaRoleMembers.ps1
PowerShell
mit
2,722
<# .SYNOPSIS This is the (mostly) silent Server-Eye installer. .DESCRIPTION This script will help to install Server-Eye on systems without a full UI or when a full interactive setup is not needed. Right now this script can download the current version of the client, install the client, setup an OCC-Con...
Server-Eye/se-installer-cli
de/Deploy-ServerEye_unsigned.ps1
PowerShell
mit
31,074
<# .SYNOPSIS Automated unit test for MSFT_SqlDatabaseRole DSC resource. .NOTES To run this script locally, please make sure to first run the bootstrap script. Read more at https://github.com/PowerShell/SqlServerDsc/blob/dev/CONTRIBUTING.md#bootstrap-script-assert-testenvironment...
PowerShell/xSQLServer
Tests/Unit/MSFT_SqlDatabaseRole.Tests.ps1
PowerShell
mit
37,576
function Register-PsISEProjectExplorer() { Add-Type -Path (Join-Path $PSScriptRoot 'PsISEProjectExplorer.dll') $addOnName = 'Project Explorer' $exists = $psISE.CurrentPowerShellTab.VerticalAddOnTools | where { $_.Name -eq $addOnName } if ($exists) { $psISE.CurrentPowerShellTab.VerticalAddOnT...
SpotLabsNET/PsISEProjectExplorer
PsISEProjectExplorer/PsISEProjectExplorer.psm1
PowerShell
mit
4,144
#!/usr/bin/env powershell Import-Module "~/.dotfiles/bin/dotfiles.psm1" -ErrorAction Stop Set-DotfilesModuleLink -src "bash/bash_profile.symlink" -dst "~/.bash_profile" Set-DotfilesModuleLink -src "bash/bashrc.symlink" -dst "~/.bashrc"
marsom/dotfiles
kernel/All/bash/dotfiles-configure.ps1
PowerShell
mit
243
#function to extract properties Function Get-PropertyOrder { <# .SYNOPSIS Gets property order for specified object .DESCRIPTION Gets property order for specified object .PARAMETER InputObject A single object to convert to an array of property value pairs. .PARAMETER Membe...
RamblingCookieMonster/PSSlack
PSSlack/Private/Get-PropertyOrder.ps1
PowerShell
mit
1,652
function Get-ListBoxItem { <# .SYNOPSIS Function to get item(s) from a ListBox Control .DESCRIPTION Function to get item(s) from a ListBox Control .NOTES Author: Francois-Xavier Cat Twitter:@LazyWinAdm WWW: lazywinadmin.com VERSION HISTORY 1.0 2014/04/15 Initial Version #> #Require...
lazywinadmin/WinFormPS
Archives/Get-ListBoxItem.ps1
PowerShell
mit
1,079
$packageName = 'firefox-nightly' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $url = 'https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-57.0a1.en-US.win32.installer.exe' $checksum = '9a036a2d772c073b9f02d509f6a3eb9a1c1ed0a9154c5e3d49108e1d1b9b8ed0' $c...
dtgm/chocolatey-packages
automatic/_output/firefox-nightly/57.0.1.2017090112/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,131
#-------------------------------------------------------------------------------------------- # Copyright 2014 Sivaprasad Padisetty # # 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 # ...
padisetty/Samples
Blogs/001 Getting Started with Azure PowerShell/Launch Benchmark - Azure.ps1
PowerShell
apache-2.0
4,067
Set-ExecutionPolicy RemoteSigned -force Try { #Get public ip of the virtual machine $publicIpName=$args[0] $resourcegroupname=$args[1] Get-AzureRmPublicIpAddress -Name $publicIpName -ResourceGroupName $resourcegroupname } Catch [System.Exception] { Exit 1 }
getflint/flint-cloud
azure-stack/operation/powershell/get_public_ip.ps1
PowerShell
apache-2.0
268
<# .SYNOPSIS DSC Composite Resource uploads file or folder to an SMB share. .DESCRIPTION This is a DSC Composite resource that can be used to upload a file or folder into an SMB file share. The SMB file share does not have to be currently mounted. It will be mounted ...
puppetlabs/puppetlabs-dsc
lib/puppet_x/dsc_resources/xPSDesiredStateConfiguration/DSCResources/xFileUpload/xFileUpload.schema.psm1
PowerShell
apache-2.0
28,107
$ErrorActionPreference = 'Stop' $url32 = 'https://autohotkey.com/download/1.1/AutoHotkey_1.1.24.02.zip' $url64 = $url32 $checksum32 = '7f905a3d1cc5de0a8f599b0e090ada871b5af21147814bfcdce59eac8f58dd51' $checksum64 = $checksum32 $toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition $package...
ebugusey/chocolatey-coreteampackages
automatic/autohotkey.portable/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,033
$packageName = 'sketchupviewer' $installerType = 'msi' $silentArgs = '/quiet /qn /norestart' $url = 'http://dl.trimble.com/sketchup/SketchUpViewer-en.msi' $checksum = '47b9a281e6335cfe1963084dea7ca881703e28be04361944b2d92fdc3e2c1be6' $checksumType = 'sha256' $url64 = 'http://dl.trimble.com/sketchup/SketchUpViewer-en-x6...
dtgm/chocolatey-packages
automatic/_output/sketchupviewer/16.1.1449/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
997
# # Copyright (c) .NET Foundation and contributors. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # param( [string]$Configuration="Debug", [string]$Architecture="x64", [Parameter(ValueFromRemainingArguments=$true)][String[]]$ExtraP...
johnbeisner/cli
run-build.ps1
PowerShell
mit
908
# # Module manifest for module 'xRobocopy' # # Generated by: PowerShell DSC # # Generated on: 6/15/2015 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '1.1.0.0' # ID used to uniquely identify this module G...
devopsteamberlin/xRobocopy
xRobocopy.psd1
PowerShell
mit
3,429
$packageName = 'krita' $softwareName = "Krita *" $installerType = 'exe' $silentArgs = '/S' $validExitCodes = @(0)   [array]$key = Get-UninstallRegistryKey -SoftwareName $softwareName   $key | ForEach-Object {   Uninstall-ChocolateyPackage -PackageName $packageName `                               -FileType $installerTyp...
dtgm/chocolatey-packages
automatic/_output/krita/3.0/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
522
# # Module manifest for module 'Az.FrontDoor' # # Generated by: Microsoft Corporation # # Generated on: 3/9/2018 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '0.1.0' # Supported PSEditions CompatiblePSEditions = 'Core' ...
ClogenyTechnologies/azure-powershell
src/ResourceManager/FrontDoor/Commands.FrontDoor/Az.FrontDoor.psd1
PowerShell
apache-2.0
4,903
$packageName = 'routerpassview' $url = 'http://www.nirsoft.net/toolsdownload/routerpassview.zip' $checksum = '245980cc448786d5e06a78e6a114ac4eaa8439e7' $checksumType = 'sha1' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsDir "$($packageName).exe" $chocTempDir = J...
dtgm/chocolatey-packages
automatic/_output/routerpassview/1.60/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,039