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
[CmdletBinding()] param() # Arrange. . $PSScriptRoot\..\..\..\Tests\lib\Initialize-Test.ps1 Unregister-Mock Get-VstsInput $targetAzurePs = "4.1.0" Register-Mock Get-VstsInput { "InlineScript" } -- -Name ScriptType -Require Register-Mock Get-VstsInput { ",@( 'item 1', 'item 2')" } -- -Name Inline Register-Mock Get-Vsts...
grawcho/vso-agent-tasks
Tasks/AzurePowerShellV2/Tests/ValidateInlineScriptFlow.ps1
PowerShell
mit
817
# ---------------------------------------------------------------------------------- # # 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...
yadavbdev/azure-powershell
src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/AvailabilitySetTests.ps1
PowerShell
apache-2.0
2,020
######################################################################## # # Linux on Hyper-V and Azure Test Code, ver. 1.0.0 # Copyright (c) Microsoft Corporation # # All rights reserved. # Licensed under the Apache License, Version 2.0 (the ""License""); # you may not use this file except in compliance with the Licen...
HuijingHei/lis-test
WS2012R2/lisa/setupscripts/DiffDiskGrowthSetup.ps1
PowerShell
apache-2.0
10,795
function Check-StrongName { [CmdletBinding()] param([Parameter(ValueFromPipeline=$true)][string]$path) $output = & "sn.exe" -vf $path $length = $output.Length - 1 if (-not $output[$length].Contains("is valid")) { Write-Output "$path has an invalid string name." } } function Check-All { ...
rohmano/azure-powershell
tools/CheckStrongNameSignature.ps1
PowerShell
apache-2.0
608
<# .SYNOPSIS This script removes the specified role from the AD Group in the DevTest Lab. .DESCRIPTION This script allows IT admins to remove programmatically the permissions to access lab resources to a specific group associated to a specific role. .PARAMETER labName Mandatory. The name of the lab. .P...
Azure/azure-devtestlab
samples/DevTestLabs/Scripts/UniversityRepo/ScenarioScripts/Remove-GroupPermissionsDevTestLab.ps1
PowerShell
mit
2,506
<# .SYNOPSIS Script to set the "prestaged distribution point settings" option for every package in a folder .DESCRIPTION Script to set the "prestaged distribution point settings" option for every package in a folder .PARAMETER SMSProvider Hostname or FQDN of a SMSProvider in the Hierarchy This parame...
failbringerUD/powershell
SCCM/Sourcebooks/set-PackagePrestageDownloadBehaviour.ps1
PowerShell
mit
3,245
## ADFS: PowerShell Script That Uses The ADFS PowerShell Snapin To Export And Import Relying Party Trust Claim Rules ## ## Resources: http://kingofidentity.wordpress.com/2011/04/23/backing-up-and-restoring-claims-in-adfs-2-0; http://botsikas.blogspot.ch/2012/11/adfs-export-and-import-claim.html Add-PSSnapin "Microsof...
borkit/scriptdump
PowerShell/Working/ADFS/ExportAndImportADFSClaimRules.ps1
PowerShell
mit
1,075
function Start-WaitProcess { <# .SYNOPSIS Starts and waits for a process to exit. .NOTES This is an internal function and shouldn't be called from outside. #> [CmdletBinding(SupportsShouldProcess)] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '')] ...
VirtualEngine/RESONEAutomation
DSCResources/ROACommon/Src/Start-WaitProcess.ps1
PowerShell
mit
2,999
$script:DSCModuleName = 'xSQLServer' $script:DSCResourceName = 'MSFT_xSQLServerRole' #region HEADER # Unit Test Template Version: 1.2.0 $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot) if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Test...
seizste/xSQLServer
Tests/Unit/MSFT_xSQLServerRole.Tests.ps1
PowerShell
mit
50,808
function Import-ParameterConfiguration { <# .SYNOPSIS Loads a metadata file based on the calling command name and combines the values there with the parameter values of the calling function. .DESCRIPTION This function gives command authors and users an easy way to let the def...
PoshCode/Configuration
Source/Public/Import-ParameterConfiguration.ps1
PowerShell
mit
8,320
function sitecollection{ param($complexObject) $complexObject.WorkingUrl }
vigorcrust/SPContentCreator
import/sharepoint/custom/sitecollection.psm1
PowerShell
mit
82
#Requires -modules ActiveDirectory Param($reportpath = "$env:userprofile\Documents") function getEmptyGroups { get-adforest | select -ExpandProperty domains -PipelineVariable domain | foreach { write-host "Looking in Domains: $domain" get-adgroup -LDAPFilter "(&(!(member=*))(!(IsCriticalSystemObjec...
chadmcox/ADPoSh
Groups/createEmptyADGroupReport.ps1
PowerShell
mit
784
## Exchange Online: PowerShell Script to Disable the Creation of Office 365 Groups in Outlook Web Access ## <# Overview: PowerShell script to Get the current setting for Office 365 Groups set in the Outlook Web App mailbox policy, and then disables this to prevent the creation of Office 365 Groups Usage: Only if di...
borkit/scriptdump
PowerShell/Working/o365/ExchangeOnline/ExchangeOnlineDisableOffice365GroupCreation.ps1
PowerShell
mit
1,841
#Get public and private function definition files. $Public = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -ErrorAction SilentlyContinue ) $Class = @( Get-ChildItem -Path $PSScriptRoot\Class\*.ps1 -ErrorAction SilentlyContinue ) #Dot source the files Foreach($import in @($Public + $Class)) { ...
Persistent13/PS.HealthChecks
PS.HealthChecks/PS.HealthChecks.psm1
PowerShell
mit
600
$PackageDefinition = @{ "TemplateName" = "neo4j-community-v3.1-beta"; "PackageName" = "neo4j-community"; "PackageVersion" = "3.1.0-M10-beta"; "DownloadURL" = "http://neo4j.com/artifact.php?name=neo4j-community-3.1.0-M10-windows.zip"; "MD5Checksum" = "d6c799c8b21b1357eba3f014cce1d0ca"; "NeoZipSubdir" = "neo4...
glennsarti/neo4j-community-chocolatey
templates/package-neo4j-community-3.1.0-M10-beta.ps1
PowerShell
mit
489
#################### ## WINDOW SETUP ## #################### Clear-Host $Host.UI.RawUI.WindowTitle = ("TRON:Evo Stage 2: De-Bloat") ################## ## LOG HEADER ## ################## Write-Host "----------------------------" Write-Host " STAGE 2: DE-BLOAT " Write-Host "----------------------------" ...
staticextasy/TronScriptEvo
Stage2.ps1
PowerShell
mit
8,815
#Variables #Helper Functions Function ConvertTo-PTRName { Param( [Parameter(Mandatory=$True,ValueFromPipeline=$True)] [ipaddress]$IPAddress ) BEGIN{} PROCESS{ $Octets = $IPAddress.IPAddressToString.split('.') $name = "$($octets[3]).$($octets[2]).$($octets[1]...
murrahjm/Infoblox-Classy
ModuleParts/Classes/1-HelperFunctionsandVariables.ps1
PowerShell
mit
2,409
$llvmVersion = "10.0.0" Write-Host "Installing LLVM $llvmVersion ..." -ForegroundColor Cyan Write-Host "Downloading..." $exePath = "$env:temp\LLVM-$llvmVersion-win64.exe" (New-Object Net.WebClient).DownloadFile("https://github.com/llvm/llvm-project/releases/download/llvmorg-$llvmVersion/LLVM-$llvmVersion-win64.exe", $e...
open-telemetry/opentelemetry-cpp
tools/install_llvm-win64.ps1
PowerShell
apache-2.0
432
# # Module manifest for module 'PSGet_AzureRM.RedisCache' # # Generated by: Microsoft Corporation # # Generated on: 6/4/2017 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '3.1.0' # Supported PSEditions # CompatiblePSEditi...
atpham256/azure-powershell
src/ResourceManager/RedisCache/AzureRM.RedisCache.psd1
PowerShell
apache-2.0
4,924
############################################################################# ## ## Invoke-ComplexDebuggerScript ## ## From Windows PowerShell Cookbook (O'Reilly) ## by Lee Holmes (http://www.leeholmes.com/guide) ## ############################################################################## <# .SYNOPSIS Demonstra...
canadix/ch.canadix.PS.Scriplets
src/PowerShellCookbookModule/Invoke-ComplexDebuggerScript.ps1
PowerShell
apache-2.0
783
# # Module manifest for module 'CiscoPrime' # # Generated by: PANDER # # Generated on: 2017-05-22 # @{ # Script module or binary module file associated with this manifest. RootModule = 'CiscoPrime.psm1' # Version number of this module. ModuleVersion = '0.1.0' # Supported PSEditions # CompatiblePSEditions = @() # I...
urskog84/CiscoPrime
CiscoPrime.psd1
PowerShell
apache-2.0
3,984
@{ # Version number of this module. ModuleVersion = '1.0.0.0' # ID used to uniquely identify this module GUID = 'f7a98e58-27fd-4fc8-8467-ae28bfc6cf63' # Author of this module Author = 'Microsoft Corporation' # Company or vendor of this module CompanyName = 'Microsoft Corporation' # Copyright statement ...
cyberious/puppetlabs-dsc
lib/puppet_x/dsc_resources/xWordPress/xWordPress.psd1
PowerShell
apache-2.0
970
#TODO(quoct): Replace gcloud command with PowerShell cmdlet once they are available. . $PSScriptRoot\..\GcloudCmdlets.ps1 Install-GcloudCmdlets $project, $zone, $oldActiveConfig, $configName = Set-GCloudConfig $script:clusterDeletionScriptBlock = { param($cmdletPath, $clusterName, $clusterZone) . $cmdletPath...
GoogleCloudPlatform/google-cloud-powershell
Google.PowerShell.IntegrationTests/Container/Container.GkeCluster.Tests.ps1
PowerShell
apache-2.0
24,620
$user = 'ftpusr1' $password = $user $url = 'ftp://192.168.33.12/' $src = 'test.txt' $dest = 'test.txt' $wc = New-Object System.Net.WebClient $wc.Credentials = New-Object System.Net.NetworkCredential($user,$password) $wc.BaseAddress = $url $wc.UploadFile($dest, $src) $wc.Dispose()
nobrooklyn/chanko
chanko-ftp/src/main/powershell/upload.ps1
PowerShell
apache-2.0
304
try { $anySqlServer = (get-itemproperty 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server' -erroraction silentlycontinue).InstalledInstances.Count if ($anySqlServer -eq $null) { Write-Host "SQL Server is not installed and it's required" Return } Write-Host "Installing MS TFS Express" Install-ChocolateyPackag...
versionone/tfsexpress.build
tools/ChocolateyInstall.ps1
PowerShell
bsd-3-clause
1,256
# Localized resources for DSC_NetAdapterRsc ConvertFrom-StringData @' CheckingNetAdapterMessage = Checking if network adapter exists or not. NetAdapterNotFoundMessage = Network adapter not found. NetAdapterTestingStateMessage = Checking if adapter {0} {1} is in desired state. NetAdapterApplyingChangesM...
PowerShell/xNetworking
source/DSCResources/DSC_NetAdapterRsc/en-US/DSC_NetAdapterRsc.strings.psd1
PowerShell
mit
399
properties { $base_directory = Resolve-Path . $src_directory = "$base_directory\source" $output_directory = "$base_directory\build" $dist_directory = "$base_directory\distribution" $sln_file = "$src_directory\IdentityServer3.EntityFramework.sln" $target_config = "Release" $framework_version = "v4.5" $xunit_pat...
faithword/IdentityServer3.EntityFramework
default.ps1
PowerShell
apache-2.0
2,508
param( [switch]$Build, [switch]$Uninstall, [switch]$Install, [ValidateSet("net451", "netstandard1.6")] [string]$Framework = "netstandard1.6", [ValidateSet("Debug", "Release", "PSv3Debug", "PSv3Release")] [string]$Configuration = "Debug" ) if ($Configuration -match "PSv3" -and $Framework ...
daviwil/PSScriptAnalyzer
buildCoreClr.ps1
PowerShell
mit
3,298
[cmdletbinding()] param( [string]$Delete = 'false', [string]$SymbolsPath, [string]$SearchPattern, [string]$SourceFolder, # Support for sourceFolder has been Deprecated. [string]$SymbolsProduct, [string]$SymbolsVersion, [string]$SymbolsMaximumWaitTime, [string]$SymbolsFolder, [string]...
jwendl/vso-agent-tasks
Tasks/PublishSymbols/LegacyPublishSymbols.ps1
PowerShell
mit
5,460
$packageName = '{{PackageName}}' $fileType = 'exe' $silentArgs = '/S' $validExitCodes = @(0) $unfile = "${Env:ProgramFiles}\Texmaker\uninstall.exe" $unfilex86 = "${Env:ProgramFiles(x86)}\Texmaker\uninstall.exe" if (Test-Path "$unfile") {$file = "$unfile"} if (Test-Path "$unfilex86") {$file = "$unfilex86"} if ((Test...
lennartb-/chocolatey-coreteampackages
automatic/texmaker/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
476
# ---------------------------------------------------------------------------------- # # 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...
juvchan/azure-powershell
src/ResourceManager/Websites/Commands.Websites.Test/ScenarioTests/WebAppSlotTests.ps1
PowerShell
apache-2.0
22,512
# Localized messages data LocalizedData { # culture="en-US" ConvertFrom-StringData @' RoleNotFoundError = Please ensure that the PowerShell module for role '{0}' is installed. RetrievingADUserError = Error looking up Active Directory user '{0}' ({0}@{1}). PasswordPa...
cowofevil/puppetlabs-dsc
lib/puppet_x/dsc_resources/xActiveDirectory/DSCResources/MSFT_xADUser/MSFT_xADUser.psm1
PowerShell
apache-2.0
34,199
# ---------------------------------------------------------------------------------- # # 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...
atpham256/azure-powershell
src/ServiceManagement/Common/Commands.ScenarioTest/Resources/ChefExtension/ChefExtensionTests.ps1
PowerShell
apache-2.0
8,876
# Taken from the Stack Exchange Network. Based on http://stackoverflow.com/a/9440226 by Andy Arismendi (https://stackoverflow.com/users/251123/andy-arismendi) # Licensed under cc-by-sa 3.0 https://creativecommons.org/licenses/by-sa/3.0/ Add-Type @" using System; using System.Runtime.InteropServices; using Microsoft.Win...
leipert/xkcd-now-clock
RotateWallpaper.ps1
PowerShell
mit
1,971
New-LabDefinition -Name TFS2015 -DefaultVirtualizationEngine HyperV $PSDefaultParameterValues = @{ 'Add-LabMachineDefinition:OperatingSystem' = 'Windows Server 2016 Datacenter (Desktop Experience)' 'Add-LabMachineDefinition:DomainName' = 'contoso.com' 'Add-LabMachineDefinition:Memory' = 2GB ...
AutomatedLab/AutomatedLab
LabSources/SampleScripts/Scenarios/TFS 2015 Deployment.ps1
PowerShell
mit
1,450
<# Please note that these tests are currently dependent on each other. They must be run in the order given and if one test fails, subsequent tests will also fail. #> $script:dscModuleName = 'xPSDesiredStateConfiguration' $script:dscResourceName = 'DSC_xServiceResource' try { Import-Module -Name DscReso...
PowerShell/xPSDesiredStateConfiguration
tests/Integration/DSC_xServiceResource.EndToEnd.Tests.ps1
PowerShell
mit
19,342
exit; param( [Parameter(Mandatory=$False)] [string[]] $InstallGroups=@() ) # Application details $appFilePath = "bin\Debug\BroadcastTaskQueue.mfappx" $appGuid = "1d8ff5df-c511-45c6-a5ac-1ef973349ab4" # Target vault $vaultName = "Sample Vault" # Connection details $authType = 1 # 1 = MFAuthTypeLoggedOnWin...
M-Files/MFilesSamplesAndLibraries
Samples/VAF/MultiServerMode/BroadcastTaskQueue/install-application.ps1
PowerShell
mit
4,347
function Copy-DbaSysDbUserObject { <# .SYNOPSIS Imports all user objects found in source SQL Server's master, msdb and model databases to the destination. .DESCRIPTION Imports all user objects found in source SQL Server's master, msdb and model databases to the destination. This is useful b...
dsolodow/dbatools
functions/Copy-DbaSysDbUserObject.ps1
PowerShell
mit
22,210
############################################################################# ## ## Microsoft Windows Powershell Scripting ## File: Create-Folder.ps1 ## Purpose: Create a new folder ## Version: 1.1 (26 Jun, 2008]) ## ############################################################################## ...
chenlu0616/WindowsProtocolTestSuites
CommonScripts/Create-Folder.ps1
PowerShell
mit
3,436
function Method { [int]$variable = 1 [string]$variable2 = "myString" }
codeconverter/sdk
src/CodeConverter.Test/Languages/PowerShellToCSharp/PowerShell/AssignVariable.ps1
PowerShell
mit
75
# This script generates settings.json with following format, used by backend code # { # "accounts": [ # { # "name": "storage1", # "key": "key1", # "locationId": "eastasia" # }, # ... # ] # } # Important: these commands only work if you have logged into your Azure accou...
blrchen/AzureSpeed
scripts/contents/CreateSettingsJson.ps1
PowerShell
mit
3,400
# AD Group modification monitor # Copyright 2015 Fred Young # https://github.com/wanion/Monitor-AD-Groups If (-Not(Test-Path .\GroupMembers.csv)) { @() | Export-Csv .\GroupMembers.csv } $Configuration = Get-Content -Raw .\Settings.json | ConvertFrom-Json $GroupMembership = {Import-Csv .\GroupMembers.csv}.Invoke() $Te...
wanion/Monitor-AD-Groups
MonitorADGroups.ps1
PowerShell
mit
2,894
function Set-ADSIUserPassword { <# .SYNOPSIS Function to change a User's password .DESCRIPTION Function to change a User's password .PARAMETER Identity Specifies the Identity .PARAMETER Credential Specifies alternative credential .PARAMETER AccountPassword Specifies the new password. The object needs to b...
evetsleep/AdsiPS
AdsiPS/Public/Set-ADSIUserPassword.ps1
PowerShell
mit
2,110
$packageName = 'firefox-nightly' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $url = 'https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-50.0a1.en-US.win32.installer.exe' $checksum = 'f1dfd615beec9178e31084a8c5423a16a07e1b2a748e5bc112c62b7e46777874' $...
dtgm/chocolatey-packages
automatic/_output/firefox-nightly/50.0.1.2016070113/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,134
$packageName = 'du' $url = 'https://download.sysinternals.com/files/DU.zip' $checksum = 'ddb515db6d8717583d2fdb10e8cbe463351e53968de473edf3506bc2a4d3a066' $checksumType = 'sha256' $url64 = "$url" $checksum64 = "$checksum" $checksumType64 = "checksumType" $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Defini...
dtgm/chocolatey-packages
automatic/_output/du/1.60/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
773
Write-Output "TEST SCRIPT: $($Args[0])" exit 0
puppetlabs/pxp-agent
acceptance/files/environments/bolt/win_script.ps1
PowerShell
apache-2.0
47
#Requires -Version 3.0 #Requires -Module AzureRM.Resources #Requires -Module Azure.Storage Param( [string] $ResourceGroupLocation = 'West Europe', [string] $ResourceGroupName = 'AzureBootcamp', [switch] $UploadArtifacts, [string] $StorageAccountName, [string] $StorageAccountResourceGroupName, ...
manuelmeyer1/AzureDeveloperBootcamp
Demos/IaaS/Site2PointNetwork/ARM/Site2PointNetwork/Scripts/Deploy-AzureResourceGroup.ps1
PowerShell
mit
5,721
<# .EXAMPLE This example will remove an Availability Group listener with the same name as the cluster role VCO. #> Configuration Example { param ( [Parameter(Mandatory = $true)] [System.Management.Automation.PSCredential] [System.Management.Automation.Credential()] $SysAdmin...
Blankf/xSQLServer
Examples/Resources/xSQLServerAvailabilityGroupListener/4-RemoveAvailabilityGroupListenerWithDifferentNameAsVCO.ps1
PowerShell
mit
770
$URL = http://www.hdfgroup.org/ftp/HDF5/current/bin/windows/hdf5-1.8.15-patch1-win32-vs2013-shared.zip function main () { $basedir = $pwd.Path + "\" $filename = "hdf5.zip" $filepath = $basedir + $filename Write-Host "Downloading" $filename "from" $URL $retry_attempts = 3 for($i=0; $i -lt $retry...
psi29a/worldengine
appveyor/install_hdf5.ps1
PowerShell
mit
785
<# This script tests that Roslyn artifacts are rebuildable--i.e. that the source code and resources can be identified #> [CmdletBinding(PositionalBinding=$false)] param( [string]$configuration = "Debug", [switch]$ci = $false, [switch]$useGlobalNuGetCache = $true, [switch]$noBuild = $false, [switch]$help) ...
physhi/roslyn
eng/test-rebuild.ps1
PowerShell
apache-2.0
3,135
#region Variables definition # Variables definition #Replace the below string with a metric value name such as 'TimeStamp' to update TimeGenerated to be that metric named instead of ingestion time $Timestampfield = "Timestamp" #Update customer Id to your Operational Insights workspace ID $customerID = Get-Automatio...
neudesic/azure-quickstart-templates
demos/oms-azure-storage-analytics-solution/scripts/AzureSAMetricsEnabler-MS-Mgmt-SA.ps1
PowerShell
mit
19,353
Set-StrictMode -Version 2 Import-Module (Join-Path $PSScriptRoot "Common") -Force $config = [PSCustomObject]@{ Name = "EthereumWallet"; Uri = "https://github.com/ethereum/mist/releases/download/v0.8.9/Ethereum-Wallet-win64-0-8-9.zip"; Version = "0.8.9" } $directory = $config | Invoke-Unpack $WaletExe = ...
EthereumEx/blockchain-060
00.Setup/windows/LaunchEthereumWallet.ps1
PowerShell
mit
422
param([int]$clean=0,[int]$cmakeclean=0,[string]$library="",[string]$halide="halide_build",[string]$llvm_folder="llvm") # Set the root dir of the Halide checkout $LIBRARIES = $library $ROOT = "$library\$halide" $LLVM = "$library\$llvm_folder" if ( $library -eq "" ){ echo Please give the library folder location exit ...
CharithYMendis/Helium
utility/halide_64_build.ps1
PowerShell
mit
3,422
function Test-DbaDbRecoveryModel { <# .SYNOPSIS Find if database is really a specific recovery model or not. .DESCRIPTION When you switch a database into FULL recovery model, it will behave like a SIMPLE recovery model until a full backup is taken in order to begin a log backup chain. ...
kozloski/dbatools
functions/Test-DbaDbRecoveryModel.ps1
PowerShell
mit
6,892
Clear-host # Ïðèñâàèâàíèå ïåðåìåííûõ $Software = "Adobe Flash Player Firefox NPAPI" $DistribPath = '.\' $FileName = 'install_flash_player.exe' # Ïîëó÷àåì ññûëêó íà ñêà÷èâàíèå. Îíà âñåãäà îäèíàêîâà. $DownLoadURL = "https://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_fla...
denura/PowerShell
install_flash_player.ps1
PowerShell
mit
2,396
@{ ModuleVersion = '3.0.0.0' FormatsToProcess = 'Pscx.DirectoryServices.Format.ps1xml' TypesToProcess = 'Pscx.DirectoryServices.Type.ps1xml' }
toddhgardner/dotfiles
powershell/module/Pscx/Modules/DirectoryServices/Pscx.DirectoryServices.psd1
PowerShell
mit
168
Function Start-AzureADConnect { <# .SYNOPSIS Start an Azure Active Directory Connect synchronization .DESCRIPTION Checks the current status of Azure AD Connect, if currently running will write a warning. If no sync is currently running a new sync cycle is requested. The event log is queried for sync completion and if a...
acampbell1327/PowerShell
Modules/Office365Tools/Public/Start-AzureADConnect.ps1
PowerShell
mit
5,557
# Copyright (c) Microsoft Corporation. All rights reserved. # See LICENSE.txt in the project root for license information. <# .SYNOPSIS Contains two functions. Add-VMImage: Uploads a VM Image to your Azure Stack and creates a Marketplace item for it. Remove-VMImage: Removes an existing VM Image from yo...
Pyromaniaxxx/AzureStack-Tools
ComputeAdmin/AzureStack.ComputeAdmin.psm1
PowerShell
mit
19,161
function Remove-JiraSession { # .ExternalHelp ..\JiraPS-help.xml [CmdletBinding()] [System.Diagnostics.CodeAnalysis.SuppressMessage('PSUseShouldProcessForStateChangingFunctions', '')] param( [Parameter( ValueFromPipeline )] [Object] $Session ) begin { Write-Verbo...
AtlassianPS/JiraPS
JiraPS/Public/Remove-JiraSession.ps1
PowerShell
mit
841
$servicePath = "$PSScriptRoot\..\src\Services\NT.CatalogService.Api" sl $servicePath # & "C:\Program Files\dotnet\dotnet.exe" restore # & "C:\Program Files\dotnet\dotnet.exe" build & "C:\Program Files\dotnet\dotnet.exe" run $HOST.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | OUT-NULL $HOST.UI.RawUI.Flushinputbuffer()
thangchung/ShoppingCartDemo
builds/start_catalog_service.ps1
PowerShell
mit
318
# Case-correct command parameter names & { # array that will hold all commands that are going to be fixed: $commands = @{} # get all functions and cmdlets (these command types use Powershell-style parameters): foreach($command in (Get-Command -CommandType Function, Cmdlet)) { $name = $c...
nylyst/Powershell
Modules/ISESteroids/Fixer/Command/CommandParameter/CommandParameter.ps1
PowerShell
mit
14,270
<# .SYNOPSIS Executes a powershell script in VM. .DESCRIPTION Executes a powershell script in VM. .PARAMETER Code Script block to execute. .PARAMETER Arguments Hashtable of arguments to pass to script. These will be serialised and copied into the virtual environment. .PARAMETER Username Guest OS username to run t...
wiltaylor/VMLib
Src/PSVMLib/Invoke-PowershellInVM.ps1
PowerShell
mit
1,240
# Find a better way of passing the connection around param ( [Parameter(Mandatory=$True)] [DD.CBU.Compute.Powershell.Tests.TestContext] $TestContext ) Describe "Get-CaaSServer" { It "List Server Api Should have no filter" { $testConnection = New-CaaSTestConnection -TestContext $TestContext $servers = ...
riveryc/DimensionData.ComputeClient
PowershellModule/CloudCompute.Powershell.Tests/ServerTests/GetServer.Tests.ps1
PowerShell
mit
2,206
$ErrorActionPreference = 'Stop' $toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $filePath32 = "$toolsPath\PortableGit-2.11.1-32-bit.7z.exe" $filePath64 = "$toolsPath\PortableGit-2.11.1-64-bit.7z.exe" $filePath = if ((Get-ProcessorBits 64) -and $env:chocolateyForceX86 -ne 'true') { ...
lennartb-/chocolatey-coreteampackages
automatic/git.portable/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
954
function Get-Region { <# .SYNOPSIS Retrieves one or more entities from the Region entity set. .DESCRIPTION Retrieves one or more entities from the Region entity set. You can retrieve one ore more entities from the entity set by specifying Id, Name or other properties. .INPUTS The Cmdlet can either return all avai...
dfch/biz.dfch.PS.Cumulus.Utilities
Get-Region.ps1
PowerShell
apache-2.0
17,942
<# Copyright 2016 ASOS.com Limited 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, softwar...
ASOS/OctopusStepTemplateCi
OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Reset-OctopusApiCache.ps1
PowerShell
apache-2.0
739
$packageName = 'firefox-nightly' $softwareVersion = '55.0.1.2017053111-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/55.0.1.2017053111/tools/chocolateyUninstall.ps1
PowerShell
apache-2.0
817
<# .SYNOPSIS This script removes any software registered via Windows Installer from a computer. .NOTES Created on: December 9, 2014 Created by: Tim Troxler Filename: uninstall.ps1 Requirements: Assumes a locally cached copy of the MSI file exists and executionn is on a 64-bit Windows platform....
troxology/msiAutomation
uninstall.ps1
PowerShell
apache-2.0
1,673
properties { $base_dir = resolve-path . $lib_dir = "$base_dir\SharedLibs" $build_dir = "$base_dir\build" $buildartifacts_dir = "$build_dir\" $sln_file = "$base_dir\Rhino.Security-vs2008.sln" $version = "1.3.0.0" $humanReadableversion = "1.3" $tools_dir = "$base_dir\Tools" $release_dir = ...
ayende/rhino-security
default.ps1
PowerShell
bsd-3-clause
3,281
@{ # Version number of this module. ModuleVersion = '1.5.0.0' # ID used to uniquely identify this module GUID = 'B5004952-489E-43EA-999C-F16A25355B89' # Author of this module Author = 'Microsoft Corporation' # Company or vendor of this module CompanyName = 'Microsoft Corporation' # Copyright statement for this modu...
JMvanderDuim/PhoneManager
devtestlabdemo/devtestlabdemo/DSC/xComputerManagement/1.5.0.0/xComputerManagement.psd1
PowerShell
mit
2,150
$packageName = 'spybot' $installerType = 'EXE' $url = 'http://spybotupdate.biz/files/spybot-2.2.exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx Install-C...
dtgm/chocolatey-packages
automatic/_output/spybot/2.2.25/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
424
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. #USAGE: powershell %CD%\test_pyc.ps1 ..\..\Public\Tools\Scripts #--------------------------------------------...
slozier/ironpython2
Tests/pyc/test_pyc.ps1
PowerShell
apache-2.0
6,573
$packageName = 'mediainfo-cli' $url = 'http://mediaarea.net/download/binary/mediainfo/0.7.79/MediaInfo_CLI_0.7.79_Windows_i386.zip' $checksum = '55672c29fea2100df7a76300a776988185445cc1' $checksumType = 'sha1' $url64 = 'http://mediaarea.net/download/binary/mediainfo/0.7.79/MediaInfo_CLI_0.7.79_Windows_x64.zip' $checksu...
dtgm/chocolatey-packages
automatic/_output/mediainfo-cli/0.7.79/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
881
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Describe 'Clipboard cmdlet tests' -Tag CI { BeforeAll { $xclip = Get-Command xclip -CommandType Application -ErrorAction Ignore } Context 'Text' { BeforeAll { $defaultParamValues = $PSDefaultParameterValue...
JamesWTruher/PowerShell-1
test/powershell/Modules/Microsoft.PowerShell.Management/Clipboard.Tests.ps1
PowerShell
mit
2,788
# # Executes clang-format on all files in the specified directory (recursively if specified). # param( [string]$Directory = "", [string]$File = "", [switch]$Recursive = $false, [switch]$DryRun = $false ) ."$PSScriptRoot/common.ps1" # Run clang-format try { $repoRootDirectory = Get-RepoRoot ...
nathpete-msft/WinObjC
scripts/git/clang-format.ps1
PowerShell
mit
2,010
. (Join-Path $EngCommonScriptsDir SemVer.ps1) $SDIST_PACKAGE_REGEX = "^(?<package>.*)\-(?<versionstring>$([AzureEngSemanticVersion]::SEMVER_REGEX))" # Posts a github release for each item of the pkgList variable. SilentlyContinue function CreateReleases($pkgList, $releaseApiUrl, $releaseSha) { foreach ($pkgInfo in ...
ayeletshpigelman/azure-sdk-for-net
eng/common/scripts/artifact-metadata-parsing.ps1
PowerShell
mit
7,002
# Copyright (c) 2014-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. param( [string] ...
trizt/osquery
tools/manage-osqueryd.ps1
PowerShell
bsd-3-clause
4,613
param( [Parameter(Mandatory=$true)][int] $BuildId, [Parameter(Mandatory=$true)][int] $ChannelId, [Parameter(Mandatory=$true)][string] $BarToken, [string] $MaestroEndpoint = "https://maestro-prod.westus2.cloudapp.azure.com", [string] $ApiVersion = "2019-01-16" ) $ErrorActionPreference = "Stop" Set-StrictMode ...
terrajobst/platform-compat
eng/common/post-build/promote-build.ps1
PowerShell
mit
1,855
# Modified "snapshot" from PSHIrwin of https://pshirwin.wordpress.com/ [cmdletbinding()] Param() Import-Module ActiveDirectory -Verbose:$false #HashTable to save ADReport $ADSnapshot = @{} #region Main $ADSnapshot.RootDSE = $(Get-ADRootDSE) $ADSnapshot.ForestInformation = $(Get-ADForest) $ADSnapshot.DomainInformati...
doesitscript/PSPesterDashboardKickstarter
OperationalBaselines/DC.Snapshot.ps1
PowerShell
mit
902
$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...
dsolodow/dbatools
tests/Copy-DbaEndpoint.Tests.ps1
PowerShell
mit
1,050
<# .SYNOPSIS An AutomatedLab script for Configuration Manager 1902 with support for installing updates. .DESCRIPTION An AutomatedLab script for Configuration Manager 1902 with support for installing updates. .PARAMETER LabName The name of the AutomatedLab lab created by this script. .PARAMETER VMPath Th...
AutomatedLab/AutomatedLab
LabSources/SampleScripts/Scenarios/CM-1902.ps1
PowerShell
mit
21,041
Set-Variable -Name PSProfilePath -Value $PSCommandPath -Option Constant $PSDefaultParameterValues['Select-String:AllMatches'] = $true $PSDefaultParameterValues['Out-String:Stream'] = $true # https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH $env:TERM = 'xterm' $fakeAdministratorPass...
copdips/PSScripts
Profile/Profile.ps1
PowerShell
mit
23,704
function Start-Build () { param ( [Parameter(Mandatory=$true)] [string]$ImageName, [Parameter(Mandatory=$true)] [string]$ImageTag ) $workingDir = Get-Location $app = "Instancely" # Cleanup Get-ChildItem -Path ".\$app\bin" -Recurse | Remove-Item -Recurse -Force ...
cvandal/instancely
build.ps1
PowerShell
mit
1,621
param($installPath, $toolsPath, $package, $project) if (Get-Module | ?{ $_.Name -eq 'EntityFramework' }) { Remove-Module EntityFramework } Import-Module (Join-Path $toolsPath EntityFramework.psd1) # SIG # Begin signature block # MIIdkgYJKoZIhvcNAQcCoIIdgzCCHX8CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGC...
MicrosoftLearning/20486-DevelopingASPNETMVCWebApplications
Allfiles/20486C/Mod12/LabFiles/PhotoSharingApplication_12_end/packages/EntityFramework.6.1.3/tools/init.ps1
PowerShell
mit
10,838
# install.ps1 param($rootPath, $toolsPath, $package, $project) $DTE.ItemOperations.Navigate("http://maartenba.github.io/MvcSiteMapProvider/getting-started.html", $DTE.vsNavigateOptions.vsNavigateOptionsNewWindow) # SIG # Begin signature block # MIIdiQYJKoZIhvcNAQcCoIIdejCCHXYCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQ...
MicrosoftLearning/20486-DevelopingASPNETMVCWebApplications
Allfiles/20486C/Mod09/LabFiles/PhotoSharingApplication_09_end/packages/MvcSiteMapProvider.MVC5.4.6.22/tools/install.ps1
PowerShell
mit
10,835
$packageName = 'jcpicker' $url = 'http://annystudio.com/software/colorpicker/jcpicker.zip' $checksum = 'f420769563e3585bc554903357652eafe8de1a6e43777b17d4d6fa1c723f6734' $checksumType = 'sha256' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $installFile = Join-Path $toolsDir "$($packageName)" ...
dtgm/chocolatey-packages
automatic/_output/jcpicker/5.1/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
702
$packageName = 'dolphin' $url = 'http://dl.dolphin-emu.org/builds/dolphin-master-4.0-9177-x64.7z' $checksum = '61c2a7a09fe95bfd3f182108d5fcc864df09f007' $checksumType = 'sha1' $url64 = $url $checksum64 = $checksum $checksumType64 = $checksumType $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" In...
dtgm/chocolatey-packages
automatic/_output/dolphin/4.0.9177/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
761
$basepath='e:\trojan5\LogFiles\xxxx\' $iisbase='e:\trojan5\LogFiles\W3SVC1' $stream = [System.IO.StreamWriter] "e:\temp\inputs.conf" function myaccount { $folderlist=ls $basepath foreach ($f in $folderlist) { $stream.WriteLine("[monitor://" + $basepath + $f + "]") $stream.WriteLine("disabled = false") $st...
romeroj1/potential-batman
scripts/ps/generateinputs_sc3app__splunk.ps1
PowerShell
apache-2.0
639
$packageName = 'handbrake.install' $installerType = 'exe' $silentArgs = '/S' $url = 'https://handbrake.fr/rotation.php?file=HandBrake-1.0.3-i686-Win_GUI.exe' $checksum = '16f9e7b80b7d40c8908b3c0ce08b2b767988f286' $checksumType = 'sha1' $url64 = 'https://handbrake.fr/rotation.php?file=HandBrake-1.0.3-x86_64-Win_GUI.exe...
dtgm/chocolatey-packages
automatic/_output/handbrake.install/1.0.3/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
963
# Copyright 2020 The IREE Authors # # Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # Test me with something like: # # $Env:GITHUB_ENV="ghenv.txt" # $Env:GITHUB_PATH="ghpath.txt" # ...
google/iree
build_tools/github_actions/configure_dev_environment.ps1
PowerShell
apache-2.0
3,184
InModuleScope Watchmen { describe 'Test' { Mock -CommandName Assert-InWatchmen -MockWith {} it 'Creates a [Test] entry in the Watchmen variable' { $script:watchmen = @{ ThisTest = @{ Test = $null } } Test 'se...
devblackops/watchmen
Tests/Public/Test.tests.ps1
PowerShell
apache-2.0
412
function New-VSConfigAggregationAuthorization { <# .SYNOPSIS Adds an AWS::Config::AggregationAuthorization resource to the template. An object that represents the authorizations granted to aggregator accounts and regions. .DESCRIPTION Adds an AWS::Config::AggregationAuthorization resource t...
scrthq/Vaporshell
VaporShell/Public/Resource Types/New-VSConfigAggregationAuthorization.ps1
PowerShell
apache-2.0
12,832
Function Get-UnityioLimitParameters { <# .SYNOPSIS IO limit settings for the storage resource. This resource type is embedded in the lunParameter and snap resource types. .DESCRIPTION IO limit settings for the storage resource. This resource type is embedded in the lunParameter and snap res...
equelin/Unity-Powershell
Tools/Functions/Result_UnityVSA_41/Get-UnityioLimitParameters.ps1
PowerShell
mit
1,976
@{ # Version number of this module. ModuleVersion = '1.1.0.0' # ID used to uniquely identify this module GUID = '244cd1ea-c609-45b9-9538-a260c0930769' # Author of this module Author = 'Microsoft Corporation' # Company or vendor of this module CompanyName = 'Microsoft Corporation' # Copyright statement for this modu...
PowerShell/xRemoteDesktopAdmin
xRemoteDesktopAdmin.psd1
PowerShell
mit
1,742
Import-Module ActiveDirectory Function SetUserPassword($Users, $ChangePasswordAtLogon, $PasswordNeverExpires, $CannotChangePassword) { $Objs = @() ForEach($User in $Users){ If(dsquery user -samid $User.sAMAccountName) { $SecurePassword = $User.password | ConvertTo-SecureString -AsPlainText -Force #Set-ADAc...
mryoho/SIS-AD_Sync
ResetUserPasswordsFromCSV.ps1
PowerShell
mit
3,074
<# 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/various/BuildDeploy/deploy/Validate-Website.ps1
PowerShell
mit
1,579
function Get-DbaFileStreamFolder { <# .SYNOPSIS Returns basic information about Filestream folders from a Sql Instance .DESCRIPTION Given a SQL Instance, and an optional list of databases returns the FileStream containing folders on that Instance. Without the Database parameter, all dbs wi...
alevyinroc/dbatools
internal/functions/Get-DbaFileStreamFolder.ps1
PowerShell
mit
2,890
# In StrictMode PowerShell generates a terminating error when the content of # an expression or script-block violates basic best-practice coding rules. Set-StrictMode -Version latest # Exit immediately if a command exits with a non-zero status. $ErrorActionPreference = "Stop" # Azure Functions - https://azure.microso...
RodolfoDiaz/codelibrary
azure/powershell/functions/Create-Function.ps1
PowerShell
mit
9,132
<# .SYNOPSIS Automated integration test for MSFT_xExchReceiveConnector DSC Resource. This test module requires use of credentials. The first run through of the tests will prompt for credentials from the logged on user. #> #region HEADER [System.String] $script:moduleRoot = Split-Path -Paren...
mhendric/xExchange
tests/Integration/MSFT_xExchReceiveConnector.Integration.Tests.ps1
PowerShell
mit
10,692
Import-Module "C:\ProgramData\chocolatey\chocolateyinstall\helpers\chocolateyInstaller.psm1" $url="https://raw2.github.com/allensanborn/1001monkeysBoxstarter/master/webpicmdfix/WebpiCmd.bat" $file="C:\ProgramData\chocolatey\bin\WebpiCmd.bat" Get-ChocolateyWebFile "webpicmdfix" "$file" "$url" #Fix stupid whitespace issu...
allensanborn/1001monkeysBoxstarter
webpicmdfix/Install-WebpicmdForChocolatey.ps1
PowerShell
mit
619