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
Write-Host "$(date) Start build script"-ForegroundColor green .\enable-desktop Invoke-WebRequest "http://netstorage.unity3d.com/unity/01f4c123905a/Windows64EditorInstaller/UnitySetup64-5.4.3f1.exe" -OutFile .\UnitySetup64.exe Start-Process -FilePath ".\UnitySetup64.exe" -Wait -ArgumentList ('/S', '/Q') Write-Host "...
llafuente/unity-platformer
Scripts/ci-windows-install.ps1
PowerShell
mit
1,757
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/Mod06/LabFiles/PhotoSharingApplication_06_begin/packages/Modernizr.2.6.2/Tools/common.ps1
PowerShell
mit
13,556
$ErrorActionPreference = 'Stop' $toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition $packageArgs = @{ packageName = $env:ChocolateyPackageName fileType = 'exe' file = "$toolsPath\ClipboardFusionSetup-5.7c.exe" softwareName = 'clipboardfusion*' silentArgs = "/VERYSILE...
jberezanski/chocolatey-coreteampackages
automatic/clipboardfusion/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
673
# # TurboBase install script # https://github.com/turboapps/turbome/tree/master/turbobrowsers/turbobase # # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 Write-Output 'Installing Firefox' $iniConfig = @" [Install] MaintenanceService=false "@ $iniConfig | Set-Content 'C:\...
turboapps/turbome
turbobrowsers/turbobase/install.ps1
PowerShell
apache-2.0
1,219
<# .SYNOPSIS Creates a Reddit.OAuthAccessToken Object .DESCRIPTION Creates a Reddit.OAuthAccessToken object only. This does not retrieve an OAuth Access Token from reddit. This can be used to manually create the Reddit OAuthAccessToken objects if the access token has been obtained manually...
markekraus/ConnectReddit
OAuth/New-RedditOAuthAccessToken.ps1
PowerShell
apache-2.0
8,052
$packageName = 'sumo' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $url = 'http://www.kcsoftwares.com/files/sumo_lite.exe' $checksum = '04df12b99b2b3d889ccb00639736b5949ee4ca9c207df390d6b775005b7f79c1' $checksumType = 'sha256' $validExitCodes = @(0) $scriptPath = $(Split-Path -p...
dtgm/chocolatey-packages
automatic/_output/sumo/5.1.2.352/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
851
<# Update the password in a CLIXML file. #> function Update-Password { [cmdletbinding()] PARAM( [parameter(Mandatory=$true)] $path, [parameter(Mandatory=$true)] $Password ) $hash = Import-Clixml -Path $path $hash | out-string | Write-Verbose Parse-HashTable -Ha...
keithga/DeployShared
Library/DeployShared/Common/update-Password.ps1
PowerShell
apache-2.0
451
$packageName = 'firefox-nightly' $softwareVersion = '59.0.1.2017121312-alpha' -Replace "^(\d+)\.(\d+)\.(\d+)[^-]+-([a-z]).*",'$1.$2$4$3' $softwareName = "Nightly $softwareVersion*" $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $validExitCodes = @(0) [array]$key = Get-UninstallReg...
dtgm/chocolatey-packages
automatic/_output/firefox-nightly/59.0.1.2017121312/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
817
$packageName = 'whoiscl' $url = 'http://www.nirsoft.net/utils/whoiscl.zip' $checksum = 'd4f1e3a45e6b2e0ea79aab6d38895f450741ff24109341ca451250cd5f2d0d8e' $checksumType = 'sha256' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsDir "$($packageName).exe" Install-Choc...
dtgm/chocolatey-packages
automatic/_output/whoiscl/1.85/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
646
# # Module manifest for module 'Az.Relay' # # 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', 'Des...
AzureAutomationTeam/azure-powershell
src/ResourceManager/Relay/Commands.Relay/Az.Relay.psd1
PowerShell
apache-2.0
5,091
function Install-Websites { param( [Parameter(Mandatory = $true)] [string] $rootPath, [Parameter(Mandatory = $true)] [System.XML.XMLDocument] $configuration ) foreach($site in @($configuration.configuration.sites.site)) { if(!$site) { continue } Install-Website -rootPath $rootPath -siteCo...
taliesins/ElasticSearchService
Deployment/PowershellModules/WebInstallation.psm1
PowerShell
apache-2.0
16,747
$packageName = '{{PackageName}}' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $validExitCodes = @(0) Get-ItemProperty -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', 'HKLM:\Software\Microsoft\Windows\CurrentVersion\U...
dtgm/chocolatey-packages
automatic/msigna/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
940
# 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...
cloudoman/carbon
Test/UsersAndGroups/Test-UninstallUser.ps1
PowerShell
apache-2.0
1,345
[CmdletBinding()] param() # Arrange. . $PSScriptRoot\..\lib\Initialize-Test.ps1 Invoke-VstsTaskScript -ScriptBlock { $originalSystemDefaultWorkingDirectory = $env:SYSTEM_DEFAULTWORKINGDIRECTORY $originalCwd = Get-Location $tempDirectory = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), [System.I...
Microsoft/vsts-task-lib
powershell/Tests/L0/Find-Match.DefaultRootFallsBackToCwd.ps1
PowerShell
mit
1,287
param ([String] $managerip, [String] $ip) if ($ip -Eq "") { $ip=(Get-NetIPAddress -AddressFamily IPv4 ` | Where-Object -FilterScript { $_.InterfaceAlias -Ne "vEthernet (HNS Internal NIC)" } ` | Where-Object -FilterScript { $_.IPAddress -Ne "127.0.0.1" } ` | Where-Object -FilterScript { $_.IPAddress -N...
sealsystems/pi-cloud
prepare-hardware/up-win10/usb/scripts/docker-swarm-join.ps1
PowerShell
mit
921
@{ Description = 'This module contains cmdlets used to connect to and disconnect from Team Foundation Server objects (servers, collections and projects)' ModuleVersion = '0.0.0' RootModule = 'Connection.psm1' PrivateData = @{ FriendlyName = 'Connection' } }
egomesbrandao/tfscmdlets
src/PS/Connection/Connection.psd1
PowerShell
mit
290
# Sample script to install Miniconda under Windows # Authors: Olivier Grisel, Jonathan Helmus and Kyle Kastner, Robert McGibbon # License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ $MINICONDA_URL = "http://repo.continuum.io/miniconda/" function DownloadMiniconda ($python_version, $platform...
choderalab/pymbar
devtools/appveyor/install.ps1
PowerShell
mit
3,091
Start-AutoRestCodeGeneration -ResourceProvider "sql/resource-manager" -AutoRestVersion "latest"
shahabhijeet/azure-sdk-for-net
src/SDKs/SqlManagement/Management.Sql/generate.ps1
PowerShell
mit
97
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Describe "Assembly loaded in IndividualAssemblyLoadContext should be visible to PowerShell" -Tags "CI" { BeforeAll { $code1 = @' namespace LoadBytes { public class MyLoadBytesTest { public static st...
JamesWTruher/PowerShell-1
test/powershell/engine/Basic/Assembly.LoadBytesAndLoadFile.Tests.ps1
PowerShell
mit
1,741
# # Bindings.ps1 # # Handle SSL bindings for self hosted web applications -> https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-configure-a-port-with-an-ssl-certificate Exit #To bind an SSL certificate to a port number Start-Process netsh -ArgumentList "http add sslcert ipport=0.0.0.0:4242 ce...
eidias/Gallery
PowerShell/IIS/Bindings.ps1
PowerShell
mit
843
configuration Configuration { param ( [Parameter(Mandatory)] [String]$DomainName, [Parameter(Mandatory)] [String]$DCName, [Parameter(Mandatory)] [String]$DPMPName, [Parameter(Mandatory)] [String]$PSName, [Parameter(Mandatory)] [Strin...
nzthiago/azure-quickstart-templates
sccm-technicalpreview/DSC/PSConfiguration.ps1
PowerShell
mit
9,364
<# .SYNOPSIS Zip files creation .DESCRIPTION Create multiple zip files on a shared folder .NOTES File name : Create-Zip.ps1 Author : Pierre JACQUOT Date : 08/06/2017 Version : 1.0 .LINK Website : https://www.pierrejacquot.go.yo.fr Reference : https://www.pierrejacquot.go.yo.fr/index.php/...
pierre-jacquot/Scripts
PowerShell/Create-Zip/Create-Zip.ps1
PowerShell
mit
6,009
docker exec -ti btcpayserver_elementsd_liquid elements-cli -datadir="/data" $args
btcpayserver/btcpayserver
BTCPayServer.Tests/docker-elements.ps1
PowerShell
mit
82
if($SmtpServerEnableSsl -eq $null) { $SmtpServerEnableSsl = 'false' } if($SmtpServerPort -eq $null) { $SmtpServerPort = '25' } if($SmtpServerUserName -eq $null) { $SmtpServerUserName = '' } if($SmtpServerPassword -eq $null) { $SmtpServerPassword = '' }
kamsar/Beaver
Build/System/Properties/10 SMTP props.ps1
PowerShell
mit
271
[CmdletBinding()] [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] param ( [Parameter()] [string] $SharePointCmdletModule = (Join-Path -Path $PSScriptRoot ` -ChildPath "..\Stubs\SharePoint\15.0.4805.1000\Microsoft.SharePoint.PowerShell.psm...
PowerShell/xSharePoint
tests/Unit/SharePointDsc/SharePointDsc.SPWorkManagementServiceApp.Tests.ps1
PowerShell
mit
19,626
properties { $product = 'Product.Name' $version = '1.0.0' $rootDir = '.' } task default -depends Info, Execute task Info { Write-Host "Product: $product" -fore Yellow Write-Host "Version: $version" -fore Yellow } task Execute { } task ? -Description "Help" { Write-Documentation }
kristofferahl/Koshu
Source/Koshu/Templates/empty.ps1
PowerShell
mit
308
$currentPath = Split-Path -Parent $MyInvocation.MyCommand.Path Write-Debug -Message "CurrentPath: $currentPath" # Load Common Code Import-Module $currentPath\..\..\xSQLServerHelper.psm1 -Verbose:$false -ErrorAction Stop # DSC resource to manage SQL database roles # NOTE: This resource requires WMF5 and PsDsc...
randorfer/RunbookExample
PowerShellModules/xSQLServer/1.4.0.0/DSCResources/MSFT_xSQLServerDatabaseOwner/MSFT_xSQLServerDatabaseOwner.psm1
PowerShell
mit
3,576
# ################################################################ <# Script : BITSAsyncProgress.ps1 Description : Displayes the progress of an Async download - must pass either the BITS Job object or the Display Name of the BITS Job. Author : cblanken@microsoft.com D...
dscoduc/PowerShellScripts
BITSAsyncProgress.ps1
PowerShell
mit
1,951
#requires -Version 4.0 -Modules Pester #region Setup for tests $DSCResourceName = 'ActiveDirectoryAccessEntry' Import-Module "$($PSScriptRoot)\..\..\DSCResources\$($DSCResourceName)\$($DSCResourceName).psm1" -Force Import-Module "$($PSScriptRoot)\..\..\DscResources\AccessControlResourceHelper\AccessControlResourceHe...
mcollera/AccessControlDsc
Tests/Unit/ActiveDirectoryAccessEntry.Tests.ps1
PowerShell
mit
18,387
function Test-DbaAgentJobOwner { <# .SYNOPSIS Checks SQL Agent Job owners against a login to validate which jobs do not match that owner. .DESCRIPTION This function checks all SQL Agent Jobs on an instance against a SQL login to validate if that login owns those SQL Agent Jobs or not. By de...
wsmelton/dbatools
functions/Test-DbaAgentJobOwner.ps1
PowerShell
mit
6,752
# generated vars $packageName = '{{PackageName}}' $url = '{{DownloadUrlx64}}' $checksum = '{{Checksum}}' # static vars $checksumType = 'sha1' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" # $Env:ChocolateyInstall\helpers\functions Install-ChocolateyZipPackage -PackageName "$packageName" ` ...
maharishi/chocolatey-packages
automatic/win32diskimager.portable/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
815
# # Module manifest for module 'AzureRM.Dns' # # Generated by: Microsoft Corporation # # Generated on: 8/28/2018 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '5.1.0' # Supported PSEditions # CompatiblePSEditions = @() #...
AzureAutomationTeam/azure-powershell
src/ResourceManager/Dns/Commands.Dns/AzureRM.Dns.psd1
PowerShell
apache-2.0
4,814
$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 = 'b4f9752fdd6fa683029b6d3eb4978bd51e38142791b52ca4c7bae1efa743925f' $c...
dtgm/chocolatey-packages
automatic/_output/firefox-nightly/58.0.1.2017101412/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,131
[CmdletBinding(PositionalBinding=$false)] param ( [switch]$test64 = $false, [switch]$testDeterminism = $false, [switch]$testBuildCorrectness = $false, [switch]$testPerfCorrectness = $false, [switch]$testPerfRun = $false, [switch]$testVsi = $false, [switch]$testVsiNetCore = $false, [switc...
jeffanders/roslyn
build/scripts/cibuild.ps1
PowerShell
apache-2.0
8,079
<# .SYNOPSIS Retrieves the ApplicationVersion info defined in the file. #> function Get-VersionTemplate { [CmdletBinding()] param ( # Path to file to process. [Parameter(Mandatory = $true)] [string] $Filename ) Get-CallerPreference -Cmdlet $PSCmdlet -SessionState $Execution...
Saritasa/PSGallery
modules/Saritasa.Publish/Saritasa.Publish.psm1
PowerShell
mit
7,774
# Copyright (c) Microsoft Corporation. All rights reserved. $InitialDatabase = '0' $knownExceptions = @( 'System.Data.Entity.Migrations.Infrastructure.MigrationsException', 'System.Data.Entity.Migrations.Infrastructure.AutomaticMigrationsDisabledException', 'System.Data.Entity.Migrations.Infrastru...
PeterStegnar/dmvcalculator
source/packages/EntityFramework.6.0.0-beta1/tools/EntityFramework.psm1
PowerShell
mit
39,183
@{ RootModule = 'ClusterTest.psm1' ModuleVersion = '1.0' GUID = 'f843ba15-d5a0-4294-96ab-9d6386f3a058' Author = 'Adam Bertram' CompanyName = 'Adam the Automator, LLC' Copyright = '(c) 2017 Adam Bertram. All rights reserved.' Description = 'This is a fiction demo module that might have been u...
kidchenko/playground
powershell-testing-powerShell-with-pester/Demos/Introduction/ClusterTest/ClusterTest.psd1
PowerShell
mit
521
$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-DbaLogin.Tests.ps1
PowerShell
mit
16,184
$packageName = 'tdesktop' $installerType = 'exe' $url = 'https://updates.tdesktop.com/tsetup/tsetup.0.7.20.exe' $checksum = 'cc8a446d1c765c9e5903c307a02e87185a619fd0' $checksumType = 'sha1' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $validExitCodes = @(0) #please insert other valid exit codes here, e...
dtgm/chocolatey-packages
automatic/_output/tdesktop/0.7.20/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
554
# # Module manifest for module 'AzureRM.Installer' # # Generated by: Microsoft Corporation # # Generated on: 9/18/2015 # @{ # Script module or binary module file associated with this manifest. # Version number of this module. ModuleVersion = '1.2.11' # ID used to uniquely identify this m...
naveedaz/azure-powershell
src/StackAdmin/AzureRM/AzureRM.psd1
PowerShell
apache-2.0
6,623
[cmdletbinding()] param() # Arrange. . $PSScriptRoot\..\..\lib\Initialize-Test.ps1 . $PSScriptRoot\..\..\..\Tasks\MSBuild\LegacyHelpers.ps1 # Act/Assert. Assert-Throws { Get-SolutionFiles -Solution '' }
jwendl/vso-agent-tasks
Tests/L0/MSBuild-Legacy/Get-SolutionFiles.ThrowsIfNoSolution.ps1
PowerShell
mit
205
<# .SYNOPSIS Invokes cspell using dependencies defined in adjacent ./package*.json .PARAMETER JobType Maps to cspell command (e.g. `lint`, `trace`, etc.). Default is `lint` .PARAMETER ScanGlobs List of glob expressions to be scanned. This list is not constrained by npx/cmd's upper limit on command line length as the ...
Azure/azure-sdk-for-java
eng/common/spelling/Invoke-Cspell.ps1
PowerShell
mit
5,817
<# .SYNOPSIS Searches Active Directory for inactive user accounts .NOTES NAME: Find-OldUser.ps1 VERSION: 1.0 AUTHOR: Richard Horsley LASTEDIT: 6/9/2013 #> # Set this variable to find users that have not logged on to the domain for over this number of days. # Set this value to 0 to fin...
TsekNet/PowerShell
Find-OldUser/Find-OldUser.ps1
PowerShell
mit
1,604
function Get-GitHubRepositoryLanguages { <# .Synopsis Retrieves the languages that make up the code in the GitHub repository. #> [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $Owner, [Parameter(Mandatory = $true)] [string] $RepositoryName )...
pcgeek86/PSGitHub
Functions/Public/Repositories/Get-GitHubRepositoryLanguages.ps1
PowerShell
mit
418
function Restore-WebsiteRootRemotely { ############################################################################## #.SYNOPSIS # Restores website root files remotely (used with Backup-WebsiteRootRemotely) # #.DESCRIPTION # Use this function to maintain backups restore using Robocopy if deployment ha...
RosenPetrov/sitecore-deployment-powershell
Sitecore.Deployment/Public/Restore-WebsiteRootRemotely.ps1
PowerShell
mit
2,402
#region Internals $script:hostFilePath = if ($PSEdition -eq 'Desktop' -or $IsWindows) { "$($env:SystemRoot)\System32\drivers\etc\hosts" } elseif ($PSEdition -eq 'Core' -and $IsLinux) { '/etc/hosts' } $type = @' using System; using System.Collections.Generic; using System.Linq; using System.Text; using System....
AutomatedLab/AutomatedLab
HostsFile/HostsFile.psm1
PowerShell
mit
9,665
function MakeJsDownloadProof($filename) { $file = [System.IO.File]::ReadAllText("$PSScriptRoot\$filename") $file = $file.Replace("\", "\\").Replace("'", "\'").Replace("`n", "\r\n") return $file } function MakeUriProof($filename) { $file = [System.IO.File]::ReadAllLines("$PSScriptRoot\$filename")...
jorik90/lastpass-rdp-starter
src/build.ps1
PowerShell
mit
1,367
Describe "OpenSSL" { Context "OpenSSL Version" { It "OpenSSL is available" { "openssl version" | Should -ReturnZeroExitCode } } Context "OpenSSL 1.1 Path Check" { It "OpenSSL 1.1 path exists" { $openSSLpath = "/usr/local/opt/openssl@1.1" $openSSLp...
mattgwagner/New-Machine
.github-actions/images/macos/tests/OpenSSL.Tests.ps1
PowerShell
mit
592
@{ RootModule = 'NanoCluster.schema.psm1'; ModuleVersion = '1.0'; GUID = '33e9aec9-886d-45fb-b71b-9fc7dd0cea5e'; Author = 'Iain Brighton'; CompanyName = 'Virtual Engine'; Copyright = '(c) 2017 Virtual Engine Limited. All rights reserved.'; Description = 'Virtual Engine Nano Server Failover C...
iainbrighton/NanoCluster
DSCResources/NanoCluster/NanoCluster.psd1
PowerShell
mit
355
$packageName = 'winscp.portable' $url = 'https://sourceforge.net/projects/winscp/files/WinSCP/5.9.2/WinSCP-5.9.2-Portable.zip' $checksum = 'c6c0a4842bf9bfa8eb1c79d9451a85d3bff4d2f9' $checksumType = 'sha1' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsDir "WinSCP....
dtgm/chocolatey-packages
automatic/_output/winscp.portable/5.9.2/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
666
$ErrorActionPreference = 'Stop' $checksum = '98C6E2590B9DCFB160B2A37D794DA7F704E7C4B63BFD79FAE98B59DC3B0CC648' $url = 'https://phoenixnap.dl.sourceforge.net/project/juffed/Releases/0.8.1/JuffEd_0.8.1.zip' $unzipLocation = "$(Get-ToolsLocation)" $zipArgs = @{ packagename = 'juffed' url = $url unzipLocation = $u...
mikecole/chocolatey-packages
manual/juffed/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
659
<#A Build step copies this function to bootstrapper Directory. Only edit script in Helpers#> function Disable-UAC { <# .SYNOPSIS Turns off Windows User Access Control .LINK http://boxstarter.codeplex.com Enable-UAC #> Write-BoxstarterMessage "Disabling UAC" Set-ItemProperty -Path HKLM:\SOFTWARE\Mi...
kmcginnes/BoxStarter
Boxstarter.WinConfig/Disable-UAC.ps1
PowerShell
apache-2.0
397
# This script expects `setup_environment.sh` or `setup_environment.ps1` to be sourced before execution [Diagnostics.CodeAnalysis.SuppressMessage("PSUseApprovedVerbs", '', Scope="function", Target="*Load-SupervisorService")] param ( [string]$TestName, [string]$BuilderUrl = $env:HAB_BLDR_URL ) . $PSScriptroot/.....
rsertelon/habitat
.expeditor/scripts/end_to_end/run_e2e_test_core.ps1
PowerShell
apache-2.0
10,737
$packageName = 'izpack' $validExitCodes = @(0) $scriptPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $ahkFile = Join-Path $scriptPath "chocolateyUninstall.ahk" $ahkExe = 'AutoHotKey' $ahkRun = "$Env:Temp\$(Get-Random).ahk" Copy-Item $ahkFile "$ahkRun" -Force if (Test-Path "${Env:ProgramFiles(x86)}\Iz...
maharishi/chocolatey-packages
automatic/_output/izpack/4.3.5/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
928
$packageName = 'anydvd' $url32 = 'https://www.redfox.bz/download/SetupAnyDVD8090.exe' $url64 = 'https://www.redfox.bz/download/SetupAnyDVD8090.exe' $checksum32 = '061284D9CF478E0322B1052F68D630E8328EF452C7267D01A9AB9EA0533D36E4' $checksum64 = '061284D9CF478E0322B1052F68D630E8328EF452C7267D01A9AB9EA0533D36E4' ...
caskater4/chocolatey-packages
automatic/anydvd/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
643
function Send-TextResponse { param ($response, $content) $buffer = [System.Text.Encoding]::UTF8.GetBytes($content) $response.ContentLength64 = $buffer.Length $response.OutputStream.Write($buffer, 0, $buffer.Length) } function Send-FileResponse { param ($response, $file) $content ...
OneGet/nuget
swidtags/test-server.ps1
PowerShell
apache-2.0
2,693
$packageName = 'kvrt' $url = 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe' $checksum = '79fb9cf5b900e4285944583fde2b92a03e79e054' $checksumType = 'sha1' $toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsPath "kvrt.exe" try { Get-Chocolat...
dtgm/chocolatey-packages
automatic/_output/kvrt/2016.01.31.2019/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
931
# Template for an externally maintained script to be executed from the # wrapper UserData script (also used as template 'do nothing' default) # BEGIN: insert custom code below this line, return non zero exit code on failure exit 0 # END: insert custom code above this line
sopel/stackformation
templates/provision.ps1
PowerShell
apache-2.0
285
$script:DSCModuleName = 'xSQLServer' $script:DSCResourceName = 'MSFT_xSQLServerAlwaysOnService' # Unit Test Template Version: 1.1.0 [String] $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot) if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Tests')...
GoelPooja/xSQLServer
Tests/Unit/MSFT_xSQLServerAlwaysOnService.Tests.ps1
PowerShell
mit
12,763
$packageName = 'bluej-bundled' $version = '3.1.4' $uninstallRegistryPath_x86 = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\{7D66971C-652B-4065-A6B1-B3EE313C254B}" $uninstallRegistryPath_x64 = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{7D66971C-652B-4065-A6B1-B3EE313C254B}" $...
dtgm/chocolatey-packages
automatic/_output/bluej-bundled/3.1.4/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,734
[cmdletbinding()] param() # Arrange. . $PSScriptRoot\..\..\lib\Initialize-Test.ps1 -Legacy . $PSScriptRoot\..\..\..\Tasks\PublishSymbols\LegacyIndexHelpers.ps1 $symbolsFilePath = 'SomeDrive:\SomeSourceDir\SomeProject\SomeLibrary.pdb' $sourceRootPath = 'SomeDrive:\SomeSourceDir' $global:sourceFile1 = 'SomeDrive:\SomeSo...
jwendl/vso-agent-tasks
Tests/L0/PublishSymbols-Legacy/Get-SourceFilePaths.WarnsForSourceFileNotFound.ps1
PowerShell
mit
1,672
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Describe "Pop-Location" -Tags "CI" { $startDirectory = $(Get-Location).Path BeforeEach { Set-Location $startDirectory } It "Should be able to be called without error" { { Pop-Location } | Should -Not -Throw } It "Should not...
JamesWTruher/PowerShell-1
test/powershell/Modules/Microsoft.PowerShell.Management/Pop-Location.Tests.ps1
PowerShell
mit
622
function Properties { <# .SYNOPSIS Define a scriptblock that contains assignments to variables that will be available to all tasks in the build script .DESCRIPTION A build script may declare a "Properies" function which allows you to define variables that will be available to all th...
NRules/NRules
tools/build/public/Properties.ps1
PowerShell
mit
1,474
@{ # Version number of this module. ModuleVersion = '1.3.0.0' # ID used to uniquely identify this module GUID = '38e1ad0f-9b30-490a-a2b6-cc77765af4ec' # Author of this module Author = 'Microsoft Corporation' # Company or vendor of this module CompanyName = 'Microsoft Corporation' # Copyright statement for this modu...
PowerShell/xCredSSP
xCredSSP.psd1
PowerShell
mit
1,750
# ---------------------------------------------------------------------------------- # # 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...
AzureAutomationTeam/azure-powershell
src/ResourceManager/DeviceProvisioningServices/Commands.DeviceProvisioningServices.Test/ScenarioTests/IotDpsTests.ps1
PowerShell
apache-2.0
3,761
param($installPath, $toolsPath, $package, $project) function RemoveForceProjectLevelHack($project) { Write-Host "RemoveForceProjectLevelHack" Foreach ($item in $project.ProjectItems) { if ($item.Name -eq "Fody_ToBeDeleted.txt") { $item.Delete() } } } function FlushVariables() { Write-Host "Flu...
stevescc/Nimbus
src/packages/NullGuard.Fody.1.2.0.0/Tools/install.ps1
PowerShell
mit
2,889
param([string]$python = "C:\Python34\python.exe", [string]$arch = $ENV:PROCESSOR_ARCHITECTURE) Write-Host "Starting build of windows launcher on $arch" $variants = @("window", "console") foreach ($variant in $variants) { If (Test-Path launchwin) { Remove-Item launchwin -Recurse } If (Test-Path launch.exe) { Remo...
jamesabel/osnap
launchers/make_launcher.ps1
PowerShell
mit
1,084
# This script runs solution build. Param( [string] [Parameter(Mandatory=$false)] $Configuration = "Debug", [string] [Parameter(Mandatory=$false)] $Platform = "Any CPU" ) # Restores NuGet packages Write-Host "Restoring NuGet packages ..." -ForegroundColor Green nuget restore .\YARM.sln Write-Host "NuGet packages re...
aliencube/yarm
build-solution.ps1
PowerShell
mit
1,318
<# Version: 1.1.0.0 Author: Adam Hammond Creation Date: 09/04/2016 Last Change: Added Update-SimplePSLogging Description: This library contains a simple way to present useful and nice-looking information out to the user at the console. It writes out a Messa...
HammoTime/SimplePSLogging
SimplePSLogging/SimplePSLogging.psm1
PowerShell
mit
10,307
Start-AutoRestCodeGeneration -ResourceProvider "vmware/resource-manager" -AutoRestVersion "v2" -SpecsRepoBranch "AVS/dotnet"
AsrOneSdk/azure-sdk-for-net
sdk/avs/Microsoft.Azure.Management.Avs/src/generate.ps1
PowerShell
mit
124
[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.xSPDistributedCacheService.Tests.ps1
PowerShell
mit
6,796
# ## File: OnboardSql.ps1 ## Purpose: Script to automate the onboarding of the Sql Server. # # Version 1.0 Initial Release # Version 1.1 Add disk info, improve script # Version 1.2 add menu # Version 1.3 add iscsi test # Version 1.4 add password file support # Version 1.5 improve menu, add iSCSI onboarding, improve un...
Actifio/powershell
OnboardSql/OnboardSql.ps1
PowerShell
mit
38,807
Write-Host Testing golang image docker run golang go version docker run golang git --version
StefanScherer/dockerfiles-windows
golang/test.ps1
PowerShell
mit
93
# 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/Test-ScheduledTask.ps1
PowerShell
mit
1,761
import-module hyper-v set-location (Split-Path $MyInvocation.MyCommand.path) . ".\__createCP.ps1" createCP -vmName '$Windows Server 2008 R2' -cpName "gen 1"
ikarstein/labsetup
$Windows Server 2008 R2/02-Freeze Gen Checkpoint Template.ps1
PowerShell
mit
163
function Get-DbaLocaleSetting { <# .SYNOPSIS Gets the Locale settings on a computer. .DESCRIPTION Gets the Locale settings on one or more computers. Requires Local Admin rights on destination computer(s). .PARAMETER ComputerName The target SQL Server instance or instan...
dsolodow/dbatools
functions/Get-DbaLocaleSetting.ps1
PowerShell
mit
4,442
.\NuGet.exe restore ..\src\Kip.sln $msbuild = ls 'C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe' . $msbuild ..\src\Kip.sln /t:rebuild /p:Configuration=Release if (-not (Test-Path bin)) { mkdir bin } cp ..\src\Kip\bin\Release\Kip.dll bin .\NuGet.exe pack .\Kip.nuspec
kei10in/KipSharp
build/build.ps1
PowerShell
mit
278
@{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '1.4.0.0' # ID used to uniquely identify this module GUID = '8ad956dd-4a36-4767-9725-ed0466893edb' # Author of this module Author = 'Microsoft' # Company or vendor of this modu...
cowofevil/puppetlabs-dsc
lib/puppet_x/dsc_resources/xDatabase/xDatabase.psd1
PowerShell
apache-2.0
1,877
& (Join-Path -Path $PSScriptRoot -ChildPath 'RivetTest\Import-RivetTest.ps1' -Resolve) function Setup { Start-RivetTest } function TearDown { Stop-RivetTest } function Test-ShouldRemoveExtendedPropertyToSchema { @' function Push-Migration { Add-Schema 'fizz' Add-ExtendedProper...
RivetDB/Rivet
Test/Test-RemoveExtendedProperty.ps1
PowerShell
apache-2.0
3,762
Function Get-TargetResource { Param( [Parameter(Mandatory)] [ValidateSet("MANUAL", "DOMHIER", "ALL", "NO")] [string]$SyncFromFlags, [Parameter(Mandatory=$False)] [ValidateNotNullOrEmpty()] [string[]]$Sources ) $Modes = @{ NT5DS = 'DOMHIER...
ConclusionMC/puppetlabs-dsc
lib/puppet_x/dsc_resources/cMisc/DSCResources/cMisc_TimeSource/cMisc_TimeSource.psm1
PowerShell
apache-2.0
3,511
$packageName = 'kvrt' $url = 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe' $checksum = '67bde834c0775735ac6cd1a8b8723cfb3fdc18d41e0df9557e3c9c92f43be656' $checksumType = 'sha256' $toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsPath "kvr...
dtgm/chocolatey-packages
automatic/_output/kvrt/2016.11.16.2032/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
960
import-module au $releases = 'https://www.lwks.com/index.php?option=com_lwks&view=download&Itemid=206&tab=0' function global:au_SearchReplace { @{ ".\tools\chocolateyInstall.ps1" = @{ "(?i)(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'" "(?i)(^\s*url64bit\s*=\s*)('.*')" =...
lennartb-/chocolatey-coreteampackages
automatic/lightworks/update.ps1
PowerShell
apache-2.0
1,152
. $PSScriptRoot\..\GcloudCmdlets.ps1 Install-GCloudCmdlets $project, $zone, $oldActiveConfig, $configName = Set-GCloudConfig # Returns all available messages from the subscription (auto-acknowledge all of them in the process). function Get-SubscriptionMessage($subscription) { while ($true) { $messageStri...
GoogleCloudPlatform/google-cloud-powershell
Google.PowerShell.IntegrationTests/PubSub/PubSub.Message.Tests.ps1
PowerShell
apache-2.0
43,115
$packageName = 'nssm' $url = 'https://nssm.cc/release/nssm-2.24.zip' $checksum = '727d1e42275c605e0f04aba98095c38a8e1e46def453cdffce42869428aa6743' $checksumType = 'sha256' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" Install-ChocolateyZipPackage -PackageName "$packageName" ` ...
dtgm/chocolatey-packages
automatic/_output/nssm/2.24.0.20161221/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
869
function Convert-UnixTimeToDateTime($unixtime){ $origin = New-Object -Type DateTime -ArgumentList 1970, 1, 1, 9, 0, 0, 0 $origin.AddSeconds($unixTime) } # get directory name. if( $args.Length -And (Test-Path $args[0])){ $dir = Convert-Path $args[0] } else { Write-Host "no parameter or an incorrcet path...
yoshizaki/shell
powershell/ping-result/pingResult.ps1
PowerShell
apache-2.0
2,367
$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...
wsmelton/dbatools
tests/New-DbaDbSynonym.Tests.ps1
PowerShell
mit
6,547
function BeforeEach { <# .SYNOPSIS Defines a series of steps to perform at the beginning of every It block within the current Context or Describe block. .DESCRIPTION BeforeEach, AfterEach, BeforeAll, and AfterAll are unique in that they apply to the entire Context or Describe block, regardless of the o...
lweniger/PowerShell
Modules/downloaded/powershellgallery/Pester/3.3.5/Functions/SetupTeardown.ps1
PowerShell
mit
20,952
$here = Split-Path -Parent $MyInvocation.MyCommand.Path # here : /branch/tests/Poshbox.Test . "$here\..\TestCommon.ps1" Describe "Set-ManagedCredential" { It "Add credential to Windows Credential Manager if it does not exist" { $expectedUserName = "testuser" $expectedPassword = "pass123" $...
ghostsquad/AetherCred
tests/Set-ManagedCredential.Tests.ps1
PowerShell
apache-2.0
1,903
#requires -Version 5 # Suppression of this PSSA rule allowed in examples [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')] param() Configuration SMA { Import-DscResource -Module xSQLServer Import-DscResource -Module xSCSMA # Set role and instance va...
PowerShell/xSCSMA
Examples/SCSMA-SingleServer-TP.ps1
PowerShell
mit
13,404
$targetDir = [System.IO.Path]::GetFullPath($args[0]) $chefExtensionName = $args[1] $sourceDir = [System.IO.Path]::GetFullPath($args[2]) # Courtesy http://blogs.msdn.com/b/daiken/archive/2007/02/12/compress-files-with-windows-powershell-then-package-a-windows-vista-sidebar-gadget.aspx function Add-Zip { param([strin...
ClogenyTechnologies/azure-chef-extension
scripts/createzip.ps1
PowerShell
apache-2.0
1,180
# ---------------------------------------------------------------------------------- # # 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...
jianghaolu/azure-powershell
src/ResourceManager/Sql/Commands.Sql.Test/ScenarioTests/DataMaskingTests.ps1
PowerShell
apache-2.0
21,626
Param($DomainFullName,$CM,$CMUser,$DPMPName,$ClientName,$Config,$CurrentRole,$LogFolder,$CSName,$PSName) $CSRole = "CAS" $PSRole = "PS1" $Role = $PSRole if($CurrentRole -eq "CS") { $Role = $CSRole } $ProvisionToolPath = "$env:windir\temp\ProvisionScript" if(!(Test-Path $ProvisionToolPath)) { New-Item $Provisi...
simongdavies/azure-quickstart-templates
sccm-currentbranch/DSC/ScriptWorkFlow.ps1
PowerShell
mit
4,939
Write-Host "Hello World!"
gossion/azure-quickstart-templates
201-vmss-custom-script-windows/scripts/helloWorld.ps1
PowerShell
mit
25
# TODO: Invoke-VultrIsoList.ps1
sdsalyer/PSVultrAPI
PSVultrAPI/Public/iso/Invoke-VultrIsoList.ps1
PowerShell
mit
31
#Get Current Directory $Here = Split-Path -Parent $MyInvocation.MyCommand.Path #Get Function Name $FunctionName = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -Replace ".Tests.ps1" #Assume ModuleName from Repository Root folder $ModuleName = Split-Path (Split-Path $Here -Parent) -Leaf if( -not (Get-Module -Name $...
pspete/PoShPACLI
Tests/Add-PVSafeGWAccount.Tests.ps1
PowerShell
mit
1,446
. $PSScriptRoot\Restore-VMSnapshot.ps1 . $PSScriptRoot\Fakes\Fake_VM.ps1 Describe "Restore-VMSnapshot" { Context "Can restore VM snapshot" { $script:TestFlag = $false $fakevm = New-FakeVM -RestoreSnapshot { param($Name) if($name -eq "MySnapshot") { $script:TestFlag = $true} } It "Can restor snap...
wiltaylor/VMLib
Src/PSVMLib/Restore-VMSnapshot.tests.ps1
PowerShell
mit
427
function New-DbaAgentSchedule { <# .SYNOPSIS New-DbaAgentSchedule creates a new schedule in the msdb database. .DESCRIPTION New-DbaAgentSchedule will help create a new schedule for a job. If the job parameter is not supplied the schedule will not be attached to a job. .PARAMETE...
kozloski/dbatools
functions/New-DbaAgentSchedule.ps1
PowerShell
mit
29,446
<# powershell test http listener for troubleshooting use the following to save and pass arguments: invoke-webRequest "https://raw.githubusercontent.com/jagilber/powershellScripts/master/test-http-listener.ps1" -outFile "$pwd/test-http-listener.ps1"; .\test-http-listener do a final client connect to free up close #>...
jagilber/powershellScripts
test-http-listener.ps1
PowerShell
mit
9,465
[CmdletBinding()] param ( [Parameter(Mandatory=$True)] [string]$apikey ) $ErrorActionPreference = 'Stop' $file = gci -recurse -filter "*.nupkg" -File -Path dist | sort -property LastWriteTime | Select-Object -Last 1 nuget push $file.FullName -Source "https://www.nuget.org/api/v2/package" -ApiKey $apikey
Nicologies/ScopeGuard
PublishToNuget.ps1
PowerShell
apache-2.0
316
$packageName = 'firefox-nightly' $softwareVersion = '54.0.1.2017012921-alpha' -Replace "^(\d+)\.(\d+)\.(\d+)[^-]+-([a-z]).*",'$1.$2$4$3' $softwareName = "Nightly $softwareVersion*" $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $validExitCodes = @(0) [array]$key = Get-UninstallRe...
dtgm/chocolatey-packages
automatic/_output/firefox-nightly/54.0.1.2017012921/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
820