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
$resourceGroupName = 'ydsp16adfs' $azurecontext = $null $azurecontext = Get-AzureRmContext -ErrorAction SilentlyContinue if ($azurecontext -eq $null -or $azurecontext.Account -eq $null -or $azurecontext.Subscription -eq $null){ Login-AzureRmAccount $azurecontext = Get-AzureRmContext -ErrorAction SilentlyConti...
Yvand/AzureRM-Templates
Templates/SharePoint-ADFS/Scripts/StartAndStop-VMs.ps1
PowerShell
apache-2.0
1,208
# # Copyright [2011] [Tier 3 Inc.] # http://www.apache.org/licenses/LICENSE-2.0 # # When run, will delete all Application Pools and Web Sites on the local machine. # $ErrorActionPreference = 'Stop' Set-StrictMode -Version 'Latest' -ErrorAction 'Stop' -Verbose $iisVersion = Get-ItemProperty "HKLM:\software\microsoft\I...
jayakumark/ironfoundry
tools/iis_cleanup.ps1
PowerShell
apache-2.0
840
copy ..\samples\ControlCatalog.NetCore\bin\Release\netcoreapp3.1\Avalonia**.dll ~\.nuget\packages\avalonia\$args\lib\netcoreapp2.0\ copy ..\samples\ControlCatalog.NetCore\bin\Release\netcoreapp3.1\Avalonia**.dll ~\.nuget\packages\avalonia\$args\lib\netstandard2.0\ copy ..\samples\ControlCatalog.NetCore\bin\Release\netc...
AvaloniaUI/Avalonia
scripts/ReplaceNugetCacheRelease.ps1
PowerShell
mit
694
<# .EXAMPLE This example shows how to create a SharePoint sites content source #> Configuration Example { param( [Parameter(Mandatory = $true)] [PSCredential] $SetupAccount ) Import-DscResource -ModuleName SharePointDsc node localhost { ...
mrpullen/xSharePoint
Modules/SharePointDsc/Examples/Resources/SPSearchContentSource/1-SharePointSource.ps1
PowerShell
mit
1,454
function Get-DbaUserLevelPermission { <# .SYNOPSIS Displays detailed permissions information for the server and database roles and securables. .DESCRIPTION This command will display all server logins, server level securable, database logins and database securables. DISA STIG implem...
SirCaptainMitch/dbatools
functions/Get-DbaUserLevelPermission.ps1
PowerShell
mit
13,783
$verb = "Pin To Taskbar" $shell = new-object -Com "Shell.Application" $folder = $shell.Namespace("$(${env:ProgramFiles(x86)})\cmder") $item = $folder.Parsename("cmder.exe") $itemVerb = $item.Verbs() | ? {$_.Name.Replace("&","") -eq $verb} $itemVerb.DoIt()
timbodv/snap
packages/cmder/pin.ps1
PowerShell
mit
259
function Remove-AGMApplication ([Parameter(Mandatory=$true)][string]$appid) { <# .SYNOPSIS Deletes a nominated application .EXAMPLE Remove-AGMApplication You will be prompted for an Application ID .EXAMPLE Remove-AGMApplication 2133445 Deletes Application ID 2133445 .DESCRIPT...
Actifio/AGMPowerCLI
AGMPowerCLIRemoveFunctions.ps1
PowerShell
mit
9,853
Add-PSSnapin Microsoft.SharePoint.PowerShell Set-location $home $siteUrl = "http://jkxfs8waagaa04t/sites/team" $termStoreName = "Managed Metadata Service" $termgroupName = "People" $termSetName = "Department" $termName = "DEV" $site = Get-spsite $siteUrl $session = New-Object Microsoft.SharePoint.Taxonomy.TaxonomySe...
justin0522/PowerShell
SharePoint/GetTermStoreInfo.ps1
PowerShell
mit
815
tsc.cmd -p "./client/source/"
hoppfull/Learning-Node
Basics/ex06 - ts modules/compile.ps1
PowerShell
mit
30
Import-Module PSScriptAnalyzer $violationMessage = "The cmdlet 'Comment' does not have a help comment." $violationName = "PSProvideCommentHelp" $directory = Split-Path -Parent $MyInvocation.MyCommand.Path $violations = Invoke-ScriptAnalyzer $directory\BadCmdlet.ps1 | Where-Object {$_.RuleName -eq $violationName} if (...
rkeithhill/PSScriptAnalyzer
Tests/Rules/ProvideCommentHelp.tests.ps1
PowerShell
mit
1,328
[CmdletBinding()] param ( [string] $SiteA = 'ctxddc01', [string] $SiteB = 'sltctxddc01', [string] $DeliveryGroup = 'XD*P10SLHS*' ) Add-PSSnapin -Name Citrix.Broker.Admin.V2 -ErrorAction 'Stop' # there's definitey a better way to do this, this is just super quick and dirty $gbsParams = @{ ...
andysimmons/vdi-utils
Find-MultiSiteUser.ps1
PowerShell
mit
906
param($installPath, $toolsPath, $package, $project) Write-Host Write-Host "Please make sure that target platform is set to x86, x64 or ARM." Write-Host "Add reference to SDK:" Write-Host "[Windows Phone Silverlight]: 'SQLite for Windows Phone'" Write-Host "[Windows Store Apps]: 'SQLite for Windows Runtime (Windows 8.1...
tomatell/SQLite4Unity3d
SQLite4Unity3d/packages/SQLitePortable.3.8.8.1/tools/install.ps1
PowerShell
mit
523
# # Copyright (c) Microsoft Corporation. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR AN...
PowerShell/PackageManagementProviderResource
Test/NugetPackage/NugetPackage.Test.Tests.ps1
PowerShell
mit
5,230
 if ($env:APPVEYOR_REPO_TAG -ne "true") { "Build is not running from a tag. Not updating version." Exit } "Tag Name: $env:APPVEYOR_REPO_TAG_NAME" $version = $env:APPVEYOR_REPO_TAG_NAME if ($version -notmatch "^v\d+\.\d+(\.\d+)*(|-.*)$") { "Tag name doesnt match release pattern. Not updating version." ...
GrognardsFromHell/TemplePlus
UpdateVersion.ps1
PowerShell
mit
610
$SiteURL = "https://echoent.sharepoint.com/sites/Testprojectdelivery" $SiteCollection = get-SPSite $SiteURL Enable-PFeature "PublishingSite" -Url $siteCollection.Url -force Enable-SPFeature "PublishingWeb" -Url $siteCollection.Url -force
brian-mac/ZPM
TSEGSharePointSCFeatures.ps1
PowerShell
mit
240
$packageName = 'freeplane' $installerType = 'exe' # hack to overcome limitations of Ketarin/chocopkgup when using repos like sf.net $url = 'http://sourceforge.net/projects/freeplane/files/freeplane%20stable/archive/1.5.20/Freeplane-Setup-1.5.20.exe/download' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-...
dtgm/chocolatey-packages
automatic/_output/freeplane/1.5.20/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
725
#Requires -Version 3.0 Param( [string] [Parameter(Mandatory=$true)] $ResourceGroupLocation, [string] $ResourceGroupName = 'BasicFloatingIp', [switch] $UploadArtifacts, [string] $StorageAccountName, [string] $StorageAccountResourceGroupName, [string] $StorageContainerName = $ResourceGroupName.ToLowerInv...
cicorias/Cluster-Azure-Configurations
src/BasicFloatingIp/BasicFloatingIp/Scripts/Deploy-AzureResourceGroup.ps1
PowerShell
apache-2.0
5,738
<# .SYNOPSIS Imports the 51 Degrees Module into CMS .EXAMPLE & .\cms-import.ps1 -cmsUrl "http://localhost:81" -licenseKey YOUR_51_DEGREES_LICENSE_KEY #> [CmdletBinding( SupportsShouldProcess=$true, PositionalBinding=$false)] param ( [ValidateSet("module-and-permissions", "module-only", "permissions-only")] ...
sdl/dxa-modules
installation/51Degrees/scripts/cms-import.ps1
PowerShell
apache-2.0
5,455
#------------------------------------------------------------------------ # Source File Information (DO NOT MODIFY) # Source ID: 5db30cb0-3e6d-4e2e-b599-b6f55916316a # Source File: OutputTester5.psf #------------------------------------------------------------------------ #region File Recovery Data (DO NOT MODIFY) <#R...
juneb/ThinkingInEvents
OutputTester5.Export.ps1
PowerShell
apache-2.0
10,687
function Test-AzureSqlDatabaseImportPerformance { [CmdletBinding()] param( [parameter(Mandatory=$true)][string]$DatabaseName, [parameter(Mandatory=$true)][string]$ServerAdminUsername, [parameter(Mandatory=$true)][string]$ServerAdminPassword, [parameter(Mandatory=$true)][string]$S...
Readify/azure-sql-performance
AzureSqlPerformance.psm1
PowerShell
apache-2.0
3,970
.nuget\NuGet.exe pack .\TerminalBase\TerminalBase.csproj -IncludeReferencedProjects -Prop Configuration=Release .nuget\NuGet.exe pack .\Data\Data.csproj -IncludeReferencedProjects -Prop Configuration=Release .nuget\NuGet.exe pack .\Infrastructure\Infrastructure.csproj -IncludeReferencedProjects -Prop Configuration=Rele...
Fr8org/Fr8Core.NET
PackNugetPackages.ps1
PowerShell
apache-2.0
676
$packageName = 'firefox-nightly' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $url = 'https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-57.0a1.en-US.win32.installer.exe' $checksum = 'd4c7d863b72319b7f42b1591452cfc0aae79e16b38b63e874ba69ee9d098e058' $c...
dtgm/chocolatey-packages
automatic/_output/firefox-nightly/57.0.1.2017081013/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,131
function Get-MigrationFile { <# .SYNOPSIS Gets the migration script files. #> [CmdletBinding(DefaultParameterSetName='External')] [OutputType([IO.FileInfo])] param( [Parameter(Mandatory)] # The configuration to use. [Rivet.Configuration.Configuration]$Con...
RivetDB/Rivet
Rivet/Functions/Get-MigrationFile.ps1
PowerShell
apache-2.0
4,312
$packageName = 'cdex' $installerType = 'exe' $silentArgs = '/S' $url = 'http://mirror.cdex.mu/CDex-2.02.exe' $checksum = 'f41fd87de9e58d9e03fb7cf78a7f980b4e3057b5b1839f938627415e4f41814b' $checksumType = 'sha256' $validExitCodes = @(0) $scriptPath = Split-Path -parent $MyInvocation.MyCommand.Definition $ahkFile = "$sc...
dtgm/chocolatey-packages
automatic/_output/cdex/2.02/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
761
$packageName = 'manictime.portable' $url = 'https://cdn.manictime.com/setup/v3_8_7_0/ManicTimeUsb.zip' $checksum = '01e644dddafff3019aa21da3ee2dc2ef8f37b6b58d89b0e46031ecc686baf180' $checksumType = 'sha256' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" Install-ChocolateyZipPackage -PackageName...
dtgm/chocolatey-packages
automatic/_output/manictime.portable/3.8.7/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
550
#requires -Version 2.0 #region Info <# Support: https://github.com/jhochwald/NETX/issues #> #endregion Info #region License <# Copyright (c) 2016, Quality Software Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fol...
jhochwald/NETX
Profile/functions/Get-NetStat.ps1
PowerShell
bsd-3-clause
15,127
$BIN_DIR = Split-Path -Parent $MyInvocation.MyCommand.Definition python3 ${BIN_DIR}\git-relocate-projects $args
wybosys/wybosys
bin/git-relocate-projects.ps1
PowerShell
bsd-3-clause
116
Import-LocalizedData LocalizedData -FileName Microsoft.PowerShell.ODataUtilsStrings.psd1 # Add .NET classes used by the module Add-Type -TypeDefinition $global:BaseClassDefinitions ######################################################### # Generates PowerShell module containing client side # proxy cmdlets...
bingbing8/PowerShell
src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataAdapter.ps1
PowerShell
mit
85,555
# Copyright 2019 Google Inc. All Rights Reserved. # # 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 la...
adjackura/compute-image-tools
cli_tools_tests/e2e/gce_ovf_import/scripts/ovf_import_test_windows_two_disks.ps1
PowerShell
apache-2.0
4,117
$AppPackagePath = $Args[0] $shell = new-object -com shell.application $item = get-item $AppPackagePath $zipFilePath = $item.FullName + ".zip" $directory = $item.Directory.FullName Copy-Item $item $zipFilePath if ($item.extension -eq ".appxbundle") { $appxName = $item.Name -replace ".appxbundle", ".appx" $appxName ...
jhaynie/titanium_mobile
node_modules/windowslib/bin/wp_get_appx_metadata.ps1
PowerShell
apache-2.0
1,185
Start-AutoRestCodeGeneration -ResourceProvider "billing/resource-manager" -AutoRestVersion "v2"
ayeletshpigelman/azure-sdk-for-net
sdk/billing/Microsoft.Azure.Management.Billing/src/generate.ps1
PowerShell
mit
96
docker stop dev-cow docker rm dev-cow docker rmi dev-cow docker build -t dev-cow ./docker $direct=Get-Location $direct=$direct.Path.Replace('C:\', '/c/').Replace('\', '/') echo $pwd docker run -d -P -v ${direct}:/var/www/html --name dev-cow dev-cow
WickedMonkeySoftware/Cow
develop.ps1
PowerShell
mit
249
$DaysInactive = 90 $OutputFile = "C:\Temp\Active_VMs.txt" $time = (Get-Date).Adddays(-($DaysInactive)) $dirpath = "C:\Temp" If(!(test-path $dirpath)) { New-Item -ItemType Directory -Force -Path $dirpath } $hostnames = Get-ADComputer -Filter {LastLogonTimeStamp -lt $time} -ResultPageSize 2000 -resultSetSize $nul...
qaaditya/first_repo
get-ad-vm-list.ps1
PowerShell
mit
799
<# .SYNOPSIS Merge a feature branch with 'develop' and delete the feature branch. .DESCRIPTION Finished features will be merged back into the 'develop' branch and pushed to the 'origin/develop'. The feature branch will then be deleted. This function uses '--no-ff' by default (look it up!). ...
eriklieben/Posh-GitFlow
Finish-Feature.ps1
PowerShell
mit
1,243
function Install-Solc { param ( [Alias('Tag')] $Version ) if ($Version) { $uri = 'https://api.github.com/repos/ethereum/solidity/releases/tags/{0}' -f $Version } else { $uri = 'https://api.github.com/repos/ethereum/solidity/releases/latest' } $assets = (Invoke-RestMethod $uri -Verbose).assets Write-Ho...
matt9ucci/PSProfiles
PSScripts/Install-Solc.ps1
PowerShell
mit
801
function Get-MSBuildPath { $MSBuildToolsPath = Get-ChildItem -Path HKLM:\SOFTWARE\MICROSOFT\msbuild\toolsversions | Sort-Object -Property Name | Select-Object -Last 1 | Get-ItemProperty | Select-Object -ExpandProperty MSBuildToolsPath $MSBuildToolsPath32 = Join-Path ($MSBuildToolsPath -replace 'Framework64','Fr...
vercellone/vsts-btdf-tasks
Common/Get-MSBuildPath.ps1
PowerShell
mit
705
<#Header#> using module "IntelliTect.PSDbxCli" Set-StrictMode -Version "Latest" # Import IntelliTect.Commonn for suppot of Get-Temp stuff. Import-Module -Name $PSScriptRoot\..\Modules\IntelliTect.Common # Import-Module -Name $PSScriptRoot\..\Modules\IntelliTect.File Get-Module IntelliTect.PSDbxCli | Remove-Module Imp...
IntelliTect/PSToolbox
Modules.Tests/PSDbxCli.Tests.ps1
PowerShell
mit
12,087
$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" { $paramCount = 4 $defaultParamCount = 11 ...
wsmelton/PSStackExchangeDb
tests/Get-StackArchive.Tests.ps1
PowerShell
mit
948
Script Disable6to4 { SetScript = {Set-Net6to4Configuration -State "Disabled"} TestScript = {(Get-Net6to4Configuration).State -eq "Disabled"} GetScript = {return @{ TestScript = $TestScript SetScript = $SetScript GetScript = $GetScript Result = (Get-Ne...
guitarrapc/DSCSample
PowerShellDSCAdventCalendar/2014/Day6_WriteConfiguration/ConfigurationScriptResource.ps1
PowerShell
mit
380
# TODO: consider polling on the operation returned by the API in the header as less expensive for RP # TODO: consider creating proper PS1 documentation for each function # We are using strict mode for added safety Set-StrictMode -Version Latest # We require a relatively new version of Powershell #requires -Ver...
Azure/azure-devtestlab
samples/ClassroomLabs/Modules/Library/Az.LabServices.psm1
PowerShell
mit
80,407
param([string] $ServiceName) get-service $ServiceName | stop-service -PassThru
CodeValue/Azure-Course-Examples
ManagingResources/PowerShell101/StopServicce.ps1
PowerShell
mit
81
$script:DSCModuleName = 'xWebAdministration' $script:DSCResourceName = 'MSFT_xWebsite' #region HEADER $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot) if ( (-not (Test-Path -Path (Join-Path -Path $script:moduleRoot -ChildPath 'DSCResource.Tests'))) -or ` (-not (Test-Path -Path (Join-P...
Byte-666/xWebAdministration
Tests/Unit/MSFT_xWebsite.Tests.ps1
PowerShell
mit
162,539
param($installPath, $toolsPath, $package, $project) . (Join-Path $toolsPath common.ps1) if ($scriptsFolderProjectItem -eq $null) { # No Scripts folder Write-Host "No Scripts folder found" exit } # Update the _references.js file AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx $mode...
MicrosoftLearning/20486-DevelopingASPNETMVCWebApplications
Allfiles/20486C/Mod13/LabFiles/PhotoSharingApplication_13_begin/packages/Modernizr.2.6.2/Tools/install.ps1
PowerShell
mit
10,954
# Downloads the Visual Studio Online Build Agent, installs on the new machine, registers with the Visual # Studio Online account, and adds to the specified build agent pool [CmdletBinding()] param( [string] $vstsAccount, [string] $vstsUserPassword, [string] $agentName, [string] $poolName, [s...
mmydland/azure-devtestlab
Artifacts/windows-vsts-build-agent/vsts-agent-install.ps1
PowerShell
mit
9,401
<#PSScriptInfo .VERSION 2.0.0 .GUID b16d59df-5a59-4592-8033-46e1daee24c3 .AUTHOR DSC Community .COMPANYNAME DSC Community .COPYRIGHT Copyright the DSC Community contributors. All rights reserved. .TAGS DSCConfiguration .LICENSEURI https://github.com/dsccommunity/NetworkingDsc/blob/main/LICENSE .PROJECTURI https://githu...
PlagueHO/xNetworking
source/Examples/Resources/ProxySettings/3-ProxySettings_ManualProxy_Config.ps1
PowerShell
mit
1,395
$packageName = 'manictime.portable' $url = 'https://cdn.manictime.com/setup/v3_8_6_0/ManicTimeUsb.zip' $checksum = '6bc4bea6faeb93e6040cef5d8d8e3484f7c914e260a58e671fa78f7ef4de506c' $checksumType = 'sha256' $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" Install-ChocolateyZipPackage -PackageName...
dtgm/chocolatey-packages
automatic/_output/manictime.portable/3.8.6/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
550
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null $str = [string] ([System.Windows.Forms.Clipboard]::GetText()) $wd=New-Object -ComObject Word.Application $doc=$wd.Documents.Open("C:\Users\royk\Documents\Card.docx") $wd.Visible=$true $fPath = $doc.AttachedTemplate.FullName $cPath = $...
rkiriakos/JcPSh
NewPatient.ps1
PowerShell
apache-2.0
1,002
$packageName = 'firefox-nightly' $installerType = 'exe' $silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' $url = 'https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/firefox-52.0a1.en-US.win32.installer.exe' $checksum = 'c01101e430f632376ca3d6bc1d860795f2706824a3b543cf17bf18b423f1ceed' $...
dtgm/chocolatey-packages
automatic/_output/firefox-nightly/52.0.1.2016110719/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
1,134
<# .SYNOPSIS Publishes a web application (and any other resources specified in the template file) to a resource group. .EXAMPLE .\Publish-AzureResourceGroupPreview.ps1 -ResourceGroupName MyResourceGroup -DeploymentName MyDeploymentName ` -Location '<Enter Your Location>' -TemplateFile .\TemplatePreview-WebSite.json...
harutama/ResourceFormer
Publish-AzureResourceGroupPreview/Publish-AzureResourceGroupPreview.ps1
PowerShell
apache-2.0
3,259
$ErrorActionPreference = 'Stop' $toolsPath = Split-Path $MyInvocation.MyCommand.Definition $filePath32 = "$toolsPath\node-v15.5.1-x86.msi" $filePath64 = "$toolsPath\node-v15.5.1-x64.msi" $installFile = if ((Get-OSArchitectureWidth 64) -and $env:chocolateyForceX86 -ne 'true') { Write-Host "Insta...
pascalberger/chocolatey-coreteampackages
automatic/nodejs.install/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
762
function Add-VSMediaLiveChannelDvbSubSourceSettings { <# .SYNOPSIS Adds an AWS::MediaLive::Channel.DvbSubSourceSettings resource property to the template. Information about the DVB Sub captions to extract from the input. .DESCRIPTION Adds an AWS::MediaLive::Channel.DvbSubSourceSettings reso...
scrthq/Vaporshell
VaporShell/Public/Resource Property Types/Add-VSMediaLiveChannelDvbSubSourceSettings.ps1
PowerShell
apache-2.0
2,642
param($rootPath, $toolsPath, $package, $project) # Rename app.targets file $appFile = $project.ProjectItems.Item($project.Properties.Item("RootNamespace").Value + '.spp.targets') $appFile.Name = "UpdateToProjectName.spp.targets" # Remove targets import $TargetsFile = 'SqlPublishingPipeline.targets' Add-Type -Assembly...
rschiefer/MSDeployAllTheThings.Nuget
MSDeployAllTheThings.SqlDeploy/nuget/tools/uninstall.ps1
PowerShell
bsd-2-clause
823
<# # Copyright (c) 2014 All Rights Reserved by the SDL Group. # # 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 appl...
Sarafian/ISHBootstrap
Source/Server/ISHServer/Test-SupportedServer.ps1
PowerShell
apache-2.0
1,903
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
Invenis/PSCI
PSCI/Public/deploy/Helpers/SSRS/New-SSRSDataSet.ps1
PowerShell
mit
3,624
@{ # Script module or binary module file associated with this manifest. ModuleToProcess = 'Privesc.psm1' # Version number of this module. ModuleVersion = '3.0.0.0' # ID used to uniquely identify this module GUID = 'efb2a78f-a069-4bfd-91c2-7c7c0c225f56' # Author of this module Author = 'Will Schroder' # Copyright s...
jakxx/PowerSploit
Privesc/Privesc.psd1
PowerShell
bsd-3-clause
1,277
[CmdletBinding()] param() # Arrange. . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 Unregister-Mock Import-Module Register-Mock Write-VstsTaskError Register-Mock Get-VstsWebProxy { } $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru Register-Mock Get-Module $variableSets = @( ...
maikvandergaag/msft-vsts-extensions
azuredevops/azureresourcegroup/azureresourcegroup/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1
PowerShell
mit
581
<# .SYNOPSIS Tests DataLakeStore Account trusted identity provider Lifecycle (Create, Update, Get, List, Delete). #> function Test-DataLakeStoreTrustedIdProvider { param ( $location = "West US" ) try { # Creating Account $resourceGroupName = Get-ResourceGroupName $accountName = Get-DataLakeStoreAccou...
zhencui/azure-powershell
src/ResourceManager/DataLakeStore/Commands.DataLakeStore.Test/ScenarioTests/AdlsAliasTests.ps1
PowerShell
apache-2.0
32,086
$validInputSourcePath = Join-Path $env:windir "Source" $validInputAzureBlobDestinationType = "AzureBlob" $validInputAzureVmsDestinationType = "AzureVms" $validInputStorageAccount = "validInputStorageAccount" $validInputContainerName = "validContainerName" $validInputBlobPrefix = "validBlobPrefix" $validResourceGroupNa...
dylan-smith/vso-agent-tasks
Tasks/AzureFileCopyV1/Tests/MockVariable.ps1
PowerShell
mit
2,653
param( $remoteDesktopAccountExpiration = $env:JABBR_REMOTE_DESKTOP_ACCOUNT_EXPIRATION, $remoteDesktopCertificateThumbprint = $env:JABBR_REMOTE_DESKTOP_CERTIFICATE_THUMBPRINT, $remoteDesktopEnctyptedPassword = $env:JABBR_REMOTE_DESKTOP_ENCRYPTED_PASSWORD, $remoteDesktopUsername = $env:JABBR...
SonOfSam/JabbR
Scripts/Package.ps1
PowerShell
mit
7,237
#region Helper Configurations configuration xRemoteThemesAndPluginFiles { param( [string[]] $FileNames, [string] $Uri, [string] $WordpressPath, [string] [ValidateSet("plugins", "themes")] $Type = "plugins" ) Import-DscResource -modul...
grayzu/Examples
Configs/Wordpress/WordpressConfig.psm1
PowerShell
mit
7,329
Function Get-UnityPool { <# .SYNOPSIS Queries the EMC Unity array to retrieve informations about pool. .DESCRIPTION Queries the EMC Unity array to retrieve informations about pool. You need to have an active session with the array. .NOTES Written by Erwan Quelin under MIT li...
equelin/Unity-Powershell
Unity-Powershell/Public/Get-UnityPool.ps1
PowerShell
mit
1,970
$version = '8.0.1.20161117' $packageName = 'ghc' $url = '' $url64 = 'http://downloads.haskell.org/~ghc/8.0.2-rc1/ghc-8.0.1.20161117-x86_64-unknown-mingw32.tar.xz' $binRoot = $(Split-Path -parent $MyInvocation.MyCommand.Definition) $packageFullName = Join-Path $binRoot ($packageName + '...
Mistuke/GhcChoco
8.0.2-rc1/ghc/tools/chocolateyInstall.ps1
PowerShell
mit
1,112
#requires -Version 2 function Get-StaleLocalUser { <# .Synopsis Displays local user accounts whose passwords have not been changed in a given number of days. .DESCRIPTION The Get-StaleLocalUser function uses Powershell remoting to display local user accou...
psrdrgz/PowerShell
ARTools/Public/Get-StaleLocalUser.ps1
PowerShell
mit
8,371
[cmdletbinding()] Param ( $hostname, $password ) $prefix1 = ("devqc","jaxf","jax","ord") $prefix2 = ("copq","fakw","frow","ftfq","jxfc","jxfq-devqc","jxfq","nbiq","sfcq","sufw") if ($hostname.indexof("rac-") -eq -1) { $hostname = "rac-" + $hostname } $sitecode = ($hostname | Select-String "-(.*)-").matches.gr...
abix-/powershell-practical
random scripts/dell/Connect-DRAC.ps1
PowerShell
mit
4,000
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # # Unit tests for the Include keyword # [CmdletBinding()] param () # Setup error handling $ErrorActionPreference = 'Stop'; Set-StrictMode -Version latest; # Setup tests paths $rootPath = $PWD; Import-Module (Join-Path -Path $rootPath -ChildP...
BernieWhite/PSDocs
tests/PSDocs.Tests/PSDocs.Include.Tests.ps1
PowerShell
mit
2,922
# Created by Alexander Köplinger, 2013 function Remove-Changes { param( [parameter(Position = 0, Mandatory = $true)] [Microsoft.Build.Evaluation.Project]$msBuildProj ) #TODO: this can probably be improved $wixToolPathProperties = $msBuildProj.Xml.AllChildren | Where-Object { $_.Value -...
shana/WiX.Toolset.NuGet
src/tools/Remove.psm1
PowerShell
mit
604
function Get-TSServers { <# .SYNOPSIS Enumerates all terminal servers in a given domain. .DESCRIPTION Enumerates all terminal servers in a given domain. .PARAMETER ComputerName The name of the terminal server computer. The default is the local computer. Default value is the local computer (localhost)...
lazywinadmin/LazyTS
source/functions/Get-TSServers.ps1
PowerShell
mit
1,642
Update-SessionEnvironment code --install-extension dbaeumer.vscode-eslint
BBTSoftwareAG/chocolatey-packages
manual/vscode-eslint/tools/ChocolateyInstall.ps1
PowerShell
mit
73
Function Test-OOSWindowsServiceState { [CmdletBinding()] param ( [hashtable]$PoShMonConfiguration ) $mainOutput = Get-InitialOutputWithTimer -SectionHeader "Windows Service State" -OutputHeaders ([ordered]@{ 'DisplayName' = 'Display Name'; 'Name' = 'Name'; 'Status' = 'Status' }) $serversWi...
HiltonGiesenow/PoShMon
src/Functions/PoShMon.Monitoring.OfficeOnlineServer/Test-OOSWindowsServiceState.ps1
PowerShell
mit
1,698
[CmdletBinding()] param( [Parameter(Mandatory=$false)] [string] $storagePoolName = 'DataDiskPool', [Parameter(Mandatory=$false)] [string] $diskName = 'DataDiskStripeSet' ) Write-Verbose 'Creating eventlog source' New-EventLog -LogName Application -Source DataDiskScript -ErrorAction SilentlyCo...
idexcelazure/azure-class
Monday/Lab4/New-DataDiskStripeSet.ps1
PowerShell
apache-2.0
2,355
$hd = Split-Path $MyInvocation.MyCommand.Path cd $hd/test/BadMishka.GoDark.Tests dnx test cd $hd
badmishkallc/GoDark
test.ps1
PowerShell
apache-2.0
102
<# .SYNOPSIS Retrieves the list of feature branches and writes them to a property file of the form Features=feature_xxxx,feaure_yyyy,feature_zzzz .EXAMPLE Write-FeatureProperties -GitUrl https://user:password@github.com/revdotcom/revdotcom -OutFile branches.properties #> [CmdletBinding()] param( [Pa...
revdotcom/jenkins-build-per-branch
Write-Feature-Properties.ps1
PowerShell
apache-2.0
748
# # Name # ChefWorkStation.ps1 # # Description # This defines functions regarding 'Chef Workstation'. # ('Chef Workstation' に関するファンクションを定義しています。) # # Depends # .\Log.ps1 # .\Env.ps1 # .\Vagrant.ps1 # .\Chocolatey.ps1 # .\VirtualBox.ps1 # .\Git.ps1 # .\Chef.ps1 # .\Serverspec.ps1 ...
kukita/PowerChef
PowerChef/ChefWorkstation.ps1
PowerShell
apache-2.0
8,695
#requires -Version 3.0 #region Info <# Support: https://github.com/jhochwald/NETX/issues #> #endregion Info #region License <# Copyright (c) 2016, Quality Software Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fol...
jhochwald/NETX
Profile/functions/ConvertTo-Objects.ps1
PowerShell
bsd-3-clause
14,680
# Returns the average amount of non-paged and paged memory that the process is using, in kilobytes. # Return Type: Integer # Execution Context: User # change TaskScheduler to your process name $PM = get-process TaskScheduler |Measure-object -property PM -Average -ErrorVariable err -ErrorAction SilentlyContinue | Selec...
vmwaresamples/AirWatch-samples
Windows-Samples/Sensors/os_memory_usage_processname.ps1
PowerShell
bsd-3-clause
605
# ---------------------------------------------------------------------------------- # # 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...
akurmi/azure-powershell
src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineExtensionTests.ps1
PowerShell
apache-2.0
74,261
<# The MIT License (MIT) Copyright (c) 2015 Objectivity Bespoke Software Specialists Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
ObjectivityBSS/PSCI
PSCI/Private/deploy/SSRS/Set-SSRSItemReferences.ps1
PowerShell
mit
2,351
data LocalizedData { # culture="en-US" ConvertFrom-StringData @' SetTargetResourceInstallwhatIfMessage=Trying to create AppPool "{0}". SetTargetResourceUnInstallwhatIfMessage=Trying to remove AppPool "{0}". AppPoolNotFoundError=The requested AppPool "{0}" is not found on the target machine. AppPoolDiscoveryFail...
ObjectivityBSS/PSCI
PSCI/dsc/custom/cIIS/DscResources/PSHOrg_cAppPool/PSHOrg_cAppPool.psm1
PowerShell
mit
50,465
# This script deploys the VMs for the network performance test and trigger test. # Author: Sivakanth # Email : v-sirebb@microsoft.com # ##### <#-------------Create Deployment Start------------------#> Import-Module .\TestLibs\RDFELibs.psm1 -Force $result = "" $testResult = "" $resultArr = @() $isDeployed = DeployVMS...
hglkrijger/azure-linux-automation
remote-scripts/ICA-NETWORK-PERF-TEST.ps1
PowerShell
apache-2.0
5,201
# ---------------------------------------------------------------------------------- # # 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/Network/Commands.Network.Test/ScenarioTests/Common.ps1
PowerShell
apache-2.0
2,017
# .ExternalHelp psPAS-help.xml function Remove-PASAccountGroupMember { [CmdletBinding(SupportsShouldProcess)] param( [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [string]$AccountID, [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [string]...
pspete/psPAS
psPAS/Functions/AccountGroups/Remove-PASAccountGroupMember.ps1
PowerShell
mit
757
#Fix Devices Powershell Script #Developed by jpdias Import-Module .\Modules\DeviceManagement.psd1 Write-Host "----------------------------" Write-Host "-Fix Device Problems Script-" Write-Host "---------By JP Dias---------" Write-Host "Checking Devices" Foreach ($i in Get-Device) { if($i.HasProblem){ Write-Host "...
jpdias/Fix-Devices-Script
Fix-Devices.ps1
PowerShell
mit
1,088
[bool] 1 [bool] 0.000000000000000000000000000001 [bool] 42 [bool] -16 [bool] "1" [bool] "0" [bool] " " [bool] "any word" [bool] @{} [bool] @(123) [bool] @(0,0)
nauzilus/powershell101-code
06_truthy_values.ps1
PowerShell
mit
162
## ===================================================================== ## Title : Get-IADGroup ## Description : Retrieve all groups in a domain or container that match the specified conditions. ## Author : Idera ## Date : 8/11/2009 ## Input : Get-IADGroup [[-Name] <String>] [[-SearchRoot] <Str...
borkit/scriptdump
PowerShell/Working/IderaPowerShellScripts/Idera_ADPowerShellScripts/Get-IADGroup.ps1
PowerShell
mit
4,000
properties { $BaseDir = Resolve-Path "..\" $SolutionFile = "$BaseDir\src\ClearScript.Manager.sln" $ProjectPath = "$BaseDir\src\ClearScript.Manager\ClearScript.Manager.csproj" $ArchiveDir = "$BaseDir\Deploy\Archive" $NuGetPackageName = "ClearScript.Manager" } . .\common.ps1
eswann/ClearScript.Manager
deploy/ClearScript.Manager.ps1
PowerShell
mit
293
function Get-ExceptionResponse { [cmdletbinding()] Param ( [Parameter(Mandatory = $true, ValueFromPipeline = $true)] [ValidateNotNullOrEmpty()] [System.Management.Automation.ErrorRecord] $InputObject ) switch($InputObject.Exception.Response.StatusCode.value__){ ...
barracudanetworks/waf-automation
Contrib/powershell/modules/BarracudaWaaS/Private/Get-ExceptionResponse.ps1
PowerShell
mit
684
$ErrorActionPreference = 'Stop'; $packageArgs = @{ packageName = $env:ChocolateyPackageName softwareName = 'AlbumStomp*' fileType = 'exe' silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' validExitCodes= @(0) } $uninstalled = $false [array]$key = Get-UninstallRegistryKey -SoftwareName $...
bc3tech/chocolatey
AlbumStomp/tools/chocolateyuninstall.ps1
PowerShell
mit
1,066
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed...
pshdo/Carbon
Test/Remove-Junction.Tests.ps1
PowerShell
apache-2.0
5,086
# Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 <# .SYNOPSIS Script builds content layer images for SQL Server 2014 Lab Suite. .DESCRIPTION Script uses Turbo CLI to build a content layer image for SQL Server 2014 Lab Suite. Script requires providing paths to a SQL f...
turboapps/turbome
sqlserver/content-layer/Build-ContentLayer.ps1
PowerShell
apache-2.0
10,509
$toolsDir = (Split-Path -parent $MyInvocation.MyCommand.Definition) $nugetLocalAppDir = Join-Path $env:LocalAppData 'NuGet' $backupDir = Join-Path $nugetLocalAppDir '.nugetbkp' $nugetFixDir = Join-Path $toolsDir 'nuget' function Install-NuGetEnablePackageRestoreFix { $solutionFolder = $PWD $nugetPRDir = Join-Path ...
cityindex-attic/CIAPI.CS
src/packages/NuGetEnablePackageRestore.2.0.0/tools/enablepackagerestore.psm1
PowerShell
apache-2.0
1,114
# # Module manifest for module 'PSGet_vSphere-Modules' # # Generated by: Markus Kraus # # Generated on: 24.08.2018 # @{ # Script module or binary module file associated with this manifest. # RootModule = '' # Version number of this module. ModuleVersion = '1.1.1' # Supported PSEditions # CompatiblePSEditions = @() ...
mycloudrevolution/vSphere-Modules
vSphere-Modules.psd1
PowerShell
apache-2.0
5,190
# # Module manifest for module 'Microsoft.Azure.Commands.SiteRecovery' # # Generated by: Microsoft Corporation # # Generated on: 9/19/2015 # @{ # Version number of this module. ModuleVersion = '1.1.9' # ID used to uniquely identify this module GUID = 'd1de7560-48e1-48f3-bc8c-4eea3af2bbe1' ...
akurmi/azure-powershell
src/ResourceManager/SiteRecovery/AzureRM.SiteRecovery.psd1
PowerShell
apache-2.0
3,275
Push-Location; Try { $Items = @(Get-ChildItem -Path:$ProjectDir -Filter:'*.cs' | ForEach-Object { [System.IO.File]::ReadAllText($_.FullName) | Write-Output }); Set-Location -Path:'../PSPass'; [System.IO.File]::WriteAllText(((Get-Location) | Join-Path -ChildPath:'CustomTypes.ps1'), (@( '$Typ...
lerwine/PSPass
BuildCustomTypesScript.ps1
PowerShell
apache-2.0
1,660
<# This is a program to create a checksum of a know good copy of Landesk Folders Checksums, once compared with the known good copy of the Files in C:\Program Files\LanDesk, it will check for variations in the folder, then copy over good copy of the files that are missing,( for the moment this is only good for x8...
allenj0321/Powershell
Compare SHA2 HASH.ps1
PowerShell
bsd-2-clause
3,107
@{ # Version number of this module. ModuleVersion = '8.1.0.0' # ID used to uniquely identify this module GUID = '74e9ddb5-4cbc-4fa2-a222-2bcfb533fd66' # Author of this module Author = 'Microsoft Corporation' # Company or vendor of this module CompanyName = 'Microsoft Corporation' # Copyright statement for this modu...
seizste/xSQLServer
xSQLServer.psd1
PowerShell
mit
6,395
Filter Range { param ( [String] $File ) $Query = "SELECT Min([$($_.Name)]) AS Minimum, Max([$($_.Name)]) AS Maximum FROM '$File'" [xml] $xml = & logparser $Query -stats:off -o:xml $Measurement=[PsCustomObject]@{'Name'='Minimum';Value=$xml.root.row.Minimum.Trim()} $_.Scalars+=$Measure...
craibuc/PsCsv
Functions/Range.ps1
PowerShell
mit
488
Function PesterBeDate($Value, $Expected) { $Expected = [System.DateTime]::Parse($Expected) $Value.Year | Should Be $Expected.Year $Value.Month | Should Be $Expected.Month $Value.Day | Should Be $Expected.Day $Value.Hour | Should Be $Expected.Hour $Value.Minute | Should Be $Expected.Min...
devrandorfer/ScorchDev
PowerShellModules/OpenWeatherMap/2.0.0/Assertions/BeDate.ps1
PowerShell
mit
804
$packageName = 'mweather.install' $installerType = 'exe' $url = 'http://www.nirsoft.net/utils/mweather_setup.exe' $checksum = 'eda2dd2ed8d37b62ff79dd0d8f740bff699029cd' $checksumType = 'sha1' $silentArgs = '/S' $validExitCodes = @(0) Install-ChocolateyPackage -PackageName "$packageName" ` -Fi...
dtgm/chocolatey-packages
automatic/_output/mweather.install/1.72/tools/chocolateyInstall.ps1
PowerShell
apache-2.0
605
function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [parameter(Mandatory = $true)] [System.String] $Name, [parameter(Mandatory = $true)] [System.String] $ApplicationPool, [parameter(Mandatory = $true)] [System.Boolean] $Auditi...
BrianFarnhill/SharePointDsc
Modules/SharePointDsc/DSCResources/MSFT_SPSecureStoreServiceApp/MSFT_SPSecureStoreServiceApp.psm1
PowerShell
mit
8,059
<# .NOTES Author: @jhowardmsft Summary: Windows native build script. This is similar to functionality provided by hack\make.sh, but uses native Windows PowerShell semantics. It does not support the full set of options provided by the Linux counterpart. For example: ...
lixiaobing10051267/docker
hack/make.ps1
PowerShell
apache-2.0
20,884