full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/IseSteroids/Github/EtienneDeneuve_Powershell/OneDriveAPI/Remove-AllOneDriveSharedLink.ps1 | Remove-AllOneDriveSharedLink.ps1 | ${_/==\/\/==\__/\__} = "https://api.onedrive.com/v1.0/{0}?access_token={1}"
${/===\/===\/\/==\/} = "YOUR TOKEN HERE AFTER THE WORD Authorization: bearer"
${/===\/\__/\/\_/\/} = [string]::Format(${_/==\/\/==\__/\__},"drive/shared",${/===\/===\/\/==\/})
${/=\__/====\______} = irm -Uri ${/===\/\__/\/\_/\/}
foreach($... |
PowerShellCorpus/IseSteroids/Github/EtienneDeneuve_Powershell/SideLoadNoSCCM/MainScript.ps1 | MainScript.ps1 | Function Update-AppxBundleCert{
param(
$packagesourcename = "xxx.appxbundle",
$packagesourcepath = "C:\Users\adm_etienne\Desktop\folderofthedependcies",
$destinationroot = "C:\Users\adm_etienne\Desktop\Destination",
$vstool = "C:\Program Files (x86)\Windows Kits\8.1\bin\x64",
$certificateSAN ... |
PowerShellCorpus/IseSteroids/Github/EtienneDeneuve_Powershell/MSITools/Get-InstallerList.ps1 | Get-InstallerList.ps1 | $baseinstaller = Get-ChildItem -Path youwant
Write-host "There's $($baseinstaller.Count) installer in this folder"
$InstallerList = ,@()
foreach($folder in $baseinstaller){
$subfolderinstallers = Get-ChildItem $($folder.FullName) -Recurse -Filter *.msi
#$subfolderinstallers
If($subfolderinstallers... |
PowerShellCorpus/IseSteroids/Github/bjarniko_VLN2/ICESolution/packages/jQuery.1.10.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# VS 11 and above supports the new intellisense JS files
${____/\__/\/\_/=\/} = [System.Version]::Parse($dte.Version)
${_/\/===\__/==\_/\} = ${____/\__/\/\_/=\/}.Major -ge 11
if (-not ${_/\/===\__/==\_/\}) {
${__/\/=\__/\/... |
PowerShellCorpus/IseSteroids/Github/bjarniko_VLN2/ICESolution/packages/Modernizr.2.6.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
if ($scriptsFolderProjectItem -eq $null) {
# No Scripts folder
Write-Host "No Scripts folder found"
exit
}
# Update the _references.js file
AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileName... |
PowerShellCorpus/IseSteroids/Github/andreeahitruc_Licenta2015/Backend/Back_F/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/IseSteroids/Github/andreeahitruc_Licenta2015/Backend/Back_F/packages/Modernizr.2.6.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
if ($scriptsFolderProjectItem -eq $null) {
# No Scripts folder
Write-Host $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TgBvACAAUwBjAHIAaQBwAHQAcwAgAGYAbwBsAGQAZQByACAAZgBvAHUAbgBkAA==')))
exit
... |
PowerShellCorpus/IseSteroids/Github/andreeahitruc_Licenta2015/Backend/Back_F/packages/jQuery.UI.Combined.1.8.24/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $juiFileNameRegEx |
PowerShellCorpus/IseSteroids/Github/andreeahitruc_Licenta2015/Backend/Back_F/packages/jQuery.1.8.2/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersion = $vsVersion.Major
Write-Host $ExecutionContext.I... |
PowerShellCorpus/IseSteroids/Github/andreeahitruc_Licenta2015/Backend/Back_F/packages/jQuery.1.8.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
${_/\___/=\/\___/=\} = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
${/====\_/\_/==\/=\} = Get-Item $file
trap { ;
continue } ${_/\_/\__/=\/==\/\} = ${/====\_/\_/==\/=\}.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/OpenWeatherMap/2.1.0/profile.example.ps1 | profile.example.ps1 |
ipmo .\OpenWeatherMap
Function Write-LocalWeatherCurrent([switch]$Inline) {
Write-WeatherCurrent -City Minneapolis -ApiKey xxx -Units imperial -Inline:$Inline
}
Function Write-LocalWeatherForecast($Days = 1) {
Write-WeatherForecast -City Minneapolis -ApiKey xxx -Units imperial -Days $Days
}
Write-Host ... |
PowerShellCorpus/IseSteroids/PowerShellGallery/IntelliTect.PSDropbin/0.7.1.0/PSDropNew/Move-Item.ps1 | Move-Item.ps1 | Function Move-Item {
[CmdletBinding(DefaultParameterSetName='Path', SupportsShouldProcess=$true, ConfirmImpact='Medium', SupportsTransactions=$true, HelpUri='http://go.microsoft.com/fwlink/?LinkID=113350')]
param(
[Parameter(ParameterSetName='Path', Mandatory=$true, Position=0, ValueFromPipeline=$true, ValueFromPip... |
PowerShellCorpus/IseSteroids/PowerShellGallery/valentia/0.5.2.3/Functions/Helper/Group/New-ValentiaGroup.ps1 | New-ValentiaGroup.ps1 |
function New-ValentiaGroup
{
[CmdletBinding()]
param
(
[Parameter(Position = 0, mandatory = $true, ValueFromPipeline = 1, ValueFromPipelineByPropertyName = 1, HelpMessage = "Specify IpAddress or NetBIOS name for deploy target clients.")]
[string[]]$DeployClients,
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/valentia/0.5.2.3/Functions/Helper/ScheduledTask/Remove-ValentiaScheduledTaskEmptyDirectoryPath.ps1 | Remove-ValentiaScheduledTaskEmptyDirectoryPath.ps1 | #Requires -Version 3.0
#-- Scheduler Task Functions --#
<#
.SYNOPSIS
Extension to set TaskScheduler and Remove Task folder where Task not exist
.DESCRIPTION
You can remove task Empty folder. Normal Unregister Cmdlet never erase them and it may cause some issue like TaskScheduler could not name as same as c... |
PowerShellCorpus/IseSteroids/PowerShellGallery/ADSchema/0.0.3/tests/ADSchemaAttribute.tests.ps1 | ADSchemaAttribute.tests.ps1 |
Describe $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('QQBEAFMAYwBoAGUAbQBhACAAQQB0AHQAcgBpAGIAdQB0AGUAIABGAHUAbgBjAHQAaQBvAG4AcwA='))) {
Context $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('RwBlAHQALQBBAEQAUwBjAGgAZQBtAGEAQQB0AHQAcgBpAGIAdQB0AGUA'))) {
It $([T... |
PowerShellCorpus/IseSteroids/PowerShellGallery/HipChatAdmin/1.1/Public/New-HipchatRoom.ps1 | New-HipchatRoom.ps1 |
function New-HipchatRoom{
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true,HelpMessage="Enter the room name",Position=0)][string]$Name,
[Parameter()][switch]$Private,
[Parameter(Mandatory=$true,ValueFromPipeline=$true,HelpMessage="Enter your API Token")][Alias('ApiKey')][... |
PowerShellCorpus/IseSteroids/PowerShellGallery/MarkdownPS/1.4/New-MDParagraph.Tests.ps1 | New-MDParagraph.Tests.ps1 | $here = Split-Path -Parent $MyInvocation.MyCommand.Path
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".")
. $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('JABoAGUAcgBlAFwAJABzAHUAdAA=')))
$newLine=[System.Environment]::NewLine... |
PowerShellCorpus/IseSteroids/PowerShellGallery/EWS/1.1/Get-EWSFolder.ps1 | Get-EWSFolder.ps1 | function Get-EWSFolder {
[OutputType('Microsoft.Exchange.WebServices.Data.Folder')]
[CmdletBinding()]
param (
[Parameter(
Mandatory
)]
[ValidateScript({
$root, $rest = $_ -split '\\|/|:|\|'
try {
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/EWS/1.1/Remove-EWSItem.ps1 | Remove-EWSItem.ps1 | function Remove-EWSItem {
[CmdletBinding(
SupportsShouldProcess,
ConfirmImpact = 'High'
)]
param (
[Microsoft.Exchange.WebServices.Data.DeleteMode]$DeleteMode = 'MoveToDeletedItems',
[Parameter(
ValueFromPipelineByPropertyName
)]
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Unity-Powershell/0.14.2/Public/Test-UnityEmailAlert.ps1 | Test-UnityEmailAlert.ps1 | Function Test-UnityEmailAlert {
[CmdletBinding(DefaultParameterSetName="Refresh")]
Param (
[Parameter(Mandatory = $false,HelpMessage = 'EMC Unity Session')]
$session = ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true}),
[Parameter(Mandatory = $false,Position = 0,ValueFrom... |
PowerShellCorpus/IseSteroids/PowerShellGallery/awp/1.0.0.0/functions/Uninstall-AWP.ps1 | Uninstall-AWP.ps1 | function Uninstall-AWP
{
[CmdletBinding(SupportsShouldProcess = $True, ConfirmImpact = 'Low')]
[OutputType()]
Param (
[Parameter(Mandatory = $false, ValueFromPipeline=$True, valuefrompipelinebypropertyname=$true, Position=0)]
[ValidateNotNullOrEmpty()]
[Alias('IPAddress', 'Name')]
[string[]]
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/psmsgraph/1.0.26.43/Public/Get-AADServicePrinicpalbyDisplayName.ps1 | Get-AADServicePrinicpalbyDisplayName.ps1 |
function Get-AADServicePrinicpalbyDisplayName {
[CmdletBinding(SupportsShouldProcess = $true,
HelpUri = 'http://psmsgraph.readthedocs.io/en/latest/functions/Get-AADServicePrinicpalbyDisplayName')]
[OutputType('MSGraphAPI.DirectoryObject.ServicePrincipal')]
param
(
[Parameter(... |
PowerShellCorpus/IseSteroids/PowerShellGallery/SMLets/0.5.0.1/Test/test007.ps1 | test007.ps1 |
BEGIN
{
# the definition of Out-TestLog
. ./Common.ps1
${_/==\/\/==\/=\/==} = $MyInvocation.MyCommand
${/=\/=\_/==\/\/\_/} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TQBpAGMAcgBvAHMAbwBmAHQALgB3AGkAbgBkAG8AdwBzAC4AYwBvAG0AcAB1AHQAZQByAA==')))
${/==\_/\_/\/\/=\/\} = [... |
PowerShellCorpus/IseSteroids/PowerShellGallery/SMLets/0.5.0.1/Scripts/get-mpbinfo.ps1 | get-mpbinfo.ps1 | #requires -version 2.0
# required because of the way we use new-object
# Get-MPBInfo.ps1
# Retrieve management pack and resource information from a .MPB file
param ( $file, $computername = "localhost", [switch]$mpinfo, [switch]$dumpStream )
$PACKDLL = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64Strin... |
PowerShellCorpus/IseSteroids/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPAccessServiceApp/1-CreateServiceApp.ps1 | 1-CreateServiceApp.ps1 | <#
.EXAMPLE
This example shows how to deploy Access Services 2013 to the local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointD... |
PowerShellCorpus/IseSteroids/PowerShellGallery/SharePointDSC/1.7.0.0/Examples/Resources/SPBCSServiceApp/1-CreateServiceApp.ps1 | 1-CreateServiceApp.ps1 | <#
.EXAMPLE
This example shows how to deploy a Business Connectivity Services application to the
local SharePoint farm.
#>
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscRe... |
PowerShellCorpus/IseSteroids/PowerShellGallery/WebKitDev/0.1.1/Functions/Install-Python.ps1 | Install-Python.ps1 |
Function Install-Python {
Param(
[Parameter(Mandatory)]
[string] $version,
[Parameter(Mandatory)]
[string] $pipVersion,
[Parameter()]
[AllowNull()]
[string] $installationPath
)
$major, $minor, $patch = $version.split('.');
if ($major -ne '2') {
Write-Err... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PoShMon/0.13.0/Functions/PoShMon.Monitoring.SharePoint/Test-SPSearchHealth.ps1 | Test-SPSearchHealth.ps1 | Function Test-SPSearchHealth
{
[CmdletBinding()]
param (
#[System.Management.Automation.Runspaces.PSSession]$RemoteSession
[hashtable]$PoShMonConfiguration
)
Write-Verbose $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('RwBlAHQAdABpAG4AZwAgAFMAZQBhAHIAYwBoACAAUwBlAHIAdg... |
PowerShellCorpus/IseSteroids/PowerShellGallery/xExchange/1.15.0.0/Test/MSFT_xExchMailboxServer.Integration.Tests.ps1 | MSFT_xExchMailboxServer.Integration.Tests.ps1 |
Import-Module $PSScriptRoot\..\DSCResources\MSFT_xExchMailboxServer\MSFT_xExchMailboxServer.psm1
Import-Module $PSScriptRoot\..\Misc\xExchangeCommon.psm1 -Verbose:0
Import-Module $PSScriptRoot\xExchange.Tests.Common.psm1 -Verbose:0
[bool]$exchangeInstalled = IsSetupComplete
if ($exchangeInstalled)
{
if ($nu... |
PowerShellCorpus/IseSteroids/PowerShellGallery/LibGit2/0.3.2/Functions/Test-GitIncomingCommit.ps1 | Test-GitIncomingCommit.ps1 |
function Test-GitIncomingCommit
{
[CmdletBinding()]
param(
[string]
$RepoRoot = (Get-Location).ProviderPath,
[Switch]
$All
)
Set-StrictMode -Version 'Latest'
${10001011011110011} = Find-GitReposito... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Vaporshell/0.7.3/Public/Condition Functions/Add-ConIf.ps1 | Add-ConIf.ps1 | function Add-ConIf {
[OutputType('Vaporshell.Condition.If')]
[cmdletbinding()]
Param
(
[parameter(Mandatory = $true,Position = 0)]
[System.String]
$ConditionName,
[parameter(Mandatory = $true,Position = 1)]
[ValidateScript({
${2} = "Vaporshell.Con... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSEC2VPC.ps1 | New-VSEC2VPC.ps1 | function New-VSEC2VPC {
<#
.SYNOPSIS
Adds an AWS::EC2::VPC resource to the template
.DESCRIPTION
Adds an AWS::EC2::VPC resource to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
.PARAMETER LogicalId
The lo... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Types/New-VSWorkSpacesWorkspace.ps1 | New-VSWorkSpacesWorkspace.ps1 | function New-VSWorkSpacesWorkspace {
<#
.SYNOPSIS
Adds an AWS::WorkSpaces::Workspace resource to the template
.DESCRIPTION
Adds an AWS::WorkSpaces::Workspace resource to the template
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-workspaces-wor... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSSSMAssociationParameterValues.ps1 | Add-VSSSMAssociationParameterValues.ps1 | function Add-VSSSMAssociationParameterValues {
<#
.SYNOPSIS
Adds an AWS::SSM::Association.ParameterValues resource property to the template
.DESCRIPTION
Adds an AWS::SSM::Association.ParameterValues resource property to the template
.LINK
http://docs.aws.amazon.com/AWSCloudForm... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSEC2InstanceInstanceIpv6Address.ps1 | Add-VSEC2InstanceInstanceIpv6Address.ps1 | function Add-VSEC2InstanceInstanceIpv6Address {
[OutputType('Vaporshell.Resource.EC2.Instance.InstanceIpv6Address')]
[cmdletbinding()]
Param
(
[parameter(Mandatory = $true)]
[ValidateScript( {
${4} = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('U... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Vaporshell/0.7.3/Public/Resource Property Types/Add-VSCodePipelinePipelineOutputArtifact.ps1 | Add-VSCodePipelinePipelineOutputArtifact.ps1 | function Add-VSCodePipelinePipelineOutputArtifact {
<#
.SYNOPSIS
Adds an AWS::CodePipeline::Pipeline.OutputArtifact resource property to the template
.DESCRIPTION
Adds an AWS::CodePipeline::Pipeline.OutputArtifact resource property to the template
.LINK
http://docs.aws.amazon.c... |
PowerShellCorpus/IseSteroids/PowerShellGallery/omsAgent/1.2/functions/public/Install-omsAgent.ps1 | Install-omsAgent.ps1 |
function Install-OmsAgent
{
[CmdletBinding(SupportsShouldProcess = $True, ConfirmImpact = 'Low', DefaultParameterSetName='downloadOMS')]
[OutputType([String])]
Param (
[Parameter(Mandatory = $false, Position = 0, ValueFromPipeline=$True, valuefrompipelinebypropertyname=$true)]
[ValidateNotNullOrEmpty()]
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Indented.Build/2.16.0/task/Test/UploadAppVeyorTestResults.ps1 | UploadAppVeyorTestResults.ps1 | BuildTask UploadAppVeyorTestResults -Stage Test -Properties @{
Order = 3
ValidWhen = { $null -ne $env:APPVEYOR_JOB_ID }
Implementation = {
$path = Join-Path $buildInfo.Output ('{0}.xml' -f $buildInfo.ModuleName)
if (Test-Path $path) {
$webClient = New-Object S... |
PowerShellCorpus/IseSteroids/PowerShellGallery/ChefAutomate/0.1.7/functions/Get-ChefAutomateComplianceProfile.ps1 | Get-ChefAutomateComplianceProfile.ps1 |
function Get-ChefAutomateComplianceProfile
{
[CmdletBinding()]
[Alias()]
Param
(
[Parameter(Mandatory=$true,
ValueFromPipelineByPropertyName=$true,
Position=0)]
$automateServer,
[Parameter(Mandatory=$true,
V... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSRedSeal/1.2.3.0/public/Read-RSReport.ps1 | Read-RSReport.ps1 | function Read-RSReport {
<#
.SYNOPSIS
Reads RedSeal report
.DESCRIPTION
Reads RedSeal reports and converts the RedSeal XML into usable objects.
.PARAMETER ReportName
Name of the report to fetch and read
.PARAMETER ReportFile
Full path to file name to use in place of r... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSRedSeal/1.2.3.0/public/Invoke-RSDataQuery.ps1 | Invoke-RSDataQuery.ps1 | function Invoke-RSDataQuery {
[cmdletbinding()]
Param(
[Parameter(Mandatory = $false)]
[String]
$Group = "/Topology",
#currently, Metrics is the only valid API type
[Parameter(Mandatory = $false)]
[ValidateSet('Metrics')]
[String]
$QueryR... |
PowerShellCorpus/IseSteroids/PowerShellGallery/ISESteroids/2.6.3.30/Fixer/Spaces/ArrayAdjustSpace/ArrayAdjustSpace.ps1 | ArrayAdjustSpace.ps1 | & {
$items = [ISESteroids.SteroidsFixer.Helpers]::GetAST('Array')
foreach($item in $items)
{
$tokenlist = [ISESteroids.SteroidsFixer.Helpers]::GetToken($item.Extent.StartOffset, $item.Extent.EndOffset)
$tokenCount = $tokenlist.Count
for($i=0; $i-lt$tokenCount-1;$i++)
{
$token = $tokenlist[$i]
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/ISESteroids/2.6.3.30/Fixer/Reformat Structures/Reformat Hashtable/ReformatHashtable.ps1 | ReformatHashtable.ps1 | & {
foreach(${00111101101111010} in [ISESteroids.SteroidsFixer.Helpers]::GetAST($([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('SABhAHMAaAB0AGEAYgBsAGUA')))))
{
if (${00111101101111010}.Extent.Text.TrimStart().StartsWith('@') -eq $false -or ${00111101101111010}.KeyValuePairs.Count -eq 0) { cont... |
PowerShellCorpus/IseSteroids/PowerShellGallery/LegacyNetworking/1.0.1/Src/Get-LegacyNetFirewallRule.ps1 | Get-LegacyNetFirewallRule.ps1 | function Get-LegacyNetFirewallRule {
[CmdletBinding(DefaultParameterSetName = 'Default')]
[OutputType([System.Management.Automation.PSCustomObject])]
param (
[Parameter(ValueFromPipeline, ValueFromPipelineByPropertyName)] [ValidateNotNullOrEmpty()]
[Alias('Name')] [System.String] $Displ... |
PowerShellCorpus/IseSteroids/PowerShellGallery/WinSCP/5.9.5.6/Public/Invoke-WinSCPCommand.ps1 | Invoke-WinSCPCommand.ps1 | Function Invoke-WinSCPCommand {
[CmdletBinding(
HelpUri = 'https://github.com/dotps1/WinSCP/wiki/Invoke-WinSCPCommand'
)]
[OutputType(
[WinSCP.CommandExecutionResult]
)]
Param (
[Parameter(
Mandatory = $true,
ValueFromPipeline = $true
)]
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/TEApi/1.144/Public/Get-TEApiUsage.ps1 | Get-TEApiUsage.ps1 | function Get-TEApiUsage{
[CmdletBinding()]
param(
[int]$apiVersion = 6,
[string]$aid,
[switch]$quota,
[switch]$cuUsed,
[switch]$cuProjected,
[switch]$eaUsed,
[switch]$tests,
[switch]$agents
)
BEGIN{}
PRO... |
PowerShellCorpus/IseSteroids/PowerShellGallery/cFSRM/2.0.1.48/Tests/Integration/BMD_cFSRMClassificationProperty.Integration.Tests.ps1 | BMD_cFSRMClassificationProperty.Integration.Tests.ps1 | $DSCModuleName = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('YwBGAFMAUgBNAA==')))
$DSCResourceName = $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('QgBNAEQAXwBjAEYAUwBSAE0AQwBsAGEAcwBzAGkAZgBpAGMAYQB0AGkAbwBuAFAAcgBvAHAAZQByAHQAeQA=')))
if ( (-not (Test-Path -Path $([Tex... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PS.HealthChecks/1.0.19/Public/Connect-HealthCheck.ps1 | Connect-HealthCheck.ps1 | function Connect-HealthCheck
{
[CmdletBinding(SupportsShouldProcess=$false,
PositionalBinding)]
[Alias()]
[OutputType()]
Param
(
[Parameter(Mandatory)]
[ValidateNotNull()]
[ValidateNotNullOrEmpty()]
[Alias('Key')]
[String]$ApiKey
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/psKeePass/0.0.0.7/common/specific.ps1 | specific.ps1 |
function f1
{
Param
(
[Parameter(Mandatory=$false,ValueFromPipeline=$True)]
$PwEntry,
[Switch]$ForcePlainText,
$CompositeKey,
$ConnectionInfo
)
$PwEntry.Strings | % {
try
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/WPFPS/1.0.0.0/Public/Get-WPFListBoxItem.ps1 | Get-WPFListBoxItem.ps1 | function Get-WPFListBoxItem
{
<#
.SYNOPSIS
Function to retrieve items from a ListBox Control
.DESCRIPTION
Function to retrieve items from a ListBox Control
.PARAMETER ListBox
Specifies the ListBox control
.PARAMETER Selected
Retrieve only the selected items
.PARAMETER All
Retrieve... |
PowerShellCorpus/IseSteroids/PowerShellGallery/xHyper-V/3.8.0.0/Examples/Sample_xVHD_AdditionalPropertyVHD.ps1 | Sample_xVHD_AdditionalPropertyVHD.ps1 | configuration Sample_xVHD_AdditionalPropertyVHD
{
param
(
[Parameter(Mandatory)]
[string]$Name,
[Parameter(Mandatory)]
[string]$Path,
[Parameter(Mandatory)]
[string]$ParentPath,
[Parameter(Mandatory)]
[string]$Maxim... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Rivet/0.8.1/Functions/Columns/New-UniqueIdentifierColumn.ps1 | New-UniqueIdentifierColumn.ps1 | function New-UniqueIdentifierColumn
{
<#
.SYNOPSIS
Creates a column object representing an UniqueIdentifier datatype.
.DESCRIPTION
Use this function in the `Column` script block for `Add-Table`:
Add-Table 'WithUUID' {
UniqueIdentifier 'ColumnName'
}
##... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSGSuite/1.2.1/Public/Set-PSGSuiteConfig.ps1 | Set-PSGSuiteConfig.ps1 | function Set-PSGSuiteConfig {
[cmdletbinding()]
param(
[string]$P12KeyPath,
[string]$AppEmail,
[string]$AdminEmail,
[string]$CustomerID,
[string]$Domain,
[string]$Path = "$ModuleRoot\$env:USERNAME-$env:COMPUTERNAME-$env:PSGSuiteDefaultDomain-PSGSuite... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSGSuite/1.2.1/Public/Get-GSUserASP.ps1 | Get-GSUserASP.ps1 | function Get-GSUserASP {
[cmdletbinding()]
Param
(
[parameter(Mandatory=$false,Position=0,ValueFromPipelineByPropertyName=$true)]
[Alias("primaryEmail")]
[ValidateNotNullOrEmpty()]
[String]
$User=$Script:PSGSuite.AdminEmail,
[parameter(Mandatory=$false,Position=1... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Carbon/2.4.1/Functions/Get-Permission.ps1 | Get-Permission.ps1 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Carbon/2.4.1/Functions/Test-Privilege.ps1 | Test-Privilege.ps1 |
function Test-Privilege
{
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)]
[string]
$Identity,
[Parameter(Mandatory=$true)]
[string]
$Privilege
)
Set-StrictMode -Version $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TA... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Carbon/2.4.1/Functions/Grant-ServiceControlPermission.ps1 | Grant-ServiceControlPermission.ps1 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed... |
PowerShellCorpus/IseSteroids/PowerShellGallery/3PAR-Powershell/0.4.0/Private/Format-Result.ps1 | Format-Result.ps1 | function Format-Result {
[CmdletBinding()]
Param (
[parameter(Mandatory = $true)]
$dataPS,
[parameter(Mandatory = $true)]
[string]$TypeName
)
Begin { $AlldataPS = @() }
Process {
# Add custom type to the resulting oject for formating purpose
Foreach ($d... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Office365Connect/1.5.0/Get-AzureADCredential.ps1 | Get-AzureADCredential.ps1 | function Get-AzureADCredential {
[OutputType([bool], [PSCredential])]
[CmdletBinding()]
param (
[uint16]$MaxTry = 3
)
$Regex = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Office365Connect/1.5.0/Disconnect-Office365.ps1 | Disconnect-Office365.ps1 | function Disconnect-Office365 {
[CmdletBinding(
SupportsShouldProcess = $true
)]
param(
[Parameter(
ValueFromPipeline = $true
)]
[ValidateSet('AllServices', 'AzureAD', 'ComplianceCenter', 'ExchangeOnline', 'ExchangeOnlineProtection', 'MSOnline'... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Pipeworks/1.9.9.4/ConvertFrom-InlinePowerShell.ps1 | ConvertFrom-InlinePowerShell.ps1 | function ConvertFrom-InlinePowerShell
{
[CmdletBinding(DefaultParameterSetName='PowerShellAndHTML')]
[OutputType([string])]
param(
[Parameter(Mandatory=$true,
ParameterSetName='FileName',
ValueFrom... |
PowerShellCorpus/IseSteroids/PowerShellGallery/AzSDK/2.2.0/Framework/Core/SubscriptionSecurity/SecurityCenter.ps1 | SecurityCenter.ps1 | using namespace System.Management.Automation
Set-StrictMode -Version Latest
class SecurityCenter: AzSdkRoot
{
[PSObject] $Policy = $null;
[string] $Off = "Off";
[string] $On = "On";
SecurityCenter([string] $subscriptionId):
Base($subscriptionId)
{
$this.Policy = $this.LoadServerConf... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSDepend/0.1.51/Private/Add-ObjectDetail.ps1 | Add-ObjectDetail.ps1 | function Add-ObjectDetail
{
<#
.SYNOPSIS
Decorate an object with
- A TypeName
- New properties
- Default parameters
.DESCRIPTION
Helper function to decorate an object with
- A TypeName
- New properties
- Default paramet... |
PowerShellCorpus/IseSteroids/PowerShellGallery/xSCSMA/1.5.0.0/Examples/SCSMA-MultiInstance-TP.ps1 | SCSMA-MultiInstance-TP.ps1 |
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingConvertToSecureStringWithPlainText', '')]
param()
Configuration SMA
{
Import-DscResource -Module xSQLServer
Import-DscResource -Module xSCSMA
${14} = $AllNodes.Roles | Sort-Object -Unique
foreach(${12} in ${14})
{
${1... |
PowerShellCorpus/IseSteroids/PowerShellGallery/xPhp/1.2.0.0/Samples/UsingxPhpCompositeConfiguration.ps1 | UsingxPhpCompositeConfiguration.ps1 |
$scriptRoot = Split-Path $MyInvocation.MyCommand.Path
$phpIniPath = (Join-Path $scriptRoot 'phpConfigTemplate.txt')
if (-not (Test-Path $phpIniPath))
{
$message = $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('TQBpAHMAcwBpAG4A... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSModuleDevelopment/1.3.1.17/functions/Get-HelpEx.ps1 | Get-HelpEx.ps1 | Function Get-HelpEx
{
[CmdletBinding(DefaultParameterSetName = "AllUsersView")]
Param (
[Parameter(ParameterSetName = "Parameters", Mandatory = $true)]
[System.String]
$Parameter,
[Parameter(ParameterSetName = "Online", Mandatory = $true)]
[System.Management.Automation.SwitchParameter]
$On... |
PowerShellCorpus/IseSteroids/PowerShellGallery/posh-git/0.7.1/GitPrompt.ps1 | GitPrompt.ps1 | # Inspired by Mark Embling
# http://www.markembling.info/view/my-ideal-powershell-prompt-with-git-integration
$global:GitPromptSettings = [pscustomobject]@{
DefaultForegroundColor = $null
BeforeText = ' ['
BeforeForegroundColor ... |
PowerShellCorpus/IseSteroids/PowerShellGallery/TrellOps/1.0.1.24/Functions/Remove-Checklist/Remove-Checklist.ps1 | Remove-Checklist.ps1 | function Remove-Checklist {
[cmdletbinding()]
param (
[parameter(
Mandatory=$true,
Position=0
)]
$Token,
[parameter(
Mandatory=$true,
Position=1
)]
$Id
)
begin
{
}
process
{
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/WFTools/0.1.44/Get-NetworkStatistics.ps1 | Get-NetworkStatistics.ps1 | function Get-NetworkStatistics {
<#
.SYNOPSIS
Display current TCP/IP connections for local or remote system
.FUNCTIONALITY
Computers
.DESCRIPTION
Display current TCP/IP connections for local or remote system. Includes the process ID (PID) and process name for each connection.
I... |
PowerShellCorpus/IseSteroids/PowerShellGallery/ShowUI/1.5/Examples/GetSimpleDetails.ps1 | GetSimpleDetails.ps1 | uniformgrid -ControlName "Get-FirstNameLastNameAndAge" -Columns 2 {
"Age"
textBox -Name "Age" 18
"First Name"
textBox -Name "FirstName" John
"Last Name"
textBox -Name "LastName" Smith
button -Content "Cancel" -IsCancel -On_Click {
Get-ParentControl |
Clo... |
PowerShellCorpus/IseSteroids/PowerShellGallery/VsoReleaseManagerClient/2.0.3/Private/Get-ApiUrl.ps1 | Get-ApiUrl.ps1 | <############################################
Module : VsoReleaseManagerClient
Company : ItsZap Inc.
Author : Riwut Libinuko
Blog : http://blog.libinuko.com
Licence : GNU GENERAL PUBLIC LICENSE
Copyright © 2016, ItsZap Inc, Riwut Libinuko (cakriwut@gmail.com). All Rights Reserved
##... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PoshWSUS/2.3.1.2/Scripts/Get-PSWSUSEnabledUpdateLanguages.ps1 | Get-PSWSUSEnabledUpdateLanguages.ps1 | function Get-PSWSUSEnabledUpdateLanguages {
[CmdletBinding()]
Param()
Begin
{
if($wsus)
{
$config = $wsus.GetConfiguration()
$config.ServerId = [System.Guid]::NewGuid()
$config.Save()
}
else
{
Write-Warn... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PowervRA/2.2.0/Functions/Public/iaas-proxy-provider/Get-vRANATNetworkProfile.ps1 | Get-vRANATNetworkProfile.ps1 | function Get-vRANATNetworkProfile {
[CmdletBinding(DefaultParameterSetName="Standard")][OutputType('System.Management.Automation.PSObject')]
Param (
[Parameter(Mandatory=$true,ParameterSetName="ById")]
[ValidateNotNullOrEmpty()]
[String[]]$Id,
[Parameter(Mandatory=$true,P... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PowervRA/2.2.0/Functions/Public/iaas-proxy-provider/Get-vRANetworkProfileIPRangeSummary.ps1 | Get-vRANetworkProfileIPRangeSummary.ps1 | function Get-vRANetworkProfileIPRangeSummary {
[CmdletBinding()][OutputType('System.Management.Automation.PSObject')]
Param (
[Alias("Id")]
[Parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)]
[ValidateNotNullOrEmpty()]
[String]$NetworkProfileId,
[Parameter... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PowervRA/2.2.0/Functions/Public/reservation-service/Get-vRAReservationPolicy.ps1 | Get-vRAReservationPolicy.ps1 | function Get-vRAReservationPolicy {
<#
.SYNOPSIS
Retrieve vRA Reservation Policies
.DESCRIPTION
Retrieve vRA Reservation Policies
.PARAMETER Id
Specify the ID of a Reservation Policy
.PARAMETER Name
Specify the Name of a Reservation Policy
.PARAMETER Limit
The number ... |
PowerShellCorpus/IseSteroids/PowerShellGallery/SMBBlueprint/8.2.0.3/functions/public/Start-SMBDeploymentGUI.ps1 | Start-SMBDeploymentGUI.ps1 | Function Start-SMBDeploymentGUI {
[CmdletBinding()]
param(
[Parameter()]
[switch] $NoUpdateCheck
)
${01111110101100011} = Get-JobVariable
${00111000010111101} = Start-Log -InstanceId ${01111110101100011}.InstanceId
${01111110101100011}.Log = ${00111000010111101}
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Traverse/0.6.2/Private/Get-UnixTimestamp.ps1 | Get-UnixTimestamp.ps1 | function Get-UnixTimestamp ([DateTime]$Date = (get-date)) {
[int][double]::Parse((Get-Date $Date -UFormat %s))
}
|
PowerShellCorpus/IseSteroids/PowerShellGallery/Heatmap/1.0/Remove-HeatmapCounter.ps1 | Remove-HeatmapCounter.ps1 | function Remove-HeatmapCounter
{
[CmdletBinding(SupportsShouldProcess=$true,ConfirmImpact='High')]
param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)]
[string]
$Name
)
process {
if (-not $script:... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PFCore/0.1.22/PFCore-Text.ps1 | PFCore-Text.ps1 |
echo $ExecutionContext.InvokeCommand.ExpandString([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('UgBlAHAAbwByAHQAaQBuAGcAIABmAHIAbwBtACAAJABuAGEAbQBlACEA')))
|
PowerShellCorpus/IseSteroids/PowerShellGallery/Cloud.Ready.Software.NAV/1.0.0.8/Get-NAVApplicationObjectPropertyFromDelta.ps1 | Get-NAVApplicationObjectPropertyFromDelta.ps1 | <#
.Synopsis
Gets object properties from a Delta File
.DESCRIPTION
Get-NAVApplicationObject alternative for DELTA files.
.EXAMPLE
.EXAMPLE
$NAVObjects = get-item $Deltafiles | Get-NAVApplicationObjectPropertyFromDelta
#>
function Get-NAVApplicationObjectPropertyFromDelta
{
param
(
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/POSHOrigin/1.7.1/Resolvers/PSCredential/Resolve.ps1 | Resolve.ps1 | [cmdletbinding()]
param(
[parameter(Mandatory)]
[psobject]$Options = $null
)
begin {
Write-Debug -Message $msgs.rslv_pscredential_begin
}
process {
${11000001010110001} = $options.password | ConvertTo-SecureString -AsPlainText -Force
${01100100100011011} = New-Object System.Management.Automation.P... |
PowerShellCorpus/IseSteroids/PowerShellGallery/HyperVLab/0.0.1.40/Internal/Generic/Convert-FromJsonObject.ps1 | Convert-FromJsonObject.ps1 |
function Convert-FromJsonObject {
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Don''t use ShouldProcess in internal functions.')]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingInvokeExpression', '', Justification = 'Invoke-Expression is used to... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSLDAPQueryLogging/1.0/Public/Test-LDAPQueryLoggingPrerequisites.ps1 | Test-LDAPQueryLoggingPrerequisites.ps1 | function Test-LDAPQueryLoggingPrerequisites {
[cmdletbinding()]
param (
[parameter(ValueFromPipeline=$true,
ValueFromPipelineByPropertyName=$true)]
[string[]]$Computername = $env:COMPUTERNAME
)
begin
{
${6} = $([Text.Encoding]::Unicode... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSRemotely/1.0.4/lib/Pester/3.3.14/Functions/Assertions/Should.Tests.ps1 | Should.Tests.ps1 | Set-StrictMode -Version Latest
InModuleScope Pester {
Describe "Parse-ShouldArgs" {
It "sanitizes assertions functions" {
${6} = Parse-ShouldArgs TestFunction
${6}.AssertionMethod | Should Be PesterTestFunction
}
It "works with strict mode when using 'switch' style ... |
PowerShellCorpus/IseSteroids/PowerShellGallery/xActiveDirectory/2.16.0.0/DSCResources/MSFT_xADRecycleBin/ResourceDesignerScripts/GeneratexADRecycleBinSchema.ps1 | GeneratexADRecycleBinSchema.ps1 | New-xDscResource -Name MSFT_xADRecycleBin -FriendlyName xADRecycleBin -ModuleName xActiveDirectory -Path . -Force -Property @(
New-xDscResourceProperty -Name ForestFQDN -Type String -Attribute Key
New-xDscResourceProperty -Name EnterpriseAdministratorCredential -Type PSCredential -Attribute Required
New-... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSSlack/0.0.17/Private/Parse-SlackChannel.ps1 | Parse-SlackChannel.ps1 |
Function Parse-SlackChannel {
[cmdletbinding()]
param( $InputObject )
foreach(${_/=\_/\/==\_/\__/} in $InputObject)
{
${/====\_/====\/=\_} = $null
${_/=\/\_/=\_/\/\/\} = $null
if(${_/=\_/\/==\_/\__/}.Purpose.last_set)
{
${_/=\/\_/=\_/\/\/\} = ConvertFrom-Unix... |
PowerShellCorpus/IseSteroids/PowerShellGallery/dbatools/0.8.957/internal/Get-OfflineSqlFileStructure.ps1 | Get-OfflineSqlFileStructure.ps1 | Function Get-OfflineSqlFileStructure
{
<#
.SYNOPSIS
Internal function. Returns dictionary object that contains file structures for SQL databases.
#>
[CmdletBinding()]
param (
[Parameter(Mandatory = $true, Position = 0)]
[ValidateNotNullOrEmpty()]
[object]$SqlServer,
[Parameter(Mandatory = $true, ... |
PowerShellCorpus/IseSteroids/PowerShellGallery/dbatools/0.8.957/internal/Resolve-NetBiosName.ps1 | Resolve-NetBiosName.ps1 | Function Resolve-NetBiosName
{
<#
.SYNOPSIS
Internal function. Takes a best guess at the NetBIOS name of a server.
#>
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[Alias("ServerInstance", "SqlInstance")]
[object]$SqlServer,
[System.Management.Automation.PSCredential]$SqlCredential
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/dbatools/0.8.957/internal/configurations/computermanagement.handler.ps1 | computermanagement.handler.ps1 | #region ComputerManagement.Cache.Disable.All
$ScriptBlock = {
Param (
$Value
)
$Result = New-Object PSOBject -Property @{
Success = $True
Message = ""
}
if ($Value.GetType().FullName -ne $([Text.Encoding]::Unicode.GetString([Convert]::FromBase64String('Uw... |
PowerShellCorpus/IseSteroids/PowerShellGallery/dbatools/0.8.957/functions/Get-DbaMaxMemory.ps1 | Get-DbaMaxMemory.ps1 | Function Get-DbaMaxMemory
{
<#
.SYNOPSIS
Gets the 'Max Server Memory' configuration setting and the memory of the server. Works on SQL Server 2000-2014.
.DESCRIPTION
This command retrieves the SQL Server 'Max Server Memory' configuration setting as well as the total physical installed on the server.
.PA... |
PowerShellCorpus/IseSteroids/PowerShellGallery/dbatools/0.8.957/functions/Repair-SqlOrphanUser.ps1 | Repair-SqlOrphanUser.ps1 | Function Repair-SqlOrphanUser
{
<#
.SYNOPSIS
Find orphan users with existing login and remap.
.DESCRIPTION
An orphan user is defined by a user that does not have their matching login. (Login property = "")
If the matching login exists it must be:
Enabled
Not a system object
Not locked
Ha... |
PowerShellCorpus/IseSteroids/PowerShellGallery/WindowsImageTools/1.0.7/Functions/New-WindowsImageToolsExample.ps1 | New-WindowsImageToolsExample.ps1 | function New-WindowsImageToolsExample
{
<#
.Synopsis
Create folders and script examples on the use of Windows Image Tools
.DESCRIPTION
This Command creates the folders structures and example files needed to use Windows Image Tools to auto update windows images.
... |
PowerShellCorpus/IseSteroids/PowerShellGallery/xAzure/0.2.0.0/Examples/Create_FirewallRule.ps1 | Create_FirewallRule.ps1 |
configuration CreateSqlDatabaseServerFirewallRule
{
param
(
$workingDirectory,
$ruleName,
$serverName,
$startIPAddress,
$endIPAddress,
$azureSubscriptionName,
$azurePublishSettingsFile
)
Import-DscResource -Name MSFT_xAzureSqlD... |
PowerShellCorpus/IseSteroids/PowerShellGallery/psake/4.6.0/examples/formattaskname_scriptblock.ps1 | formattaskname_scriptblock.ps1 | properties {
${3} = 'Executed Test!'
${2} = 'Executed Compile!'
${1} = 'Executed Clean!'
}
task default -depends Test
formatTaskName {
param($taskName)
write-host $taskName -foregroundcolor Green
}
task Test -depends Compile, Clean {
${3}
}
task Compile -depends Clean {
${2}
}
task Clean {
${1}
} |
PowerShellCorpus/IseSteroids/PowerShellGallery/ScriptLogger/2.0.0/Functions/Write-WarningLog.ps1 | Write-WarningLog.ps1 | <#
.SYNOPSIS
Log a warning message.
.DESCRIPTION
Log a warning message to the log file, the event log and show it on the
current console. If the global log level is set to 'error', no warning
message will be logged.
.INPUTS
None.
.OUTPUTS
None.
.EXAMPLE
PS C:\> Write-... |
PowerShellCorpus/IseSteroids/PowerShellGallery/dbareports/0.2.54/functions/Uninstall-DbaReports.ps1 | Uninstall-DbaReports.ps1 | Function Uninstall-DbaReports
{
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = "High")]
Param (
[string]$JobCateogry = "dbareports collection jobs",
[switch]$NoDatabase,
[switch]$NoJobs,
[switch]$NoPsFiles,
[switch]$Force
)
DynamicParam { if (${/=====\/\_/===\_/}) { return (Get-ParamSqlProx... |
PowerShellCorpus/IseSteroids/PowerShellGallery/CertificateHealth/1.4/Get-CertificateHealth.ps1 | Get-CertificateHealth.ps1 |
function Get-CertificateHealth
{
[CmdletBinding()]
Param
(
[Parameter(ValueFromPipelineByPropertyName=$true)]
[string[]]$Path = 'Cert:\LocalMachine\My',
[string]$ComputerName,
[int]$WarningDays = 60,
[int]$CriticalDays = 30,
[string[]]$ExcludedTh... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Posh-IC/0.0.5/Start-IPAProcess.ps1 | Start-IPAProcess.ps1 | <#
# AUTHOR : Pierrick Lozach
#>
function Start-IPAProcess() # {{{2
{
# Documentation {{{3
<#
.SYNOPSIS
Launches an IPA process
.DESCRIPTION
Launches an IPA process.
.PARAMETER ICSession
The Interaction Center Session
.PARAMETER DefinitionId
The process definition id of the process that is to be l... |
PowerShellCorpus/IseSteroids/PowerShellGallery/PSApigeeEdge/0.2.15/Public/Update-EdgeAppCredential.ps1 | Update-EdgeAppCredential.ps1 | Function Update-EdgeAppCredential {
[cmdletbinding()]
PARAM(
[Parameter(Mandatory=$False)]
[switch]$Remove,
[Parameter(Mandatory=$False)]
[switch]$Add,
[string]$AppName,
[string]$Name,
[Parameter(Mandatory=$True)][string]$Developer,
[Parameter(Ma... |
PowerShellCorpus/IseSteroids/PowerShellGallery/Subversion/1.2.2/New-SvnWorkingCopy.ps1 | New-SvnWorkingCopy.ps1 |
function New-SvnWorkingCopy
{
[CmdletBinding(SupportsShouldProcess=$true)]
Param (
[Parameter(Mandatory=$true)]
[String]
$Url
,
[Parameter(Mandatory=$true)]
[String]
$Path
)
if ($PSCmdlet.ShouldProcess($Path, "Chec... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.