full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/packages/EntityFramework.5.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' }
if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 )))
{
$thisModuleManifest = 'EntityFramework.PS3.psd1'
}
else
{
$thisModuleManifest = 'EntityFramework.psd1'
}
$thisModule... |
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/packages/EntityFramework.5.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project)
{
$appDomain = [AppDomain]::CreateDomain(
'EntityFramework.PowerShell',
$null,
(New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' }))
... |
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/packages/jQuery.UI.Combined.1.8.24/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx |
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/packages/jQuery.UI.Combined.1.8.24/Tools/install.ps1 | install.ps1 | 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 $juiFileNameRegEx ... |
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/packages/jQuery.UI.Combined.1.8.24/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
}
catch {
# _references.js file not found
return
}
if ($referencesFileProject... |
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/packages/jQuery.1.8.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/packages/jQuery.1.8.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# VS 11 and above supports the new intellisense JS files
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersio... |
PowerShellCorpus/Github/kasunamarasinghe_WebServices/WebServices/packages/jQuery.1.8.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/MicrosoftDocs_dynamics365smb-docs-pr.fi-fi/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source url: ... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/Microsoft.AspNet.Providers.LocalDB.1.1/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
try {
# Set up variables
$timestamp = (Get-Date).ToString('yyyyMMddHHmmss')
$projectName = [IO.Path]::GetFileName($project.ProjectName.Trim([IO.PATH]::DirectorySeparatorChar, [IO.PATH]::AltDirectorySeparatorChar))
$catalogName = "aspnet-$project... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/EntityFramework.6.1.3/tools/init.ps1 | init.ps1 | 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
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/EntityFramework.6.1.3/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/EntityFramework.5.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$importedModule = Get-Module | ?{ $_.Name -eq 'EntityFramework' }
if ($PSVersionTable.PSVersion -ge (New-Object Version @( 3, 0 )))
{
$thisModuleManifest = 'EntityFramework.PS3.psd1'
}
else
{
$thisModuleManifest = 'EntityFramework.psd1'
}
$thisModule... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/EntityFramework.5.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
function Invoke-ConnectionFactoryConfigurator($assemblyPath, $project)
{
$appDomain = [AppDomain]::CreateDomain(
'EntityFramework.PowerShell',
$null,
(New-Object System.AppDomainSetup -Property @{ ShadowCopyFiles = 'true' }))
... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Install.ps1 | Install.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$srcFiles = Join-Path $installPath "lib\net40\*.dll"
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$destDirec... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/Microsoft.Web.Infrastructure.1.0.0.0/tools/Uninstall.ps1 | Uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
if ($project.Type -eq 'Web Site') {
Import-Module (Join-Path $toolsPath VS.psd1)
$projectRoot = Get-ProjectRoot $project
if (!$projectRoot) {
return;
}
$binDirectory = Join-Path $projectRoot "bin"
$srcDirectory = Join-Path $... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/jQuery.1.7.1.1/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/jQuery.1.7.1.1/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# VS 11 and above supports the new intellisense JS files
$supportsJsIntelliSenseFile = [System.Version]::Parse($dte.Version).Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
Write-Host "IntelliSense JS files are n... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/jQuery.1.7.1.1/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/jQuery.2.1.4/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/jQuery.2.1.4/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# VS 11 and above supports the new intellisense JS files
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersio... |
PowerShellCorpus/Github/Sabri55_MyTestProject/TestSiteWeb/packages/jQuery.2.1.4/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/sbhutia_setup-scripts/scoop-script.ps1 | scoop-script.ps1 | set-executionpolicy remotesigned -s cu
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop bucket add extras
scoop install extras/oraclejdk
scoop install maven
scoop install git
scoop install nodejs
|
PowerShellCorpus/Github/mmarseglia_view-tools/desktopsAvailable.ps1 | desktopsAvailable.ps1 | # desktopsAvailable.ps1
# 20141102
# mike@marseglia.org
#
# Tested on:
# VMware View 5.x
#
# Description:
# Will alarm if the number of sessions approaches a defined threshold, expressed as a percent,
# above or equal to the percentage of desktops available for a VMware View Pool.
# Percentage available calc... |
PowerShellCorpus/Github/davidseibel_PoshBPA/types.ps1 | types.ps1 | enum BPAConstructType {
Folder = 1
Task = 2
Workflow = 3
Condition = 4
Agent = 8
User = 10
AgentGroup = 11
UserGroup = 12
Evaluation = 13
AuditEvent = 16
ExecutionEvent = 17
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Utility/Get-IsBalancedOpenClose.ps1 | Get-IsBalancedOpenClose.ps1 | function Get-IsBalancedOpenClose {
<#
.SYNOPSIS
Checks for balanced number of opening and closing characters.
.DESCRIPTION
Get-IsBalancedOpenClose checks if the number of opening characters matches the number of closing characters. Used for validation of opening and c... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Set-BPAUserGroup.ps1 | Set-BPAUserGroup.ps1 | function Set-BPAUserGroup {
<#
.SYNOPSIS
Sets properties of an AutoMate BPA user group.
.DESCRIPTION
Set-BPAUserGroup can change properties of a user group object.
.PARAMETER InputObject
The user group to modify.
.PARAMETER Notes
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Remove-BPASystemPermission.ps1 | Remove-BPASystemPermission.ps1 | function Remove-BPASystemPermission {
<#
.SYNOPSIS
Removes AutoMate BPA system permissions.
.DESCRIPTION
Remove-BPASystemPermission removes the provided system permissions.
.PARAMETER InputObject
The permissions object(s) to remove.
.... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAPermission.ps1 | Get-BPAPermission.ps1 | function Get-BPAPermission {
<#
.SYNOPSIS
Gets AutoMate BPA permissions.
.DESCRIPTION
Get-BPAPermission gets permissions for objects.
.PARAMETER InputObject
The object(s) to retrieve permissions for.
.INPUTS
Permissions f... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Set-BPATask.ps1 | Set-BPATask.ps1 | function Set-BPATask {
<#
.SYNOPSIS
Sets properties of an AutoMate BPA task.
.DESCRIPTION
Set-BPATask can change properties of a task object.
.PARAMETER InputObject
The object to modify.
.PARAMETER Notes
The new notes to ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Remove-BPAAgentGroupMember.ps1 | Remove-BPAAgentGroupMember.ps1 | function Remove-BPAAgentGroupMember {
<#
.SYNOPSIS
Removes agents from an AutoMate BPA agent group.
.DESCRIPTION
Remove-BPAAgentGroupMember can remove agents from an agent group.
.PARAMETER InputObject
The agent group to modify.
.PARA... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAProcess.ps1 | Get-BPAProcess.ps1 | function Get-BPAProcess {
<#
.SYNOPSIS
Gets AutoMate BPA processes.
.DESCRIPTION
Get-BPAProccess gets process objects from AutoMate BPA. Get-BPAProcess can receive items on the pipeline and return related objects.
.PARAMETER InputObject
The obj... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAAgent.ps1 | Get-BPAAgent.ps1 | function Get-BPAAgent {
<#
.SYNOPSIS
Gets AutoMate BPA agents.
.DESCRIPTION
Get-BPAAgent gets agent objects from AutoMate BPA. Get-BPAAgent can receive items on the pipeline and return related objects.
.PARAMETER InputObject
The object(s) to us... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Copy-BPATask.ps1 | Copy-BPATask.ps1 | function Copy-BPATask {
<#
.SYNOPSIS
Copies an AutoMate BPA task.
.DESCRIPTION
Copy-BPATask can copy a task object within, or between servers.
.PARAMETER InputObject
The object to copy.
.PARAMETER Name
The new name to set... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Start-BPATask.ps1 | Start-BPATask.ps1 | function Start-BPATask {
<#
.SYNOPSIS
Starts AutoMate BPA tasks.
.DESCRIPTION
Start-BPATask starts tasks.
.PARAMETER InputObject
The tasks to start.
.INPUTS
Tasks can be supplied on the pipeline to this function.
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPATask.ps1 | Get-BPATask.ps1 | function Get-BPATask {
<#
.SYNOPSIS
Gets AutoMate BPA tasks.
.DESCRIPTION
Get-BPATask gets task objects from AutoMate BPA. Get-BPATask can receive items on the pipeline and return related objects.
.PARAMETER InputObject
The object(s) use in se... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Remove-BPACredentialStoreItem.ps1 | Remove-BPACredentialStoreItem.ps1 | function Remove-BPACredentialStoreItem {
<#
.SYNOPSIS
Removes credentials for the specified BPA server from the credential store.
.DESCRIPTION
Remove-BPACredentialStoreItem removes credential objects from the credential store file.
.PARAMETER BPAServer
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Copy-BPAProcess.ps1 | Copy-BPAProcess.ps1 | function Copy-BPAProcess {
<#
.SYNOPSIS
Copies an AutoMate BPA process.
.DESCRIPTION
Copy-BPAProcess can copy a process object within, or between servers.
.PARAMETER InputObject
The object to copy.
.PARAMETER Name
The new... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Stop-BPAInstance.ps1 | Stop-BPAInstance.ps1 | function Stop-BPAInstance {
<#
.SYNOPSIS
Stops AutoMate BPA workflow and task instances.
.DESCRIPTION
Stop-BPAInstance stops running workflow and task instances.
.PARAMETER InputObject
The instances to stop.
.INPUTS
Insta... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAConsoleOutput.ps1 | Get-BPAConsoleOutput.ps1 | function Get-BPAConsoleOutput {
<#
.SYNOPSIS
Gets AutoMate BPA console output.
.DESCRIPTION
Get-BPAConsoleOutput gets the console output.
.PARAMETER MaxItems
The maximum number of events in the console output to retrieve.
.PARAMETER B... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Enable-BPAObject.ps1 | Enable-BPAObject.ps1 | function Enable-BPAObject {
<#
.SYNOPSIS
Disables an AutoMate BPA object.
.DESCRIPTION
Disable-BPAObject receives BPA object(s) on the pipeline, or via the parameter $InputObject, and disables the object(s).
.PARAMETER InputObject
The object(s) ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Add-BPAAgentGroupMember.ps1 | Add-BPAAgentGroupMember.ps1 | function Add-BPAAgentGroupMember {
<#
.SYNOPSIS
Adds agents to an AutoMate BPA agent group.
.DESCRIPTION
Add-BPAAgentGroupMember can add agents to an agent group.
.PARAMETER InputObject
The agent group to modify.
.PARAMETER Agent
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Set-BPAUser.ps1 | Set-BPAUser.ps1 | function Set-BPAUser {
<#
.SYNOPSIS
Sets properties of an AutoMate BPA user.
.DESCRIPTION
Set-BPAUser can change properties of a user object.
.PARAMETER InputObject
The object to modify.
.PARAMETER Notes
The new notes to ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAFolder.ps1 | Get-BPAFolder.ps1 | function Get-BPAFolder {
<#
.SYNOPSIS
Gets AutoMate BPA folders.
.DESCRIPTION
Get-BPAFolder gets folders objects from AutoMate BPA. Get-BPAFolder can receive items on the pipeline and return related objects.
.PARAMETER InputObject
The object(s)... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Start-BPAProcess.ps1 | Start-BPAProcess.ps1 | function Start-BPAProcess {
<#
.SYNOPSIS
Starts AutoMate BPA processes.
.DESCRIPTION
Start-BPAProcess starts processes.
.PARAMETER InputObject
The processes to start.
.INPUTS
Processes can be supplied on the pipeline to t... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Remove-BPAUserGroupMember.ps1 | Remove-BPAUserGroupMember.ps1 | function Remove-BPAUserGroupMember {
<#
.SYNOPSIS
Removes users from an AutoMate BPA user group.
.DESCRIPTION
Remove-BPAUserGroupMember can remove users from a user group.
.PARAMETER InputObject
The user group to modify.
.PARAMETER Us... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAWorkflow.ps1 | Get-BPAWorkflow.ps1 | function Get-BPAWorkflow {
<#
.SYNOPSIS
Gets AutoMate BPA workflows.
.DESCRIPTION
Get-BPAWorkflow gets workflow objects from AutoMate BPA. Get-BPAWorkflow can receive items on the pipeline and return related objects.
.PARAMETER InputObject
The ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Rename-BPAObject.ps1 | Rename-BPAObject.ps1 | function Rename-BPAObject {
<#
.SYNOPSIS
Renames an AutoMate BPA object.
.DESCRIPTION
Rename-BPAObject receives BPA object(s) on the pipeline, or via the parameter $InputObject, and renames the object(s).
.PARAMETER InputObject
The object(s) to ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPACondition.ps1 | New-BPACondition.ps1 | <# Doesn't work
function New-BPACondition {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true, Position = 0)]
[ValidateNotNullOrEmpty()]
[string]$Name,
[Parameter(Mandatory = $true)]
[BPATriggerType]$Type,
[string]$Notes = "",
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAUser.ps1 | Get-BPAUser.ps1 | function Get-BPAUser {
<#
.SYNOPSIS
Gets AutoMate BPA users.
.DESCRIPTION
Get-BPAUser gets user objects from AutoMate BPA. Get-BPAUser can receive items on the pipeline and return related objects.
.PARAMETER InputObject
The object(s) to use in ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAInstance.ps1 | Get-BPAInstance.ps1 | function Get-BPAInstance {
<#
.SYNOPSIS
Gets AutoMate BPA workflow and task instances.
.DESCRIPTION
Get-BPAInstance gets instance objects from AutoMate BPA. Get-BPAInstance can receive items on the pipeline and return related objects.
.PARAMETER InputObject... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Set-BPACondition.ps1 | Set-BPACondition.ps1 | ’╗┐<# Doesn't work
function Set-BPACondition {
[CmdletBinding(SupportsShouldProcess=$true,ConfirmImpact='Medium')]
param(
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
$InputObject,
[string]$Notes
)
PROCESS {
foreach ($obj in $InputObject) {
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Wait-BPAInstance.ps1 | Wait-BPAInstance.ps1 | function Wait-BPAInstance {
<#
.SYNOPSIS
Waits for AutoMate BPA workflow and task instances to complete.
.DESCRIPTION
Wait-BPAInstance waits for running workflow and task instances to complete.
.PARAMETER InputObject
The instances to wait for.
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Set-BPAProcess.ps1 | Set-BPAProcess.ps1 | function Set-BPAProcess {
<#
.SYNOPSIS
Sets properties of an AutoMate BPA process.
.DESCRIPTION
Set-BPAProcess can change properties of a process object.
.PARAMETER InputObject
The object to modify.
.PARAMETER Notes
The n... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Invoke-BPARestMethod.ps1 | Invoke-BPARestMethod.ps1 | function Invoke-BPARestMethod {
<#
.SYNOPSIS
Invokes a command against the AutoMate BPA management API.
.DESCRIPTION
Invoke-BPARestMethod makes calls against the REST API and returns results.
.PARAMETER Resource
The REST resource to call.
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Start-BPAWorkflow.ps1 | Start-BPAWorkflow.ps1 | function Start-BPAWorkflow {
<#
.SYNOPSIS
Starts AutoMate BPA workflows.
.DESCRIPTION
Start-BPAWorkflow starts workflows.
.PARAMETER InputObject
The workflows to start.
.INPUTS
Workflows can be supplied on the pipeline to... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPAUser.ps1 | New-BPAUser.ps1 | function New-BPAUser {
<#
.SYNOPSIS
Creates a new AutoMate BPA user.
.DESCRIPTION
New-BPAProcess creates a new user object.
.PARAMETER Name
The name/username of the new object.
.PARAMETER Notes
The new notes to set on the... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAServer.ps1 | Get-BPAServer.ps1 | function Get-BPAServer {
<#
.SYNOPSIS
Gets AutoMate BPA server information.
.DESCRIPTION
Get-BPAServer gets information about the server.
.PARAMETER Type
The type of server information to retrieve.
.PARAMETER BPAServer
Th... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Set-BPAAgent.ps1 | Set-BPAAgent.ps1 | function Set-BPAAgent {
<#
.SYNOPSIS
Sets properties of an AutoMate BPA agent.
.DESCRIPTION
Set-BPAAgent can change properties of an agent object.
.PARAMETER InputObject
The object to modify.
.PARAMETER Notes
The new note... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPASystemPermission.ps1 | Get-BPASystemPermission.ps1 | function Get-BPASystemPermission {
<#
.SYNOPSIS
Gets AutoMate BPA system permissions.
.DESCRIPTION
Get-BPASystemPermission gets system permissions.
.PARAMETER InputObject
The object(s) to retrieve permissions for.
.PARAMETER BPAServer... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Set-BPAAgentGroup.ps1 | Set-BPAAgentGroup.ps1 | function Set-BPAAgentGroup {
<#
.SYNOPSIS
Sets properties of an AutoMate BPA agent group.
.DESCRIPTION
Set-BPAAgentGroup can change properties of an agent group object.
.PARAMETER InputObject
The agent group to modify.
.PARAMETER Note... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Resume-BPAInstance.ps1 | Resume-BPAInstance.ps1 | function Resume-BPAInstance {
<#
.SYNOPSIS
Resumes AutoMate BPA workflow and task instances.
.DESCRIPTION
Resume-BPAInstance resumse paused workflow and task instances.
.PARAMETER InputObject
The instances to resumse.
.INPUTS
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Disable-BPAObject.ps1 | Disable-BPAObject.ps1 | function Disable-BPAObject {
<#
.SYNOPSIS
Disables an AutoMate BPA object.
.DESCRIPTION
Disable-BPAObject receives BPA object(s) on the pipeline, or via the parameter $InputObject, and disables the object(s).
.PARAMETER InputObject
The object(s)... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPAAgentGroup.ps1 | New-BPAAgentGroup.ps1 | function New-BPAAgentGroup {
<#
.SYNOPSIS
Creates a new AutoMate BPA agent group.
.DESCRIPTION
New-BPAAgentGroup creates an agent group object.
.PARAMETER Name
The name of the new object.
.PARAMETER Notes
The new notes to... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAFolderRoot.ps1 | Get-BPAFolderRoot.ps1 | function Get-BPAFolderRoot {
<#
.SYNOPSIS
Gets AutoMate BPA root folders.
.DESCRIPTION
Get-BPAFolderRoot returns a list of root folders and their IDs.
.PARAMETER Type
The type of root folder to return.
.EXAMPLE
# Get the ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Move-BPAObject.ps1 | Move-BPAObject.ps1 | function Move-BPAObject {
<#
.SYNOPSIS
Moves an AutoMate BPA object.
.DESCRIPTION
Move-BPAObject receives BPA object(s) on the pipeline, or via the parameter $InputObject, and moves the object(s) to the specified folder.
.PARAMETER InputObject
T... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Connect-BPAServer.ps1 | Connect-BPAServer.ps1 | function Connect-BPAServer {
<#
.SYNOPSIS
Connect to an AutoMate BPA management server
.DESCRIPTION
Connect-BPAServer gathers connection information for AutoMate BPA, and tests authentication.
This module supports connecting to multiple servers at once.
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAAuditEvent.ps1 | Get-BPAAuditEvent.ps1 | function Get-BPAAuditEvent {
<#
.SYNOPSIS
Gets AutoMate BPA audit events.
.DESCRIPTION
Get-BPAAuditEvent gets audit events for AutoMate BPA objects.
.PARAMETER InputObject
The object(s) to retrieve audit events for.
.PARAMETER StartDa... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPAWorkflow.ps1 | New-BPAWorkflow.ps1 | function New-BPAWorkflow {
<#
.SYNOPSIS
Creates a new AutoMate BPA workflow.
.DESCRIPTION
New-BPAWorkflow creates a new workflow object.
.PARAMETER Name
The name of the new object.
.PARAMETER Notes
The new notes to set on... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAUserGroup.ps1 | Get-BPAUserGroup.ps1 | function Get-BPAUserGroup {
<#
.SYNOPSIS
Gets AutoMate BPA user groups.
.DESCRIPTION
Get-BPAUserGroup gets user group objects from AutoMate BPA. Get-BPAUserGroup can receive items on the pipeline and return related objects.
.PARAMETER InputObject
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Disconnect-BPAServer.ps1 | Disconnect-BPAServer.ps1 | function Disconnect-BPAServer {
<#
.SYNOPSIS
Disconnect from an AutoMate BPA management server
.DESCRIPTION
Disconnect-BPAServer removes stored connection information for the management server(s).
.PARAMETER BPAServer
The AutoMate BPA management... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Remove-BPAObject.ps1 | Remove-BPAObject.ps1 | function Remove-BPAObject {
<#
.SYNOPSIS
Removes an AutoMate BPA object.
.DESCRIPTION
Remove-BPAObject receives BPA object(s) on the pipeline, or via the parameter $InputObject, and deletes the object(s).
.PARAMETER InputObject
The object(s) to ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPAUserGroup.ps1 | New-BPAUserGroup.ps1 | function New-BPAUserGroup {
<#
.SYNOPSIS
Creates a new AutoMate BPA user group.
.DESCRIPTION
New-BPAUserGroup creates a user group object.
.PARAMETER Name
The name of the new object.
.PARAMETER Notes
The new notes to set ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPACondition.ps1 | Get-BPACondition.ps1 | function Get-BPACondition {
<#
.SYNOPSIS
Gets AutoMate BPA conditions.
.DESCRIPTION
Get-BPACondition gets condition objects from AutoMate BPA. Get-BPACondition can receive items on the pipeline and return related objects.
.PARAMETER InputObject
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPAProcess.ps1 | New-BPAProcess.ps1 | function New-BPAProcess {
<#
.SYNOPSIS
Creates a new AutoMate BPA process.
.DESCRIPTION
New-BPAProcess creates a new process object.
.PARAMETER Name
The name of the new object.
.PARAMETER Notes
The new notes to set on the... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPACredentialStoreItem.ps1 | Get-BPACredentialStoreItem.ps1 | function Get-BPACredentialStoreItem {
<#
.SYNOPSIS
Retrieves credentials for the specified BPA server
.DESCRIPTION
Get-BPACredentialStoreItem stores a server and credential object together in a credential store file.
.PARAMETER BPAServer
The Aut... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Suspend-BPAInstance.ps1 | Suspend-BPAInstance.ps1 | function Suspend-BPAInstance {
<#
.SYNOPSIS
Pauses AutoMate BPA workflow and task instances.
.DESCRIPTION
Suspend-BPAInstance suspends running workflow and task instances.
.PARAMETER InputObject
The instances to suspend.
.INPUTS
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPASystemAgent.ps1 | Get-BPASystemAgent.ps1 | function Get-BPASystemAgent {
<#
.SYNOPSIS
Gets AutoMate BPA system agent types.
.DESCRIPTION
Get-BPASystemAgent returns a list of system agent types and their IDs.
.PARAMETER Type
The type of system agent to return.
.EXAMPLE
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAObjectProperty.ps1 | Get-BPAObjectProperty.ps1 | function Get-BPAObjectProperty {
<#
.SYNOPSIS
Gets AutoMate BPA workflow/task/agent properties if non-inherited values are used. If the inherited values are used, nothing will be returned.
.DESCRIPTION
Get-BPAObjectProperty gets properties for objects.
.PAR... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPAAgent.ps1 | New-BPAAgent.ps1 | function New-BPAAgent {
<#
.SYNOPSIS
Creates a new AutoMate BPA agent.
.DESCRIPTION
New-BPAAgent creates a new agent object.
.PARAMETER Name
The name of the new object.
.PARAMETER Type
The type of agent to create: TaskAge... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAExecutionEvent.ps1 | Get-BPAExecutionEvent.ps1 | function Get-BPAExecutionEvent {
<#
.SYNOPSIS
Gets AutoMate BPA execution events.
.DESCRIPTION
Get-BPAExecutionEvent gets execution events for workflows and tasks.
.PARAMETER InputObject
The object(s) to retrieve execution events for.
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPAAgentGroup.ps1 | Get-BPAAgentGroup.ps1 | function Get-BPAAgentGroup {
<#
.SYNOPSIS
Gets AutoMate BPA agent groups.
.DESCRIPTION
Get-BPAAgentGroup gets agent group objects from AutoMate BPA. Get-BPAAgentGroup can receive items on the pipeline and return related objects.
.PARAMETER InputObject
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPATask.ps1 | New-BPATask.ps1 | function New-BPATask {
<#
.SYNOPSIS
Creates a new AutoMate BPA task.
.DESCRIPTION
New-BPATask creates a new task object.
.PARAMETER Name
The name of the new object.
.PARAMETER Notes
The new notes to set on the object.
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Get-BPACalendar.ps1 | Get-BPACalendar.ps1 | function Get-BPACalendar {
<#
.SYNOPSIS
Gets AutoMate BPA calendar events.
.DESCRIPTION
Get-BPACalendar gets events from the calendar.
.PARAMETER StartDate
The first date of events to retrieve (Default: now - must be equal or greater than the cu... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Add-BPAUserGroupMember.ps1 | Add-BPAUserGroupMember.ps1 | function Add-BPAUserGroupMember {
<#
.SYNOPSIS
Adds users to an AutoMate BPA user group.
.DESCRIPTION
Add-BPAUserGroupMember can add users to a user group.
.PARAMETER InputObject
The user group to modify.
.PARAMETER User
... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Unlock-BPAObject.ps1 | Unlock-BPAObject.ps1 | function Unlock-BPAObject {
<#
.SYNOPSIS
Unlocks an AutoMate BPA object.
.DESCRIPTION
Unlock-BPAObject receives BPA object(s) on the pipeline, or via the parameter $InputObject, and unlocks the object(s).
.PARAMETER InputObject
The object(s) to ... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Set-BPAWorkflow.ps1 | Set-BPAWorkflow.ps1 | function Set-BPAWorkflow {
<#
.SYNOPSIS
Sets properties of an AutoMate BPA workflow.
.DESCRIPTION
Set-BPAWorkflow can change properties of a workflow object.
.PARAMETER InputObject
The object to modify.
.PARAMETER Notes
T... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/Lock-BPAObject.ps1 | Lock-BPAObject.ps1 | function Lock-BPAObject {
<#
.SYNOPSIS
Locks an AutoMate BPA object.
.DESCRIPTION
Lock-BPAObject receives BPA object(s) on the pipeline, or via the parameter $InputObject, and locks the object(s).
.PARAMETER InputObject
The object(s) to be locke... |
PowerShellCorpus/Github/davidseibel_PoshBPA/Scripts/New-BPACredentialStoreItem.ps1 | New-BPACredentialStoreItem.ps1 | function New-BPACredentialStoreItem {
<#
.SYNOPSIS
Saves credentials for the specified BPA server
.DESCRIPTION
New-BPACredentialStoreItem stores a server and credential object together in a credential store file.
.PARAMETER BPAServer
The AutoMat... |
PowerShellCorpus/Github/OPS-E2E-Prod_E2E_P_D_NewRepo_2017_5_26_16_46_45/.openpublishing.build.ps1 | .openpublishing.build.ps1 | param(
[string]$buildCorePowershellUrl = "https://opbuildstorageprod.blob.core.windows.net/opps1container/.openpublishing.buildcore.ps1",
[string]$parameters
)
# Main
$errorActionPreference = 'Stop'
# Step-1: Download buildcore script to local
echo "download build core script to local with source url: ... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Compress-Tasks.ps1 | Compress-Tasks.ps1 | [CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[string]$SourceRoot,
[Parameter(Mandatory = $true)]
[string]$TargetPath,
[switch]$Individually)
$ErrorActionPreference = 'Stop'
Add-Type -Assembly 'System.IO.Compression.FileSystem'
if ($Individually) {
# Create the target r... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Expand-Tasks.ps1 | Expand-Tasks.ps1 | [CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
[string]$ZipPath,
[Parameter(Mandatory = $true)]
[string]$TargetPath)
$ErrorActionPreference = 'Stop'
Add-Type -Assembly 'System.IO.Compression.FileSystem'
# Create the target directory.
if (!(Test-Path -LiteralPath $TargetPath -Path... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Tasks/MADSetupKeyVaultAccess/SetupKeyVaultAccess.ps1 | SetupKeyVaultAccess.ps1 | Trace-VstsEnteringInvocation $MyInvocation
Import-VstsLocStrings "$PSScriptRoot\Task.json"
. "$PSScriptRoot\Util.ps1"
$certificateLocation = Get-VstsInput -Name CertificateLocation
$certificatePassword = Get-VstsInput -Name CertificatePassword
$serviceName = Get-VstsInput -Name "ConnectedServiceNameARM"
$end... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Tasks/MADSetupKeyVaultAccess/Util.ps1 | Util.ps1 | function Get-Certificate {
param(
[string]$certificateLocation,
[securestring]$certificatePassword
)
Write-Host "##[command]Importing $certificateLocation"
$flag = [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::Exportable
$pfx = New-Object System.Se... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Tasks/MADCreateApplication/CreateApplication.ps1 | CreateApplication.ps1 | Trace-VstsEnteringInvocation $MyInvocation
Import-VstsLocStrings "$PSScriptRoot\Task.json"
$applicationName = Get-VstsInput -Name ApplicationName -Require
$signInUrl = Get-VstsInput -Name SignInUrl -Require
$identifierUri = Get-VstsInput -Name IdentifierUri -Require
$useCertificate = Get-VstsInput -Name AddCerti... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Tasks/MADCreateApplication/Util.ps1 | Util.ps1 | function Update-CertificateCredentials {
param(
[string]$applicationId,
[System.Security.Cryptography.X509Certificates.X509Certificate2]$certificate
)
try{
Write-Host "##[command]Updating certificate for $applicationId"
$credentials = [System.Convert]::ToBase64Stri... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Tasks/MADApiManagement/Util.ps1 | Util.ps1 | function Configure-ApiUsingSwaggerUrl {
param(
[string]$WebApp,
[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementContext]$Context,
[string]$ApiName,
[string]$ApiPath
)
$api = Get-AzureRmApiManagementApi -Context $Context -Name $ApiName
... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Tasks/MADApiManagement/ConfigureApiManagement.ps1 | ConfigureApiManagement.ps1 | Trace-VstsEnteringInvocation $MyInvocation
$apiManagement = Get-VstsInput -Name ApiManagement -Require
$resourceGroupName = Get-VstsInput -Name ResourceGroupName -Require
$productName = Get-VstsInput -Name ApiProduct -Require
$action = Get-VstsInput -Name action -Require
try{
Import-Module $PSScriptRoot\ps_... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Tasks/Common/MADHelpers/AuthUtil.ps1 | AuthUtil.ps1 | function Get-AuthToken
{
param(
[Parameter(Mandatory=$true)]
$ApiEndpointUri,
[Parameter(Mandatory=$true)]
$AADTenant
)
$adal = "$PSScriptRoot\Microsoft.IdentityModel.Clients.ActiveDirectory.dll"
$adalforms = "$PSScriptRoot\Microsoft.IdentityModel.Clients.Activ... |
PowerShellCorpus/Github/Statoil_mad-vsts-tasks/Tasks/Common/MADHelpers/New-SWRandomPassword.ps1 | New-SWRandomPassword.ps1 | function New-SWRandomPassword {
<#
.Synopsis
Generates one or more complex passwords designed to fulfill the requirements for Active Directory
.DESCRIPTION
Generates one or more complex passwords designed to fulfill the requirements for Active Directory
.EXAMPLE
New-SWRandomP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.