full_path
stringlengths
31
232
filename
stringlengths
4
167
content
stringlengths
0
48.3M
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Cimi.Client/3.1.0.20161213/Get-ModuleVariable.ps1
Get-ModuleVariable.ps1
function Get-ModuleVariable { [CmdletBinding( SupportsShouldProcess = $false , ConfirmImpact = 'Low' , HelpURI = 'http://dfch.biz/PS/Appclusive/Client/Get-ModuleVariable/' )] [OutputType([hashtable])] PARAM ( # Specifies a references to the Appclusive endpoints [Parameter(Mandatory = $false)] ...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Cimi.Client/3.1.0.20161213/Enter-Server.ps1
Enter-Server.ps1
function Enter-Server { <# .SYNOPSIS Performs a login to an Cimi server. .DESCRIPTION Performs a login to an Cimi server. This is the first Cmdlet to be executed and required for all other Cmdlets of this module. It creates service references to the routers of the application. .OUTPUTS This Cmdlet re...
PowerShellCorpus/PowerShellGallery/biz.dfch.PS.Cimi.Client/3.1.0.20161213/Get-System.ps1
Get-System.ps1
function Get-System { <# .SYNOPSIS Retrieves one or more objects from Cimi. .DESCRIPTION Retrieves one or more objects from Cimi. .OUTPUTS This Cmdlet returns one or more objects from Cimi. On failure it returns $null. .INPUTS See PARAMETER section for a description of input parameters. .EXAMP...
PowerShellCorpus/PowerShellGallery/dnsimplePS/0.5/dnsimpleps.ps1
dnsimpleps.ps1
function ToAuthorizationHeader($Token) { $AccessToken =(new-object PSCredential 'doesntmatter',$Token).GetNetworkCredential().Password @{'Authorization'="Bearer $AccessToken"} } function CallDnsimpleApi($method, $uri, $data, $AccessToken) { Write-Debug "Calling Uri $uri with payload $data" In...
PowerShellCorpus/PowerShellGallery/dnsimplePS/0.5/dnsimpleps.tests.ps1
dnsimpleps.tests.ps1
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingConvertToSecureStringWithPlainText", "")] param() #. $PSScriptRoot\dnsimpleps.ps1 Import-Module $PSScriptRoot\dnsimpleps.psm1 -Force InModuleScope 'dnsimpleps' { Describe 'Dnsimple cmdlets' { Context 'Token handling ' { I...
PowerShellCorpus/PowerShellGallery/xBitlocker/1.1.0.0/Test/Test-xBitlocker.ps1
Test-xBitlocker.ps1
$showVerbose = $true $showValidSettings -eq $true if ($pin -eq $null) { $pin = Get-Credential -Message "Enter the Bitlocker Pin in the password field" } #Define the parameters that can be passed into individual tests $blParams1 = @{ MountPoint = "C:" PrimaryProtector = "RecoveryPasswordProtecto...
PowerShellCorpus/PowerShellGallery/xBitlocker/1.1.0.0/Examples/ConfigureBitlockerOnOSDrive/ConfigureBitlockerOnOSDrive.ps1
ConfigureBitlockerOnOSDrive.ps1
Configuration ConfigureBitlockerOnOSDrive { Import-DscResource -Module xBitlocker Node "E15-1" { #First install the required Bitlocker features WindowsFeature BitlockerFeature { Name = 'Bitlocker' Ensure = 'Present' ...
PowerShellCorpus/PowerShellGallery/xBitlocker/1.1.0.0/Examples/ConfigureBitlockerAndAutoBitlocker/ConfigureBitlockerAndAutoBitlocker.ps1
ConfigureBitlockerAndAutoBitlocker.ps1
Configuration ConfigureBitlockerAndAutoBitlocker { Import-DscResource -Module xBitlocker Node 'E15-1' { #First install the required Bitlocker features WindowsFeature BitlockerFeature { Name = 'Bitlocker' Ensure = 'Prese...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/PackageWriters/vsixPackageWriter.ps1
vsixPackageWriter.ps1
function Add-VsixToolsString { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $SavePath, [Parameter(Mandatory = $true)] [string] $packageName, [Parameter(Mandatory = $true)] [string] $githubRepo, [Parameter(Mandatory = $false)] [string] $Regex32bit ) begin { #...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/PackageWriters/InstallerPackageWriter.ps1
InstallerPackageWriter.ps1
function Add-InstallerToolsString { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $SavePath, [Parameter(Mandatory = $true)] [string] $packageName, [Parameter(Mandatory = $true)] [string] $githubRepo, [Parameter(Mandatory = $false)] [string] $Regex32bit, [Parameter(Mand...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/PackageWriters/webFilePackageWriter.ps1
webFilePackageWriter.ps1
function Add-WebFileToolsString { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $SavePath, [Parameter(Mandatory = $true)] [string] $packageName, [Parameter(Mandatory = $true)] [string] $githubRepo, [Parameter(Mandatory = $false)] [string] $Regex32bit, [Parameter(Mandat...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/PackageWriters/zipPackageWriter.ps1
zipPackageWriter.ps1
function Add-ZipToolsString { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $SavePath, [Parameter(Mandatory = $true)] [string] $packageName, [Parameter(Mandatory = $true)] [string] $githubRepo, [Parameter(Mandatory = $false, ParameterSetName = 'assets')] [string] $Regex32...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/Helpers/profileHelper.ps1
profileHelper.ps1
function Read-GTCProfile { <# .SYNOPSIS This cmdlet reads your local profile .DESCRIPTION This function reads your local profile and convert it from a json string to a psobject the profile is loacted in the module root, and the file name is `profile.json` when the profile does not exist, this funct...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/Helpers/generalHelper.ps1
generalHelper.ps1
function Start-DownloadFile { <# .SYNOPSIS download a file using .NET WebClient .DESCRIPTION Download a file from $Url to $Destination using agent firefox and encoding UTF-8 .PARAMETER Url the Url of the file you want to download .PARAMETER Destinat...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/Helpers/remoteHelper.ps1
remoteHelper.ps1
function Get-RemoteVersion { <# .SYNOPSIS this gives the latest version of the github package .DESCRIPTION this command uses github api to get the latest version of the package, assume the tag is in the form: "v$version" .EXAMPLE PS C:\> Get-RemoteVersion -GithubRepo 'Powershell/powershell-vscode...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/Helpers/nuspecHelper.ps1
nuspecHelper.ps1
function Get-NuspecTemplate { <# .SYNOPSIS Get the nuspec template file .DESCRIPTION Get the nuspec template file from $templatePath and convert it to a xml object .PARAMETER templatePath the template path for the current package .PARAMETER packageName the package name of the current pac...
PowerShellCorpus/PowerShellGallery/github2choco/2.0/Helpers/settingHelper.ps1
settingHelper.ps1
function Read-GTCSetting { [CmdletBinding()] param ( ) begin { $GTCSettingPath = "$PSScriptRoot/../../github2chocoSetting.json" Write-Verbose "the github2choco setting path is: $([System.IO.Path]::GetFullPath($GTCSettingPath))" } process ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectRepositoryTree.ps1
Get-GitLabProjectRepositoryTree.ps1
function Get-GitLabProjectRepositoryTree { <# .SYNOPSIS Get a list of Repository files and directories in a project. .DESCRIPTION Get a list of Repository files and directories in a project. By deafult only shows files and folders in the root of the project for the default branch...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectRepositoryArchive.ps1
Get-GitLabProjectRepositoryArchive.ps1
function Get-GitLabProjectRepositoryArchive { <# .SYNOPSIS Get an archive of the repository of the specified project. .DESCRIPTION Get an archive of the repository of the specified project. Can be retrieved as [zip], [tar], [tar.gz] & [tar.bz2] .EXAMPLE Get-GitLabProjectRep...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/init.ps1
init.ps1
# use this file to define global variables on module scope # or perform other initialization procedures. # this file will not be touched when new functions are exported to # this module. #region check data file $GitlabdataFolder = Join-Path -Path $env:programdata -ChildPath 'GitLab-API' $keyfilename = "${env:...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Invoke-GitLabProjectFork.ps1
Invoke-GitLabProjectFork.ps1
function Invoke-GitLabProjectFork { <# .SYNOPSIS Forks a gitlab project. .DESCRIPTION Forks a gitlab project to the namespace of the authenticated user. .EXAMPLE Invoke-GitLabProjectFork -ProjectID 1 -------------------------------------------------------------- ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectIssueNote.ps1
Get-GitLabProjectIssueNote.ps1
function Get-GitLabProjectIssueNote { <# .SYNOPSIS Get Issue Note .DESCRIPTION Get note for specified issue. Returnes all notes by default, Specify -NoteID to return single note. .EXAMPLE Get-GitLabProjectIssueNote -ProjectID 20 -IssueID 1 -------------------...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabProjectRepositoryFile.ps1
Set-GitLabProjectRepositoryFile.ps1
function Set-GitLabProjectRepositoryFile { <# .SYNOPSIS Update file in repository .DESCRIPTION The Set-GitLabProjectRepositoryFile function edits an existing file in the repository. Content is expected in text but can be pased base 64 encoded using -Encoding base64. If th...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Add-GitLabProjectStar.ps1
Add-GitLabProjectStar.ps1
function Add-GitLabProjectStar { <# .SYNOPSIS Sets the specified gitlab project as starred. .DESCRIPTION Sets the specified gitlab project as starred. user Remove-GitlabProjectStar to remove starred status of project .EXAMPLE Add-GitLabProjectStar -ProjectID 20 -----...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectRepositoryCommitDiff.ps1
Get-GitLabProjectRepositoryCommitDiff.ps1
function Get-GitLabProjectRepositoryCommitDiff { <# .SYNOPSIS Get Diff of a commit of a project .DESCRIPTION The Get-GitLabProjectRepositoryCommitDiff function retrieves the diffs for a specified commit .EXAMPLE Get-GitLabProjectRepositoryCommitDiff-ID 20 -SHA 5a411e1 ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Remove-GitLabToken.ps1
Remove-GitLabToken.ps1
Function Remove-GitLabToken { <# .SYNOPSIS Remove Token from local GitLab-API instance. .DESCRIPTION The Remove-GitLabToken function removes a token from the local GitLab-API instance. IDs for tokens can be retrievd via Get-GitLabToken. .EXAMPLE Remove-GitLabToken -...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectMergeRequest.ps1
Get-GitLabProjectMergeRequest.ps1
function Get-GitLabProjectMergeRequest { <# .SYNOPSIS Gets Merge Request for project. .DESCRIPTION Get Merge Request for Project. Gets all Merge Requests for Project by default. can be filtered by state using -State. Returns single Merge Request when -MergeRequestID is sp...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitlabConnect.ps1
Get-GitlabConnect.ps1
function Get-GitLabConnect { <# .SYNOPSIS Composes and Returns a GitlabConnect object. .DESCRIPTION Composes and Returns a GitlabConnect object. Uses active token from stored config by default. you can add tokens with Add-GitlabToken. Passing -ID of a token forces gitlabco...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectIssue.ps1
New-GitLabProjectIssue.ps1
function New-GitLabProjectIssue { <# .SYNOPSIS Creates a new project issue. .DESCRIPTION The New-GitLabProjectIssue functions creates a new function in the specified project. .EXAMPLE New-GitLabProjectIssue -ProjectID 20 -Title 'Important Issue' ---------------------...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Remove-GitLabProjectStar.ps1
Remove-GitLabProjectStar.ps1
function Remove-GitLabProjectStar { <# .SYNOPSIS Removes starred status from the specified gitlab project. .DESCRIPTION The Remove-GitlabProjectstar function removes starred status from the specified gitlab project. use Add-GitlabProjectStar to add starred status of project ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectLabel.ps1
New-GitLabProjectLabel.ps1
function New-GitLabProjectLabel { <# .SYNOPSIS Create a new label in a project. .DESCRIPTION The New-GitLabProjectLabel function creates a new label. A label color can be passed using -Color #xxxxxx .EXAMPLE New-GitLabProjectLabel -ProjectID 20 -Name 'To Do' -...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectMergeRequestCommits.ps1
Get-GitLabProjectMergeRequestCommits.ps1
function Get-GitLabProjectMergeRequestCommits { <# .SYNOPSIS Gets all commits associated with specified Merge Request. .DESCRIPTION Gets all commits associated with specified Merge Request. .EXAMPLE Get-GitLabProjectMergeRequestCommits -ProjectID 20 -MergeRequestID 1 ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectRepositoryFileRaw.ps1
Get-GitLabProjectRepositoryFileRaw.ps1
function Get-GitLabProjectRepositoryFileRaw { <# .SYNOPSIS Get a file and save the raw content to disk. .DESCRIPTION The Get-GitLabProjectRepositoryFileRaw retrieves the raw file contents for a file by blob SHA or by commit SHA/branche name and path. It saves it to the path specif...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Unblock-GitlabUser.ps1
Unblock-GitlabUser.ps1
function Unblock-GitlabUser { <# .SYNOPSIS Marks the Users state as active .DESCRIPTION the Block-GitlabUser marks the given user as active .EXAMPLE Unblock-GitLabUser -UserID 10 --------------------------------------------------------------- Marks the User wi...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectBranch.ps1
Get-GitLabProjectBranch.ps1
function Get-GitLabProjectBranch { <# .SYNOPSIS Gets GitLab Project Branches. .DESCRIPTION Get branch of specified project. By default all branches of the project are retrieved. when -Branch is specified only the specified branch is returned. If the branch is not f...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitlabProjectRepositoryFile.ps1
Get-GitlabProjectRepositoryFile.ps1
function Get-GitLabProjectRepositoryFile { <# .SYNOPSIS Get a fileobject for specified file, reference and project .DESCRIPTION The Get-GitLabProjectRepositoryFile retrieves a file from the repository. It returns a object containing all data and metadata of the file. conte...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProject.ps1
Get-GitLabProject.ps1
function Get-GitLabProject { <# .SYNOPSIS Gets Gitlab projects .DESCRIPTION The Get-GitlabProject function returns one or more projects specified. By default this function returns all projects that the authenticated user is authorized for. By passing -Starred or -Owned on...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectRepositoryCommitComment.ps1
New-GitLabProjectRepositoryCommitComment.ps1
function New-GitLabProjectRepositoryCommitComment { <# .SYNOPSIS Add a comment to a commit. .DESCRIPTION the New-GitLabProjectRepositoryCommitComment function adds a comment to a repositories commit. Return the comment with -PassThru .EXAMPLE New-GitLabProjectRepo...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectEvents.ps1
Get-GitLabProjectEvents.ps1
function Get-GitLabProjectEvents { <# .SYNOPSIS Gets GitLab Project Events. .DESCRIPTION Gets GitLab Project Events. .EXAMPLE Get-GitLabProjectEvents -ProjectID 20 --------------------------------------------------------------- Gets events for project 20 #...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Block-GitlabUser.ps1
Block-GitlabUser.ps1
function Block-GitlabUser { <# .SYNOPSIS Marks the Users state as blocked. .DESCRIPTION the Block-GitlabUser marks the given user as blocked .EXAMPLE Block-GitlabUser -UserID 10 --------------------------------------------------------------- Marks the User wit...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabProjectIssue.ps1
Set-GitLabProjectIssue.ps1
function Set-GitLabProjectIssue { <# .SYNOPSIS Sets the properties on an issue you specify. .DESCRIPTION The Set-GitLabProjecctIssue function sets the properties you specify on a issue. Returns the modified issue when -PassThru is specified. .EXAMPLE Set-GitLabProjec...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectLabel.ps1
Get-GitLabProjectLabel.ps1
function Get-GitLabProjectLabel { <# .SYNOPSIS Get all labels for a given project. .DESCRIPTION Gets all labels for a given project. .EXAMPLE Get-GitLabProjectlabel -ProjectID 20 --------------------------------------------------------------- get all labels fo...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabProjectMilestone.ps1
Set-GitLabProjectMilestone.ps1
function Set-GitLabProjectMilestone { <# .SYNOPSIS modifie a milestone .DESCRIPTION The Set-GitLabProjectMilestone function edits an existing Milestone in gitlab. Use -PassThru to return the modified Milestone .EXAMPLE Set-GitLabProjectMilestone -ProjectID 20 -Mile...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectMergeRequestNote.ps1
Get-GitLabProjectMergeRequestNote.ps1
function Get-GitLabProjectMergeRequestNote { <# .SYNOPSIS Get Merge Request Note .DESCRIPTION Get note for specified Merge Request. Returnes all notes by default, Specify -NoteID to return single note. .EXAMPLE Get-GitLabProjectMergeRequestNote -ProjectID 20 -MergeR...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Approve-GitLabProjectMergeRequest.ps1
Approve-GitLabProjectMergeRequest.ps1
function Approve-GitLabProjectMergeRequest { <# .SYNOPSIS Merge changes submitted with MR. .DESCRIPTION Merge changes submitted with MR. If the -sha parameter is passed and does not match the HEAD of the source - you'll get a 409 and the error message 'SHA does not match HEAD of...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabToken.ps1
Get-GitLabToken.ps1
Function Get-GitLabToken { <# .SYNOPSIS Get persisted gitlab token .DESCRIPTION TThe Get-GitLabToken returns all persisted API token objects available for the current user and system. When -Active is specified only the active (default) token will be returned. Tokens can ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectRepositoryTag.ps1
Get-GitLabProjectRepositoryTag.ps1
function Get-GitLabProjectRepositoryTag { <# .SYNOPSIS Get tags on repository. .DESCRIPTION Get a list of repository tags from a project only specified tag is returned when -TagName is passed. .EXAMPLE Get-GitLabProjectRepositoryTag -ProjectID 20 ------------...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectRepositoryTag.ps1
New-GitLabProjectRepositoryTag.ps1
function New-GitLabProjectRepositoryTag { <# .SYNOPSIS Create a new tag for the repository. .DESCRIPTION The New-GitLabProjectRepositoryTag function adds a new tag to a repository. Creates a annotated tag if -Message is passed. Return the created tag using -PassThru ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Remove-GitLabProjectLabel.ps1
Remove-GitLabProjectLabel.ps1
function Remove-GitLabProjectLabel { <# .SYNOPSIS Remove a label .DESCRIPTION The Remove-gitlabProjectLabel deletes a label with a given name. .EXAMPLE Remove-GitLabProjectLabel -ProjectId 20 -Name 'type:bug' ----------------------------------------------------------...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabUser.ps1
New-GitLabUser.ps1
function New-GitLabUser { <# .SYNOPSIS Creates a new user. Note only administrators can create new users. .DESCRIPTION The New-GitlabUser function a new user. Note only administrators can create new users. returns new user when -PassThru is specified .EXAMPLE New-G...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectIssueNote.ps1
New-GitLabProjectIssueNote.ps1
function New-GitLabProjectIssueNote { <# .SYNOPSIS Adds a single note to an issue .DESCRIPTION The New-GitLabProjectIssueNote function adds a single note to an issue. .EXAMPLE New-GitLabProjectIssueNote -ProjectID 20 -IssueID 1 -Body 'Started research' --------------...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Protect-GitLabProjectBranch.ps1
Protect-GitLabProjectBranch.ps1
function Protect-GitLabProjectBranch { <# .Synopsis Protects a project repository branch. .DESCRIPTION The Protect-GitLabProjectBranch function protects the specified branch. If developers are allowed to merge or push specify -DevelopersCanMerge or -DevelopersCanPush .EXAM...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectRepositoryFile.ps1
New-GitLabProjectRepositoryFile.ps1
function New-GitLabProjectRepositoryFile { <# .SYNOPSIS Create a new file in the repository .DESCRIPTION The New-gitLabProjectRepositoryFile function creates a new file in the repository. Content is expected in text but can be pased base 64 encoded using -Encoding base64. ....
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabUser.ps1
Set-GitLabUser.ps1
function Set-GitLabUser { <# .SYNOPSIS Set properties on specified user. .DESCRIPTION The Set-GitlabUser function sets properties on the specified user. returns modified user when -PassThru is specified .EXAMPLE Set-GitLabUser -id 1 -bio 'awesome root acocunt' ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Invoke-GitLabProjectUnArchive.ps1
Invoke-GitLabProjectUnArchive.ps1
function Invoke-GitLabProjectUnArchive { <# .SYNOPSIS Unarchives the a project .DESCRIPTION The function unarchives the specified GitlabProject. To archive a project use Invoke-GitLabProjectArchive to archive it. .EXAMPLE Invoke-GitLabProjectUnArchive -ProjectID 20 ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitlabProject.ps1
Set-GitlabProject.ps1
function Set-GitlabProject { <# .SYNOPSIS Sets the properties you specify on a project. .DESCRIPTION The Set-GitLabProject function sets the properties of the project you specify. returns modified project when -PassThru is specified .EXAMPLE Set-GitLabProject -Proj...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Unregister-GitLabProjectLabelSubscription.ps1
Unregister-GitLabProjectLabelSubscription.ps1
function Unregister-GitLabProjectLabelSubscription { <# .SYNOPSIS Unsubscribes the authenticated user from a label. .DESCRIPTION the UnRegister-GitLabProjectLabelSubscription function unsubscribes the authenticated user from a label. Use -PassThru to return the updated label. ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Register-GitLabProjectLabelSubscription.ps1
Register-GitLabProjectLabelSubscription.ps1
function Register-GitLabProjectLabelSubscription { <# .SYNOPSIS Subscribes the authenticated user to a label. .DESCRIPTION the Register-GitLabProjectLabelSubscription function subscribes the authenticated user to a label to receive notifications. Use -PassThru to return the upda...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Unprotect-GitLabProjectBranch.ps1
Unprotect-GitLabProjectBranch.ps1
function Unprotect-GitLabProjectBranch { <# .Synopsis Unprotects a project repository branch. .DESCRIPTION The Unprotect-GitLabProjectBranch function unprotects the specified branch. .EXAMPLE Unprotect-GitLabProjectBranch -ProjectID 20 -Branch staging --------------...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Remove-GitLabProjectRepositoryFile.ps1
Remove-GitLabProjectRepositoryFile.ps1
function Remove-GitLabProjectRepositoryFile { <# .SYNOPSIS Delete existing file in repository .DESCRIPTION The Remove-GitLabProjectRepositoryFile function removes the specified file from the branch. a commit message needs to be passed. .EXAMPLE Remove-GitLabProjectRe...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectMilestone.ps1
New-GitLabProjectMilestone.ps1
function New-GitLabProjectMilestone { <# .SYNOPSIS Create a new project milestone. .DESCRIPTION The New-GitLabProjectMilestone function creates a new project milestone for a given project. By specifying -PassThru the created MR is returned. .EXAMPLE New-GitLabProje...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitlabProject.ps1
New-GitlabProject.ps1
function New-GitLabProject { <# .SYNOPSIS GCreate a new Project .DESCRIPTION The New-GitLabProject function creates a new project. Defaults namespace to current user's namespace and path on name. returns new project when -PassThru is specified .EXAMPLE New...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectMilestoneIssues.ps1
Get-GitLabProjectMilestoneIssues.ps1
function Get-GitLabProjectMilestoneIssues { <# .SYNOPSIS Gets all issues assigned to a single project milestone. .DESCRIPTION Gets all issues assigned to a single project milestone of a given project. .EXAMPLE Get-GitLabProjectMilestoneIssues -ProjectID 20 -MilestoneID 1 ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectRepositoryCommit.ps1
Get-GitLabProjectRepositoryCommit.ps1
function Get-GitLabProjectRepositoryCommit { <# .SYNOPSIS Get project commit history. .DESCRIPTION Get project commit history. returns full history for deafult branch by default. using -ReferenceName a different branch, tag or commit can be specified. to retrieve commits fo...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabProjectMergeRequest.ps1
Set-GitLabProjectMergeRequest.ps1
function Set-GitLabProjectMergeRequest { <# .SYNOPSIS Modifie a Merge Request .DESCRIPTION The Set-GitLabProjectMergeRequest function modifies a given Merge Request. Can be used to merge a merge request using -StateEvent merge does not remove source branch. ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectBranch.ps1
New-GitLabProjectBranch.ps1
function New-GitLabProjectBranch { <# .SYNOPSIS Create a new branch in a projects repository. .DESCRIPTION The New-GitLabProjectBranch function creates a new branch in the repository. The source branch can be specified via sha or commit. .EXAMPLE New-GitLabProjectBra...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabUser.ps1
Get-GitLabUser.ps1
function Get-GitLabUser { <# .SYNOPSIS Gets Gitlab User .DESCRIPTION The Get-GitlabUser function retruns a list of users By default this function returns all available users you can filter these users on 'blocked' or 'active' returns single user if id is passed ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabProjectIssueNote.ps1
Set-GitLabProjectIssueNote.ps1
function Set-GitLabProjectIssueNote { <# .SYNOPSIS Modify an Existing Note on an issue. .DESCRIPTION The Set-GitLabProjectIssueNote function modifies an existing note on an issue. You can retrieve note ids using Get-GitLabProjectIssueNote. when -PassThru is specified the mo...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectRepositoryContributors.ps1
Get-GitLabProjectRepositoryContributors.ps1
function Get-GitLabProjectRepositoryContributors { <# .SYNOPSIS Get contributors for project .DESCRIPTION The Get-GitLabProjectRepositoryContributors function retrieves all contributors for the sepecified project. Shows name, emailaddress and the amount of commits made .EXA...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectMilestone.ps1
Get-GitLabProjectMilestone.ps1
function Get-GitLabProjectMilestone { <# .SYNOPSIS Gets Milestone for project. .DESCRIPTION Gets Milestone for Project. Gets all Milestone for Project by default. can be filtered by state using -State. Returns single Milestone when -MilestoneID is specified. .EXAMP...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectRepositoryCommitComment.ps1
Get-GitLabProjectRepositoryCommitComment.ps1
function Get-GitLabProjectRepositoryCommitComment { <# .SYNOPSIS Get comments on a commit of a project .DESCRIPTION The Get-GitLabProjectRepositoryCommitComment function gets all comments on a specified commit .EXAMPLE Get-GitLabProjectRepositoryCommitComment -ID 20 -SHA 5a...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Add-GitLabToken.ps1
Add-GitLabToken.ps1
Function Add-GitLabToken { <# .SYNOPSIS Adds a access token to the local GitLab-API instance .DESCRIPTION Adds a access token to the local GitLab-API instance. First checks if the specified token and hostname is valid. If valid adds it to the local configuration file. ...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Compare-GitLabProjectRepositoryCommit.ps1
Compare-GitLabProjectRepositoryCommit.ps1
function Compare-GitLabProjectRepositoryCommit { <# .SYNOPSIS Compares 2 commits .DESCRIPTION Compares 2 commits by branch, tag or commits. one is the reference and the other is the target. returns the difference in commits and in files. .EXAMPLE Compare-Git...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabProjectRepositoryTagReleaseNotes.ps1
Set-GitLabProjectRepositoryTagReleaseNotes.ps1
function Set-GitLabProjectRepositoryTagReleaseNotes { <# .SYNOPSIS Sets release notes on an existing tag .DESCRIPTION The Set-GitLabProjectRepositoryTagReleaseNotes function updates sets release notes on a current tag. If no release notes are set creates a release for the specifie...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectMergeRequestNote.ps1
New-GitLabProjectMergeRequestNote.ps1
function New-GitLabProjectMergeRequestNote { <# .SYNOPSIS Adds a singel note to a Merge Request .DESCRIPTION The New-GitLabProjectIssueNote function adds a single note to a Merge Request. By specifying -PassThru the created MR Note is returned. .EXAMPLE New-GitLabP...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabToken.ps1
Set-GitLabToken.ps1
Function Set-GitLabToken { <# .SYNOPSIS Modify specified token in local GitLab-API instance. .DESCRIPTION The Set-GitLabToken function modifies a token from the local GitLab-API instance. IDs for tokens can be retrievd via Get-GitLabToken. .EXAMPLE Set-GitLabToken -...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/New-GitLabProjectMergeRequest.ps1
New-GitLabProjectMergeRequest.ps1
function New-GitLabProjectMergeRequest { <# .SYNOPSIS Creates a new merge request .DESCRIPTION The New-GitLabProjectMergeRequest function creates a new merge request. By default the source branch, target branch and MR title must be passed. By specifying -PassThru the crea...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Get-GitLabProjectIssue.ps1
Get-GitLabProjectIssue.ps1
function Get-GitLabProjectIssue { <# .SYNOPSIS Gets GitLab Project Issue. .DESCRIPTION Gets GitLab Project Issue. Gets all Issues by Default. All issues can be filtered by: -State (opened:closed) -Labels (comma seperated labels) -Milestone (assigned M...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Set-GitLabProjectLabel.ps1
Set-GitLabProjectLabel.ps1
function Set-GitLabProjectLabel { <# .SYNOPSIS Updates an existing label .DESCRIPTION The Set-GitLabProjectLabel function updates an existing label with new name or new color. When -PassThru is specified the modified label is returned. .EXAMPLE Set-GitLabProjectLabel...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/Invoke-GitLabProjectArchive.ps1
Invoke-GitLabProjectArchive.ps1
function Invoke-GitLabProjectArchive { <# .SYNOPSIS Archives the a project .DESCRIPTION the function Archives the specified GitlabProject. To unarchive a project use Invoke-GitLabProjectUnArchive to make it available again. .EXAMPLE Invoke-GitLabProjectArchive -Proj...
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/obj/objinit.ps1
objinit.ps1
# LOADING ALL OBJECT DEFINITIONS: . $PSScriptRoot\gitlabconnect.ps1
PowerShellCorpus/PowerShellGallery/GitLab-API/0.7.0/obj/gitlabconnect.ps1
gitlabconnect.ps1
#requires -Version 5 enum HTTPMethod { Get = 1 Post = 2 Put = 3 Delete = 4 } class GitLabConnect { [string]$hostname [string]$username [securestring]$token <# Contructor with api-token #> GitLabConnect ([string]$hostname,[string]$token) { #region check token ...
PowerShellCorpus/PowerShellGallery/Chalk/1.0.6/functions/log.ps1
log.ps1
$asm = [Reflection.Assembly]::LoadFile("$PSScriptRoot\..\lib\Crayons.dll") $p = new-object -type Crayons.Patterns.Pattern $p.Add("'(?<magenta>.*?)'", "quoted names") $p.Add("^(?<green>info):", "info log level") $p.Add("^(?<yellow>warn):", "warn log level") $p.Add("^(?<red>err) :", "error log level") $p.Add("^...
PowerShellCorpus/PowerShellGallery/HPWarranty/2.6.2/Private/Invoke-HPIncSOAPRequest.ps1
Invoke-HPIncSOAPRequest.ps1
<# .SYNOPSIS Invokes a SOAP Request. .DESCRIPTION Sends a SOAP Request to Hewlett-Packard and returns Entitlement data for non Enterprise systems. .INPUTS None. .OUTPUTS System.Xml .PARAMETER SOAPRequest The Xml formated request to send .PARAMETER Url ...
PowerShellCorpus/PowerShellGallery/HPWarranty/2.6.2/Private/Get-HPProductNumberAndSerialNumber.ps1
Get-HPProductNumberAndSerialNumber.ps1
<# .SYNOPSIS Get the Product Number (SKU) and Serial Number from a system. .DESCRIPTION Query the local or remote system for its Product Number (SKU) and Serial Number, return that object in a HashTable. .INPUTS None. .OUTPUTS System.Collections.HashTable .PARAMETER C...
PowerShellCorpus/PowerShellGallery/HPWarranty/2.6.2/Private/Invoke-HPEntSOAPRequest.ps1
Invoke-HPEntSOAPRequest.ps1
<# .SYNOPSIS Invokes a SOAP Request. .DESCRIPTION Sends a SOAP Request to Hewlett-Packard ISEE Servers to either create a Registration GDID and Token, or retrieve Warranty Info. .INPUTS None. .OUTPUTS System.Xml .PARAMETER SOAPRequest The Xml Formatted request to be sent. .PARAMETER Url The ISEE...
PowerShellCorpus/PowerShellGallery/HPWarranty/2.6.2/Public/Get-HPEntWarrantyEntitlement.ps1
Get-HPEntWarrantyEntitlement.ps1
Function Get-HPEntWarrantyEntitlement { [CmdletBinding( DefaultParameterSetName = '__AllParameterSets' )] [OutputType( [HashTable] )] Param ( [Parameter( ParameterSetName = 'Computer', ValueFromPipeline = $true )] [ValidateScript...
PowerShellCorpus/PowerShellGallery/HPWarranty/2.6.2/Public/Get-HPIncWarrantyEntitlement.ps1
Get-HPIncWarrantyEntitlement.ps1
Function Get-HPIncWarrantyEntitlement { [CmdletBinding( DefaultParameterSetName = '__AllParameterSets' )] [OutputType( [HashTable] )] Param ( [Parameter( ParameterSetName = 'Computer', ValueFromPipeline = $true )] [ValidateScript...
PowerShellCorpus/PowerShellGallery/HPWarranty/2.6.2/Public/Get-HPSystemInformationFromCMDB.ps1
Get-HPSystemInformationFromCMDB.ps1
Function Get-HPSystemInformationFromCMDB { [OutputType([Array])] Param ( [Parameter()] [ValidateScript({ if ($_ -eq $env:COMPUTERNAME) { $true } else { try { Test-Connection -ComputerName $_ -Count 1 -ErrorActi...
PowerShellCorpus/PowerShellGallery/DellWarranty/2.0/Functions/Get-DellWarranty.ps1
Get-DellWarranty.ps1
function Get-DellWarranty { param( #Specifies the Dell Service Tag of the device we want to check [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, ValueFromPipeline = $true, Position = 0)] [Alias('SerialNu...
PowerShellCorpus/PowerShellGallery/Cloud-App-Security/1.4.5/Cloud-App-Security.Tests.ps1
Cloud-App-Security.Tests.ps1
Import-Module $PSScriptRoot\Cloud-App-Security.psm1 -Force #Stop-Job -Name MCASTest1 -ErrorAction SilentlyContinue #Remove-Job -Name MCASTest1 -Force -ErrorAction SilentlyContinue If ($CASCredential -eq $null -or !($CASCredential)) { Get-MCASCredential } $CmdletsToTest = @() # Get-MCASAccount ...
PowerShellCorpus/PowerShellGallery/CertificatePS/1.4/New-DomainSignedCertificate.ps1
New-DomainSignedCertificate.ps1
<# .SYNOPSIS This commandlet requests a certificate from the active directory certificate services and adds it to the store .DESCRIPTION This commandlet requests a certificate from the active directory certificate services and adds it to the store. The commandlet automates the flow of cert...
PowerShellCorpus/PowerShellGallery/CertificatePS/1.4/Copy-CertificateToRemote.ps1
Copy-CertificateToRemote.ps1
<# .SYNOPSIS Copies a certificate with its chain to the store of a remote computer .DESCRIPTION Copies a certificate with its chain to the store of a remote computer .PARAMETER Certificate The certificate to copy .PARAMETER MoveChain The password to use wh...
PowerShellCorpus/PowerShellGallery/CertificatePS/1.4/Get-CertificateSubjectInfo.ps1
Get-CertificateSubjectInfo.ps1
<# .SYNOPSIS This commandlet breaks down the certificate's subject into the Common Name, Organizational Unit, Organization, Locality, State and Country .DESCRIPTION This commandlet breaks down the certificate's subject into the Common Name, Organizational Unit, Organization, Locality, Stat...
PowerShellCorpus/PowerShellGallery/CertificatePS/1.4/Move-CertificateToRemote.ps1
Move-CertificateToRemote.ps1
<# .SYNOPSIS Moves a certificate with its chain to the store of a remote computer .DESCRIPTION Moves a certificate with its chain to the store of a remote computer .PARAMETER Certificate The certificate to move .PARAMETER MoveChain The password to use when...
PowerShellCorpus/PowerShellGallery/CertificatePS/1.4/Get-CertificateTemplate.ps1
Get-CertificateTemplate.ps1
<# .SYNOPSIS This commandlet output the certificate template name .DESCRIPTION The certificate template name is encapsulated in the Extentions. The commandlets gives a human readable value as you see also from the UI. .PARAMETER Certificate A X509Certificate2 instance ...
PowerShellCorpus/PowerShellGallery/CredentialsManager/1.1/Write-Credential.ps1
Write-Credential.ps1
#----------------------------------------------------[Function synopsis]----------------------------------------------------- Function Write-Credential { <# .SYNOPSIS Saves credentials to disk system as secure string for re-use. Part of CredentialsManager module. .DESCRIPTION Saves credent...
PowerShellCorpus/PowerShellGallery/CredentialsManager/1.1/Read-Credential.ps1
Read-Credential.ps1
#----------------------------------------------------[Function synopsis]----------------------------------------------------- Function Read-Credential { <# .SYNOPSIS Reads credentials from disk, saved with Write-Credential. Part of CredentialsManager module. .DESCRIPTION Reads credentials (Use...
PowerShellCorpus/PowerShellGallery/CredentialsManager/1.1/Convert-Credential.ps1
Convert-Credential.ps1
#----------------------------------------------------[Function synopsis]----------------------------------------------------- Function Convert-Credential { <# .SYNOPSIS Converts saved credentials from old to new format. Part of CredentialsManager module. .DESCRIPTION Coinverts credential file(...
PowerShellCorpus/PowerShellGallery/pbench/0.1/PSModule.tests.ps1
PSModule.tests.ps1
# # This is a PowerShell Unit Test file. # You need a unit test framework such as Pester to run PowerShell Unit tests. # You can download Pester from http://go.microsoft.com/fwlink/?LinkID=534084 # Describe "Get-Function" { Context "Function Exists" { It "Should Return" { } } }