full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/New-CommentBasedHelp.ps1 | New-CommentBasedHelp.ps1 | function Script:New-CommentBasedHelp {
<#
.SYNOPSIS
Create comment based help for a function.
.DESCRIPTION
Create comment based help for a function.
.PARAMETER Code
Multi-line or piped lines of code to process.
.PARAMETER ScriptParameters
Process the script p... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/Update-PSGalleryProjectProfile.ps1 | Update-PSGalleryProjectProfile.ps1 | #Requires -version 5
function Script:Update-PSGalleryProjectProfile {
<#
.SYNOPSIS
Update a powershell Gallery module upload profile
.DESCRIPTION
Update a powershell Gallery module upload profile
.PARAMETER Name
Module short name.
.PARAMET... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/Prompt-ForBuildBreak.ps1 | Prompt-ForBuildBreak.ps1 | Function Script:Prompt-ForBuildBreak {
param (
[Parameter(Position=0)]
[System.Object]$LastError,
[Parameter(Position=1)]
$CustomError = $null
)
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", "End the build."
$no = New-Object System.... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/Convert-ArrayToString.ps1 | Convert-ArrayToString.ps1 | function Script:Convert-ArrayToString
{
[cmdletbinding()]
Param
(
[Parameter(Mandatory=$true,Position=0)]
[AllowEmptyCollection()]
[Array]$Array,
[Parameter(Mandatory=$False)]
[switch]$Flatten
)
Begin{
If($Flatten)
{
$Mode = 'Append'
}
Else
{
... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/Convert-HashToString.ps1 | Convert-HashToString.ps1 | function Script:Convert-HashToString
{
[cmdletbinding()]
Param (
[Parameter(Mandatory=$true,Position=0)]
[Hashtable]$Hashtable,
[Parameter(Mandatory=$False)]
[switch]$Flatten
)
Begin{
If($Flatten -or $Hashtable.Keys.Count -eq 0)
... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/Replace-FileString.ps1 | Replace-FileString.ps1 | function Script:Replace-FileString {
<#
.SYNOPSIS
Replaces strings in files using a regular expression.
.DESCRIPTION
Replaces strings in files using a regular expression. Supports
multi-line searching and replacing.
.PARAMETER Pattern
Specifies the regular expression pattern.... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/build/dotSource/Remove-Signature.ps1 | Remove-Signature.ps1 | #requires -Version 2
function Script:Remove-Signature
{
[cmdletbinding()]
Param(
[Parameter(Mandatory = $False,Position = 0,ValueFromPipeline = $True,ValueFromPipelineByPropertyName = $True)]
[Alias('Path')]
[system.io.fileinfo[]]$FilePath
)
Begin{
Push-Loca... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/temp/src/other/PostLoad.ps1 | PostLoad.ps1 |
# Use this variable for any path-sepecific actions (like loading dlls and such) to ensure it will work in testing and after being built
$MyModulePath = $(
Function Get-ScriptPath {
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
if($Invocation.PSScriptRoot) {
$Invocation.... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/temp/src/public/ObjectModule.ps1 | ObjectModule.ps1 |
Function Show-Object-Flat {
<#
.SYNOPSIS
Flatten an object to simplify discovery of data
.DESCRIPTION
Flatten an object. This function will take an object, and flatten the properties using their full path into a single object with one layer of properties.
You can use this to... |
PowerShellCorpus/PowerShellGallery/PSObjectInspector/0.0.1/temp/src/public/Out-Default-Capture.ps1 | Out-Default-Capture.ps1 | function Out-Default {
<#
.SYNOPSIS
Spelunking with Show-Object
.DESCRIPTION
Spelunk [spi-luhngk], verb. To explore caves, especially as a hobby.
We must first recall that PowerShell pipelines are very different from, say, Linux pipelines. Rather than consisting of text, PowerShell objects a... |
PowerShellCorpus/PowerShellGallery/PSGit/2.0.4/PSGitPowerline.ps1 | PSGitPowerline.ps1 | function New-PowerLineBlock {
[CmdletBinding()]
param(
[Parameter(ValueFromPipelineByPropertyName=$true, Position=0)]
[Alias("Content","text")]
$Object,
[Parameter(ValueFromPipelineByPropertyName=$true)]
[Alias("fg","Foreground")]
$ForegroundColor,
... |
PowerShellCorpus/PowerShellGallery/PSGit/2.0.4/PSGitPrompt.ps1 | PSGitPrompt.ps1 | function Set-PromptSettings {
[CmdletBinding()]
param(
[string]$AfterChangesText = "]:",
[ConsoleColor]$AfterChangesForeground,
[ConsoleColor]$AfterChangesBackground,
[string]$AfterNoChangesText = "]:",
[ConsoleColor]$AfterNoChangesForeground,
[ConsoleCo... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/AnsibleGroup.ps1 | AnsibleGroup.ps1 | function Get-AnsibleGroup
{
[CmdletBinding()]
Param (
[Parameter(ValueFromPipelineByPropertyName=$true)]
[int]$id,
[String]$Name
)
if ($id)
{
$Return = Invoke-GetAnsibleInternalJsonResult -ItemType "groups" -Id $id
}
Else
{
$Return ... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/AnsibleInventory.ps1 | AnsibleInventory.ps1 | function Get-AnsibleInventory
{
[CmdletBinding()]
Param (
[Parameter(ValueFromPipelineByPropertyName=$true)]
[int]$id
)
if ($id)
{
$Return = Invoke-GetAnsibleInternalJsonResult -ItemType "inventory" -Id $id
}
Else
{
$Return = Invoke-GetAnsib... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/testscripts.ps1 | testscripts.ps1 | $cred = Import-Clixml -Path "ansibletower.cred"
$cred = Get-Credential
Connect-AnsibleTower -Credential $cred -TowerUrl "https://f4t-dev.cloudapp.net" -DisableCertificateVerification
$AnsibleUrl = "https://192.168.1.33"
$AnsibleUrl = "https://f4t-dev.cloudapp.net"
$AnsibleCredential = $cred
$inventory = Get... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/AnsibleJob.ps1 | AnsibleJob.ps1 | function Get-AnsibleJob
{
[CmdletBinding()]
Param (
[Parameter(ValueFromPipelineByPropertyName=$true)]
[int]$id
)
if ($id)
{
$Return = Invoke-GetAnsibleInternalJsonResult -ItemType "jobs" -Id $id
}
Else
{
$Return = Invoke-GetAnsibleInternalJ... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/AnsibleHost.ps1 | AnsibleHost.ps1 | function Get-AnsibleHost
{
[CmdletBinding()]
[OutputType([AnsibleTower.Host])]
Param (
[Parameter(ValueFromPipelineByPropertyName=$true)]
[int]$id,
[string]$Name
)
if ($id)
{
$Return = Invoke-GetAnsibleInternalJsonResult -ItemType "hosts" -Id $id
... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/AnsibleUser.ps1 | AnsibleUser.ps1 | function Get-AnsibleUser
{
[CmdletBinding()]
Param (
[Parameter(ValueFromPipelineByPropertyName=$true)]
[int]$id
)
if ($id)
{
$Return = Invoke-GetAnsibleInternalJsonResult -ItemType "users" -Id $id
}
Else
{
$Return = Invoke-GetAnsibleInterna... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/AnsibleOrganization.ps1 | AnsibleOrganization.ps1 | function Get-AnsibleOrganization
{
[CmdletBinding()]
Param (
[String]$Name,
[Parameter(ValueFromPipelineByPropertyName=$true)]
[int]$id
)
if ($id)
{
$Return = Invoke-GetAnsibleInternalJsonResult -ItemType "organizations" -Id $id
}
Else
{
... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/AnsibleJobTemplate.ps1 | AnsibleJobTemplate.ps1 | function Get-AnsibleJobTemplate
{
<#
.SYNOPSIS
Gets one or multiple Job Templates
#>
[CmdletBinding()]
Param (
[Parameter(ValueFromPipelineByPropertyName=$true)]
[int]$id
)
if ($id)
{
$Return = Invoke-GetAnsibleInternalJsonResult -It... |
PowerShellCorpus/PowerShellGallery/AnsibleTower/0.1/AnsibleTowerClasses/AnsibleTower/packages/Newtonsoft.Json.6.0.5/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/PowerShellGallery/SPClient/0.9/helpers/Convert-SPClientMemberAccessExpression.ps1 | Convert-SPClientMemberAccessExpression.ps1 | #Requires -Version 3.0
# Convert-SPClientMemberAccessExpression.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/helpers/Split-SPClientExpressionString.ps1 | Split-SPClientExpressionString.ps1 | #Requires -Version 3.0
# Split-SPClientExpressionString.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/helpers/Invoke-SPClientLoadQuery.ps1 | Invoke-SPClientLoadQuery.ps1 | #Requires -Version 3.0
# Invoke-SPClientLoadQuery.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limita... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/helpers/Test-GenericSubclassOf.ps1 | Test-GenericSubclassOf.ps1 | #Requires -Version 3.0
# Test-GenericSubclassOf.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitati... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/helpers/Convert-SPClientIncludeExpression.ps1 | Convert-SPClientIncludeExpression.ps1 | #Requires -Version 3.0
# Convert-SPClientIncludeExpression.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including witho... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientFolder/ConvertTo-SPClientFolder.ps1 | ConvertTo-SPClientFolder.ps1 | #Requires -Version 3.0
# ConvertTo-SPClientFolder.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limita... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientFolder/Get-SPClientFolder.ps1 | Get-SPClientFolder.ps1 | #Requires -Version 3.0
# Get-SPClientFolder.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientFolder/New-SPClientFolder.ps1 | New-SPClientFolder.ps1 | #Requires -Version 3.0
# New-SPClientFolder.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientFolder/Remove-SPClientFolder.ps1 | Remove-SPClientFolder.ps1 | #Requires -Version 3.0
# Remove-SPClientFolder.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitatio... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientPermission/Clear-SPClientPermission.ps1 | Clear-SPClientPermission.ps1 | #Requires -Version 3.0
# Clear-SPClientPermission.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limita... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientPermission/Grant-SPClientPermission.ps1 | Grant-SPClientPermission.ps1 | #Requires -Version 3.0
# Grant-SPClientPermission.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limita... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientPermission/Revoke-SPClientPermission.ps1 | Revoke-SPClientPermission.ps1 | #Requires -Version 3.0
# Revoke-SPClientPermission.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limit... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientContentType/New-SPClientContentType.ps1 | New-SPClientContentType.ps1 | #Requires -Version 3.0
# New-SPClientContentType.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitat... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientContentType/Get-SPClientContentType.ps1 | Get-SPClientContentType.ps1 | #Requires -Version 3.0
# Get-SPClientContentType.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitat... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientContentType/Remove-SPClientContentType.ps1 | Remove-SPClientContentType.ps1 | #Requires -Version 3.0
# Remove-SPClientContentType.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limi... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientListItemAttachment/New-SPClientListItemAttachment.ps1 | New-SPClientListItemAttachment.ps1 | #Requires -Version 3.0
# New-SPClientListItemAttachment.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientListItemAttachment/Remove-SPClientListItemAttachment.ps1 | Remove-SPClientListItemAttachment.ps1 | #Requires -Version 3.0
# Remove-SPClientListItemAttachment.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including witho... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientListItemAttachment/Get-SPClientListItemAttachment.ps1 | Get-SPClientListItemAttachment.ps1 | #Requires -Version 3.0
# Get-SPClientListItemAttachment.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientContext/Disconnect-SPClientContext.ps1 | Disconnect-SPClientContext.ps1 | #Requires -Version 3.0
# Disconnect-SPClientContext.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limi... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientContext/Connect-SPClientContext.ps1 | Connect-SPClientContext.ps1 | #Requires -Version 3.0
# Connect-SPClientContext.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitat... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientFile/Remove-SPClientFile.ps1 | Remove-SPClientFile.ps1 | #Requires -Version 3.0
# Remove-SPClientFile.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientFile/New-SPClientFile.ps1 | New-SPClientFile.ps1 | #Requires -Version 3.0
# New-SPClientFile.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientFile/ConvertTo-SPClientFile.ps1 | ConvertTo-SPClientFile.ps1 | #Requires -Version 3.0
# ConvertTo-SPClientFile.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitati... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientFile/Get-SPClientFile.ps1 | Get-SPClientFile.ps1 | #Requires -Version 3.0
# Get-SPClientFile.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientView/Get-SPClientView.ps1 | Get-SPClientView.ps1 | #Requires -Version 3.0
# Get-SPClientView.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientView/Remove-SPClientView.ps1 | Remove-SPClientView.ps1 | #Requires -Version 3.0
# Remove-SPClientView.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientView/New-SPClientView.ps1 | New-SPClientView.ps1 | #Requires -Version 3.0
# New-SPClientView.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientUser/Get-SPClientUser.ps1 | Get-SPClientUser.ps1 | #Requires -Version 3.0
# Get-SPClientUser.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientUser/Remove-SPClientUser.ps1 | Remove-SPClientUser.ps1 | #Requires -Version 3.0
# Remove-SPClientUser.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientUser/Resolve-SPClientUser.ps1 | Resolve-SPClientUser.ps1 | #Requires -Version 3.0
# Resolve-SPClientUser.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientUser/New-SPClientUser.ps1 | New-SPClientUser.ps1 |
#Requires -Version 3.0
# New-SPClientUser.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientList/Get-SPClientList.ps1 | Get-SPClientList.ps1 | #Requires -Version 3.0
# Get-SPClientList.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientList/New-SPClientList.ps1 | New-SPClientList.ps1 | #Requires -Version 3.0
# New-SPClientList.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientList/Remove-SPClientList.ps1 | Remove-SPClientList.ps1 | #Requires -Version 3.0
# Remove-SPClientList.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientUniquePermission/Disable-SPClientUniquePermission.ps1 | Disable-SPClientUniquePermission.ps1 | #Requires -Version 3.0
# Disable-SPClientUniquePermission.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including withou... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientUniquePermission/Enable-SPClientUniquePermission.ps1 | Enable-SPClientUniquePermission.ps1 | #Requires -Version 3.0
# Enable-SPClientUniquePermission.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientListItem/ConvertTo-SPClientListItem.ps1 | ConvertTo-SPClientListItem.ps1 | #Requires -Version 3.0
# ConvertTo-SPClientListItem.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limi... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientListItem/Get-SPClientListItem.ps1 | Get-SPClientListItem.ps1 | #Requires -Version 3.0
# Get-SPClientLisItem.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientListItem/Remove-SPClientListItem.ps1 | Remove-SPClientListItem.ps1 | #Requires -Version 3.0
# Remove-SPClientListItem.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitat... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientListItem/New-SPClientListItem.ps1 | New-SPClientListItem.ps1 | #Requires -Version 3.0
# New-SPClientListItem.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldCalculated.ps1 | New-SPClientFieldCalculated.ps1 | #Requires -Version 3.0
# New-SPClientFieldCalculated.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldDateTime.ps1 | New-SPClientFieldDateTime.ps1 | #Requires -Version 3.0
# New-SPClientFieldDateTime.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limit... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/Remove-SPClientField.ps1 | Remove-SPClientField.ps1 | #Requires -Version 3.0
# Remove-SPClientField.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldUser.ps1 | New-SPClientFieldUser.ps1 | #Requires -Version 3.0
# New-SPClientFieldUser.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitatio... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldLookup.ps1 | New-SPClientFieldLookup.ps1 | #Requires -Version 3.0
# New-SPClientFieldLookup.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitat... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/Get-SPClientField.ps1 | Get-SPClientField.ps1 | #Requires -Version 3.0
# Get-SPClientField.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldCurrency.ps1 | New-SPClientFieldCurrency.ps1 | #Requires -Version 3.0
# New-SPClientFieldCurrency.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limit... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/Convert-SPClientField.ps1 | Convert-SPClientField.ps1 | #Requires -Version 3.0
# Convert-SPClientField.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitatio... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldNumber.ps1 | New-SPClientFieldNumber.ps1 | #Requires -Version 3.0
# New-SPClientFieldNumber.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitat... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldChoice.ps1 | New-SPClientFieldChoice.ps1 | #Requires -Version 3.0
# New-SPClientFieldChoice.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitat... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldMultiLineText.ps1 | New-SPClientFieldMultiLineText.ps1 | #Requires -Version 3.0
# New-SPClientFieldMultiLineText.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldUrl.ps1 | New-SPClientFieldUrl.ps1 | #Requires -Version 3.0
# New-SPClientFieldUrl.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldBoolean.ps1 | New-SPClientFieldBoolean.ps1 | #Requires -Version 3.0
# New-SPClientFieldBoolean.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limita... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientField/New-SPClientFieldText.ps1 | New-SPClientFieldText.ps1 | #Requires -Version 3.0
# New-SPClientFieldText.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitatio... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientWeb/New-SPClientWeb.ps1 | New-SPClientWeb.ps1 | #Requires -Version 3.0
# New-SPClientWeb.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientWeb/Get-SPClientWeb.ps1 | Get-SPClientWeb.ps1 | #Requires -Version 3.0
# Get-SPClientWeb.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientWeb/Remove-SPClientWeb.ps1 | Remove-SPClientWeb.ps1 | #Requires -Version 3.0
# Remove-SPClientWeb.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientType/Use-SPClientType.ps1 | Use-SPClientType.ps1 | #Requires -Version 3.0
# Use-SPClientType.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientGroup/Get-SPClientGroup.ps1 | Get-SPClientGroup.ps1 | #Requires -Version 3.0
# Get-SPClientGroup.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientGroup/New-SPClientGroup.ps1 | New-SPClientGroup.ps1 | #Requires -Version 3.0
# New-SPClientGroup.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation th... |
PowerShellCorpus/PowerShellGallery/SPClient/0.9/functions/SPClientGroup/Remove-SPClientGroup.ps1 | Remove-SPClientGroup.ps1 | #Requires -Version 3.0
# Remove-SPClientGroup.ps1
#
# Copyright (c) 2017 karamem0
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation... |
PowerShellCorpus/PowerShellGallery/SMLetsExt/1.0.14/SMLetsExt.tests.ps1 | SMLetsExt.tests.ps1 | #Requires -Modules Pester
<#
.SYNOPSIS
Tests the SCSMReviewActivities module
.EXAMPLE
Invoke-Pester
.NOTES
This script originated from work found here: https://github.com/kmarquette/PesterInAction
scriptanalyzer section basics taken from DSCResource.Tests
#>
Import-Module -Name (Join-Path -Path $PSSc... |
PowerShellCorpus/PowerShellGallery/EPS/0.4.0/Each.ps1 | Each.ps1 | function Each {
[CmdletBinding()]
Param(
[Parameter(ValueFromPipeline=$True, ValueFromPipelinebyPropertyName=$True)]
[Object[]]$InputObject,
[Parameter(Mandatory=$True, Position=0)]
[ScriptBlock]$Process,
[ScriptBlock]$Begin,
[ScriptBlock]$End,
[String... |
PowerShellCorpus/PowerShellGallery/EPS/0.4.0/New-EpsTemplateScript.ps1 | New-EpsTemplateScript.ps1 | function New-EpsTemplateScript {
Param(
[Parameter(Mandatory = $True)]
[AllowEmptyString()]
[String]$Template
)
$position = 0
$Pattern = [regex]"(?sm)<%(?<ind>={1,2}|-|#|%)?(?<code>.*?)(?<tailch>[-=])?%>(?<rspace>[ \t]*\r?\n)?"
$StringBuilder = New-Object -TypeName "System.Te... |
PowerShellCorpus/PowerShellGallery/EPS/0.4.0/Invoke-EpsTemplate.ps1 | Invoke-EpsTemplate.ps1 | $ErrorActionPreference = "Stop"
function Invoke-EpsTemplate {
[CmdletBinding()]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSAvoidUsingInvokeExpression", "")]
Param(
[Parameter(ParameterSetName='String template')]
[String]$Template,
[Parameter(ParameterSetName='File templat... |
PowerShellCorpus/PowerShellGallery/VMware.VimAutomation.HorizonView/7.1.0.5307191/VMware.VimAutomation.HorizonView.ps1 | VMware.VimAutomation.HorizonView.ps1 | # Script to import Connect/Disconnect HVServer cmdlets
[VMware.VimAutomation.Sdk.Interop.V1.CoreServiceFactory]::CoreService.OnImportModule(
"VMware.VimAutomation.HorizonView.Commands",
(Split-Path $script:MyInvocation.MyCommand.Path));
# This script contains routines for additional module initialization.... |
PowerShellCorpus/PowerShellGallery/DeploymentReadinessChecker/1.1.0/ReadinessValidationScript/Example.Tests.ps1 | Example.Tests.ps1 | #Requires -Modules 'Pester'
<#
PURPOSE: Pester script to validate that a machine meets the prerequisites for a software deployment/upgrade.
It generates a NUnit-style test result file for each computer and a summary report in HTML format.
This script is designed to be run remotely (not from the target m... |
PowerShellCorpus/PowerShellGallery/DeploymentReadinessChecker/1.1.0/Tests/Unit/DeploymentReadinessChecker.Tests.ps1 | DeploymentReadinessChecker.Tests.ps1 | Import-Module "$($PSScriptRoot)\..\..\DeploymentReadinessChecker.psd1" -Force
$ModuleName = 'DeploymentReadinessChecker'
$OutputPath = 'TestDrive:\OutputFolder'
$ComputerNames = 'Computer1','Computer2','Computer3'
$ScriptInfo = Get-Command (Get-ChildItem -Path "$PSScriptRoot\..\..\ReadinessValidationScript\" -Filte... |
PowerShellCorpus/PowerShellGallery/ActiveDirectoryFever/1.0.0/Functions/Get-ADDirSyncChange.ps1 | Get-ADDirSyncChange.ps1 | <#
.SYNOPSIS
Use the DirSync function of Active Directory to monitor the changes.
.DESCRIPTION
Use the DirSync function of Active Directory to monitor the changes. To use
this functionality, the user needs 'Domain Administrators' privileges or
the 'Replication directory changes' is delegated to... |
PowerShellCorpus/PowerShellGallery/ActiveDirectoryFever/1.0.0/Functions/Test-ADDomainControllerDiagnostic.ps1 | Test-ADDomainControllerDiagnostic.ps1 | <#
.SYNOPSIS
Health test of Active Directory Domain Controllers by using the built-in
and trusted "dcdiag.exe" command line tool.
.DESCRIPTION
This function uses Windows PowerShell Remoting to connect to all specified
Active Directory Domain Controllers. Inside the session, dcdiag is executed
... |
PowerShellCorpus/PowerShellGallery/ActiveDirectoryFever/1.0.0/Functions/Test-ADDomainControllerReplication.ps1 | Test-ADDomainControllerReplication.ps1 | <#
.SYNOPSIS
Replication test of Active Directory Domain Controllers by using the
build-in and trusted "repadmin.exe" command line tool.
.DESCRIPTION
This function uses Windows PowerShell Remoting to connect to all specified
Active Directory Domain Controllers. Inside the session, repadmin is
... |
PowerShellCorpus/PowerShellGallery/ActiveDirectoryFever/1.0.0/Functions/Get-ADUsnNumberUpdate.ps1 | Get-ADUsnNumberUpdate.ps1 | <#
.SYNOPSIS
Uses the USN propertiy of Active Directory to monitor the updates.
.DESCRIPTION
Uses the update sequence number (USN) propertiy of Active Directory to
monitor the updates. Whenever an object is changed, its USN is incremented.
Each domain controller maintains its own USN, they cann... |
PowerShellCorpus/PowerShellGallery/ActiveDirectoryFever/1.0.0/Helpers/New-ADChangeObject.ps1 | New-ADChangeObject.ps1 |
function New-ADChangeObject
{
param
(
[Parameter(Mandatory=$true)]
[DateTime] $Timestamp,
[Parameter(Mandatory=$true)]
[AllowEmptyString()]
[String] $ObjectClass,
[Parameter(Mandatory=$true)]
[Guid] $ObjectGuid,
[Parameter(Mandatory=$true)]
... |
PowerShellCorpus/PowerShellGallery/OhMyPsh/0.0.5/plugins/fzf/Load.ps1 | Load.ps1 | $PreLoad = {
# Note, we skip using Import-OMPModule as the required module is packaged
# with this plugin.
Import-Module (Join-Path $PluginPath 'fzf\bin\PSFzf\PsFzf.psm1') -Global -Force
}
$PostLoad = {
Write-Output @'
Fuzzy logic provider has been loaded. Here are a few things you can do with... |
PowerShellCorpus/PowerShellGallery/OhMyPsh/0.0.5/plugins/fzf/src/PSFzf.ps1 | PSFzf.ps1 | # Nothing |
PowerShellCorpus/PowerShellGallery/OhMyPsh/0.0.5/plugins/fzf/bin/PSFzf/PSFzf.tests.ps1 | PSFzf.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
#
Get-Module PsFzf | Remove-Module
# set env variable so Import-Module doesn't fail:
if ([string]::IsNullOrEmpty($env:GOPA... |
PowerShellCorpus/PowerShellGallery/OhMyPsh/0.0.5/plugins/fzf/bin/PSFzf/PSFzf.Functions.ps1 | PSFzf.Functions.ps1 | #.ExternalHelp PSFzf.psm1-help.xml
function Invoke-FuzzyEdit()
{
$files = @()
try {
Invoke-Fzf -Multi | ForEach-Object { $files += """$_""" }
} catch {
}
# HACK to check to see if we're running under Visual Studio Code.
# If so, reuse Visual Studio Code currently open windows:
... |
PowerShellCorpus/PowerShellGallery/OhMyPsh/0.0.5/plugins/qod/Load.ps1 | Load.ps1 | $PreLoad = {
if (-not (Test-OMPProfileSetting -Name 'QuoteDirectory')) {
$QuoteDir = Join-Path $PluginPath "$Name\src\quotes.txt"
Write-Output "Setting Quote Directory to $QuoteDir"
Add-OMPProfileSetting -Name 'QuoteDirectory' -Value $QuoteDir
Export-OMPProfile
}
$Quot... |
PowerShellCorpus/PowerShellGallery/OhMyPsh/0.0.5/plugins/qod/src/Plugin.ps1 | Plugin.ps1 | ## Superfluous but fun quotes.
function Global:Get-Quote {
param(
$Path = (Get-OMPProfileSetting -Name 'QuoteDirectory'),
[int]$Count=1
)
if(-not (Test-Path $Path) ) {
$Path = Join-Path ${QuoteDir} $Path
if(-not (Test-Path $Path) ) {
$Path = $Path + ".t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.