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
$appId = "Bench.DotNetCore" $dotnet = App-Exe $appId $tools = Get-AppConfigListValue $appId "Tools" foreach ($tool in $tools) { Write-Host "Installing .NET Core Tool ${tool}..." & $dotnet tool install $tool --global }
mastersign/bench-apps-default
scripts/bench/dotnetcore.setup.ps1
PowerShell
mit
228
# Generate a WordPress configuration base on the supplied parameters # and returns it as a string. param ( [Parameter(Mandatory = $true)] [string] $WordPressDatabase, [Parameter(Mandatory = $true)] [string] $WordPressUserName, [Parameter(Mandatory = $true)] [...
cyberious/puppetlabs-dsc
lib/puppet_x/dsc_resources/xWordPress/samples/WordPressConfigurationTemplate.ps1
PowerShell
apache-2.0
2,120
[CmdletBinding(SupportsShouldProcess=$true)] Param( [string] $InstallerArchiveFilePath ) $artifactoryBaseUri = 'http://artrepo.daptiv.com:8081/artifactory' $artifactoryRepo = 'installs' $artifactoryOrg = 'microsoft' $artifactoryModule = 'visual_studio_build_tools_offline_installer' $installerArchive = "$...
daptiv/teamcity
packer/windows_2012r2_chef_13.8.5_visualstudio_2015/scripts/install-build-tools-via-offline-installer.ps1
PowerShell
apache-2.0
4,561
mkdir .build cd .build cmake -g "Visual Studio 15 2017 Win64" ..
xunilrj/sandbox
courses/columbia-ia/build.ps1
PowerShell
apache-2.0
65
#################### # AD RIGHTS CLIENT # # NOM1 @ IRIS # #################### ############# # FUNCTIONS # ############# # COLOR-WRITE function Color-Write { $allColors = ("-Black", "-DarkBlue","-DarkGreen","-DarkCyan","-DarkRed","-DarkMagenta","-DarkYellow","-Gray", "-Darkgray","-Blue",...
niikoo/NProj
Windows/POWERSHELL/tcp_client.ps1
PowerShell
apache-2.0
3,088
# Copyright 2021 Google LLC # Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https://llvm.org/LICENSE.txt # Unless required by applicable law or agreed to in writing, s...
google/llvm-premerge-checks
scripts/windows/post-checkout.ps1
PowerShell
apache-2.0
734
function Add-VSKinesisAnalyticsApplicationOutputOutput { <# .SYNOPSIS Adds an AWS::KinesisAnalytics::ApplicationOutput.Output resource property to the template. Describes application output configuration in which you identify an in-application stream and a destination where you want the in-application s...
scrthq/Vaporshell
VaporShell/Public/Resource Property Types/Add-VSKinesisAnalyticsApplicationOutputOutput.ps1
PowerShell
apache-2.0
4,982
<# .SYNOPSIS Remove undesirable charaters from comma-separated value (CSV) files, especially the files generated by SQL Server Management Studio 2012 "Save Results As..." functionality. .PARAMETER Files Array of paths to be cleansed. Pipeline values also supported. .PARAMETER Encoding The file's encoding. .PARAMET...
craibuc/Invoke-CsvCleanser
Functions/Invoke-CsvCleanser.ps1
PowerShell
mit
6,275
Param ( [Parameter(Mandatory=$false)] [string]$BuildFlavor = "Release" ) $buildFolderPath = $PSScriptRoot if($env:APPVEYOR_BUILD_FOLDER -ne $null) { $buildFolderPath = $env:APPVEYOR_BUILD_FOLDER } Write-Host "Build dir : $buildFolderPath" $computeClientXmlPath = Join-Path $buildFolderPath "Compute...
samuelchong/Compute.Api.Client
Generate-Documentation.ps1
PowerShell
mit
1,023
try {Import-Module $PSScriptRoot\..\..\ImportExcel.psd1} catch {throw ; return} Remove-Item .\testFormula.xlsx -ErrorAction Ignore @" id,item,units,cost 12001,Nails,37,3.99 12002,Hammer,5,12.10 12003,Saw,12,15.37 12010,Drill,20,8 12011,Crowbar,7,23.48 "@ | ConvertFrom-Csv | Add-Member -PassThru -MemberType NotePr...
dfinke/ImportExcel
Examples/SpreadsheetCells/ExcelFormulasUsingAddMember.ps1
PowerShell
apache-2.0
434
# ---------------------------------------------------------------------------------- # # 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...
SarahRogers/azure-powershell
src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/LocalNetworkGatewayTests.ps1
PowerShell
apache-2.0
3,062
$packageName = 'dolphin' $url = 'http://dl.dolphin-emu.org/builds/dolphin-master-4.0-8575-x64.7z' $checksum = '3ebf0ed2ff27808feb1bca6e9dd93a856db45777' $checksumType = 'sha1' $url64 = $url $checksum64 = $checksum $checksumType64 = $checksumType $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" In...
dtgm/chocolatey-packages
automatic/_output/dolphin/4.0.8575/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
761
$packageName = 'thebrain.install' $installerType = 'exe' $url = 'http://api.thebrain.com/?a=doDirectDownload&id=70' $checksum = '7efe48c48bd260e4b0ee11f3e0aff00f3c01d631' $checksumType = 'sha1' $url64 = 'http://api.thebrain.com/?a=doDirectDownload%26id=76' $checksum64 = '{checksumx64}' $checksumType64 = 'sha1' $silent...
dtgm/chocolatey-packages
automatic/_output/thebrain.install/8.0.1.600/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
598
$packageName = "blat" $urlArray = @('http://sourceforge.net/projects/blat/files/Blat%20Full%20Version/32%20bit%20versions/Win2000%20and%20newer/blat3211_32.full.zip/download', 'http://sourceforge.net/projects/blat/files/Blat%20Full%20Version/64%20bit%20versions/blat3211_64.full.zip/download') $url = $urlArray[0] $tools...
dtgm/chocolatey-packages
automatic/_output/blat/3.2.11/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,011
$ArgumentCompleter = @{ Command = @( "Get-ArmResourceGroup", "Get-ArmVmImage" ) Parameter = "Location" Description = "" ScriptBlock = { <# .SYNOPSIS .NOTES #> param($commandName, $parameterName, $wordToComplete, $com...
PSBlue/Blue
Completers/Location.ps1
PowerShell
mit
1,000
# Copyright 2011 - Present 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 use this file except in compliance with the License. # You may obtain a copy of the License at # ...
dshaneg/choco
src/chocolatey.resources/helpers/functions/Install-ChocolateyExplorerMenuItem.ps1
PowerShell
apache-2.0
3,965
function Find-MrSqlDatabaseChange { <# .SYNOPSIS Queries the active transaction log and transaction log backup file(s) for insert, update, or delete operations on the specified database. .DESCRIPTION Find-MrSqlDatabaseChange is a PowerShell function that is designed to query the active transaction l...
mikefrobbins/SQL
MrSQL/Public/Find-MrSqlDatabaseChange.ps1
PowerShell
mit
7,722
<# .SYNOPSIS Get Azure AD group members recurssively .EXAMPLE .\Get-MsolRecursiveGroupMember -ObjectId 6d34ab03-301c-4f3a-8436-98f873ec121a -Recursive .EXAMPLE .\Get-MsolRecursiveGroupMember -SearchString "Office 365 E5" .NOTES #> param( [parameter(ParameterSetName='ObjectId', Mandatory=$true...
NWESD/edu-IT
Office365/Get-MsolRecursiveGroupMember.ps1
PowerShell
mit
1,985
function Disable-IPv6 { $key = "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" Set-ItemProperty -Path $key -Name 'DisabledComponents' -Value 0xff -force Write-Output "IPv6 is now Disabled. Please restart to complete config" }#Disable-IPv6
SolidOceanTrust/Public-PowerShell
WinConfig/1.0.6/public/Disable-IPv6.ps1
PowerShell
mit
265
[CmdletBinding()] param( [ValidateSet("x64", "x86")][String[]]$Platforms = @("x64", "x86"), [ValidateSet("Debug", "Release")][String[]]$Flavors = @("Debug", "Release"), [Switch]$KeepPDB ) $msbuildPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component...
DBHeise/fileid
buildtests.ps1
PowerShell
mit
9,652
[cmdletbinding()] Param() Import-Module $PSScriptRoot\..\Az.LabServices.psm1 -Force #. $PSScriptRoot\Utils.ps1 Import-Module $PSScriptRoot\Utils.psm1 -Force Write-Verbose "Loading Utils.psm1" Describe 'Lab Account' { BeforeAll { $laName = "Temp$(Get-Random)" } It 'Can create a Lab...
Azure/azure-devtestlab
samples/ClassroomLabs/Modules/Library/Tests/LabAccount.tests.ps1
PowerShell
mit
1,436
#Requires -RunAsAdministrator $moduleAssembly = Join-Path $PSScriptRoot 'RouteHandlerHttpModule.dll' $configs = @( (Join-Path ([Environment]::SystemDirectory) 'inetsrv\config\applicationHost.config'), (Join-Path ([Environment]::GetFolderPath('MyDocuments')) 'IISExpress\config\applicationhost.config') ) functi...
mkropat/RouteHandlerHttpModule
PowerShell/RouteHandlerHttpModule.psm1
PowerShell
mit
3,358
Function Remove-AppFailureTable { [CmdletBinding()] Param ( [Parameter(Mandatory=$true)] [hashtable] $SqlCredHash ) process { $query = "DROP TABLE APP_FAILURE" Invoke-Sqlcmd2 @SqlCredHash -Query $query } }
RobertCadd/Powershell
Remove-AppFailureTable.ps1
PowerShell
mit
291
@( @{ MemberType = "ScriptMethod" MemberName = "Unique" Value = { $uniqueArray = {@()}.Invoke() $this | % { if ($uniqueArray.Contains($_)) { return } else { $uniqueArray.Add($_) } } return ($uniqueArray -as $this.GetType()) } }, @{ MemberType = "ScriptMethod" MemberName...
paulmarsy/Console
Custom Consoles/PowerShell/Exports/Type Data/System.Array.ps1
PowerShell
mit
874
Import-Module PSScriptAnalyzer $violationMessage = [regex]::Escape("Parameter '`$password' should use SecureString, otherwise this will expose sensitive information. See ConvertTo-SecureString for more information.") $violationName = "PSAvoidUsingPlainTextForPassword" $directory = Split-Path -Parent $MyInvocation.MyC...
korygill/PSScriptAnalyzer
Tests/Rules/AvoidUsingPlainTextForPassword.tests.ps1
PowerShell
mit
1,097
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Write-Host -Object "Running $PSCommandpath" -ForegroundColor Cyan . "$PSScriptRoot\constants.ps1" Describe "$CommandName Integration Tests" -Tag "IntegrationTests" { BeforeAll { $srvName = "dbatoolsci-server1" $group = "dbatools...
sqlpadawan/dbatools
tests/Export-DbaRegisteredServer.Tests.ps1
PowerShell
mit
2,840
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. <# .SYNOPSIS Builds .unitypackage artifacts for the Mixed Reality Toolkit .DESCRIPTION This script builds the following set of .unitypackages: - Foundation This contains the MixedRealityToolkit, MixedRealityToolkit.SDK, ...
DDReaper/MixedRealityToolkit-Unity
scripts/packaging/unitypackage.ps1
PowerShell
mit
8,347
#Requires -RunAsAdministrator <# .Synopsis Install Java Development Kit and Maven #> [CmdletBinding()] Param ( [ValidateNotNullOrEmpty()] $Prerequisites = @('JDK8','Maven') ) Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" & 'choco.exe' @( 'install' $Prereq...
beatcracker/POSH-swagger-codegen
Install-Prerequisites.ps1
PowerShell
mit
376
<# .SYNOPSIS AppVeyor build script. #> [OutputType()] Param () If (Get-Variable -Name projectRoot -ErrorAction "SilentlyContinue") { # Do something } Else { Write-Warning -Message "Required variable does not exist: $projectRoot." }
aaronparker/Install-VisualCRedistributables
ci/Build.ps1
PowerShell
mit
253
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Write-Host -Object "Running $PSCommandPath" -ForegroundColor Cyan . "$PSScriptRoot\constants.ps1" Describe "$CommandName Unit Tests" -Tag "UnitTests" { Context "Validate parameters" { [object[]]$params = (Get-Command $CommandName).Parame...
wsmelton/dbatools
tests/Set-DbaResourceGovernor.Tests.ps1
PowerShell
mit
2,642
$serviceName = "SpiderCrab.Agent" $groupName = "SpiderCrab Operators" try { Write-Output "Searching for service: $serviceName" $service = Get-Service -Name $serviceName -ErrorAction Stop } catch [Microsoft.PowerShell.Commands.ServiceCommandException] { Write-Output "Service not installed, skipping uninstall...
GingerTommy/SpiderCrab
deploy/chocolateyUninstall.ps1
PowerShell
mit
1,207
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util' Import-Module -Name $script:SPDscUtilModulePath function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [Parameter(Mandatory = $true)] [...
PowerShell/xSharePoint
SharePointDsc/DSCResources/MSFT_SPWebAppPermissions/MSFT_SPWebAppPermissions.psm1
PowerShell
mit
39,677
# # Write_Command.ps1 # Function Global:Write-Command($Line) { $CommandPath = Join-Path $Script:ProjectDirectoryPath $BuildPePath Out-File -InputObject $Line -FilePath $CommandPath -Append } Function Global:Check-Path-ForWriteCommand($Path) { If ($Path -ne "") { $Path = $Path.Replace("%Platfo...
morokoshi/Build-BootableWindowsPe
Windows PE Builder/Windows PE Builder/Scripts/4-1-Write-Command.ps1
PowerShell
mit
644
#!/usr/bin/env pwsh #requires -version 4 [CmdletBinding(PositionalBinding = $false)] param() Set-StrictMode -Version 2 $ErrorActionPreference = 'Stop' . $PSScriptRoot\Test-Template.ps1 Test-Template "web" "web" "Microsoft.DotNet.Web.ProjectTemplates.6.0.6.0.0-dev.nupkg" $false
aspnet/AspNetCore
src/ProjectTemplates/scripts/Run-EmptyWeb-Locally.ps1
PowerShell
apache-2.0
282
param ( [Parameter(Mandatory)] [int]$numberSPServers, [Parameter(Mandatory)] [String]$domainNetBiosName, [Parameter(Mandatory)] [String]$DomainAdministratorUserName, [Parameter(Mandatory)] [String]$DomainAdministratorPassword, [Parameter(Mandatory)] [String]$serviceName,...
gilroyneil/SP-Azure
Extensions/SPCreateOrJoinFarm.1.ps1
PowerShell
apache-2.0
11,514
# build $msbuild = (Get-VSSetupInstance)[0].InstallationPath + '\MSBuild\15.0\Bin\MSBuild.exe' & $msbuild /p:Configuration=Release cp .\ClassLibrary.A\bin\Release\ClassLibrary.A.1.0.0.nupkg . cp .\ClassLibrary.B\bin\Release\ClassLibrary.B.1.0.0.nupkg . dotnet publish -c release -f netcoreapp2.0 # run with net47 → ...
ufcpp/UfcppSample
Demo/2017/PackageReference/build.ps1
PowerShell
apache-2.0
646
$packageName = 'ddu' $url = 'http://www.wagnardmobile.com/DDU/download/DDU%20v15.7.5.2.exe' $checksum = '' $checksumType = 'sha1' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsDir "Display Driver Uninstaller.exe" # 0.9.7: custom headers not supported in 1st tier ...
dtgm/chocolatey-packages
automatic/_output/ddu/15.7.5.2/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,295
Import-Module .\Helpers\Helpers.psm1 <# .Synopsis Coordinates the import and launch of a local VM image into the AWS cloud using the helper cmdlets contained in this module. .Description Coordinates the import and launch of a local VM image into the AWS cloud using the helper cmdlets contained in this module....
awslabs/aws-sdk-net-samples
Talks/reInvent-2015/DEV202/AWSreInvent2015/ImportAndLaunch.psm1
PowerShell
apache-2.0
6,861
<# .SYNOPSIS This PowerShell script module file provides a step function to be used in a series of executable PowerShell steps that is intended to be included in all main PowerShell scripts that reside within the automation framework. .DESCRIPTION Note: This script module is NOT intended to be executed independent of ...
ChrisJaehnen/dev-tools-script-console
Steps/Uninstall/Uninstall-Git.psm1
PowerShell
apache-2.0
2,018
# # Module manifest for module 'Az.Reservations' # # 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.5.0' # Supported PSEditions CompatiblePSEditions = 'Core...
AzureAutomationTeam/azure-powershell
src/ResourceManager/Reservations/Commands.Reservations/Az.Reservations.psd1
PowerShell
apache-2.0
4,952
<# .SYNOPSIS This PowerShell script module file contains common, reusable functions that are intended to be included in all PowerShell scripts that reside within the automation framework. .DESCRIPTION Note: This script module is NOT intended to be executed independent of another PowerShell script referencing ...
ChrisJaehnen/dev-tools-script-console
Modules/Format/Format-MaskedOutput.psm1
PowerShell
apache-2.0
1,947
$packageName = 'webbrowserpassview.install' $installerType = 'exe' $silentArgs = '/S' $validExitCodes = @(0) $url = 'http://www.nirsoft.net/toolsdownload/webbrowserpassview_setup.exe' $checksum = '1875d88eb86431ce432e8d4b29bf101cadca60a6' $checksumType = 'sha1' $chocTempDir = Join-Path $Env:Temp "chocolatey" $tempDir ...
dtgm/chocolatey-packages
automatic/_output/webbrowserpassview.install/1.68/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,147
$packageName = 'adobeshockwaveplayer' $installerType = 'exe' $silentArgs = '/S /NCRC' $validExitCodes = @(0) $pwdPath = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" $ahkFile = Join-Path "$pwdPath" 'chocolateyInstall.ahk' Import-Module (Join-Path "$pwdPath" 'Get-FilenameFromRegex.psm1') $url1 = Get-Filena...
dtgm/chocolatey-packages
automatic/_output/adobeshockwaveplayer/11.5.7.609/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
2,016
Param( [string]$WixFilename, [string]$OutputDir="." ) $uri = "https://dotnetcli.blob.core.windows.net/build/wix/" + $wixFilename $outFile = $OutputDir + "\" + $wixFilename if (!(Test-Path "$OutputDir")) { mkdir "$OutputDir" | Out-Null } if(!(Test-Path "$outFile")) { Write-Output "Downloading WixTool...
chcosta/core-setup
src/pkg/packaging/windows/GetWix.ps1
PowerShell
mit
412
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Write-Host -Object "Running $PSCommandPath" -ForegroundColor Cyan . "$PSScriptRoot\constants.ps1" Describe "$CommandName Unit Tests" -Tag 'UnitTests' { Context "Validate parameters" { [object[]]$params = (Get-Command $CommandName).Parame...
Splaxi/dbatools
tests/Test-DbaSpn.Tests.ps1
PowerShell
mit
1,999
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Write-Host -Object "Running $PSCommandPath" -ForegroundColor Cyan . "$PSScriptRoot\constants.ps1" Describe "$CommandName Unit Tests" -Tag 'UnitTests' { Context "Validate parameters" { [object[]]$params = (Get-Command $CommandName).Parame...
alevyinroc/dbatools
tests/Get-DbaRandomizedDataset.Tests.ps1
PowerShell
mit
1,120
$uuid = "{{ registered_user.uuid }}" hostname
BCGamer/CheckIn-Server
registration/static/binaries/hostname.ps1
PowerShell
mit
45
param([Boolean]$skipTest=$false) Get-Module | % { if($_.Name -eq "BuildRemi") { Remove-Module BuildReMi}} Import-Module .\BuildReMi.psm1 -disablenamechecking $solutionName = "ReMi.Plugin.Go" BuildSolution $solutionName RunNUnitTests $solutionName
wongatech/remi
BuildScripts/CI/RunReMi.Plugin.Go.Tests.ps1
PowerShell
mit
248
#!/usr/bin/env pwsh param([string]$csvPath) # Dumps Patreon's CSV download into a JSON file the game reads. # Have to trim patron names because apparently Patreon doesn't which is quite ridiculous. Get-content $csvPath | ConvertFrom-Csv -Delimiter "," | select @{l="Name";e={$_.Name.Trim()}},Tier | ConvertTo-Json -Co...
space-wizards/space-station-14-content
Tools/dump_patrons.ps1
PowerShell
mit
327
function Get-GeneratorSet { [CmdletBinding()] [OutputType([System.Collections.Generic.HashSet[string]])] param( [Parameter()] [System.Collections.Generic.IEqualityComparer[string]] $Comparer = [System.StringComparer]::InvariantCultureIgnoreCase , [Parameter()] [Switc...
dfinke/NameIT
Private/GeneratorSet/Get-GeneratorSet.ps1
PowerShell
mit
1,061
$publishers = "MicrosoftWindowsServer", "MicrosoftVisualStudio", "MicrosoftSQLServer", "MicrosoftSharePoint", "MicrosoftRServer" $location = "southcentralus" foreach($publisher in $publishers){ $offers = Get-AzureRmVMImageOffer -Location $location -PublisherName $publisher foreach($offer in $offers){ Get-Azu...
CriticalPathTraining/CBD365
Scripts/Fodder/Display-VM-Image-Skus.ps1
PowerShell
mit
463
param( [ string ]$version ) cd $PSScriptRoot\.. mkdir dist Copy-Item ` "Jubjubnest.Style.DotNet.Vsix\bin\Release\Jubjubnest.Style.DotNet.Vsix.vsix" ` "dist\Jubjubnest.Style.DotNet.vsix" Copy-Item ` "Jubjubnest.Style.DotNet\bin\Release\Jubjubnest.Style.DotNet.*.nupkg" ` "dist\"
Rantanen/Jubjubnest.Style.DotNet
scripts/appveyor-copy-artifacts.ps1
PowerShell
mit
306
Function Get-UnityServiceInfo { <# .SYNOPSIS Service-related storage system information. You can use this information for servicing the storage system. .DESCRIPTION Service-related storage system information. You can use this information for servicing the storage system. You need to hav...
equelin/Unity-Powershell
Unity-Powershell/Public/Get-UnityserviceInfo.ps1
PowerShell
mit
1,896
######################################################################################################## # Name: SP2010WarmUpFarmURLs.ps1 # Overview: Script accepts All / Specific URLs, and also writes to application event log and log files # Author: Ingo Karstein: http://ikarstein.wordpress.com/2011/08/03/sharepoint-...
borkit/scriptdump
PowerShell/Working/SharePoint/SharePoint2010/SP2010WarmUpFarmURLs.ps1
PowerShell
mit
4,344
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. BeforeAll { $violationMessage = "Function 'Verb-Noun2' in file 'AvoidShouldContinueWithoutForce.ps1' uses ShouldContinue but does not have a boolean force parameter. The force parameter will allow users of the script to ...
PowerShell/PSScriptAnalyzer
Tests/Rules/AvoidShouldContinueWithoutForce.tests.ps1
PowerShell
mit
1,181
#requires -Version 4.0 -Modules CimCmdlets $script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent $script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules' $script:localizationModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'xW...
remcoeissing/xWebAdministration
source/DSCResources/MSFT_xWebSite/MSFT_xWebSite.psm1
PowerShell
mit
80,456
# Get-RandomString.ps1 # Written by Bill Stewart (bstewart@iname.com) #requires -version 2 <# .SYNOPSIS Outputs random strings. .DESCRIPTION Outputs one or more random strings containing specified types of characters. .PARAMETER Length Specifies the length of the output string(s). The default value is 8. You canno...
nylyst/Powershell
Modules/SushiHangover-Tools/foobar/Get-RandomString.ps1
PowerShell
mit
4,268
$packageName = 'kvrt' $url = 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe' $checksum = 'e6037ba59e2026dc42fadf9723a964e67c568c983ef7722180fb251fef54b8a7' $checksumType = 'sha256' $toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsPath "kvr...
dtgm/chocolatey-packages
automatic/_output/kvrt/2017.04.24.1952/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
960
$packageName = 'dolphin' $url = 'https://dl.dolphin-emu.org/builds/dolphin-master-5.0-4726-x64.7z' $checksum = 'b0c80abbb08f9e28dfa80a411b61f5a70db201cfac37ce53cdda51929cdaeb8b' $checksumType = 'sha256' $url64 = $url $checksum64 = $checksum $checksumType64 = $checksumType $toolsDir = "$(Split-Path -parent $MyInvocation...
dtgm/chocolatey-packages
automatic/_output/dolphin/5.0.4726/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
788
# 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...
pshdo/Carbon
Test/DotNet/Test-SetDotNetAppSetting.ps1
PowerShell
apache-2.0
6,091
$ErrorActionPreference = 'Stop'; # stop on all errors $packageArgs = @{ packageName = 'microsoft-build-tools-2015' fileType = 'EXE' #only one of these: exe, msi, msu url = 'http://download.microsoft.com/download/E/E/D/EEDF18A8-4AED-4CE0-BEBE-70A83094FC5A/BuildTools_Full.exe' silentArgs ='/...
quamotion/chocolatey
microsoft-build-tools-2015/tools/chocolateyinstall.ps1
PowerShell
apache-2.0
520
$packageName = 'exiftool' $url = 'http://owl.phy.queensu.ca/~phil/exiftool/exiftool-10.63.zip' $checksum = 'eb0ebc0ec3653da2399b01e828bf4955ce1f95c0' $checksumType = 'sha1' $url64 = "$url" $checksum64 = "$checksum" $checksumType64 = "$checksumType" $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"...
dtgm/chocolatey-packages
automatic/_output/exiftool/10.63/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
869
$packageName = 'qttabbar' $url = 'http://qttabbar.wdfiles.com/local--files/qttabbar/QTTabBar_1038.zip' $checksum = 'eb34c8d2eb3f1670b77fe978f6f366ee666749c0' $checksumType = 'sha1' $installerType = 'exe' $silentArgs = "/QI" $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path ...
maharishi/chocolatey-packages
automatic/_output/qttabbar/1038.0/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
3,093
[CmdletBinding()] param ( [Parameter(Mandatory=$true)] [string]$ADServer1PrivateIP, [Parameter(Mandatory=$true)] [string]$ADServer2PrivateIP ) try { $ErrorActionPreference = "Stop" Start-Transcript -Path C:\cfn\log\$($MyInvocation.MyCommand.Name).log -Append Get-NetAdapter | Set-DnsClient...
aws-quickstart/quickstart-microsoft-activedirectory
scripts/archive/Update-DNSServers.ps1
PowerShell
apache-2.0
440
param($installPath, $toolsPath, $package, $project) Import-Module (join-path $toolsPath "upgrade.psm1") -ArgumentList $installPath Import-Module (join-path $toolsPath "ConvertDatabaseToUtc.psm1") # SIG # Begin signature block # MIIXpAYJKoZIhvcNAQcCoIIXlTCCF5ECAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQB...
anjumrizwi/episerver
alloy/EPiServerAlloySite/packages/EPiServer.Framework.9.7.3/tools/init.ps1
PowerShell
mit
8,712
function Invoke-Sqlcmd2 { <# .SYNOPSIS Runs a T-SQL script. .DESCRIPTION Runs a T-SQL script. Invoke-Sqlcmd2 runs the whole script and only captures the first selected result set, such as the output of PRINT statements when -verbose parameter is specified. Parame...
sqlpadawan/dbatools
functions/Invoke-SqlCmd2.ps1
PowerShell
mit
24,388
# Prerequisites: # 1. Install the MSI built with current branch # 2. Run bash azure-cli\scripts\ci\build.sh with Git Bash first to generate artifacts under azure-cli\artifacts\build so we can use the testsdk and fulltest wheels. # Elevate to Admin If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.Wind...
yugangw-msft/azure-cli
build_scripts/windows/scripts/setup_msi_test.ps1
PowerShell
mit
1,341
Import-Module CaaS # Create a connection $secpasswd = ConvertTo-SecureString "MyPassword123!" -AsPlainText -Force $login= New-Object System.Management.Automation.PSCredential ("MyUsername", $secpasswd) New-CaasConnection -ApiCredentials $login -ApiBaseUri "https://api-au.dimensiondata.com/oec/0.9/" $devNetwork = Get...
DimensionDataCBUSydney/DimensionData.ComputeClient
PowerShell Examples/Shut down machines in Network.ps1
PowerShell
mit
632
$TestIPAddress = [PSObject]@{ InterfaceAlias = 'NetworkingDscLBA' AddressFamily = 'IPv4' IPAddress = '10.11.12.13/16' } $TestIPAddressOption = [PSObject]@{ IPAddress = '10.11.12.13' SkipAsSource = $true } configuration DSC_IPAddressOption_Config { Import-DscR...
PowerShell/xNetworking
tests/Integration/DSC_IPAddressOption.config.ps1
PowerShell
mit
775
# Copyright 2012 Aaron Jensen # # 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 writi...
michael-wolfenden/CodeCampServer
scripts/Carbon/IIS/Set-IisWebsiteSslCertificate.ps1
PowerShell
bsd-3-clause
2,493
# functions function tail ($file) { Get-Content $file -Wait <# .SYNOPSIS Tails a file while waiting for new additions .DESCRIPTION Monitor a live file .INPUTS Filename to monitor .EXAMPLE C:\PS> tail ~\mylogfile.log #> }
joxz/PowerShellProfile
functions/lib-functions.ps1
PowerShell
mit
288
#DELETE ALL WEBS #DESCRIPTION: Completely deletes the specified Web (including all subsites) #NOTES: function RemoveSPWebRecursively([Microsoft.SharePoint.SPWeb] $web){ Write-Debug "Removing site ($($web.Url))..." $subwebs = $web.GetSubwebsForCurrentUser() foreach($subweb in $subwebs) { RemoveSPWebRe...
kambridge/PowerShell
SPSite/deleteallwebs.ps1
PowerShell
mit
654
<# .SYNOPSIS Updates a title. .DESCRIPTION Updates a title. If the result returns null, try the parameter "-Verbose" to get more details. .EXAMPLE .LINK https://github.com/erwindevreugd/PSDataConduIT .EXTERNALHELP PSDataConduIT-help.xml #> function Set-Title { ...
erwindevreugd/PSDataConduIT
PSDataConduIT/Public/Set-Title.ps1
PowerShell
mit
2,501
docker run -p 8080:8080 -p 8081:8081 -p 8443:8443 -p 8843:8843 -p 8880:8880 -v D:/temp/unifi:c:/app/data --rm -it kramins/unifi:windowsservercore powershell
Kramins/docker-windows
unifi/5.6/test.ps1
PowerShell
mit
157
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Write-Host -Object "Running $PSCommandPath" -ForegroundColor Cyan . "$PSScriptRoot\constants.ps1" . "$PSScriptRoot\..\functions\Test-DbaDeprecatedFeature.ps1" Describe "$CommandName Unit Tests" -Tag 'UnitTests' { Context "Validate parameters" { ...
dsolodow/dbatools
tests/Test-DbaDeprecatedFeature.Tests.ps1
PowerShell
mit
1,360
################################################################################ # Prepackage.ps1 # # This script generates the chocolatey install and uninstall powershell scripts # found in the Tools directory in the chocolatey package. # # It reads template files fond in the ToolsTemplates directory and replaces # t...
MasterDevs/TidyJson
TidyJson/TidyJson/Chocolatey/PrePackage.ps1
PowerShell
mit
2,584
Set-Variable -Name uriGist -Value "https://gist.githubusercontent.com/xocasdashdash/2bb1d74adf954a21f343e3c681bf1aad/raw" Get-ChildItem "modules\*.ps1" | %{.$_} $currPath=(Get-Item -Path ".\" -Verbose).FullName Write-Output "Path: ${currPath}" Add-StartMenuShortcut -Name "laplock" -Folder "Startup" -Target "${currPath...
xocasdashdash/personal-configs
updateWindows.ps1
PowerShell
mit
599
@{ # Script module or binary module file associated with this manifest. ModuleToProcess = 'ComputerReport.psm1' # Version number of this module. ModuleVersion = '0.0.1' # ID used to uniquely identify this module GUID = 'be565b39-9deb-421f-b44f-990f5b345859' # Author of this module Author = 'VRDSE' # Company or ven...
vrdse/ComputerReport
ComputerReport.psd1
PowerShell
mit
1,870
# --------------------------------------------------------------------------- # Author: Keith Hill # Desc: Prompt, colors and host window title updates suited to Windows XP # where folks tend to run with adminstrator privileges all the time. # Date: Nov 07, 2009 # Site: http://pscx.codeplex.com # Usage: ...
Pscx/Pscx
Src/Pscx/Modules/Prompt/Themes/WinXP.ps1
PowerShell
mit
2,389
Properties { $base_dir = resolve-path .\..\..\ $packages_dir = "$base_dir\packages" $build_artifacts_dir = "$base_dir\build" $solution_name = "$base_dir\WebApiContrib.Formatting.ProtoBuf.sln" $test_dll = "$build_artifacts_dir\WebApiContrib.Formatting.ProtoBuf.Tests.dll" $nunit_runner = "$packages_dir\NUnit....
WebApiContrib/WebApiContrib.Formatting.ProtoBuf
tools/psake/default.ps1
PowerShell
mit
1,874
$packageName = '{{PackageName}}' $installerType = 'exe' $silentArgs = '/S' $urlArray = {{DownloadUrlx64}} $url = $urlArray[0] $checksum = '{{Checksum}}' $checksumType = 'sha256' $url64 = $urlArray[1] $checksum64 = '{{Checksumx64}}' $checksumType64 = 'sha256' $validExitCodes = @(0) Install-ChocolateyPackage -PackageNa...
dtgm/chocolatey-packages
automatic/gsmartcontrol/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
819
# Copyright 2017 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,...
DinoChiesa/Edge-Powershell-Admin
PSApigeeEdge/Public/Get-EdgeAppCredential.ps1
PowerShell
apache-2.0
3,347
$packageName = 'gsmartcontrol' $installerType = 'exe' $silentArgs = '/S' $urlArray = @('https://sourceforge.net/projects/gsmartcontrol/files/1.1.3/gsmartcontrol-1.1.3-win32.exe/download', 'https://sourceforge.net/projects/gsmartcontrol/files/1.1.3/gsmartcontrol-1.1.3-win64.exe/download') $url = $urlArray[0] $checksum =...
dtgm/chocolatey-packages
automatic/_output/gsmartcontrol/1.1.3/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,100
Param( [Parameter(Mandatory = $true)][string]$Version ) $testProjectFolders = Get-ChildItem -Filter "Sample.Website.Tests.*" foreach ($folder in $testProjectFolders) { $files = $folder | Get-ChildItem | where { $_.Name.EndsWith(".csproj") } foreach ($file in $files) { # Read version by XML. ...
stajs/SpecFlow.NetCore
samples/VS2017/SpecFlow 2.1.0/net461/Update.ps1
PowerShell
mit
908
$scriptBlock = { param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter ) $server = $fakeBoundParameter['SqlInstance'] if (-not $server) { return } $sqlCredential = $fakeBoundParameter['SqlCredential'] t...
SirCaptainMitch/dbatools
internal/dynamicparams/processProgram.ps1
PowerShell
mit
915
# Check to see if we are currently running "as Administrator" if (!(Verify-Elevated)) { $newProcess = new-object System.Diagnostics.ProcessStartInfo "PowerShell"; $newProcess.Arguments = $myInvocation.MyCommand.Definition; $newProcess.Verb = "runas"; [System.Diagnostics.Process]::Start($newProcess); exi...
jayharris/dotfiles-windows
windows.ps1
PowerShell
mit
42,834
# # Module 'Dynamite.PowerShell.Toolkit' # Generated by: GSoft, Team Dynamite. # Generated on: 10/24/2013 # > GSoft & Dynamite : http://www.gsoft.com # > Dynamite Github : https://github.com/GSoft-SharePoint/Dynamite-PowerShell-Toolkit # > Documentation : https://github.com/GSoft-SharePoint/Dynamite-PowerShell-Toolkit/...
NunoEdgarGub1/Dynamite
Source/GSoft.Dynamite.PowerShell/Dynamite.PowerShell.Toolkit/SiteCollection.ps1
PowerShell
mit
13,892
<# .SYNOPSIS Creates a new website for a module, using the module's help topics. .DESCRIPTION .EXAMPLE New-ModuleWebsite -ConfigFilePath silk.json -DestinationPath C:\Inetpub\wwwroot\MyModule Uses the `silk.json` configuration file to publish a module to `C:\Inetpub\wwwroot\MyModule` #> [CmdletBinding()] ...
MattHubble/carbon
Tools/Silk/silk.ps1
PowerShell
apache-2.0
5,671
$packageName = 'cpu-z.portable' $url = 'http://www.cpuid.com/medias/files/softwares/cpu-z/cpu-z_1.72-en.zip' $checksum = '3feb62f24af0d716f04df0f0d612bd3b8b0e4e1e' $checksumType = 'sha1' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile32 = Join-Path $toolsDir "cpuz_x32.exe" $installFi...
dtgm/chocolatey-packages
automatic/_output/cpu-z.portable/1.72/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
815
#Install-VirtualPackage 'psi.install' 'psi.portable'
dtgm/chocolatey-packages
automatic/_output/psi/0.15/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
52
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Write-Host -Object "Running $PSCommandPath" -ForegroundColor Cyan . "$PSScriptRoot\constants.ps1" Describe "$CommandName Unit Tests" -Tag 'UnitTests' { Context "Validate parameters" { [object[]]$params = (Get-Command $CommandName).Parame...
kozloski/dbatools
tests/Test-DbaBuild.Tests.ps1
PowerShell
mit
1,970
task default -depends A,B,C task A { "TaskA" } task B -postcondition { return $false } { "TaskB" } task C { "TaskC" }
AMCN41R/Harness
tools/build_tools/pSake/specs/failing_postcondition_should_fail.ps1
PowerShell
mit
135
Import-Module AU Import-Module Wormies-AU-Helpers Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" Import-Module "$PSScriptRoot\..\..\scripts/au_extensions.psm1" $x64Release = 'https://aka.ms/vs/15/release/VC_redist.x64.exe' function global:au_SearchReplace { @{ ".\vcredist2017.nuspec" = ...
jberezanski/chocolatey-coreteampackages
automatic/vcredist2017/update.ps1
PowerShell
apache-2.0
858
<# .SYNOPSIS Get installed Appx package information. .DESCRIPTION A wrapper for Get-AppxPackage, this script provides additional info beyond Get-AppxPackage's including: - DisplayName - Manifest parsed as XML - InstallLocation as file item - Application IDs - Registered background t...
seksenov/HWAsmtc
gulpfile.js/AppxUtilities/Get-AppxPackageExt.ps1
PowerShell
mit
4,178
# psake # Copyright (c) 2010 James Kovacs # 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 # to use, copy, modify, merge, publish, ...
Eskat0n/NArms
tools/psake/psake.psm1
PowerShell
mit
24,493
if (-not $ENV:BHProjectPath) { Set-BuildEnvironment -Path $PSScriptRoot\..\.. -Force } Remove-Module PSDeploy -ErrorAction SilentlyContinue Import-Module $PSScriptRoot\..\..\PSDeploy\PSDeploy.psd1 InModuleScope 'PSDeploy' { $PSVersion = $PSVersionTable.PSVersion.Major $ProjectRoot = $ENV:BHProjectPath ...
RamblingCookieMonster/PSDeploy
Tests/Types/AzureAutomationRunbook.Tests.ps1
PowerShell
mit
3,392
$PackageDefinition = @{ "TemplateName" = "neo4j-community-v3.1-beta"; "PackageName" = "neo4j-community"; "PackageVersion" = "3.2.0-alpha05"; "DownloadURL" = "http://neo4j.com/artifact.php?name=neo4j-community-3.2.0-alpha05-windows.zip"; "MD5Checksum" = "aab159095d59c44c2eb141048fe613c8"; "NeoZipSubdir" = "n...
glennsarti/neo4j-community-chocolatey
templates/package-neo4j-community-3.2.0-alpha05.ps1
PowerShell
mit
500
$script:dscModuleName = 'xWebAdministration' $script:dscResourceName = 'MSFT_WebApplicationHandler' function Invoke-TestSetup { try { Import-Module -Name DscResource.Test -Force -ErrorAction 'Stop' } catch [System.IO.FileNotFoundException] { throw 'DscResource.Test module dependency...
remcoeissing/xWebAdministration
tests/Unit/MSFT_WebApplicationHandler.Tests.ps1
PowerShell
mit
16,143
Get-Process *node* | Stop-Process Get-Process *phant* | stop-process
fschwiet/letscodejavascript
purgeProcesses.ps1
PowerShell
mit
69
if (Get-Command TabExpansionPlusPlus\Register-ArgumentCompleter -ErrorAction Ignore) { $script:TEPP = $true } else { $script:TEPP = $false } $functions = Get-ChildItem function:\*-Dba* [Sqlcollaborative.Dbatools.TabExpansion.TabExpansionHost]::DbatoolsCommands = $functions $names = $functions.Name #region Aut...
dsolodow/dbatools
internal/scripts/insertTepp.ps1
PowerShell
mit
7,491