full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/Github/lazywinadmin_PowerShell/SCSM-Add-SCSMReviewActivityReviewer/Add-SCSMReviewActivityReviewer.ps1
Add-SCSMReviewActivityReviewer.ps1
function Add-SCSMReviewActivityReviewer { <# .SYNOPSIS Function to add a reviewer to a Review Activity item .DESCRIPTION Function to add a reviewer to a Review Activity item .PARAMETER UserName Specifies the UserName to add .PARAMETER Veto Specifies the Veto. Default is False. .PARAM...
PowerShellCorpus/Github/lazywinadmin_PowerShell/SCCM-Add-SCCMUserDeviceAffinity/Add-SCCMUserDeviceAffinity.ps1
Add-SCCMUserDeviceAffinity.ps1
Function Add-SCCMUserDeviceAffinity { <# .SYNOPSIS Function to add a primary user on a device .DESCRIPTION Function to add a primary user on a device .PARAMETER SiteCode Specifies the SCCM SiteCode .PARAMETER SiteServer Specifies the SCCM Management Server .PARAMETER DeviceName Sp...
PowerShellCorpus/Github/lazywinadmin_PowerShell/SCCM-New-SCCMTSAppVariable/New-SCCMTSAppVariable.ps1
New-SCCMTSAppVariable.ps1
Function New-SCCMTSAppVariable { <# .SYNOPSIS Function to create a SCCM Task Sequence Application Variable during the OSD .PARAMETER BaseVariableName Specifies the "Base Variable Name" present in the task "Install Application" of the Task Sequence. (In the 'Install application according to dynamic va...
PowerShellCorpus/Github/OPSTest_E2E_Provision_1485705941758/.openpublishing.build.ps1
.openpublishing.build.ps1
param( [string]$buildCorePowershellUrl = "https://opbuildstoragesandbox2.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 u...
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_Provision_2017_4_26_13_52_37/.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/sjefremov_restful/WebApplication1/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/sjefremov_restful/WebApplication1/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/sjefremov_restful/WebApplication1/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1
init.ps1
param($installPath, $toolsPath, $package, $project) $compilerPackageName = 'Microsoft.Net.Compilers' $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $libDirectory = Join-Path $installPath 'lib\net45' $packageDirectory = Split-Path $installPath $compilerPackage = Get-Chil...
PowerShellCorpus/Github/sjefremov_restful/WebApplication1/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1
uninstall.ps1
param($installPath, $toolsPath, $package, $project) $roslynSubFolder = 'roslyn' if ($project -eq $null) { $project = Get-Project } $projectRoot = $project.Properties.Item('FullPath').Value $binDirectory = Join-Path $projectRoot 'bin' $targetDirectory = Join-Path $binDirectory $roslynSubFolder if (Te...
PowerShellCorpus/Github/sjefremov_restful/WebApplication1/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/sambyers_asaconfigconversion/Convert ASA Object Group Cmds.ps1
Convert ASA Object Group Cmds.ps1
# This script converts object commands from Cisco ASA 8.2 configuration to 8.3+ object commands. # Only feed it object groups commands, it will not parse an entire configuration file correctly. $txt_file = "<your text file of object names here>" foreach ($command in Get-Content $txt_file ) { $split_command ...
PowerShellCorpus/Github/sambyers_asaconfigconversion/Convert ASA Object Cmds.ps1
Convert ASA Object Cmds.ps1
# This script converts object commands from Cisco ASA 8.2 configuration to 8.3+ object commands. # Only feed it name commands, it will not parse an entire configuration file correctly. $txt_file = "<your text file of object names here>" foreach ($command in Get-Content $txt_file ) { $split_command = $comman...
PowerShellCorpus/Github/zaicnupagadi_Remove-OnPremiseMailboxItem-/Remove-OnPremiseMailboxItem.ps1
Remove-OnPremiseMailboxItem.ps1
Function Remove-OnPremiseMailboxItem { <# .SYNOPSIS "Remove-OnPremiseMailboxItem" function has been created to ease removal SPAM/unwanted messages from mailboxes. .DESCRIPTION Generates a report or does the removal action for the specified server, database, mailbox or list of mailboxes. ...
PowerShellCorpus/Github/Toyonut_poshtsa/set-passengerlane.ps1
set-passengerlane.ps1
<# Written by Paul Milbank 07/04/2016 Script to randomly direct pasengers down one lane or another. #> function Print-Leftarrow () { $leftarrow = @(" /|---- / | \ | \|---- ") Write-output $leftarrow } function Print-Rightarrow () { $rightarrow ...
PowerShellCorpus/Github/deep40k_PSPrinterManager/printermanager.ps1
printermanager.ps1
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework') [xml]$XAML = @' <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmln...
PowerShellCorpus/Github/hadida_Zabbix/Exchange2010/MailboxDatabase/Get-ExchangeDb.ps1
Get-ExchangeDb.ps1
############################################################################ # # # Author: Viktor Kucher # Email: viktor.kucher@gmail.com # Blog: http://viktorkucher.blogspot.com/2015/10/exchange-2010-monitoring-database-by.html # Date created: 20/10/2015 # Version: 1.0 # Descrip...
PowerShellCorpus/Github/hadida_Zabbix/Exchange2010/MailboxDatabase/Get-ExchangeDbStatus.ps1
Get-ExchangeDbStatus.ps1
############################################################################ # # # Author: Viktor Kucher # Email: viktor.kucher@gmail.com # Blog: http://viktorkucher.blogspot.com/2015/10/exchange-2010-monitoring-database-by.html # Date created: 20/10/2015 # Version: 1.0 # Descrip...
PowerShellCorpus/Github/hadida_Zabbix/Exchange2010/MailboxDatabase/Get-ExchangeDbDiscovery.ps1
Get-ExchangeDbDiscovery.ps1
############################################################################ # # # Author: Viktor Kucher # Email: viktor.kucher@gmail.com # Blog: http://viktorkucher.blogspot.com/2015/10/exchange-2010-monitoring-database-by.html # Date created: 20/10/2015 # Version: 1.0 # Descrip...
PowerShellCorpus/Github/hadida_Zabbix/AgentDistribution/AgentDistribution.ps1
AgentDistribution.ps1
############################################################################ # # # # Distribution Zabbix agent among servers # Author: Viktor Kucher # Email: viktor.kucher@gmail.com # Date created: 09/09/2015 # Version: 1.0 # Description: Distribution Zabbix agent among servers. Stop Zabbi...
PowerShellCorpus/Github/Graill_CreateVMsFromCSV/Create-VMsFromCsv.ps1
Create-VMsFromCsv.ps1
<# .SYNOPSIS Script creates VMs using info from CSV File, copies and adds sysprepped VHD to said VM and assigns IP addresses via WMI .EXAMPLE Create-VMsFromCSV -VMLocation "C:\VM" -TemplatePath "c:\temp\Win2012R2G2_disk_1.vhdx", -CSVPath "C:\temp\VMIPS.csv", -Nameserver="172.16.248.11", "172.16.248.12", -Gateway ...
PowerShellCorpus/Github/OPS-E2E-PPE_E2E_NewRepo_2017_4_11_26_5_18/.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/igoravl_tfscmdlets/RunTests.ps1
RunTests.ps1
Param($Configuration = 'Release') $scriptPath = Split-Path $MyInvocation.MyCommand.Path -Parent $solutionDir = Join-Path $scriptPath 'TfsCmdlets' $NugetExePath = Join-Path $solutionDir '.nuget\nuget.exe' & $NugetExePath Restore "$solutionDir\TfsCmdlets.sln" $packagesDir = Join-Path $solutionDir 'packages' $...
PowerShellCorpus/Github/igoravl_tfscmdlets/Build.ps1
Build.ps1
[CmdletBinding()] Param ( $SolutionDir = (Join-Path $PSScriptRoot 'src'), $Configuration = 'Release', $EnableFusionLog = $false, $ModuleName = 'TfsCmdlets', $ModuleAuthor = 'Igor Abade V. Leite', $ModuleDescription = 'PowerShell Cmdlets for TFS and VSTS', $Targets = "Package", ...
PowerShellCorpus/Github/igoravl_tfscmdlets/BuildDoc.ps1
BuildDoc.ps1
param( [Parameter()] [String] $SourceDir, [Parameter()] [String] $OutputDir ) ## Table Descriptors ----------------------------------------------------------- function HeaderCell { [CmdletBinding()] param( [Parameter(Position=0, Mandatory=$true)] [Strin...
PowerShellCorpus/Github/igoravl_tfscmdlets/DebugTest.ps1
DebugTest.ps1
$scriptPath = Split-Path $MyInvocation.MyCommand.Path -Parent Import-Module (Join-Path $scriptPath 'out\module\TfsCmdlets.psd1') Get-Module TfsCmdlets
PowerShellCorpus/Github/igoravl_tfscmdlets/src/psake.ps1
psake.ps1
# This script is a psake script file and should not be called directly. Use ..\Build.ps1 instead. Properties { Function Get-EscapedMSBuildArgument($arg) { return '"' + $arg.Replace('"', '\"') + '"' } # Source information $RepoCreationDate = Get-Date '2014-10-24' $ProjectDir...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Startup.ps1
Startup.ps1
$binDir = (Join-Path $PSScriptRoot 'lib') $assemblyList = '' foreach($a in Get-ChildItem $binDir) { $assemblyList += "{""$($a.BaseName)"", @""$($a.FullName)""},`r`n" } if (-not ([System.Management.Automation.PSTypeName]'TfsCmdlets.AssemblyResolver').Type) { Add-Type -ErrorAction SilentlyContinue -L...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/chocolateyInstall.ps1
chocolateyInstall.ps1
$InstallPath = Join-Path $($env:ChocolateyInstall) 'lib\TfsCmdlets' $ToolsDir = Join-Path $InstallPath 'Tools' if ($env:PSModulePath -notlike "*$ToolsDir*") { Write-Output "TfsCmdlets: Adding installation directory to PSModulePath environment variable" SETX @('PSModulePath', "$env:PSModulePath;$ToolsDir"...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/chocolateyUninstall.ps1
chocolateyUninstall.ps1
$InstallPath = Join-Path $($env:ChocolateyInstall) 'lib\TfsCmdlets' $ToolsDir = Join-Path $InstallPath 'Tools' if ($env:PSModulePath -like "*$ToolsDir*") { Write-Output "TfsCmdlets: Removing installation directory from PSModulePath environment variable" $NewModulePath = $Env:PSModulePath.Replace($ToolsDi...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Connection/Disconnect-TfsTeamProjectCollection.ps1
Disconnect-TfsTeamProjectCollection.ps1
<# .SYNOPSIS Disconnects from the currently connected team project collection. .DESCRIPTION The Disconnect-TfsTeamProjectCollection cmdlet removes the global variable set by Connect-TfsTeamProjectCollection. Therefore, cmdlets relying on a "default collection" as provided by "Get-TfsTeamProjectCollectio...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Connection/Disconnect-TfsTeamProject.ps1
Disconnect-TfsTeamProject.ps1
<# .SYNOPSIS Disconnects from the currently connected team project. .DESCRIPTION The Disconnect-TfsTeamProject cmdlet removes the global variable set by Connect-TfsTeamProject . Therefore, cmdlets relying on a "default project" as provided by "Get-TfsTeamProject -Current" will no longer work after a cal...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Connection/Disconnect-TfsConfigurationServer.ps1
Disconnect-TfsConfigurationServer.ps1
<# .SYNOPSIS Disconnects from the currently connected configuration server. .DESCRIPTION The Disconnect-TfsConfigurationServer cmdlet removes the global variable set by Connect-TfsConfigurationServer. Therefore, cmdlets relying on a "default server" as provided by "Get-TfsConfigurationServer -Current" w...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Connection/Connect-TfsTeamProjectCollection.ps1
Connect-TfsTeamProjectCollection.ps1
<# .SYNOPSIS Connects to a team project collection. .DESCRIPTION The Connect-TfsTeamProjectCollection cmdlet "connects" (initializes a Microsoft.TeamFoundation.Client.TfsTeamProjectCollection object) to a TFS Team Project Collection. That connection is subsequently kept in a global variable to be later reused ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Connection/Get-TfsCredential.ps1
Get-TfsCredential.ps1
<# .SYNOPSIS Provides credentials to use when you connect to a Team Foundation Server or Visual Studio Team Services account. .DESCRIPTION .NOTES .INPUTS #> Function Get-TfsCredential { [CmdletBinding(DefaultParameterSetName="Prompt for credential")] [OutputType([Microsoft.TeamFoundatio...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Connection/Connect-TfsTeamProject.ps1
Connect-TfsTeamProject.ps1
<# .SYNOPSIS Connects to a team project. .PARAMETER Credential ${HelpParam_TfsCredential} .PARAMETER Interactive Prompts for user credentials. Can be used for both TFS and VSTS accounts - the proper login dialog is automatically selected. Should only be used in an interactive PowerShell session (i....
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Connection/Connect-TfsConfigurationServer.ps1
Connect-TfsConfigurationServer.ps1
<# .SYNOPSIS Connects to a configuration server. .PARAMETER Credential ${HelpParam_TfsCredential} .PARAMETER Passthru ${HelpParam_Passthru} .DESCRIPTION The Connect-TfsConfigurationServer function connects to a TFS configuration server. Functions that operate on a server level (as oppose...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/TeamProject/Get-TfsTeamProject.ps1
Get-TfsTeamProject.ps1
<# .SYNOPSIS Gets information about one or more team projects. .DESCRIPTION The Get-TfsTeamProject cmdlets gets one or more Team Project objects (an instance of Microsoft.TeamFoundation.WorkItemTracking.Client.Project) from the supplied Team Project Collection. .PARAMETER Project Specifies the name of ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/TeamProject/New-TfsTeamProject.ps1
New-TfsTeamProject.ps1
<# .SYNOPSIS Creates a new team project. #> Function New-TfsTeamProject { [CmdletBinding(DefaultParameterSetName='Get by project')] [OutputType([Microsoft.TeamFoundation.WorkItemTracking.Client.Project])] Param ( [Parameter(Position=0, Mandatory=$true)] [string] ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/ProcessTemplate/Export-TfsProcessTemplate.ps1
Export-TfsProcessTemplate.ps1
<# .SYNOPSIS Exports a process template definition to disk. .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TfsTeamProjectCollection System.String System.Uri #> Function Export-TfsProcessTemplate { [CmdletBinding()] Param ( [P...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/ProcessTemplate/Import-TfsProcessTemplate.ps1
Import-TfsProcessTemplate.ps1
<# .SYNOPSIS Imports a process template definition from disk. .PARAMETER Collection ${HelpParam_Collection} .INPUTS System.String #> Function Import-TfsProcessTemplate { Param ( [Parameter(Position=0, Mandatory=$true, ValueFromPipeline=$true)] [ValidateScript({...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/ProcessTemplate/Get-TfsProcessTemplate.ps1
Get-TfsProcessTemplate.ps1
<# .SYNOPSIS Gets information from one or more process templates. .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TfsTeamProjectCollection System.String System.Uri #> Function Get-TfsProcessTemplate { [CmdletBinding()] [OutputType([Micros...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/ConfigServer/Get-TfsConfigurationServer.ps1
Get-TfsConfigurationServer.ps1
<# .SYNOPSIS Gets information about a configuration server. .PARAMETER Server ${HelpParam_Server} .PARAMETER Current Returns the configuration server specified in the last call to Connect-TfsConfigurationServer (i.e. the "current" configuration server) .PARAMETER Credential ${HelpParam_Tfs...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/ConfigServer/Get-TfsRegisteredConfigurationServer.ps1
Get-TfsRegisteredConfigurationServer.ps1
<# .SYNOPSIS Gets one or more Team Foundation Server addresses registered in the current computer. .PARAMETER Name Specifies the name of a registered server. When omitted, all registered servers are returned. Wildcards are permitted. .INPUTS System.String #> Function Get-TfsRegisteredConfigurati...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/ConfigServer/Get-TfsConfigurationServerConnectionString.ps1
Get-TfsConfigurationServerConnectionString.ps1
<# .SYNOPSIS Gets the configuration server database connection string. .PARAMETER Computer Specifies the name of a Team Foundation Server application tier from which to retrieve the connection string .PARAMETER Version Specifies the version of the Team Foundation Server being queried. Valid values...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Git/New-TfsGitRepository.ps1
New-TfsGitRepository.ps1
<# .SYNOPSIS Creates a new Git repository in a team project. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .PARAMETER Passthru ${HelpParam_Passthru} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.Project System.String #> Fu...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Git/Get-TfsGitRepository.ps1
Get-TfsGitRepository.ps1
<# .SYNOPSIS Gets information from one or more Git repositories in a team project. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.Project System.String #> Function Get-TfsGitRepository ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Git/Remove-TfsGitRepository.ps1
Remove-TfsGitRepository.ps1
<# .SYNOPSIS Deletes one or more Git repositories from a team project. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository System.String #> Function Remove-TfsGitRepository { ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Git/Rename-TfsGitRepository.ps1
Rename-TfsGitRepository.ps1
<# .SYNOPSIS Renames a Git repository in a team project. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .PARAMETER Passthru ${HelpParam_Passthru} .INPUTS Microsoft.TeamFoundation.SourceControl.WebApi.GitRepository System.String #> Fun...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/ObjectHelper/Get-TfsHttpClient.ps1
Get-TfsHttpClient.ps1
<# .SYNOPSIS Gets an Team Foundation Server REST API client object. .PARAMETER Collection ${HelpParam_Collection} #> Function Get-TfsHttpClient { Param ( [Parameter(Mandatory=$true, Position=0)] [string] $Type, [Parameter()] [object] ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/ObjectHelper/_InvokeGenericMethod.ps1
_InvokeGenericMethod.ps1
# # _InvokeGenericMethod.ps1 # function Invoke-GenericMethod { <# .Synopsis Invokes Generic methods on .NET Framework types .DESCRIPTION Allows the caller to invoke a Generic method on a .NET object or class with a single function call. Invoke-GenericMethod handles identifying the ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/XamlBuild/Get-TfsXamlBuildDefinition.ps1
Get-TfsXamlBuildDefinition.ps1
<# .SYNOPSIS Gets one or more XAML Build definitions. .PARAMETER BuildDefinition Uses this parameter to filter for an specific Build Defintion. If suppress, cmdlet will show all queue builds. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .E...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/XamlBuild/Get-TfsXamlBuildAgent.ps1
Get-TfsXamlBuildAgent.ps1
<# .SYNOPSIS Gets information about one or more XAML Build agents. .PARAMETER Collection ${HelpParam_Collection} #> Function Get-TfsXamlBuildAgent { [CmdletBinding()] [OutputType([Microsoft.TeamFoundation.Build.Client.IBuildAgent])] Param ( [Parameter(Position=0)] ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/XamlBuild/Start-TfsXamlBuild.ps1
Start-TfsXamlBuild.ps1
<# .SYNOPSIS Queues a XAML Build. .PARAMETER BuildDefinition Build Definition Name that you want to queue. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .EXAMPLE Start-TfsBuild -BuildDefinition "My Build Definition" -Project "MyTeamProject"...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/XamlBuild/New-TfsXamlBuildService.ps1
New-TfsXamlBuildService.ps1
<# .SYNOPSIS Sets up an additional build service in the current computer .DESCRIPTION In Team Foundation Server, the Build Service is a Windows Service that is associated with a particular TFS Team Project Collection (since 2010). Each Build Service support zero to one (0..1) Build Controllers a...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/XamlBuild/Get-TfsXamlBuildQueue.ps1
Get-TfsXamlBuildQueue.ps1
<# .SYNOPSIS Gets information about queued XAML Builds. .PARAMETER BuildDefinition Uses this parameter to filter for an specific Build Defintion. If suppress, cmdlet will show all queue builds. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/XamlBuild/Get-TfsXamlBuildController.ps1
Get-TfsXamlBuildController.ps1
<# .SYNOPSIS Gets information about one or more XAML Build controllers. .PARAMETER Collection ${HelpParam_Collection} #> Function Get-TfsXamlBuildController { [CmdletBinding()] [OutputType([Microsoft.TeamFoundation.Build.Client.IBuildController])] Param ( [Parameter(Pos...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItemQuery/Export-TfsWorkItemQuery.ps1
Export-TfsWorkItemQuery.ps1
<# .SYNOPSIS Exports a saved work item query to XML. .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TfsTeamProjectCollection System.String System.Uri #> Function Export-TfsWorkItemQuery { [CmdletBinding()] [OutputType([xml])] Par...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItemQuery/New-TfsWorkItemQuery.ps1
New-TfsWorkItemQuery.ps1
<# .SYNOPSIS Create a new work items query in the given Team Project. .PARAMETER Query Specifies the path of the new work item query. When supplying a path, use a slash ("/") between the path segments. Leading and trailing backslashes are optional. The last segment in the path will be the area name....
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItemQuery/Get-TfsWorkItemQuery.ps1
Get-TfsWorkItemQuery.ps1
<# .SYNOPSIS Gets the definition of one or more work item saved queries. .PARAMETER Query Specifies the path of a saved query. Wildcards are supported. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTrac...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItemQuery/Remove-TfsWorkItemQuery.ps1
Remove-TfsWorkItemQuery.ps1
<# .SYNOPSIS Deletes one or more work item queries from the specified Team Project.. .PARAMETER Query Specifies the path of a saved query. Wildcards are supported. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Wo...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItemQuery/Set-TfsWorkItemQuery.ps1
Set-TfsWorkItemQuery.ps1
<# .SYNOPSIS Changes the value of a property of a work item query. .PARAMETER Query Specifies the path of a work item saved query. .PARAMETER NewName Specifies the new name of the query. Enter only a name, not a path and name. If you enter a path that is different from the path that is specified in...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItemQuery/_Helpers.ps1
_Helpers.ps1
Function _FindQueryFolder($folder, $parent) { Write-Verbose "_FindQueryFolder: Searching for $folder under $($parent.Path)" if ($folder -is [Microsoft.TeamFoundation.WorkItemTracking.Client.QueryFolder]) { Write-Verbose "_FindQueryFolder: Returning folder immediately, since it's a QueryFolder...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItemQuery/Rename-TfsWorkItemQuery.ps1
Rename-TfsWorkItemQuery.ps1
<# .SYNOPSIS Changes the value of a property of an Area. .PARAMETER Area ${HelpParam_Area} .PARAMETER NewName Specifies the new name of the area. Enter only a name, not a path and name. If you enter a path that is different from the path that is specified in the area parameter, Rename-Tfsarea ge...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Remove-TfsWorkItem.ps1
Remove-TfsWorkItem.ps1
<# .SYNOPSIS Deletes a work item from a team project collection. .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem System.Int32 #> Function Remove-TfsWorkItem { [CmdletBinding(ConfirmImpact="High", SupportsShouldProcess=$...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Get-TfsWorkItemHistory.ps1
Get-TfsWorkItemHistory.ps1
<# .SYNOPSIS Gets the history of changes of a work item. .PARAMETER Collection ${HelpParam_Collection} .EXAMPLE Get-TfsWorkItem -Filter '[System.WorkItemType] = "Task"' | % { Write-Output "WI $($_.Id): $($_.Title)"; Get-TfsWorkItemHistory -WorkItem $_ } .INPUTS Microsoft.TeamFoundation....
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Get-TfsWorkItemLinkEndType.ps1
Get-TfsWorkItemLinkEndType.ps1
<# .SYNOPSIS Gets the work item link end types of a team project collection. .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TfsTeamProjectCollection System.String #> Function Get-TfsWorkItemLinkEndType { [OutputType([Microsoft.TeamFoundation.Wo...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Get-TfsWorkItemType.ps1
Get-TfsWorkItemType.ps1
<# .SYNOPSIS Gets one or more Work Item Type definitions from a team project. .PARAMETER Name Uses this parameter to filter for an specific Work Item Type. If suppress, cmdlet will show all Work Item Types. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Co...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Set-TfsWorkItem.ps1
Set-TfsWorkItem.ps1
<# .SYNOPSIS Sets the contents of one or more work items. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} #> Function Set-TfsWorkItem { [CmdletBinding()] Param ( [Parameter(ValueFromPipeline=$true, Position=0)] [Alias("i...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Export-TfsWorkItemType.ps1
Export-TfsWorkItemType.ps1
<# .SYNOPSIS Exports a work item type definition from a team project to XML. .PARAMETER Name Uses this parameter to filter for an specific Work Item Type. If suppress, cmdlet will return all Work Item Types on XML format. .PARAMETER IncludeGlobalLists Exports the definitions of referenced ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/New-TfsWorkItem.ps1
New-TfsWorkItem.ps1
<# .SYNOPSIS Creates a new work item in a team project. .PARAMETER Type Represents the name of the work item type to create. .PARAMETER Title Specifies a Title field of new work item type that will be created. .PARAMETER Fields Specifies the fields that are changed and the new values to ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/_Helpers.ps1
_Helpers.ps1
Function _FixAreaIterationValues([hashtable] $Fields, $ProjectName) { if ($Fields.ContainsKey('System.AreaPath') -and ($Fields['System.AreaPath'] -notmatch "'\\?$ProjectName\\.+'")) { $Fields['System.AreaPath'] = ("$ProjectName\$($Fields['System.AreaPath'])" -replace '\\', '\') } if ($Fields.ContainsKey('...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Get-TfsWorkItemLink.ps1
Get-TfsWorkItemLink.ps1
<# .SYNOPSIS Gets the links of a work item. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.Project System.String #> Function Get-TfsWorkItemLink { [OutputType([Microsoft.TeamFound...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Get-TfsWorkItem.ps1
Get-TfsWorkItem.ps1
<# .SYNOPSIS Gets the contents of one or more work items. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.Project System.String #> Function Get-TfsWorkItem { [CmdletBinding(Default...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Import-TfsWorkItemType.ps1
Import-TfsWorkItemType.ps1
<# .SYNOPSIS Imports a work item type definition to a team project from XML. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS System.Xml.XmlDocument #> Function Import-TfsWorkItemType { [CmdletBinding()] Param ( [Par...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Copy-TfsWorkItem.ps1
Copy-TfsWorkItem.ps1
<# .SYNOPSIS Creates a copy of a work item, optionally changing its type .PARAMETER Collection ${HelpParam_Collection} #> Function Copy-TfsWorkItem { [CmdletBinding()] Param ( [Parameter(ValueFromPipeline=$true)] [Alias("id")] [ValidateNotNull()] [...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/WorkItem/Add-TfsWorkItemLink.ps1
Add-TfsWorkItemLink.ps1
<# .SYNOPSIS Gets the links of a work item. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.Project System.String #> Function Add-TfsWorkItemLink { Param ( [Parameter...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Team/New-TfsTeam.ps1
New-TfsTeam.ps1
<# .SYNOPSIS Creates a new team. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .PARAMETER Passthru ${HelpParam_Passthru} .INPUTS System.String #> Function New-TfsTeam { [CmdletBinding()] [OutputType([Microsoft.TeamFoundation.Cl...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Team/_Helpers.ps1
_Helpers.ps1
Function _GetTeam { param ( [Parameter()] [string] $ProjectName, [Parameter()] [string] $Name ) Begin { $tpc = Get-TfsTeamProjectCollection -Current $teamService = $tpc.GetService([type]"Microsoft.TeamFoundation....
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Team/Remove-TfsTeam.ps1
Remove-TfsTeam.ps1
<# .SYNOPSIS Deletes a team. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TeamFoundationTeam System.String #> Function Remove-TfsTeam { [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact=...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Team/Rename-TfsTeam.ps1
Rename-TfsTeam.ps1
<# .SYNOPSIS Renames a team. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TeamFoundationTeam System.String #> Function Rename-TfsTeam { [OutputType([Microsoft.TeamFoundation.Client.TeamFoundatio...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Team/Get-TfsTeam.ps1
Get-TfsTeam.ps1
<# .SYNOPSIS Gets information about one or more teams. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.Project System.String #> Function Get-TfsTeam { [CmdletBinding(DefaultParamet...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/Team/Set-TfsTeam.ps1
Set-TfsTeam.ps1
<# .SYNOPSIS Changes the details of a team. .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TeamFoundationTeam System.String #> Function Set-TfsTeam { [CmdletBinding(DefaultParameterSetName="Get by...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Get-TfsIteration.ps1
Get-TfsIteration.ps1
<# .SYNOPSIS Gets one or more Work Item Iterations from a given Team Project. .PARAMETER Iteration ${HelpParam_Iteration} .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.Project Syst...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Rename-TfsIteration.ps1
Rename-TfsIteration.ps1
<# .SYNOPSIS Renames a Work Item Iteration. .PARAMETER Iteration ${HelpParam_Iteration} .PARAMETER NewName Specifies the new name of the iteration. Enter only a name, not a path and name. If you enter a path that is different from the path that is specified in the Iteration parameter, Rename-TfsIt...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Move-TfsIteration.ps1
Move-TfsIteration.ps1
<# .SYNOPSIS Moves a Work Item Iteration from its parent iteration to another one in the same Team Project. .PARAMETER Iteration ${HelpParam_Iteration} .PARAMETER Destination Specifies the name, URI or path of an Iteration Path that will become the new parent of the given source iteration .PARA...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Remove-TfsArea.ps1
Remove-TfsArea.ps1
<# .SYNOPSIS Deletes one or more Work Item Areas. .PARAMETER Area ${HelpParam_Area} .PARAMETER MoveTo Specifies the new area path for the work items currently assigned to the area being deleted, if any. When omitted, defaults to the root area .PARAMETER Project ${HelpParam_Project} .PAR...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Rename-TfsArea.ps1
Rename-TfsArea.ps1
<# .SYNOPSIS Renames a Work Item Area. .PARAMETER Area ${HelpParam_Area} .PARAMETER NewName Specifies the new name of the area. Enter only a name, not a path and name. If you enter a path that is different from the path that is specified in the Area parameter, Rename-TfsArea generates an error. To...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Get-TfsArea.ps1
Get-TfsArea.ps1
<# .SYNOPSIS Gets one or more Work Item Areas from a given Team Project. .PARAMETER Area ${HelpParam_Area} .PARAMETER Project ${HelpParam_Project} .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.WorkItemTracking.Client.Project System.String #> ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Remove-TfsIteration.ps1
Remove-TfsIteration.ps1
<# .SYNOPSIS Deletes one or more Work Item Iterations. .PARAMETER Iteration ${HelpParam_Iteration} .PARAMETER MoveTo Specifies the new iteration path for the work items currently assigned to the iteration being deleted, if any. When omitted, defaults to the root iteration .PARAMETER Project ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/_Helpers.ps1
_Helpers.ps1
Function _GetCssNodes($Node, $Scope, $Project, $Collection) { Process { if ($Node -is [Microsoft.TeamFoundation.Server.NodeInfo]) { return $Node } $tp = Get-TfsTeamProject -Project $Project -Collection $Collection $tpc = $tp.Store.TeamProjectCollection $projectName = $tp.Name $c...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Set-TfsIteration.ps1
Set-TfsIteration.ps1
<# .SYNOPSIS Modifies the name, position and/or the dates of a Work Item Iteration. .PARAMETER Iteration ${HelpParam_Iteration} .PARAMETER NewName Specifies the new name of the iteration. Enter only a name, not a path and name. If you enter a path that is different from the path that is specified ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Move-TfsArea.ps1
Move-TfsArea.ps1
<# .SYNOPSIS Moves a Work Item Area from its parent area to another one in the same Team Project. .PARAMETER Area ${HelpParam_Area} .PARAMETER Destination Specifies the name, URI or path of an Area Path that will become the new parent of the given source area .PARAMETER Project ${HelpParam...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/Set-TfsArea.ps1
Set-TfsArea.ps1
<# .SYNOPSIS Modifies the name and/or the position of a Work Item Area. .PARAMETER Area ${HelpParam_Area} .PARAMETER NewName Specifies the new name of the area. Enter only a name, not a path and name. If you enter a path that is different from the path that is specified in the area parameter, Rena...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/New-TfsIteration.ps1
New-TfsIteration.ps1
<# .SYNOPSIS Creates a new Work Item Iteration in the given Team Project. .PARAMETER Iteration Specifies the path of the new Iteration. When supplying a path, use a backslash ("\") between the path segments. Leading and trailing backslashes are optional. The last segment in the path will be the iteration ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/AreaIteration/New-TfsArea.ps1
New-TfsArea.ps1
<# .SYNOPSIS Creates a new Work Item Area in the given Team Project. .PARAMETER Area Specifies the path of the new Area. When supplying a path, use a backslash ("\") between the path segments. Leading and trailing backslashes are optional. The last segment in the path will be the area name. .PARAMETER ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/GlobalList/Get-TfsGlobalList.ps1
Get-TfsGlobalList.ps1
<# .SYNOPSIS Gets the contents of one or more Global Lists. .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TfsTeamProjectCollection System.String System.Uri #> Function Get-TfsGlobalList { [CmdletBinding()] Param ( [Paramet...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/GlobalList/Import-TfsGlobalList.ps1
Import-TfsGlobalList.ps1
<# .SYNOPSIS Imports one or more Global Lists from XML. .PARAMETER Collection ${HelpParam_Collection} .INPUTS System.Xml.XmlDocument #> Function Import-TfsGlobalList { [CmdletBinding()] Param ( [Parameter(Mandatory=$true, ValueFromPipeline=$true)] [xml] ...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/GlobalList/Remove-TfsGlobalList.ps1
Remove-TfsGlobalList.ps1
<# .SYNOPSIS Deletes one or more Global Lists. .PARAMETER Collection ${HelpParam_Collection} .INPUTS System.String #> Function Remove-TfsGlobalList { [CmdletBinding(ConfirmImpact="High", SupportsShouldProcess=$true)] Param ( [Parameter(ValueFromPipelineByPropertyName='...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/GlobalList/Export-TfsGlobalList.ps1
Export-TfsGlobalList.ps1
<# .SYNOPSIS Exports the contents of one or more Global Lists to XML. .PARAMETER Collection ${HelpParam_Collection} .INPUTS Microsoft.TeamFoundation.Client.TfsTeamProjectCollection System.String System.Uri #> Function Export-TfsGlobalList { [CmdletBinding()] [OutputType([x...
PowerShellCorpus/Github/igoravl_tfscmdlets/src/PS/GlobalList/New-TfsGlobalList.ps1
New-TfsGlobalList.ps1
<# .SYNOPSIS Creates a new Global List. .PARAMETER Collection ${HelpParam_Collection} .INPUTS System.String / System.String[] #> Function New-TfsGlobalList { Param ( [Parameter(Mandatory=$true, ValueFromPipelineByPropertyName='Name')] [string] $Name, ...