full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/Haimanot1989_ASP.Net/AutomatedTellerMachine/packages/jQuery.1.10.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/Haimanot1989_ASP.Net/AutomatedTellerMachine/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/Github/Haimanot1989_ASP.Net/AutomatedTellerMachine/packages/Modernizr.2.6.2/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 $modernizrFileName... |
PowerShellCorpus/Github/Haimanot1989_ASP.Net/AutomatedTellerMachine/packages/Modernizr.2.6.2/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/Haimanot1989_ASP.Net/AutomatedTellerMachine/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/Haimanot1989_ASP.Net/AutomatedTellerMachine/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/Haimanot1989_ASP.Net/AutomatedTellerMachine/packages/Newtonsoft.Json.6.0.4/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# open json.net splash page on package install
# don't open if json.net is installed as a dependency
try
{
$url = "http://james.newtonking.com/json"
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq "Package Manager Con... |
PowerShellCorpus/Github/Haimanot1989_ASP.Net/Web-Api-Angular-Faq/packages/EntityFramework.6.1.1/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/Haimanot1989_ASP.Net/Web-Api-Angular-Faq/packages/EntityFramework.6.1.1/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/jQuery.1.10.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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/jQuery.1.10.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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/jQuery.1.10.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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/Github/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/Modernizr.2.6.2/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 $modernizrFileName... |
PowerShellCorpus/Github/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/Modernizr.2.6.2/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/EntityFramework.6.1.0/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
# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/EntityFramework.6.1.0/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/EntityFramework.6.1.1/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/packages/EntityFramework.6.1.1/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/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/Haimanot1989_ASP.Net/MVC_Bokhandel_v5/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/Practical-Admin_blog-scripts/powershell/NetApp/Remove-SvmAggrAccess.ps1 | Remove-SvmAggrAccess.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/netapp-powershell-toolkit-101-storage-virtual-machine-configuration/
#
#>
function Remove-SvmAggrAccess {
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[parameter(
Mandatory=$true,
Valu... |
PowerShellCorpus/Github/Practical-Admin_blog-scripts/powershell/NetApp/Move-LifInFog.ps1 | Move-LifInFog.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/netapp-powershell-toolkit-101-cluster-configuration/
#
#>
function Move-LifInFog {
[cmdletbinding(SupportsShouldProcess=$true)]
Param(
[Parameter(
Mandatory=$true,
ValueFromPipeline=$true
... |
PowerShellCorpus/Github/Practical-Admin_blog-scripts/powershell/NetApp/Set-NcVolQosPolicyGroup.ps1 | Set-NcVolQosPolicyGroup.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/netapp-powershell-toolkit-101-managing-volumes/
#
#>
function Set-NcVolQosPolicyGroup {
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[parameter(
Mandatory=$true,
ValueFromPipeline=$tru... |
PowerShellCorpus/Github/Practical-Admin_blog-scripts/powershell/NetApp/Get-NcVolQosPolicyGroup.ps1 | Get-NcVolQosPolicyGroup.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/netapp-powershell-toolkit-101-managing-volumes/
#
#>
function Get-NcVolQosPolicyGroup {
[CmdletBinding()]
param(
[parameter(
Mandatory=$true,
ValueFromPipelineByPropertyName=$true
)]... |
PowerShellCorpus/Github/Practical-Admin_blog-scripts/powershell/NetApp/Set-NcNodeCdp.ps1 | Set-NcNodeCdp.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/netapp-powershell-toolkit-101-node-configuration/
#
#>
function Set-NcNodeCdp {
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[Parameter(
Mandatory=$true,
ValueFromPipeline=$true,
... |
PowerShellCorpus/Github/Practical-Admin_blog-scripts/powershell/NetApp/Remove-NcVolQosPolicyGroup.ps1 | Remove-NcVolQosPolicyGroup.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/netapp-powershell-toolkit-101-managing-volumes/
#
#>
function Remove-NcVolQosPolicyGroup {
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[parameter(
Mandatory=$true,
ValueFromPipelineBy... |
PowerShellCorpus/Github/Practical-Admin_blog-scripts/powershell/NetApp/Add-SvmAggrAccess.ps1 | Add-SvmAggrAccess.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/netapp-powershell-toolkit-101-storage-virtual-machine-configuration/
#
#>
function Add-SvmAggrAccess {
[CmdletBinding(SupportsShouldProcess=$true)]
param(
[parameter(
Mandatory=$true,
ValueFr... |
PowerShellCorpus/Github/Practical-Admin_blog-scripts/powershell/Other/Get-UsersInGroup.ps1 | Get-UsersInGroup.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/powershell-recursively-show-user-membership-in-an-active-directory-group/
#
#>
function Get-UsersInGroup {
[cmdletbinding()]
param (
[parameter(Mandatory=$true)]
[string]$Object,
[parameter... |
PowerShellCorpus/Github/Practical-Admin_blog-scripts/powershell/Other/Get-GroupsForObject.ps1 | Get-GroupsForObject.ps1 | <#
# Author: Andrew Sullivan
# Reference: http://practical-admin.com/blog/powershell-recursively-show-group-membership-for-an-active-directory-object/
#
#>
function Get-GroupsForObject {
[cmdletbinding()]
param(
[string]$Object = "",
[int]$Level = 0
)
$indent = "-" * ... |
PowerShellCorpus/Github/volumeindrivec_UserPasswordAges/Send-PasswordChangeReminderEmail.ps1 | Send-PasswordChangeReminderEmail.ps1 | function Send-PasswordChangeReminderEmail{
[cmdletbinding(SupportsShouldProcess=$true)]
param(
[Parameter(ValueFromPipeline=$true)]$InputObject,
#[Parameter(Mandatory=$True)][string[]]$Recipient,
[Parameter(Mandatory=$True)][string]$Sender,
[Parameter(Mandatory=$True)][string]$EmailServer,
... |
PowerShellCorpus/Github/volumeindrivec_UserPasswordAges/Get-UserPasswordAges.ps1 | Get-UserPasswordAges.ps1 | function Get-UserPasswordAges{
[cmdletbinding()]
param(
[Parameter(Mandatory=$True)][string]$SearchBase,
[int]$MaxExpiresInDays
)
try {
Write-Verbose 'Attempting to import the ActiveDirectory module.'
Import-Module -Name ActiveDirectory
... |
PowerShellCorpus/Github/nohwnd_deepmind/DeepMind.Tests.ps1 | DeepMind.Tests.ps1 | . $PSScriptRoot\Helpers\AppVeyorHelpers.ps1
Import-Module $PSScriptRoot\DeepMind.psm1 -Force
Describe "Add-DeepMind" {
It "Adds <A> and <B> in the cloud and returns <Expected>" -TestCases @(
@{ A = 1; B = 1; Expected = 2 },
@{ A = 100; B = 10; Expected = 110 },
@{ A = -1; B = 1; ... |
PowerShellCorpus/Github/nohwnd_deepmind/Helpers/AppVeyorHelpers.ps1 | AppVeyorHelpers.ps1 | <#PSScriptInfo
.VERSION 0.1
.AUTHOR nohwnd
.GUID f8dab2f8-5b75-4d64-95eb-9b8b10cdd97a
.DESCRIPTION AppVeyor helpers for tag parsing and running tests conditionally.
#>
function Get-Environment () {
$env:Environment
}
function Set-Environment {
param
(
[ValidateSet("Devel... |
PowerShellCorpus/Github/nohwnd_deepmind/Helpers/Stubs.ps1 | Stubs.ps1 | function Add-AppveyorTest {
[CmdletBinding()]
param
(
[Parameter(Position=0, Mandatory=$true)]
$Name,
[Parameter(Mandatory=$false)]
$Framework = $null,
[Parameter(Mandatory=$false)]
$FileName = $null,
... |
PowerShellCorpus/Github/nohwnd_deepmind/Helpers/chocolateyInstall.ps1 | chocolateyInstall.ps1 | [CmdletBinding()]
param ( )
end
{
$modulePath = Join-Path -Path $env:ProgramFiles -ChildPath WindowsPowerShell\Modules
$targetDirectory = Join-Path -Path $modulePath -ChildPath Pester
$scriptRoot = Split-Path -Path $MyInvocation.MyCommand.Path -Parent
$sourceDirectory = Join-Path -Pat... |
PowerShellCorpus/Github/martin9700_Invoke-ActiveDirectoryHealthCheck/Invoke-ADOPTest.ps1 | Invoke-ADOPTest.ps1 | <#
.SYNOPSIS
Run Replication and DCDiag test on Active Directory and test using the Pester framework
.DESCRIPTION
Run Replication and DCDiag test on Active Directory and test using the Pester framework
Tests include replication backlog, standard and DNS DCDiag tests. DCDiag logs are kept, by default... |
PowerShellCorpus/Github/martin9700_Invoke-ActiveDirectoryHealthCheck/Tests/Invoke-ADTests.tests.ps1 | Invoke-ADTests.tests.ps1 | #Get all of the domain controllers
$DCs = Get-ADDomainController -Filter * | Select -ExpandProperty Name #| Select -First 2
#Get TextInfo object to get the ToTitleCase method
$TextInfo = (Get-Culture).TextInfo
Describe "Active Directory Health Checks" {
#Replication tests
Context "Domain Replication" ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/New-JiraIssue.ps1 | New-JiraIssue.ps1 | function New-JiraIssue
{
<#
.Synopsis
Creates an issue in JIRA
.DESCRIPTION
This function creates a new issue in JIRA.
Creating an issue requires a lot of data, and the exact data may be
different from one instance of JIRA to the next. To identify what data
is ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Remove-JiraGroupMember.ps1 | Remove-JiraGroupMember.ps1 | function Remove-JiraGroupMember
{
<#
.Synopsis
Removes a user from a JIRA group
.DESCRIPTION
This function removes a JIRA user from a JIRA group.
.EXAMPLE
Remove-JiraGroupMember -Group testUsers -User jsmith
This example removes the user jsmith from the group testUse... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Add-JiraIssueWatcher.ps1 | Add-JiraIssueWatcher.ps1 | function Add-JiraIssueWatcher
{
<#
.Synopsis
Adds a watcher to an existing JIRA issue
.DESCRIPTION
This function adds a watcher to an existing issue in JIRA.
.EXAMPLE
Add-JiraIssueWatcher -Watcher "fred" -Issue "TEST-001"
This example adds a watcher to the issue TEST... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraField.ps1 | Get-JiraField.ps1 | function Get-JiraField
{
<#
.Synopsis
This function returns information about JIRA fields
.DESCRIPTION
This function provides information about JIRA fields, or about one field in particular. This is a good way to identify a field's ID by its name, or vice versa.
Typically, thi... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraGroup.ps1 | Get-JiraGroup.ps1 | function Get-JiraGroup
{
<#
.Synopsis
Returns a group from Jira
.DESCRIPTION
This function returns information regarding a specified group from JIRA.
By default, this function does not display members of the group. This is JIRA's default
behavior as well. To display g... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraComponent.ps1 | Get-JiraComponent.ps1 | function Get-JiraComponent
{
<#
.Synopsis
Returns a Component from Jira
.DESCRIPTION
This function returns information regarding a specified component from Jira.
If -InputObject is given via parameter or pipe all components for
the given project are returned.
It i... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Remove-JiraSession.ps1 | Remove-JiraSession.ps1 | function Remove-JiraSession {
<#
.Synopsis
Removes a persistent JIRA authenticated session
.DESCRIPTION
This function removes a persistent JIRA authenticated session and closes the session for JIRA.
This can be used to "log out" of JIRA once work is complete.
If called w... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Remove-JiraGroup.ps1 | Remove-JiraGroup.ps1 | function Remove-JiraGroup
{
<#
.Synopsis
Removes an existing group from JIRA
.DESCRIPTION
This function removes an existing group from JIRA.
Deleting a group does not delete users from JIRA.
.EXAMPLE
Remove-JiraGroup -GroupName testGroup
Removes the JIRA gr... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraIssueType.ps1 | Get-JiraIssueType.ps1 | function Get-JiraIssueType
{
<#
.Synopsis
Returns information about the available issue type in JIRA.
.DESCRIPTION
This function retrieves all the available IssueType on the JIRA server an returns them as JiraPS.IssueType.
This function can restrict the output to a subset of... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/New-JiraGroup.ps1 | New-JiraGroup.ps1 | function New-JiraGroup
{
<#
.Synopsis
Creates a new group in JIRA
.DESCRIPTION
This function creates a new group in JIRA.
.EXAMPLE
New-JiraGroup -GroupName testGroup
This example creates a new JIRA group named testGroup.
.INPUTS
This function does not ac... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Add-JiraIssueWorklog.ps1 | Add-JiraIssueWorklog.ps1 | function Add-JiraIssueWorklog
{
<#
.Synopsis
Adds a worklog item to an existing JIRA issue
.DESCRIPTION
This function adds a worklog item to an existing issue in JIRA. You can optionally set the visibility of the item (All Users, Developers, or Administrators).
.EXAMPLE
Add-... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraIssueComment.ps1 | Get-JiraIssueComment.ps1 | function Get-JiraIssueComment
{
<#
.Synopsis
Returns comments on an issue in JIRA.
.DESCRIPTION
This function obtains comments from existing issues in JIRA.
.EXAMPLE
Get-JiraIssueComment -Key TEST-001
This example returns all comments posted to issue TEST-001.
.... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Remove-JiraUser.ps1 | Remove-JiraUser.ps1 | function Remove-JiraUser
{
<#
.Synopsis
Removes an existing user from JIRA
.DESCRIPTION
This function removes an existing user from JIRA.
WARNING: Deleting a JIRA user may cause database integrity problems. See this article for
details:
https://confluence.atla... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraProject.ps1 | Get-JiraProject.ps1 | function Get-JiraProject
{
<#
.Synopsis
Returns a project from Jira
.DESCRIPTION
This function returns information regarding a specified project from Jira. If
the Project parameter is not supplied, it will return information about all
projects the given user is authorized... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraIssueLinkType.ps1 | Get-JiraIssueLinkType.ps1 | function Get-JiraIssueLinkType
{
<#
.SYNOPSIS
Gets available issue link types
.DESCRIPTION
This function gets available issue link types from a JIRA server. It can also return specific information about a single issue link type.
This is a useful function for discovering data... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraRemoteLink.ps1 | Get-JiraRemoteLink.ps1 | function Get-JiraRemoteLink
{
<#
.Synopsis
Returns a remote link from a Jira issue
.DESCRIPTION
This function returns information on remote links from a JIRA issue.
.EXAMPLE
Get-JiraRemoteLink -Issue Project1-1000 -Credential $cred
Returns information about all remo... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/New-JiraSession.ps1 | New-JiraSession.ps1 | function New-JiraSession {
<#
.Synopsis
Creates a persistent JIRA authenticated session which can be used by other JiraPS functions
.DESCRIPTION
This function creates a persistent, authenticated session in to JIRA which can be used by all other
JiraPS functions instead of explicit... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Format-Jira.ps1 | Format-Jira.ps1 | function Format-Jira
{
<#
.Synopsis
Converts an object into a table formatted according to JIRA's markdown syntax
.DESCRIPTION
This function converts a PowerShell object into a table using JIRA's markdown syntax. This can then be added to a JIRA issue description or comment.
Li... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraConfigServer.ps1 | Get-JiraConfigServer.ps1 | function Get-JiraConfigServer
{
<#
.Synopsis
Obtains the configured URL for the JIRA server
.DESCRIPTION
This function returns the configured URL for the JIRA server that JiraPS should manipulate. By default, this is stored in a config.xml file at the module's root path.
.EXAMPLE
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/New-JiraUser.ps1 | New-JiraUser.ps1 | function New-JiraUser
{
<#
.Synopsis
Creates a new user in JIRA
.DESCRIPTION
This function creates a new user in JIRA. By default, the new user
will be notified via e-mail.
The new user's password is also randomly generated.
.EXAMPLE
New-JiraUser -UserName... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraUser.ps1 | Get-JiraUser.ps1 | function Get-JiraUser
{
<#
.Synopsis
Returns a user from Jira
.DESCRIPTION
This function returns information regarding a specified user from Jira.
.EXAMPLE
Get-JiraUser -UserName user1 -Credential $cred
Returns information about the user user1
.EXAMPLE
G... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Set-JiraIssueLabel.ps1 | Set-JiraIssueLabel.ps1 | function Set-JiraIssueLabel {
<#
.Synopsis
Modifies labels on an existing JIRA issue
.DESCRIPTION
This function modifies labels on an existing JIRA issue. There are
four supported operations on labels:
* Add: appends additional labels to the labels that an issue alr... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Add-JiraIssueLink.ps1 | Add-JiraIssueLink.ps1 | function Add-JiraIssueLink {
<#
.Synopsis
Adds a link between two Issues on Jira
.DESCRIPTION
Creates a new link of the specified type between two Issue.
.EXAMPLE
$link = [PSCustomObject]@{
outwardIssue = [PSCustomObject]@{key = "TEST-10"}
type = ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraGroupMember.ps1 | Get-JiraGroupMember.ps1 | function Get-JiraGroupMember
{
<#
.Synopsis
Returns members of a given group in JIRA
.DESCRIPTION
This function returns members of a provided group in JIRA.
.EXAMPLE
Get-JiraGroupmember testGroup
This example returns all members of the JIRA group testGroup.
.EXA... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Set-JiraUser.ps1 | Set-JiraUser.ps1 | function Set-JiraUser {
<#
.Synopsis
Modifies user properties in JIRA
.DESCRIPTION
This function modifies user properties in JIRA, allowing you to change a user's
e-mail address, display name, and any other properties supported by JIRA's API.
.EXAMPLE
Set-JiraUser -Us... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Remove-JiraIssueWatcher.ps1 | Remove-JiraIssueWatcher.ps1 | function Remove-JiraIssueWatcher
{
<#
.Synopsis
Removes a watcher from an existing JIRA issue
.DESCRIPTION
This function removes a watcher from an existing issue in JIRA.
.EXAMPLE
Remove-JiraIssueWatcher -Watcher "fred" -Issue "TEST-001"
This example removes a watche... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraIssueCreateMetadata.ps1 | Get-JiraIssueCreateMetadata.ps1 | function Get-JiraIssueCreateMetadata
{
<#
.Synopsis
Returns metadata required to create an issue in JIRA
.DESCRIPTION
This function returns metadata required to create an issue in JIRA - the fields that can be defined in the process of creating an issue. This can be used to identify cus... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Invoke-JiraIssueTransition.ps1 | Invoke-JiraIssueTransition.ps1 | function Invoke-JiraIssueTransition
{
<#
.Synopsis
Performs an issue transition on a JIRA issue, changing its status
.DESCRIPTION
This function performs an issue transition on a JIRA issue. Transitions are
defined in JIRA through workflows, and allow the issue to move from one s... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Remove-JiraIssueLink.ps1 | Remove-JiraIssueLink.ps1 | function Remove-JiraIssueLink {
<#
.Synopsis
Removes a issue link from a JIRA issue
.DESCRIPTION
This function removes a issue link from a JIRA issue.
.EXAMPLE
Remove-JiraIssueLink 1234,2345
Removes two issue links with id 1234 and 2345
.EXAMPLE
Get-... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Remove-JiraRemoteLink.ps1 | Remove-JiraRemoteLink.ps1 | function Remove-JiraRemoteLink
{
<#
.Synopsis
Removes a remote link from a JIRA issue
.DESCRIPTION
This function removes a remote link from a JIRA issue.
.EXAMPLE
Remove-JiraRemoteLink Project1-1001 10000,20000
Removes two remote link from issue "Project1-1001"
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraFilter.ps1 | Get-JiraFilter.ps1 | function Get-JiraFilter
{
<#
.Synopsis
Returns information about a filter in JIRA
.DESCRIPTION
This function returns information about a filter in JIRA, including the JQL syntax of the filter, its owner, and sharing status.
This function is only capable of returning filters by ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Add-JiraIssueComment.ps1 | Add-JiraIssueComment.ps1 | function Add-JiraIssueComment
{
<#
.Synopsis
Adds a comment to an existing JIRA issue
.DESCRIPTION
This function adds a comment to an existing issue in JIRA. You can optionally set the visibility of the comment (All Users, Developers, or Administrators).
.EXAMPLE
Add-JiraIss... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Set-JiraIssue.ps1 | Set-JiraIssue.ps1 | function Set-JiraIssue {
<#
.Synopsis
Modifies an existing issue in JIRA
.DESCRIPTION
This function modifies an existing isue in JIRA. This can include changing
the issue's summary or description, or assigning the issue.
.EXAMPLE
Set-JiraIssue -Issue TEST-01 -Summary... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraPriority.ps1 | Get-JiraPriority.ps1 | function Get-JiraPriority
{
<#
.Synopsis
Returns information about the available priorities in JIRA.
.DESCRIPTION
This function retrieves all the available Priorities on the JIRA server an returns them as JiraPS.Priority.
This function can restrict the output to a subset of ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraIssueWatcher.ps1 | Get-JiraIssueWatcher.ps1 | function Get-JiraIssueWatcher
{
<#
.Synopsis
Returns watchers on an issue in JIRA.
.DESCRIPTION
This function obtains watchers from existing issues in JIRA.
.EXAMPLE
Get-JiraIssueWatcher -Key TEST-001
This example returns all watchers posted to issue TEST-001.
.... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraIssueLink.ps1 | Get-JiraIssueLink.ps1 | function Get-JiraIssueLink {
<#
.Synopsis
Returns a specific issueLink from Jira
.DESCRIPTION
This function returns information regarding a specified issueLink from Jira.
.EXAMPLE
Get-JiraIssueLink 10000
Returns information about the IssueLink with ID 10000
.EXAM... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Add-JiraGroupMember.ps1 | Add-JiraGroupMember.ps1 | function Add-JiraGroupMember
{
<#
.Synopsis
Adds a user to a JIRA group
.DESCRIPTION
This function adds a JIRA user to a JIRA group.
.EXAMPLE
Add-JiraGroupMember -Group testUsers -User jsmith
This example adds the user jsmith to the group testUsers
.EXAMPLE
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraIssue.ps1 | Get-JiraIssue.ps1 | function Get-JiraIssue
{
<#
.Synopsis
Returns information about an issue in JIRA.
.DESCRIPTION
This function obtains references to issues in JIRA.
This function can be used to directly query JIRA for a specific issue key or internal issue ID. It can also be used to query JIR... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraIssueEditMetadata.ps1 | Get-JiraIssueEditMetadata.ps1 | function Get-JiraIssueEditMetadata
{
<#
.Synopsis
Returns metadata required to create an issue in JIRA
.DESCRIPTION
This function returns metadata required to create an issue in JIRA - the fields that can be defined in the process of creating an issue. This can be used to identify custo... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Set-JiraConfigServer.ps1 | Set-JiraConfigServer.ps1 | function Set-JiraConfigServer {
<#
.Synopsis
Defines the configured URL for the JIRA server
.DESCRIPTION
This function defines the configured URL for the JIRA server that JiraPS should manipulate. By default, this is stored in a config.xml file at the module's root path.
.EXAMPLE
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Public/Get-JiraSession.ps1 | Get-JiraSession.ps1 | function Get-JiraSession
{
<#
.Synopsis
Obtains a reference to the currently saved JIRA session
.DESCRIPTION
This functio obtains a reference to the currently saved JIRA session. This can provide
a JIRA session ID, as well as the username used to connect to JIRA.
.EXAMPLE
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraUser.ps1 | ConvertTo-JiraUser.ps1 | function ConvertTo-JiraUser
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# Write-... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraCreateMetaField.ps1 | ConvertTo-JiraCreateMetaField.ps1 | function ConvertTo-JiraCreateMetaField
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[Switch] $ReturnError
)
process
{
foreach ($i in ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraIssueLinkType.ps1 | ConvertTo-JiraIssueLinkType.ps1 | function ConvertTo-JiraIssueLinkType {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[Switch] $ReturnError
)
process {
foreach ($i in $InputObject) {
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraIssueType.ps1 | ConvertTo-JiraIssueType.ps1 | function ConvertTo-JiraIssueType
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[ValidateScript({Test-Path $_})]
[String] $ConfigFile,
[Switc... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraFilter.ps1 | ConvertTo-JiraFilter.ps1 | function ConvertTo-JiraFilter
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# Writ... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraGroup.ps1 | ConvertTo-JiraGroup.ps1 | function ConvertTo-JiraGroup
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# Write... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraProject.ps1 | ConvertTo-JiraProject.ps1 | function ConvertTo-JiraProject
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# Wri... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraEditMetaField.ps1 | ConvertTo-JiraEditMetaField.ps1 | function ConvertTo-JiraEditMetaField
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[Switch] $ReturnError
)
process
{
foreach ($i in $I... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraIssueLink.ps1 | ConvertTo-JiraIssueLink.ps1 | function ConvertTo-JiraIssueLink {
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[Switch] $ReturnError
)
process {
foreach ($i in $InputObject) {
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraIssue.ps1 | ConvertTo-JiraIssue.ps1 | function ConvertTo-JiraIssue
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[Switch] $IncludeDebug,
[Switch] $ReturnError
)
begin
{
... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertFrom-Json2.ps1 | ConvertFrom-Json2.ps1 | function ConvertFrom-Json2
{
[CmdletBinding()]
param
(
[Parameter(Mandatory = $true,
ValueFromPipeline = $true,
Position = 0)]
[Object[]] $InputObject,
[Parameter()]
[int] $MaxJsonLength = [int]::MaxValue
)
begin {... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/Resolve-JiraError.ps1 | Resolve-JiraError.ps1 | function Resolve-JiraError
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0)]
[Object[]] $InputObject,
# Write error results to the error stream (Write-Error) instead of to the output stream
[Switch] $WriteError
)
proc... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraStatus.ps1 | ConvertTo-JiraStatus.ps1 | function ConvertTo-JiraStatus
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject,
[ValidateScript({Test-Path $_})]
[String] $ConfigFile
)
process... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraSession.ps1 | ConvertTo-JiraSession.ps1 | function ConvertTo-JiraSession
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true)]
$WebResponse,
[Parameter(Mandatory = $true)]
$Session,
[Parameter(Mandatory = $true)]
[String] $Username
)
process
{
$obj = ConvertFrom-... |
PowerShellCorpus/Github/AtlassianPS_JiraPS/JiraPS/Internal/ConvertTo-JiraTransition.ps1 | ConvertTo-JiraTransition.ps1 | function ConvertTo-JiraTransition
{
[CmdletBinding()]
param(
[Parameter(Mandatory = $true,
Position = 0,
ValueFromPipeline = $true)]
[PSObject[]] $InputObject
)
process
{
foreach ($i in $InputObject)
{
# ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.