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
$HubCaller = Invoke-WebRequest https://raw.githubusercontent.com/engrmtm/APCS-STR0/master/Windows%20Desktop/WIN10DSK-Optimize2.ps1 Invoke-Expression $($HubCaller.Content)
engrmtm/APCS-STR0
Windows Desktop/WIN10DSK-OptCaller.ps1
PowerShell
mit
173
<# .SYNOPSIS Searches publicly listed Eventbrite Events using the v1 API .DESCRIPTION Searches the Eventbrite event index to find publicly listed events. For your events to be included in the results, they must include an organizer profile, a valid venue address, and must have available ticket types...
lpaglia/EventbritePS
Source/Search-EventbriteEvent.ps1
PowerShell
apache-2.0
7,295
$packageName = 'combofix' $url = 'https://download.bleepingcomputer.com/sUBs/ComboFix.exe' $checksum = 'eb399bfd2ed880115a36d91c49d3fb673ba8c91ae4e428c28c431e20e951016f' $checksumType = 'sha256' $toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition $installFile = Join-Path $toolsDir "ComboFix.exe" Get-Cho...
dtgm/chocolatey-packages
automatic/_output/combofix/16.6.30.1/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
722
$packageName = 'dumo' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $url = 'http://www.kcsoftwares.com/files/dumo_lite.exe' $checksum = '72a4147685d9fdfb93b1de23a6043a1d384435606b122aa86063429850a36013' $checksumType = 'sha256' $validExitCodes = @(0) Install-ChocolateyPackage -Pa...
dtgm/chocolatey-packages
automatic/_output/dumo/2.10.0.58/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
661
#Sensors -> Settings -> Parameters, ex. '%host' '%name' Param ($Device, $Sensor) #Fast Ethernet, Gigabit Ethernet, and 10 Gigabit Ethernet interfaces are supported by the expression $Interface = ($Sensor | Select-string -Pattern '(fe|ge|xe)-\d/\d/\d' | ForEach {$_.matches} | Select $_).Value #Supply username and pass...
lhaynes/prtg-sensors
junos-interface-counters.ps1
PowerShell
apache-2.0
1,592
Describe "Active Directory Users In Departments OU" { $ADUsers = Search-ADAccount -PasswordNeverExpires -SearchBase "OU=Departments,DC=tervis,DC=prv" | It "Shouldn't have PasswordSetToNeverExpire set to true" { Search-ADAccount -PasswordNeverExpires -SearchBase "OU=Departments,DC=tervis,DC=prv" | ...
Tervis-Tumbler/TervisActiveDirectory
Diagnostics/Simple/Simple.Tests.ps1
PowerShell
apache-2.0
355
Function New-ExcelPackage { <# .SYNOPSIS Return a new excel package .DESCRIPTION The New-ExcelPackage cmd-let returns an OfficeOpenXml.ExcelPackage object which allows user to perform excel application related operations .PARAMETER Full Specifies if user wants to create a fully functional excel file .EX...
tuanhtrng/EPSM
EPSM/ExcelPackage/New-ExcelPackage.ps1
PowerShell
apache-2.0
612
function Invoke-LogFile { [CmdletBinding()] Param( [Parameter()] [string]$Directorypath = 'P:\', [Parameter()] [string]$LogPath = 'C:\Logs\', [Parameter()] [int]$OlderThan = 7, [Parameter()] [String]$LogFile = "ScriptLog-$(Get-Da...
GlennFaustino/PowerShell
Logfile.ps1
PowerShell
bsd-2-clause
2,451
<# .EXAMPLE This example shows how to configure ongoing configuration. #> $ConfigurationData = @{ AllNodes = @( @{ #region Common Settings for All Nodes NodeName = '*' <# The location of the exported public certificate which will be used to en...
PowerShell/xExchange
source/Examples/EndToEndExample/10-OngoingConfiguration.ps1
PowerShell
mit
16,130
# You should define before running this script. # $name - Name identifies logfile and test name in results # When running in parallel, name maps to unique ID. # Some thing like '0', '1', etc when running in parallel # $obj - This is a dictionary, used to pass output values # (e....
padisetty/Samples
AWS/ssm/Old/Terminate Instance.ps1
PowerShell
apache-2.0
576
$packageName = 'meld' $installerType = 'EXE' #$url = 'https://meld-installer.googlecode.com/files/meld-{version}.exe' $url = 'https://meld-installer.googlecode.com/files/meld-1.8.1.0.exe' $silentArgs = '/S' $validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/e...
dtgm/chocolatey-packages
automatic/_output/meld/1.8.1/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
468
$packageName = '{{PackageName}}' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $urlArray = {{DownloadUrlx64}} $url = $urlArray[0] $checksum = '{{Checksum}}' $checksumType = 'sha256' $url64 = $urlArray[1] $checksum64 = '{{Checksumx64}}' $checksumType64 = 'sha256' $validExitCodes =...
dtgm/chocolatey-packages
automatic/texniccenter/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
862
function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [parameter(Mandatory = $true)] [System.String] $Url, [parameter(Mandatory = $true)] [ValidateSet("WebApplication","SiteCollection")] [System.String] $SettingsScope, [parameter(Ma...
cowofevil/puppetlabs-dsc
lib/puppet_x/dsc_resources/xSharePoint/Modules/xSharePoint/DSCResources/MSFT_xSPDesignerSettings/MSFT_xSPDesignerSettings.psm1
PowerShell
apache-2.0
12,317
$packageName = 'folderchangesview' $url = 'http://www.nirsoft.net/utils/folderchangesview.zip' $checksum = '6ef7d1464f5220022531b5b3fbab1d7366225244' $checksumType = 'sha1' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsDir "$($packageName).exe" Install-Chocolatey...
dtgm/chocolatey-packages
automatic/_output/folderchangesview/1.70/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
684
<# 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 r...
Invenis/PSCI
examples/webAndDatabase/BuildDeploy/build/Build-MyWebApplication.ps1
PowerShell
mit
1,525
Describe 'Testing of MyInvocation' -Tags "CI" { It 'MyInvocation works in Function' { function myfunc { $MyInvocation.Line.IndexOf("myfunc") | Should BeGreaterThan -1 } { . myfunc } | Should Not Throw {& myfunc } | Should Not Throw } It 'MyInvocation w...
KarolKaczmarek/PowerShell
test/powershell/Language/Scripting/MyInvocation.Tests.ps1
PowerShell
mit
1,408
function Get-ComputerDetails { <# .SYNOPSIS This script is used to get useful information from a computer. Function: Get-ComputerDetails Author: Joe Bialek, Twitter: @JosephBialek Required Dependencies: None Optional Dependencies: None Version: 1.1 .DESCRIPTION This script is used to get useful information from a c...
Yas3r/Empire
data/module_source/situational_awareness/host/Get-ComputerDetails.ps1
PowerShell
bsd-3-clause
17,711
<# iwr "https://raw.githubusercontent.com/jagilber/powershellScripts/master/temp/addnode.ps1" -outFile "$pwd\addnode.ps1" #> # ------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See License.txt in the repo r...
jagilber/powershellScripts
temp/addnode.ps1
PowerShell
mit
20,962
# Set-PortalRequirement.ps1 on Thursday November 05, 2020 # Validate pre-requisites for Carbonite Server Backup Portal 8-60 # * Run this script from a Powershel Admin Prompt! # * Make sure Powershell Execution Policy is bypassed to run these scripts: # * YOU MAY HAVE TO RUN THIS COMMAND PRIOR TO RUNNING THIS SCRIPT! Se...
CailleauThierry/PSThUtils
Portal/Set-PortalRequirement.ps1
PowerShell
mit
3,294
# # This script controls the Roslyn build process. This encompasess everything from build, testing to # publishing of NuGet packages. The intent is to structure it to allow for a simple flow of logic # between the following phases: # # - restore # - build # - sign # - pack # - test # - publish # # Each of t...
sharwell/roslyn
eng/build.ps1
PowerShell
mit
27,169
# Created by Casey Cochran with Rentech Inc. # # This script recursively searches a folder tree specified by the user and # generates a list of all explicit permissions defined on any folder in the tree. # This is useful for determining where permission cascades begin, and for # discovering explicit permissions down...
cochran242/Powershell
FindExplicitACLs.ps1
PowerShell
mit
10,199
# Bumps the version of all of the tasks that are technically modified when codeanalysis-common is changed. # Please validate the updated versions to confirm that nothing went horribly wrong. Param( [parameter(Mandatory=$true)] # The current sprint, find at https://whatsprintis.it/ [int] $currentSprint, # The path to th...
dylan-smith/vso-agent-tasks
Tasks/Common/codeanalysis-common/bump-task-version.ps1
PowerShell
mit
1,811
function Get-TfsRepository() { @(irm "https://tfs.kneat.org/tfs/DefaultCollection/_apis/git/repositories" -UseDefaultCredentials).value } function Get-TfsPullRequest{ param( [Parameter( Position=0, Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName...
trevorpower/WindowsPowerShell
Modules/TfsApi/TfsApi.psm1
PowerShell
mit
3,034
function Install-TouchFile { $ModulePaths = @($env:PSModulePath -split ';') # $TouchFileDestinationModulePath is mostly needed for testing purposes, if ((Test-Path -Path Variable:TouchFileDestinationModulePath) -and $TouchFileDestinationModulePath) { $Destination = $TouchFileDestinationModulePath ...
agileramblings/powershell
GetTouchFile.ps1
PowerShell
mit
2,123
# TODO: Invoke-VultrDnsSoa_Info.ps1
sdsalyer/PSVultrAPI
PSVultrAPI/Public/dns/Invoke-VultrDnsSoa_Info.ps1
PowerShell
mit
35
[CmdletBinding()] param($Task = 'Default') $Script:Modules = @( 'BuildHelpers', 'InvokeBuild', 'Pester', 'platyPS', 'PSScriptAnalyzer', 'DependsOn', 'PSGraph', 'Select-Ast' ) $Script:ModuleInstallScope = 'CurrentUser' 'Starting build...' 'Installing module dependencies...' Get-Packa...
KevinMarquette/PSGraphPlus
build.ps1
PowerShell
mit
704
# Localized resources for DSC_ProxySettings ConvertFrom-StringData @' GettingProxySettingsMessage = Getting the {0} proxy settings. ApplyingProxySettingsMessage = Applying the {0} proxy settings to ensure '{1}'. CheckingProxySettingsMessage = Checking the {0} proxy settings to ensure '{1}'. ProxyBinary...
PlagueHO/xNetworking
source/DSCResources/DSC_ProxySettings/en-US/DSC_ProxySettings.strings.psd1
PowerShell
mit
1,040
<# EdUsers Version: 1.2.5 Author: Justin Byrne URL: http://www.jnm-tech.co.uk Reqirements: * Remote Server Admin Tools - Windows 7, 8, 8.1 * Active Directory Module for Windows PowerShell * Windows Managment Framework 4.0 #> # import modules Import-Module ActiveDirectory # XML...
TheSk8rJesus/EdUsers
Create New Users.ps1
PowerShell
mit
18,783
Remove-Module -Name 'Rubrik' -ErrorAction 'SilentlyContinue' Import-Module -Name './Rubrik/Rubrik.psd1' -Force foreach ( $privateFunctionFilePath in ( Get-ChildItem -Path './Rubrik/Private' | Where-Object extension -eq '.ps1').FullName ) { . $privateFunctionFilePath } Describe -Name 'Public/Set-RubrikDatabase' -...
rubrikinc/PowerShell-Module
Tests/Set-RubrikDatabase.Tests.ps1
PowerShell
mit
4,120
Remove-Module -Name 'Rubrik' -ErrorAction 'SilentlyContinue' Import-Module -Name './Rubrik/Rubrik.psd1' -Force foreach ( $privateFunctionFilePath in ( Get-ChildItem -Path './Rubrik/Private' | Where-Object extension -eq '.ps1').FullName ) { . $privateFunctionFilePath } Describe -Name 'Public/Get-RubrikGuestOSCred...
rubrikinc/PowerShell-Module
Tests/Get-RubrikGuestOsCredential.Tests.ps1
PowerShell
mit
2,565
Import-Module -Name BurntToast Import-Module -Name PSProcess -Force $global:testOnly = $false $global:OutdatedChocoPackages = '' $global:OutdatedScoopPackages = '' function New-PackageManageNotification() { param( [CmdletBinding()] [ValidateSet('Scoop','Choco')] [string] $Manager = 'Choco' ) $image...
mattia72/powershell
Test-ChocoOutdated.ps1
PowerShell
apache-2.0
2,205
# Copyright © 2017 Chocolatey Software, Inc. # Copyright © 2011 - 2017 RealDimensions Software, 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 # # http://www.apache.org/lice...
bazzilic/choco
src/chocolatey.resources/helpers/ChocolateyTabExpansion.ps1
PowerShell
apache-2.0
11,352
$ErrorActionPreference = 'Stop'; $packageName = 'remotetestkit' $installerType = 'EXE' $silentArgs = '/VERYSILENT' $url = 'https://appkitbox.com/en/wp-content/download/remotetestkit-en.exe' Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url"
quamotion/chocolatey
remotetestkit/tools/chocolateyinstall.ps1
PowerShell
apache-2.0
273
# # Module manifest for module 'Microsoft.Azure.Commands.SiteRecovery' # # Generated by: Microsoft Corporation # # Generated on: 9/19/2015 # @{ # Version number of this module. ModuleVersion = '2.0.1' # ID used to uniquely identify this module GUID = 'd1de7560-48e1-48f3-bc8c-4eea3af2bbe1' ...
ankurchoubeymsft/azure-powershell
src/ResourceManager/SiteRecovery/AzureRM.SiteRecovery.psd1
PowerShell
apache-2.0
3,274
ConvertFrom-StringData @' GettingStateMessage = Getting IE Enhanced Security Configuration state for '{0}'. (IEESC0001) SettingStateMessage = Setting IE Enhanced Security Configuration state for '{0}'. (IEESC0002) TestingStateMessage = Testing IE Enhanced Security Configuration state for '{0}'. (IEESC0003) ...
PlagueHO/xComputerManagement
source/DSCResources/DSC_IEEnhancedSecurityConfiguration/en-US/DSC_IEEnhancedSecurityConfiguration.strings.psd1
PowerShell
mit
889
[cmdletbinding()] param() # Arrange. . $PSScriptRoot\..\..\lib\Initialize-Test.ps1 . $PSScriptRoot\..\..\..\Tasks\MSBuild\Helpers.ps1 # Act. $actual = Get-SolutionFiles -Solution 'Some solution' # Assert. Assert-AreEqual 'Some solution' $actual
vtbassmatt/vso-agent-tasks
Tests/L0/MSBuild-Legacy/Get-SolutionFiles.ReturnsNonWildcardSolution.ps1
PowerShell
mit
248
<#PSScriptInfo .VERSION 1.5.0 .GUID 5bf3b9dd-b754-4e71-bb03-cb5c5a8101c7 .AUTHOR Anton Zimin .COMPANYNAME Saritasa .COPYRIGHT (c) 2017-2018 Saritasa. All rights reserved. .TAGS Jenkins Git .LICENSEURI https://raw.githubusercontent.com/Saritasa/PSGallery/master/LICENSE .PROJECTURI https://github.com/Saritasa/PSG...
Saritasa/PSGallery
scripts/Psake/Saritasa.BuildServerTasks.ps1
PowerShell
mit
10,333
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Write-Host -Object "Running $PSCommandpath" -ForegroundColor Cyan . "$PSScriptRoot\constants.ps1" Describe "$commandname Integration Tests" -Tag "IntegrationTests" { Context "gets spn information" { Mock Resolve-DbaNetworkName { ...
sqlpadawan/dbatools
tests/Test-DbaSpn.Tests.ps1
PowerShell
mit
1,417
param($installPath, $toolsPath, $package, $project) $nunitCoreRef = $project.Object.References.Item("nunit.core.interfaces") if ($nunitCoreRef) { $nunitCoreRef.Remove() }
nikitaignatov/BugTracker
packages/SpecFlow.NUnit.Runners.2.0.0-preview20151221-10/tools/Uninstall.ps1
PowerShell
mit
175
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. Describe "InitialSessionState capacity" -Tags CI { BeforeAll { $iss = [initialsessionstate]::CreateDefault() for ($i = 0; $i -lt 5000; $i++) { $ssfe = [System.Management.Automation.Runs...
Cowmonaut/PowerShell
test/powershell/engine/Api/InitialSessionState.Tests.ps1
PowerShell
mit
4,358
# ---------------------------------------------------------------------------------- # # 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...
ClogenyTechnologies/azure-powershell
src/ResourceManager/Cdn/Commands.Cdn.Test/ScenarioTests/ProfileTests.ps1
PowerShell
apache-2.0
9,597
Import-Module .\TestLibs\RDFELibs.psm1 -Force $Subtests= $currentTestData.SubtestValues $SubtestValues = $Subtests.Split(",") $result = "" $testResult = "" $resultArr = @() $isDeployed = DeployVMS -setupType $currentTestData.setupType -Distro $Distro -xmlConfig $xmlConfig if($isDeployed) { $hs1VIP = $allVMData[0].Pu...
iamshital/azure-linux-automation
remote-scripts/NETWORK-IE-PING-DIFF-PACKET-SINGLE-HS.ps1
PowerShell
apache-2.0
2,805
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // PSSwaggerUtility Module namespace $($LocalizedData.CSharpNamespace) { using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Management.Automation.Runspa...
AzureAutomationTeam/azure-powershell
src/StackAdmin/Azs.Update.Admin/Module/Azs.Update.Admin/PSSwaggerUtility/PSSwaggerNetUtilities.Core.Code.ps1
PowerShell
apache-2.0
20,504
# ---------------------------------------------------------------------------------- # # 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...
zhencui/azure-powershell
src/ServiceManagement/Common/Commands.ScenarioTest/Resources/Credstests.ps1
PowerShell
apache-2.0
3,606
$psakeUtilsDir = Split-Path $MyInvocation.MyCommand.Path -Parent if (-not($root)) { $root = Split-Path (Split-Path $psakeUtilsDir -Parent) -Parent } function Write-Message { [CmdletBinding()] param( [string]$Message, [switch]$NoTimestamp, # http://stackoverflow.com/a/2795683 [Parameter(ValueFromRemaining...
vc3/ChocolateyNodeJS.extension
Modules/Psake-Utils/Psake-Utils.psm1
PowerShell
mit
2,443
# # ImportSolutionsUsingConfig.ps1 # param( [string]$CrmConnectionString, [string]$LogsDirectory, [string]$ConfigFilePath, [int]$Timeout ) $ErrorActionPreference = "Stop" $InformationPreference = "Continue" Write-Verbose 'Entering ImportSolutionsUsingConfig.ps1' #Parameters Write-Verbose "CrmConnectionString = $Cr...
WaelHamze/xrm-ci-framework
MSDYNV9/Xrm.Framework.CI/Xrm.Framework.CI.PowerShell.Scripts/ImportSolutionsUsingConfig.ps1
PowerShell
mit
1,091
param ( [switch]$Debug ) ############################################################ # # This script is used to build a deployment package of # scripts and configuration for the Internal search farm # ############################################################ # PowerShell Community Extensions 3.1.0 # http://pscx....
dnvgldevelopers/CORS
package-cors.ps1
PowerShell
mit
1,859
function Get-DbaDbUser { <# .SYNOPSIS Gets database users .DESCRIPTION Gets database users .PARAMETER SqlInstance The target SQL Server instance or instances .PARAMETER SqlCredential Allows you to login to SQL Server using alternative credentials .PARAMETER Da...
dsolodow/dbatools
functions/Get-DbaDbUser.ps1
PowerShell
mit
4,434
<# .SYNOPSIS Since Java 1.8 we can't lower java security. Only options are "High" & "Very High". Status "Lower" is not present anymore. Therefore - we get a warning each time we browse a non signed java applet (RIA) on the internet. - on non signed RIA we must add the url to the java security exception list. Th...
Zougi/ria-warning-disabler
ria_warning_disabler.ps1
PowerShell
mit
6,357
$cssCode = "<style>" + (Get-Content .\style.css -Encoding UTF8) + "</style>" $output = (Get-Content .\template.html -Encoding UTF8).Replace('<link rel="stylesheet" href="style.css">', $cssCode) $configJs = "<script>" + (Get-Content .\config.js -Encoding UTF8) + "</script>" $output = $output.Replace("<script src='con...
2-t/dictionary
concat.ps1
PowerShell
mit
701
$packageName = 'kvrt' $url = 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe' $checksum = '55d271301e46d38bde635451ad3c123054694695' $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.03.19.0612/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
931
$packageName = '{{PackageName}}' $packageSearch = 'Nirsoft produkey' $installerType = 'exe' $silentArgs = '/S' $validExitCodes = @(0) try { Get-ItemProperty -Path @( 'HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', 'HKLM:\Software\Microsoft\Windows\CurrentVersion\...
maharishi/chocolatey-packages
automatic/produkey.install/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
973
$packageName = 'kvrt' $url = 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe' $checksum = 'f8012b6b61e65e6c204220a01bde1c82b860919b' $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.02.23.0254/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
931
# powershell v2 compatibility $psVer = $PSVersionTable.PSVersion.Major if ($psver -ge 3) { function Get-ChildItemDir {Get-ChildItem -Directory $args} } else { function Get-ChildItemDir {Get-ChildItem $args} } # MetaPackage $warningPreference = "Continue" $chocoLib = Join-Path $env:ChocolateyInstall "lib" if (Test-...
dtgm/chocolatey-packages
automatic/_output/colorconsole/2.44/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
974
$ErrorActionPreference = 'Stop' $toolsPath = Split-Path $MyInvocation.MyCommand.Definition $download_dir = "$Env:TEMP\chocolatey\$packageName\$Env:ChocolateyPackageVersion" $packageArgs = @{ packageName = '' url = '' url64Bit = '' checksum = '' checksum64 = '' checksumType...
kkzinger/chocolatey-packages-new
automatic/_template/tools/chocolateyInstallZip.ps1
PowerShell
apache-2.0
438
function New-VSApiGatewayModel { <# .SYNOPSIS Adds an AWS::ApiGateway::Model resource to the template. The AWS::ApiGateway::Model resource defines the structure of a request or response payload for an API method. .DESCRIPTION Adds an AWS::ApiGateway::Model resource to the template. The AWS:...
scrthq/Vaporshell
VaporShell/Public/Resource Types/New-VSApiGatewayModel.ps1
PowerShell
apache-2.0
16,202
$pkg_name="chef-infra-client" $pkg_origin="chef" $pkg_version=(Get-Content $PLAN_CONTEXT/../VERSION) $pkg_description="Chef Infra Client is an agent that runs locally on every node that is under management by Chef Infra. This package is binary-only to provide Chef Infra Client executables. It does not define a service ...
mattray/chef
habitat/plan.ps1
PowerShell
apache-2.0
6,382
properties { $base_directory = Resolve-Path . $src_directory = "$base_directory\source" $output_directory = "$base_directory\build" $dist_directory = "$base_directory\distribution" $sln_file = "$src_directory\Owin.ClaimsTransformation.sln" $target_config = "Release" $framework_version = "v4.5" $nuget_path = "$b...
IdentityModel/IdentityModel.Owin.ClaimsTransformation
default.ps1
PowerShell
apache-2.0
2,616
import-module au $releases = 'https://ffmpeg.zeranoe.com/builds' function global:au_SearchReplace { @{ ".\tools\chocolateyInstall.ps1" = @{ "(?i)(^\s*packageName\s*=\s*)('.*')" = "`$1'$($Latest.PackageName)'" } ".\legal\VERIFICATION.txt" = @{ "(?i)(\s+x32:).*" ...
lennartb-/chocolatey-coreteampackages
automatic/ffmpeg/update.ps1
PowerShell
apache-2.0
1,483
. $PSScriptRoot\..\GcloudCmdlets.ps1 Install-GcloudCmdlets $project, $zone, $oldActiveConfig, $configName = Set-GCloudConfig # We use another project for testing adding policy bindings so in case we messed up the permission, other tests won't fail. $script:gcloudPowerShellProject2 = "gcloud-powershell-testing-2" # Se...
chrsmith/google-cloud-powershell
Google.PowerShell.IntegrationTests/CloudResourceManager/CloudResourceManager.IamPolicy.Tests.ps1
PowerShell
apache-2.0
10,517
[CmdletBinding()] param ( [Parameter(Mandatory=$true)] [string] $SourceXlf, [Parameter(Mandatory=$true)] [string] $DestinationXlf ) $destinationFile = Get-ChildItem $DestinationXlf; [xml] $source = Get-Content $SourceXlf; [xml] $destination = Get-Content $DestinationXlf; $destination.xliff.file...
mavasani/roslyn-analyzers
src/Tools/Scripts/CopyXlfTransUnits.ps1
PowerShell
apache-2.0
967
# 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 # ...
ewilde/choco
src/chocolatey.resources/helpers/functions/Get-WebHeaders.ps1
PowerShell
apache-2.0
3,158
$hostname = "navex-share-mount-addins" # SETTINGS: . (Join-Path $PSScriptRoot '..\helpers\Init-Environment.ps1') $navVersionDir = & (Join-Path $PSScriptRoot '..\helpers\Get-NavVersionDir.ps1') $passplain = & (Join-Path $PSScriptRoot '..\helpers\Get-Pwd.ps1') # DOCKER RUN: docker run ` --rm ` -m 3G ` --nam...
Koubek/nav-docker-examples
share_mount_addins/run.ps1
PowerShell
mit
619
# # Swaggy Jenkins # Jenkins API clients generated from Swagger / Open API specification # Version: 1.1.2-pre.0 # Contact: blah@cliffano.com # Generated by OpenAPI Generator: https://openapi-generator.tech # Describe -tag 'PSOpenAPITools' -name 'FreeStyleProjecthealthReport' { Context 'FreeStyleProjecthealthReport...
cliffano/swaggy-jenkins
clients/powershell/generated/tests/Model/FreeStyleProjecthealthReport.Tests.ps1
PowerShell
mit
747
Param( [string] $Version = "17/pre", [string] $TestPath = "2022\Preview" ) $ErrorActionPreference = 'Stop' $fullPath = "C:\Program Files\Microsoft Visual Studio\$TestPath\Common7\IDE\devenv.exe" if (Test-Path $fullPath) { Write-Host "Visual Studio $($TestPath.Replace('\',' ')) ($Version) already installed."...
mono/SkiaSharp
scripts/install-vs.ps1
PowerShell
mit
1,541
$CommandName = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "") Describe "$CommandName Unit Tests" -Tag 'UnitTests' { Context "Validate parameters" { $defaultParamCount = 11 [object[]]$params = (Get-ChildItem "function:\$CommandName").Parameters.Keys $knownParameters = 'JobName','Mess...
exactmike/poshRSJobFlowManager
Tests/Add-JSMProcessingStatusEntry.Tests.ps1
PowerShell
mit
2,161
# 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-ZipFile.ps1
PowerShell
mit
1,784
#region HEADER # Integration Test Config Template Version: 1.2.0 #endregion $configFile = [System.IO.Path]::ChangeExtension($MyInvocation.MyCommand.Path, 'json') if (Test-Path -Path $configFile) { <# Allows reading the configuration data from a JSON file, for real testing scenarios outside of the C...
PowerShell/xSQLServer
Tests/Integration/MSFT_SqlServerLogin.config.ps1
PowerShell
mit
8,716
#### ## AAXConvert.ps1 "C:\Users\connor\Desktop\KingsCage\KingsCage_ep6_QHCF48H2s8JRMEGO5kHh8mowNe6vrJWydNewyfVKtBQa9uzmBen9QjvH2l01.aax" 149x043 #### param( [string]$InputFile = $null, [string]$ActivationCode = $null, [string]$OutputFile = $null, [switch]$mp3 = $false, [switch]$aac = $false, ...
Conroman16/PowerShellLib
AAXConvert.ps1
PowerShell
mit
1,144
function Get-GraphEndpoints { [cmdletbinding()] param( $version ) $odata = get-odata $version #Foreach Object in entitycontainer, Find Endpointname, Entity-FQN, Entity-Name, Navigation-Expansions(Path,Target) # IE "groups","microsoft.graph.group","group",@{path=members, target=directory...
WithHolm/WithGraph.Alpha
Dev/WithGraph.Alpha/Functions/Base/Startup/Priv_Get-GraphEndpoints.ps1
PowerShell
mit
835
Function Connect-AzureAccount { $Script:AuthResult = Get-AuthenticationResult -url $Script:LoginUrl # Set up our HTTP headers $AuthToken = $Script:AuthResult.AccessToken $RefreshToken = $Script:AuthResult.RefreshToken $TokenExpirationUtc = $Script:AuthResult.ExpiresOn $headers = @{ ...
weskroesbergen/AzureTopologyDiagrammer
0.0.1.0/Functions/Connect-AzureAccount.ps1
PowerShell
mit
3,106
######################################## # Private functions. ######################################## function ConvertFrom-LongFormPath { [CmdletBinding()] param([string]$Path) if ($Path) { if ($Path.StartsWith('\\?\UNC')) { # E.g. \\?\UNC\server\share -> \\server\share ...
renevanosnabrugge/SendEmail-BuildTask
SendEmail/ps_modules/VstsTaskSdk/LongPathFunctions.ps1
PowerShell
mit
9,108
[cmdletbinding()] Param( [parameter(Mandatory=$false)] [alias("h")] [string]$HostName, [parameter(Mandatory=$false)] [alias("p")] [int]$Port, [switch] $Fiddler ) Import-Module "C:\dev\Personal\Powershell\Modules\LevelUpApiModule.psm1" -Force $username = "TheUserNameGoesHere" $clie...
NedM/Powershell-Utils
Scripts/TestPlatform.ps1
PowerShell
mit
2,087
echo "" git version echo "" # GIT $proxy = "!!!!!!!!!INSERT HERE!!!!!!!!!!!" [Environment]::SetEnvironmentVariable("HTTP_PROXY", $proxy, "User") [Environment]::SetEnvironmentVariable("HTTPS_PROXY", $proxy, "User") git config --global http.proxy $proxy git config --global https.proxy $proxy git config --global url....
dabbank/web3-build-template-helpscripts
02_SetEnv.ps1
PowerShell
mit
1,727
$ErrorActionPreference = 'Stop' $packageArgs = @{ packageName = $env:ChocolateyPackageName fileType = 'exe' url = 'https://cdn.gomlab.com/gretech/player/GOMPLAYERGLOBALSETUP_NEW.EXE' softwareName = 'GOM Player' checksum = '8ac8e368e2c28e4a46c00cfd503673fffeaa5de456dcf34c41072ddb9...
chocolatey/chocolatey-coreteampackages
automatic/gom-player/tools/chocolateyinstall.ps1
PowerShell
apache-2.0
449
# # Module manifest for module 'Az.RedisCache' # # Generated by: Microsoft Corporation # # Generated on: 3/13/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/RedisCache/Commands.RedisCache/Az.RedisCache.psd1
PowerShell
apache-2.0
5,258
function Test-UpdatingPackageInProjectDoesntRemoveFromSolutionIfInUse { # Arrange $p1 = New-WebApplication $p2 = New-ClassLibrary $oldReferences = @("Castle.Core", "Castle.Services.Logging.log4netIntegration", "Castle.Services.Logging.NLogIntegrat...
ctaggart/nuget
test/EndToEnd/tests/update.ps1
PowerShell
apache-2.0
49,823
$packageName = 'domainhostingview' $url = 'http://www.nirsoft.net/utils/domainhostingview.zip' $checksum = '' $checksumType = 'sha1' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsDir "$($packageName).exe" Install-ChocolateyZipPackage -PackageName "$packageName" `...
dtgm/chocolatey-packages
automatic/_output/domainhostingview/1.72/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
644
properties { $buildDir = ".\build" $outputDir = $buildDir + "\lib\" + $framework $out = $outputDir + "\SgmlReaderDll.dll" $nunitDir = (gci -fi NUnit* .\packages).FullName $nunit = (gci $nunitDir\Tools\nunit-console.exe) } task default -depends Compile, Clean task Init -depends Clean { mkdir $o...
MindTouch/SGMLReader
default.ps1
PowerShell
apache-2.0
719
[cmdletbinding()] param( [parameter(mandatory)] $Options ) begin { Write-Debug -Message 'DomainJoin deprovisioner: beginning' } process { Write-Verbose -Message 'Running DomainJoin deprovisioner...' $provOptions = ConvertFrom-Json -InputObject $Options.Provisioners $djOptions = $provOptions | ...
devblackops/POSHOrigin_vSphere
POSHOrigin_vSphere/DSCResources/POSHOrigin_vSphere_VM/Provisioners/DomainJoin/Deprovision.ps1
PowerShell
apache-2.0
1,921
<#-------------Create Deployment Start------------------#> Import-Module .\TestLibs\RDFELibs.psm1 -Force $result = "" $testResult = "" $resultArr = @() $isDeployed = DeployVMS -setupType $currentTestData.setupType -Distro $Distro -xmlConfig $xmlConfig -getLogsIfFailed $true if ($isDeployed) { try { $testServiceDa...
hglkrijger/azure-linux-automation
remote-scripts/RHUI-CROSS-REGION-MIGRATION.ps1
PowerShell
apache-2.0
7,403
@{ RootModule = 'Microsoft.Powershell.LocalAccounts' ModuleVersion = '1.0.0.0' GUID = '8e362604-2c0b-448f-a414-a6a690a644e2' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' Copyright = '© Microsoft Corporation. All rights reserved.' Description = 'Provides cmdlets to work with local users...
bingbing8/PowerShell
src/Modules/Windows-Core+Full/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.psd1
PowerShell
mit
1,049
function Uninstall-ChocolateyPackage { <# .SYNOPSIS Uninstalls a package .DESCRIPTION This will uninstall a package on your machine. .PARAMETER PackageName The name of the package .PARAMETER FileType This is the extension of the file. This should be either exe or msi. .PARAMETER SilentArgs Please include the notS...
silentspirit0005/chocolatey
src/helpers/functions/Uninstall-ChocolateyPackage.ps1
PowerShell
apache-2.0
2,240
<# .Synopsis This script will create a subscription via an alias. .Description This script will create a subscription via the Microsoft.Subscription/aliases resource. The user running the script must be authenticated and have permission to create the subscription at the specified billin...
neudesic/azure-quickstart-templates
managementgroup-deployments/create-subscription-resourcegroup/Create-SubscriptionAlias.ps1
PowerShell
mit
1,561
#Requires -Version 3.0 function Get-MrSqlVersion { [CmdletBinding()] param ( [ValidateNotNullOrEmpty()] [Parameter(ValueFromPipeline)] [string]$ServerInstance =$env:COMPUTERNAME ) BEGIN { [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SqlServer...
mikefrobbins/SQL
MrSQL/Public/Get-MrSqlVersion.ps1
PowerShell
mit
1,402
$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_SPSecurityTokenServiceConfig/MSFT_SPSecurityTokenServiceConfig.psm1
PowerShell
mit
12,390
<# .SYNOPSIS Unpublish an existing MOF configuration from a DSC Pull Server. .DESCRIPTION The Unpublish-DSCPullServerConfiguration cmdlet uses the Invoke-RestMethod to remove a MOF configuration from the DSC Pull Server. The DSC Pull Server Web API must be deployed on the target DSC Pull Serve...
claudiospizzi/DSCPullServerWeb
Modules/DSCPullServerWeb/Functions/Unpublish-DSCPullServerConfiguration.ps1
PowerShell
mit
2,501
<# .SYNOPSIS Creates device collections in SCCM from a base Active Directory OU. .NOTES FileName: AD_OU.ps1 Author: Gavin Willett Prerequisite: This script requires that the powershell configuration module be loaded. The easiest way to ensure this is to connect via w...
jolegape/SCCM-Scripts
Collections/Device/AD_OU.ps1
PowerShell
mit
2,678
param ( [string]$dialogname = $( Read-Host "Name of new Dialog" ), [string]$project = "YourProject" ) <# The MIT License (MIT) Copyright (c) 2014 Lukas Haselsteiner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwa...
lukhase/qtvsexpress
QtCreate.ps1
PowerShell
mit
10,943
function Remove-vROWorkflow { <# .SYNOPSIS Remove a vRO Workflow .DESCRIPTION Remove a vRO Workflow .PARAMETER Id Workflow ID .PARAMETER Force If the workflow is referenced by some other workflows, or is running, it is considered to be 'in use' and the delete operation will f...
jakkulabs/PowervRO
src/Functions/Public/workflow-service/Remove-vROWorkflow.ps1
PowerShell
mit
1,629
function Test-Online { <# .Synopsis Checks if given names/IP addresses are available. .DESCRIPTION It uses WMI to test connectivity to given names/IP addresses. .EXAMPLE Test-Online 8.8.8.8 Address : 8.8.8.8 ProtocolAddress : 8.8.8.8 Pr...
PPOSHGROUP/PPoShTools
PPoShTools/Public/Utils/Test-Online.ps1
PowerShell
mit
3,673
#------------------------------------------------------------------------------------------------------- # Copyright (C) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. #-------------------------------------------------------------...
arunetm/ChakraCore_0114
Build/scripts/pre_build.ps1
PowerShell
mit
4,948
function Get-PSVersion { <# .SYNOPSIS Maps information from $PSVersionTable to a mapping table to retrieve friendly names for Windows PowerShell build numbers .DESCRIPTION Get-PSVersion is a function to map information from $PSVersionTable to a mapping table in order to retrieve friendly names for Window...
janegilring/PSVersion
Functions/Get-PSVersion.ps1
PowerShell
mit
7,578
$packageName = 'dolphin' $url = 'https://dl.dolphin-emu.org/builds/dolphin-master-5.0-5786-x64.7z' $checksum = '0327d1d294da116a22b41ab41d10112fce82139a6b631d5ca311cb862ff58259' $checksumType = 'sha256' $url64 = $url $checksum64 = $checksum $checksumType64 = $checksumType $toolsDir = "$(Split-Path -parent $MyInvocation...
dtgm/chocolatey-packages
automatic/_output/dolphin/5.0.5786/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
788
$packageName = 'wifichannelmonitor' $url = 'http://www.nirsoft.net/utils/wifichannelmonitor.zip' $checksum = '58a01bbfe00258bfac5881bbd855458fc052fb8d7e029902ac5229523a0244df' $checksumType = 'sha256' $url64 = 'http://www.nirsoft.net/utils/wifichannelmonitor-x64.zip' $checksum64 = '4d9621a92c3fe9bfb50ec8d7382dd3b766759...
dtgm/chocolatey-packages
automatic/_output/wifichannelmonitor/1.42/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,015
$packageName = 'kvrt' $url = 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe' $checksum = 'd98d6db1e4f14987d49f258033ac3ebfb5279158e30168cc1ceca52be5fff584' $checksumType = 'sha256' $toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsPath "kvr...
dtgm/chocolatey-packages
automatic/_output/kvrt/2017.03.04.0148/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
960
function Add-VSElasticsearchDomainLogPublishingOption { <# .SYNOPSIS Adds an AWS::Elasticsearch::Domain.LogPublishingOption resource property to the template. Specifies whether the Amazon ES domain publishes the Elasticsearch application and slow logs to Amazon CloudWatch. You still have to enable the *...
scrthq/Vaporshell
VaporShell/Public/Resource Property Types/Add-VSElasticsearchDomainLogPublishingOption.ps1
PowerShell
apache-2.0
4,239
function Get-DbaDbMail { <# .SYNOPSIS Gets the database mail from SQL Server .DESCRIPTION Gets the database mail from SQL Server .PARAMETER SqlInstance TThe target SQL Server instance or instances. .PARAMETER SqlCredential Login to the target instance using alterna...
wsmelton/dbatools
functions/Get-DbaDbMail.ps1
PowerShell
mit
3,151
#========================================================== # Edit the variable values below to configure how your .nupkg file is packed (i.e. created) and pushed (i.e. uploaded) to the NuGet gallery. # # If you have modified this script: # - if you uninstall the "Create New NuGet Package From Project After Each Build...
CompuMasterGmbH/cammUtils-vTigerNetApi
VTigerApi/_CreateNewNuGetPackage/Config.ps1
PowerShell
apache-2.0
4,449
#!/usr/bin/env powershell # Install Python 3.8 for x64 and x86 in order to build wheels on Windows. # Originally from grpc/tools/internal_ci/helper_scripts/install_python_interpreters.ps1 Set-StrictMode -Version 2 $ErrorActionPreference = 'Stop' trap { $ErrorActionPreference = "Continue" Write-Error $_ ex...
google/protobuf
kokoro/release/python/windows/install_python_interpreters.ps1
PowerShell
bsd-3-clause
3,747