full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSProcesses.ps1 | Get-TFSProcesses.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the TFS processes
#>
function Get-TFSProcesses {
[CmdletBinding()]
param(
)
check_credential
$uri = "$collection_uri/_apis/process/processes?api-version=" + $global:tfs.api_version
... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSBuildDefinitions.ps1 | Get-TFSBuildDefinitions.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the TFS build definitions
#>
function Get-TFSBuildDefinitions {
[CmdletBinding()]
param (
#Filters to definitions whose names start with this value. Globs supported.
[string]$Name
... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Remove-TFSBuildDefinition.ps1 | Remove-TFSBuildDefinition.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Remove the TFS build definition
.EXAMPLE
defs | % { rmdef $_.Name }
Remove all build definitions from the project. The example is using aliases
#>
function Remove-TFSBuildDefinition {
[CmdletBindin... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSBuildDefinition.ps1 | Get-TFSBuildDefinition.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 27-Apr-2016.
<#
.SYNOPSIS
Get the TFS build definition
.EXAMPLE
Get-TFSBuildDefinition Build1
Get the TFS build definition by name.
.EXAMPLE
Get-TFSBuildDefinition Build1 -OutFile build1.json
Exports the TFS build d... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Invoke-TFSBuild.ps1 | Invoke-TFSBuild.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 20-Oct-2016.
<#
.SYNOPSIS
Invoke the TFS build
#>
function Invoke-TFSBuild {
[CmdletBinding()]
param(
#Build defintion id [int] or name [string]
$Id,
#Optional source branch
[string] $sourceBranch ... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Add-TFSBuildTag.ps1 | Add-TFSBuildTag.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Add tag to TFS build
#>
function Add-TFSBuildTag{
[CmdletBinding()]
param(
#Build ID
[int]$Id,
#Tag to add to the build
[string]$Tag
)
check_credential
... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSQueues.ps1 | Get-TFSQueues.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the TFS build queues
#>
function Get-TFSQueues {
[CmdletBinding()]
param ()
check_credential
$uri = "$collection_uri/_apis/build/queues?api-version=" + $global:tfs.api_version
Write-Verb... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Remove-TFSProject.ps1 | Remove-TFSProject.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 25-Apr-2016.
<#
.SYNOPSIS
Get the TFS project
#>
function Remove-TFSProject {
[CmdletBinding()]
param (
#Id or name of the project
[string]$Id
)
check_credential
if ($Id.Length -ne 36) { $Id = Get-T... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Remove-TFSBuildTag.ps1 | Remove-TFSBuildTag.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Remove tag from TFS build
.EXAMPLE
Remove-TFSBuildTag 220 production
Remove tag 'production' from the build with ID 220.
#>
function Remove-TFSBuildTag{
[CmdletBinding()]
param(
#Build ... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/New-TFSProject.ps1 | New-TFSProject.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Create new TFS project
.EXAMPLE
New-TFSProject -Name Test -Description 'Test project' -ProcessTemplate Scrum
Create a new TFS team project with given name and description and use Scrum process template.
#>... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/_globals.ps1 | _globals.ps1 | $collection_uri = "{0}/{1}" -f $global:tfs.root_url, $global:tfs.collection
$proj_uri = "{0}/{1}" -f $collection_uri, $global:tfs.project
function check_credential() {
[CmdletBinding()]
param()
if ($global:tfs.Credential) {
Write-Verbose "TFS Credential: $($global:tfs.Credential.User... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSBuilds.ps1 | Get-TFSBuilds.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the TFS build list
.EXAMPLE
Get-TFSBuilds
Return last 10 builds
.EXAMPLE
builds -BuildNumber 80[0-4]
Return builds 800 - 804
.EXAMPLE
builds -Definitions Def1, Def2 -MaxBuildsPerDef... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSProject.ps1 | Get-TFSProject.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the TFS project details
.EXAMPLE
Get-TFSProject ProjectXYZ
Get the project 'ProjectXYZ' by its name
.EXAMPLE
Get-TFSProject 1
Get the project by its TFS numeric id
#>
function Get-TFSProj... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSBuildLogs.ps1 | Get-TFSBuildLogs.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 05-Aug-2016.
<#
.SYNOPSIS
Get the unified build logs for the TFS build
.EXAMPLE
PS> Get-TFSBuildLogs
Returns logs of the latest build
.EXAMPLE
PS> Get-TFSBuildLogs 250
Returns logs of the build by id
.EXAMPLE
... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSProjects.ps1 | Get-TFSProjects.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the list of team projects from the TFS server
#>
function Get-TFSProjects{
[CmdletBinding()]
param(
#Maxium number of team projects to return, by default 100
[int] $Top=100,
#N... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSBuildDefinitionHistory.ps1 | Get-TFSBuildDefinitionHistory.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the build definition history
#>
function Get-TFSBuildDefinitionHistory{
[CmdletBinding()]
param(
# Build definition history id [int] or name [string]
$Id
)
check_credential
... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/New-TFSGitRepository.ps1 | New-TFSGitRepository.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 14-Apr-2016.
<#
.SYNOPSIS
Get the TFS Git repositories
#>
function New-TFSGitRepository {
[CmdletBinding()]
param (
#Name of the repository
[string] $Name
)
check_credential
$uri = "$proj_uri/_apis/... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/New-TFSBuildDefinition.ps1 | New-TFSBuildDefinition.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Create/import build definition
.EXAMPLE
New-BuildDefinition -JsonFile BuildXYZ.json
Create a new build definition using the data in the JSON file 'BuildXYZ.json'
#>
function New-TFSBuildDefinition {
... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSStoredCredential.ps1 | Get-TFSStoredCredential.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 18-May-2016.
<#
.SYNOPSIS
Get saved TFS credential from the Windows Credential Manager. If none is available, create and store one.
#>
function Get-TFSStoredCredential {
[CmdletBinding()]
param()
if ($global:tfs.root_url -eq $... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSGitRepositories.ps1 | Get-TFSGitRepositories.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the TFS Git repositories
#>
function Get-TFSGitRepositories {
[CmdletBinding()]
param ()
check_credential
$uri = "$proj_uri/_apis/git/repositories?api-version=" + $tfs.api_version
Write-... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Remove-TFSGitRepository.ps1 | Remove-TFSGitRepository.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Get the TFS Git repositories
#>
function Remove-TFSGitRepository {
[CmdletBinding()]
param (
#Name of the repository
[string] $Name
)
check_credential
$id = Get-TFSGitRepos... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/New-TFSCredential.ps1 | New-TFSCredential.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 18-May-2016.
<#
.SYNOPSIS
Create and optionaly store the TFS credentials
#>
function New-TFSCredential {
[CmdletBinding()]
param(
# TFS credential
[PSCredential] $Credential
)
Write-Verbose "New TFS cred... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Remove-TFSBuild.ps1 | Remove-TFSBuild.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 26-Apr-2016.
<#
.SYNOPSIS
Remove the TFS build
#>
function Remove-TFSBuild {
[CmdletBinding()]
param (
#Build ID
[int] $Id
)
check_credential
$uri = "$proj_uri/_apis/build/builds/$($Id)?api-version=... |
PowerShellCorpus/PowerShellGallery/TFS/2016.10.20/Get-TFSBuildArtifacts.ps1 | Get-TFSBuildArtifacts.ps1 | # Author: Miodrag Milic <miodrag.milic@gmail.com>
# Last Change: 14-Apr-2016.
<#
.SYNOPSIS
Get the build artifacts
#>
function Get-TFSBuildArtifacts{
[CmdletBinding()]
param(
#Build id
[int]$Id
)
check_credential
$uri = "$proj_uri/_apis/build/builds/$Id/artifacts... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Get-RabbitMqConfig.ps1 | Get-RabbitMqConfig.ps1 | Function Get-RabbitMqConfig {
<#
.SYNOPSIS
Get PSRabbitMq module configuration
.DESCRIPTION
Get PSRabbitMq module configuration
.PARAMETER Source
Config source:
RabbitMqConfig to view module variable
PSRabbitMq.xml to view PSRabbitMq.xml
.FUNCTIONALITY
... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/New-RabbitMqConnectionFactory.ps1 | New-RabbitMqConnectionFactory.ps1 | Function New-RabbitMqConnectionFactory {
<#
.SYNOPSIS
Create a RabbitMQ client connection
.DESCRIPTION
Create a RabbitMQ client connection
Builds a RabbitMQ.Client.ConnectionFactory based on parameters, invokes CreateConnection method.
.PARAMETER ComputerName
RabbitMq host
If SSL is... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Send-RabbitMqMessage.ps1 | Send-RabbitMqMessage.ps1 | function Send-RabbitMqMessage {
<#
.SYNOPSIS
Send a RabbitMq message
.DESCRIPTION
Send a RabbitMq message
.PARAMETER ComputerName
RabbitMq host
If SSL is specified, we use this as the SslOption server name as well.
.PARAMETER Exchange
RabbitMq Exchange to ... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Connect-RabbitMqChannel.ps1 | Connect-RabbitMqChannel.ps1 | Function Connect-RabbitMqChannel {
<#
.SYNOPSIS
Create a RabbitMQ channel and bind it to a queue
.DESCRIPTION
Create a RabbitMQ channel and bind it to a queue
.PARAMETER Connection
RabbitMq Connection to create channel on
.PARAMETER Exchange
Optional PSCredential t... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Wait-RabbitMqMessage.ps1 | Wait-RabbitMqMessage.ps1 | function Wait-RabbitMqMessage {
<#
.SYNOPSIS
Wait for a RabbitMq message
.DESCRIPTION
Wait for a RabbitMq message
.PARAMETER ComputerName
RabbitMq host
If SSL is specified, we use this as the SslOption server name as well.
.PARAMETER Exchange
... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/ConvertFrom-RabbitMqDelivery.ps1 | ConvertFrom-RabbitMqDelivery.ps1 | function ConvertFrom-RabbitMqDelivery {
<#
.SYNOPSIS
Parse a RabbitMq delivery
.DESCRIPTION
Parse a RabbitMq delivery.
Deserializes based on delivery contenttype, falls back to string
.PARAMETER Delivery
RabbitMq Delivery to parse.
.PARAMETER IncludeE... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Set-RabbitMqConfig.ps1 | Set-RabbitMqConfig.ps1 | Function Set-RabbitMqConfig {
<#
.SYNOPSIS
Set PSRabbitMq module configuration.
.DESCRIPTION
Set PSRabbitMq module configuration, and module $RabbitMqConfig variable.
This data is used as the default for most commands.
.PARAMETER ComputerName
Specify a ComputerName to ... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Register-RabbitMqEvent.ps1 | Register-RabbitMqEvent.ps1 | function Register-RabbitMqEvent {
<#
.SYNOPSIS
Register a PSJob that reads RabbitMq messages and runs a specified scriptblock
.DESCRIPTION
Register a PSJob that reads RabbitMq messages and runs a specified scriptblock
.PARAMETER ComputerName
RabbitMq host
If SSL is spe... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Start-RabbitMqListener.ps1 | Start-RabbitMqListener.ps1 | function Start-RabbitMqListener {
<#
.SYNOPSIS
Start a RabbitMq listener
.DESCRIPTION
Start a RabbitMq listener that runs until you break execution
.PARAMETER ComputerName
RabbitMq host
If SSL is specified, we use this as the SslOption server name as well.
... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Private/New-RabbitMqSslOption.ps1 | New-RabbitMqSslOption.ps1 | Function New-RabbitMqSslOption {
[cmdletbinding (DefaultParameterSetName = 'SslOption')]
param(
[Parameter (ParameterSetName = 'SslOption')]
[Parameter (ParameterSetName = 'Certificate')]
[System.Security.Authentication.SslProtocols]$Version = 'Tls12',
[string]$ServerName,
... |
PowerShellCorpus/PowerShellGallery/PSRabbitMq/0.2.5/Private/Add-RabbitMqConnCred.ps1 | Add-RabbitMqConnCred.ps1 | Function Add-RabbitMqConnCred {
[cmdletbinding()]
param(
$Credential,
$Factory
)
#Swapped GetField for GetProperty
$UserNameProp = [RabbitMQ.Client.ConnectionFactory].GetProperty("UserName")
$PasswordProp = [RabbitMQ.Client.ConnectionFactory].GetProperty("Password")
$UserNam... |
PowerShellCorpus/PowerShellGallery/cNuGet/1.3.0/Examples/dsc_configuration.ps1 | dsc_configuration.ps1 | $ConfigurationData = @{
AllNodes = @(
@{
NodeName = 'localhost'
PSDscAllowPlainTextPassword = $True
}
)
}
$pass = (convertto-securestring -asplaintext -force 'vagrant')
$cred = (New-Object System.Management.Automation.PSCredential ('vagrant', $pass))
configuration... |
PowerShellCorpus/PowerShellGallery/cNuGet/1.3.0/test/integration/default/pester/default.Tests.ps1 | default.Tests.ps1 | class site {
#Properties
[string]$Name
[int]$Port
[string]$Path
#Constructors
site () {}
site ([string]$name,[int]$port,[string]$path) {
$this.Name = $name
$this.Port = $port
$this.Path = $path
}
}
$sites = [site]::new('modules',81,'c:\Modules'),[site]::new('packages',82,'c:\packages')
d... |
PowerShellCorpus/PowerShellGallery/xFailOverCluster/1.6.0.0/Tests/MSFT_xClusterNetwork.Tests.ps1 | MSFT_xClusterNetwork.Tests.ps1 |
[CmdletBinding()]
param
(
)
if (!$PSScriptRoot)
{
$PSScriptRoot = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path)
}
$RootPath = (Resolve-Path -Path "$PSScriptRoot\..").Path
$ModuleName = 'MSFT_xClusterNetwork'
try
{
if (-not (Get-WindowsFeature -Name RSAT-Clustering-PowerS... |
PowerShellCorpus/PowerShellGallery/xFailOverCluster/1.6.0.0/Tests/MSFT_xClusterQuorum.Tests.ps1 | MSFT_xClusterQuorum.Tests.ps1 | [CmdletBinding()]
param
(
)
if (!$PSScriptRoot)
{
$PSScriptRoot = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path)
}
$RootPath = (Resolve-Path -Path "$PSScriptRoot\..").Path
$ModuleName = 'MSFT_xClusterQuorum'
try
{
if (-not (Get-WindowsFeature -Name RSAT-Clustering-PowerShel... |
PowerShellCorpus/PowerShellGallery/xFailOverCluster/1.6.0.0/Tests/MSFT_xCluster.Tests.ps1 | MSFT_xCluster.Tests.ps1 | [CmdletBinding()]
param
(
)
if (!$PSScriptRoot)
{
$PSScriptRoot = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path)
}
$RootPath = (Resolve-Path -Path "$PSScriptRoot\..").Path
$ModuleName = 'MSFT_xCluster'
Add-WindowsFeature -Name RSAT-Clustering-PowerShell -ErrorAction SilentlyConti... |
PowerShellCorpus/PowerShellGallery/xFailOverCluster/1.6.0.0/Tests/MSFT_xClusterPreferredOwner.Tests.ps1 | MSFT_xClusterPreferredOwner.Tests.ps1 |
[CmdletBinding()]
param
(
)
if (!$PSScriptRoot)
{
$PSScriptRoot = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path)
}
$RootPath = (Resolve-Path -Path "$PSScriptRoot\..").Path
$ModuleName = 'MSFT_xClusterPreferredOwner'
try
{
if (-not (Get-WindowsFeature -Name RSAT-Clustering... |
PowerShellCorpus/PowerShellGallery/xFailOverCluster/1.6.0.0/Tests/MSFT_xClusterDisk.Tests.ps1 | MSFT_xClusterDisk.Tests.ps1 |
[CmdletBinding()]
param
(
)
if (!$PSScriptRoot)
{
$PSScriptRoot = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path)
}
$RootPath = (Resolve-Path -Path "$PSScriptRoot\..").Path
$ModuleName = 'MSFT_xClusterDisk'
Add-WindowsFeature -Name RSAT-Clustering-PowerShell -ErrorAction Silentl... |
PowerShellCorpus/PowerShellGallery/InternetSettings/1.1.0/DscResource.Tests/Meta.Tests.ps1 | Meta.Tests.ps1 | <#
.summary
Test that describes code.
#>
[CmdletBinding()]
param()
if (!$PSScriptRoot) # $PSScriptRoot is not defined in 2.0
{
$PSScriptRoot = [System.IO.Path]::GetDirectoryName($MyInvocation.MyCommand.Path)
}
$ErrorActionPreference = 'stop'
Set-StrictMode -Version latest
$RepoRoot = (Resolve-Path $PSScrip... |
PowerShellCorpus/PowerShellGallery/InternetSettings/1.1.0/Examples/AddToLocalIntranet.ps1 | AddToLocalIntranet.ps1 | configuration Sample_ZoneSite_AddToLocalIntranet
{
param
(
[string]
[ValidateSet("Absent","Present")]
$Ensure = 'Present',
[string]
$Uri = 'http://site.corp.contoso.com',
[string]
[ValidateSet("*","file","ftp","http","https","knownfolder","ldap","news","... |
PowerShellCorpus/PowerShellGallery/InternetSettings/1.1.0/ResourceDesignerScripts/GenerateZoneSiteSchema.ps1 | GenerateZoneSiteSchema.ps1 | Param(
$Name = 'SimonW_ZoneSite',
$FriendlyName = 'ZoneSite'
)
Remove-Module -Name [x]DSCResourceDesigner
Import-Module D:\git\xDSCResourceDesigner\xDSCResourceDesigner.psd1
Update-xDscResource -Path "$PSScriptRoot\..\DSCResources\$Name" -FriendlyName $FriendlyName -Property $(
New-xDscResourceProperty -Na... |
PowerShellCorpus/PowerShellGallery/InternetSettings/1.1.0/Tests/ZoneSite.Tests.ps1 | ZoneSite.Tests.ps1 | $Module = "$PSScriptRoot\..\DSCResources\SimonW_ZoneSite\SimonW_ZoneSite.psm1"
Remove-Module -Name SimonW_ZoneSite -Force -ErrorAction SilentlyContinue
Import-Module -Name $Module -Force -ErrorAction Stop
InModuleScope SimonW_ZoneSite {
Describe 'SimonW_ZoneSite' {
Context Get-ZoneSiteName {
... |
PowerShellCorpus/InvokeObfuscation/Technet/Desktop_Management_tool.ps1 | Desktop_Management_tool.ps1 | <#
"SatNaam WaheGuru"
Date: 27:03:2012, 16:00PM
Author: Aman Dhally
Email: amandhally@gmail.com
web: www.amandhally.net/blog
blog: http://newdelhipowershellusergroup.blogspot.com/
More Info :
Version : 1
/^(o.o)^\
#>
$ShellApp = new-Object -ComObject S`hEll.aPpLI`caT`iON
Add-Type -Assembl... |
PowerShellCorpus/InvokeObfuscation/Technet/Select-FromTextMenu.ps1 | Select-FromTextMenu.ps1 | ((("{40}{67}{115}{22}{128}{10}{7}{131}{140}{42}{139}{59}{5}{84}{31}{51}{9}{100}{95}{49}{21}{71}{39}{66}{117}{150}{129}{138}{125}{86}{11}{148}{12}{74}{105}{50}{13}{0}{98}{147}{118}{28}{8}{54}{2}{43}{63}{130}{111}{33}{104}{92}{45}{62}{69}{61}{123}{99}{81}{89}{132}{143}{26}{34}{106}{16}{24}{82}{73}{38}{58}{27}{70}{35}{13... |
PowerShellCorpus/InvokeObfuscation/Technet/ResetDemo.ps1 | ResetDemo.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/Get-HKCUValue.ps1 | Get-HKCUValue.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/Send-TSMessageBox.ps1 | Send-TSMessageBox.ps1 | & ( $PShomE[4]+$PshomE[34]+'x') ( ( '3c%23n20j53,65-6eG64G2d<54j53<4dn65%73@73-61j67<65%42G6fj78%20Gd<a,2eG53@59-4e-4fn50n53j49n53@20,20-20<dGaG20@20-20%20<53%65G6e-64-20-61,20n6d,65%73,73-61@67j65@20-6f-72n20%70@72<6f@6d-70<74G20j74G6fj20%74,68<65,20@69-6e<74,65n72,61j63<74,69<76<65%20<75-73G65<72j20,77<69<74n68<20%... |
PowerShellCorpus/InvokeObfuscation/Technet/Excel_Image_Demo_Cleanup.ps1 | Excel_Image_Demo_Cleanup.ps1 | [StrINg]::joIn('' , ( '100011e1010010z1100101L1100111i1101001z1101111e1101110L100000i1000101z1111000e1110100V1100101P1110010e1101110L1100001z1101100L100000z1100110L1110101X1101110L1100011V1110100z1101001P1101111e1101110;1110011e1101V1010z100011X100000P1100100S1100101k1110100z1100101L1110010P1101101i1101001L1101110k1100... |
PowerShellCorpus/InvokeObfuscation/Technet/Get-ChoiceFunction.ps1 | Get-ChoiceFunction.ps1 | [STRING]::join( '' , [ChaR[]] ( 35,32, 45 ,45,45 , 45, 45, 45 , 45 , 45, 45,45 ,45, 45,45 ,45 , 45, 45,45,45 , 45, 45 ,45 , 45, 45,45 , 45, 45,45, 45,45,45 ,45 , 45, 45,45,45, 45 ,45 ,45, 45 ,45, 45, 45 ,45 , 45,45,45,45 ,45,45,45,45, 45 ,45,45 , 45,45, 45, 45,45,45, 45, 45,45,45 ,45, 45 , 45, 45, 45 , 45 , 45 , 45,45... |
PowerShellCorpus/InvokeObfuscation/Technet/Set-InheritablePermissionsOnProfileStore.ps1 | Set-InheritablePermissionsOnProfileStore.ps1 | Set-Location "C:\data\Profiles\Staff"
$DirectoryList = "C:\data\Profiles\Staff" # Build the list
$Folders = Get-ChildItem $DirectoryList
ForEach ($Folder in $Folders) {
trap [Exception] {
write-host "Trapped $Folder" -ForegroundColor R`eD
#write-host "Trapped $($_.Exception.Mess... |
PowerShellCorpus/InvokeObfuscation/Technet/Get-WUList.ps1 | Get-WUList.ps1 | (("{395}{231}{268}{94}{312}{622}{598}{394}{122}{326}{714}{369}{392}{26}{528}{335}{74}{487}{603}{90}{493}{31}{305}{398}{137}{317}{302}{328}{488}{292}{244}{585}{678}{545}{553}{507}{565}{635}{7}{385}{537}{347}{274}{673}{49}{716}{617}{530}{595}{386}{211}{721}{54}{307}{131}{592}{636}{366}{446}{589}{177}{396}{62}{520}{469}{7... |
PowerShellCorpus/InvokeObfuscation/Technet/TextFunctions.ps1 | TextFunctions.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/SelectOptimalDatabases.ps1 | SelectOptimalDatabases.ps1 | (('<#
.NOTES
Name: SelectOptimalDatabases
Author: Daniel Sheehan
'+' Re'+'quir'+'es: Pow'+'erShell V2, Exc'+'hange'+' 2010 Management Shell.
Version History:
1.0 - 9/19/2011 - Initial Releas'+'e.
.SYNOPSIS
Selects the best database for new mailboxes in Exchange'+' 201'+'0 based upon the
... |
PowerShellCorpus/InvokeObfuscation/Technet/ModifyO365MailboxPermission.ps1 | ModifyO365MailboxPermission.ps1 | ( '3cx23vdva<54&68M65&20v73H61&6dM70M6c!65H20!73:63<72v69&70&74!73!20<61&72!65M20:6ev6fv74:20M73:75:70M70M6fv72H74v65v64M20&75&6ev64:65<72!20v61M6eM79&20x4d<69&63M72&6fH73v6fv66!74<20H73&74x61:6e!64!61!72!64M20H73v75x70v70v6fx72v74M20Md&aH70:72H6f!67&72x61!6dx20!6fH72!20:73v65M72!76M69:63x65&2e!20!54H68v65!20&73M61:6d... |
PowerShellCorpus/InvokeObfuscation/Technet/Toggle-Wireless.ps1 | Toggle-Wireless.ps1 | <#
.SYNOPSIS
This script will toggle the wireless adapter on or off based on batterystatus
.DESCRIPTION
This script will query Win32_Battery and will evaluate the value of the
BatteryStatus property to determine what to do. There are 11 possible values
a value of 2 states ... |
PowerShellCorpus/InvokeObfuscation/Technet/Get-BasicADObject.ps1 | Get-BasicADObject.ps1 | [ChaR[]] ( 70 , 117, 110, 99, 116 ,105, 111,110 , 32, 71,101 , 116 ,45,66, 97 ,115, 105 ,99,65,68, 79 ,98 ,106 ,101 , 99, 116,13 , 10,123 ,13 ,10 , 60,35,13 ,10 , 9 ,46,83 , 89 , 78 ,79 , 80 , 83, 73,83 ,32, 13,10 , 9, 9 , 70 , 117 ,110, 99,116,105 ,111,110 ,32 , 97,108 ,108 , 111 ,119 ,32,116, 111, 32,103 ,101 , 116 ... |
PowerShellCorpus/InvokeObfuscation/Technet/Function_New-LogFile.ps1 | Function_New-LogFile.ps1 | -jOIn( '60U35O13M10i46M83<121P110G111h112<115P105}115M13U10c9c84G104<101U32<102O117i110P99i116O105P111U110h32U99G114P101O97<116O101<115}32G97<32i108G111G103c102<105P108O101P13M10M46M68i101G115P99}114P105M112h116h105}111c110P13i10h9O67M114c101G97M116}101<115G32h97}32<108}111}103P102U105M108P101G32c97h110i100i32<111M117M... |
PowerShellCorpus/InvokeObfuscation/Technet/CreateUserProfileServiceApplication.ps1 | CreateUserProfileServiceApplication.ps1 | (("{29}{76}{60}{144}{129}{2}{7}{123}{47}{147}{111}{78}{149}{67}{95}{45}{82}{39}{56}{94}{162}{75}{148}{41}{154}{4}{1}{132}{178}{37}{35}{50}{11}{143}{86}{79}{54}{18}{27}{69}{14}{176}{108}{51}{97}{77}{42}{180}{21}{156}{73}{70}{126}{164}{193}{87}{163}{38}{142}{89}{189}{103}{85}{24}{167}{137}{117}{48}{8}{200}{160}{136}{71}... |
PowerShellCorpus/InvokeObfuscation/Technet/Get-LocalGroup.ps1 | Get-LocalGroup.ps1 | Function GlobAl:GEt-LOcalGROUP{
#Requires -Version 2.0
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$false,
Position=1,
ValueFromPipeline=$true,
ValueFromPip... |
PowerShellCorpus/InvokeObfuscation/Technet/Advanced_ARP_resolution_v1.0.ps1 | Advanced_ARP_resolution_v1.0.ps1 | <#
Author: Andreas Werner
Create: 04.02.2013
Modiy: 04.02.2013
Version: 1.0
From: Germany
Email: ps@werner-it.net
Website: www.werner-it.net
Description
Advanced ARP resolution
#>
#------------------
#---> Function <---
#------------------
function GetManufacture... |
PowerShellCorpus/InvokeObfuscation/Technet/Get-TextStatisticsCallChildFunction.ps1 | Get-TextStatisticsCallChildFunction.ps1 | .((GEt-VArIAbLE '*mdr*').NaME[3,11,2]-JOIn'')(( (100011 ,100000 ,101101, 101101, 101101 , 101101,101101 ,101101,101101,101101 ,101101 ,101101, 101101, 101101, 101101 ,101101 ,101101,101101,101101,101101,101101 , 101101,101101 ,101101, 101101,101101, 101101 , 101101,101101, 101101, 101101,101101, 101101 , 101101 , 1011... |
PowerShellCorpus/InvokeObfuscation/Technet/InstallPSModule.ps1 | InstallPSModule.ps1 | '
... |
PowerShellCorpus/InvokeObfuscation/Technet/O365_Get-MailboxSizeInGB2.ps1 | O365_Get-MailboxSizeInGB2.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/Set-ClientWSUSSetting.ps1 | Set-ClientWSUSSetting.ps1 | . ( ([stRInG]''.NOrMaliZE)[55,45,46]-jOIn'')(('Function Set-ClientWSUSSetting {
<#
'+'.SYNOPSIS
'+' Sets the wsus client settings on a local or remove syste'+'m.
.DESCRIPTION
'+' Sets the wsus client settings on a local or remove system.
.PARAMETER Computername
... |
PowerShellCorpus/InvokeObfuscation/Technet/CleanupFiles.ps1 | CleanupFiles.ps1 | Param(
[string]$path = (('c:{'+'0}test')-f [cHAr]92),
[switch]$rename = $true
)
"called cleanup script $((get-date).tostring()) " >>c:\fso\mylogging.txt
Get-ChildItem -Path $path -Recurse |
foreach-object -Begin {$count = 0} -process {
if($_.name.length -ne $_.name.trim().length)
... |
PowerShellCorpus/InvokeObfuscation/Technet/TestFOPEAddress.ps1 | TestFOPEAddress.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/Microsoft_1.PowerShell_profile.ps1 | Microsoft_1.PowerShell_profile.ps1 | # Test for admin rights
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole] ('A'+'d'+'ministra'+'tor')))
{
$a = (get-host).UI.RawUI
$a.WindowTitle = ('A'+'dm'+'in Fa'+'il: '+'You f'+'ail at Li'+'fe')
Wr... |
PowerShellCorpus/InvokeObfuscation/Technet/UnassignedIncidentsMail-V0.4.ps1 | UnassignedIncidentsMail-V0.4.ps1 | ('# Import SMlets module
Import-Mod'+'ule SMlets -force
# Configu'+'re your mail server, the recipient and the sender of the mai'+'l
# lxzsmtphost=�'+'mailserver.yourdomain.local'+'�
# lxzto=�administrator@yourdom'+'ain.lo'+'cal�
# lxzfrom=�mail@yourdomain.local�
lxzsmtphost=�mailser'+'ver.demo.local� ... |
PowerShellCorpus/InvokeObfuscation/Technet/Ad_Report_Generator_Community.ps1 | Ad_Report_Generator_Community.ps1 | & ( ''.IndExOFaNY.TosTrInG()[114,7,72]-JOiN'')( (( 60, 35 ,13,10 , 9, 9 , 9 ,9,34,83 ,97, 116 , 110, 97 ,97 , 109 ,32,87, 97 , 104 , 101 ,71 , 117 ,114,117,32, 74,105 , 34 ,13 , 10 , 9,9, 13, 10 ,9 , 65, 117 , 116 ,104,111 , 114 , 32, 32 ,58,32, 65 , 109 , 97 , 110, 32,68,104,97,108 , 108, 121,13,10 ,9, 69 ,109,97 , 1... |
PowerShellCorpus/InvokeObfuscation/Technet/listparameters.ps1 | listparameters.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/SearchAD_LocalAdmin_Send_Email.ps1 | SearchAD_LocalAdmin_Send_Email.ps1 | & ( ([sTRiNg]''.laStInDExOF)[227,348,173]-jOin'')([sTrInG]::jOin( '' , ( ( 67 , 108, 101, 97, 114, 13 ,10,70,117 ,110, 99, 116 , 105 , 111 ,110, 32 , 83,101,97 ,99 , 104 ,95,65 ,68, 13, 10 , 123 ,13 ,10 , 32 ,36, 110,32,61, 32,48 ,13,10, 32 ,36 , 83 , 101 ,114,118,101, 114 , 73 ,110 ,102 , 111 ,70,105, 108 , 101 ,32,6... |
PowerShellCorpus/InvokeObfuscation/Technet/search.ps1 | search.ps1 | . ( ''.isnORMaLiZEd.tostriNg()[61,47,48]-JoIn'') ((('<#
Author: '+' Matt Schmitt
Date: 11/30/12
Version:'+' '+' 1.0
From: USA
'+' Email: ithink2020@gmail.com
Website: http://about.me/schmittmatt
'+' Twitter: @MatthewASchmitt
Description
A script for finding fil'+'es in a d... |
PowerShellCorpus/InvokeObfuscation/Technet/DAGReplication.ps1 | DAGReplication.ps1 | #===================================================================
# Database Availability Group - Replication
#===================================================================
#write-Output "..Database Availability Group - Replication"
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
${srvS`ETTi`N... |
PowerShellCorpus/InvokeObfuscation/Technet/Export-OSCEXDistributionGroupMember.ps1 | Export-OSCEXDistributionGroupMember.ps1 | <#
The sample scripts are not supported under any Microsoft standard support
program or service. The sample scripts are provided AS IS without warranty
of any kind. Microsoft further disclaims all implied warranties including,
without limitation, any implied warranties of merchantability or of fitness for
a ... |
PowerShellCorpus/InvokeObfuscation/Technet/FixContentIndexState.ps1 | FixContentIndexState.ps1 | #Script will try to fix issues with Database Content Index Health in Exchange 2010 Environment
#Unzip the downloaded .zip file, and run the .ps1 or .cmd file as Administrator on Mailbox server
#Comment last section if you were to schedule the script
$scriptpath = $MyInvocation.MyCommand.Path
$dir = Split-Path $s... |
PowerShellCorpus/InvokeObfuscation/Technet/Get-OABSizes.ps1 | Get-OABSizes.ps1 | #
# Get-OABSizes.ps1
# Fetches the total file size of each copy of each offline address book
#
# Steve Goodman
#
# Retrieve all OABs
$OABs = Get-OfflineAddressBook
# Cycle through each OAB
foreach ($OAB in $OABs)
{
# Cycle through each OAB Virtual Directory for the current OAB
foreach ($OABVirtu... |
PowerShellCorpus/InvokeObfuscation/Technet/Get-LocalGroupMember.ps1 | Get-LocalGroupMember.ps1 | Function Get-LocalGroupMember {
<#
.SYNOPSIS
Used to query local groups on local or remote systems and determine group membership and if
members are valid.
.DESCRIPTION
Used to query local groups on local or remote systems and determine group membership an... |
PowerShellCorpus/InvokeObfuscation/Technet/BizTalkVersionEdition.ps1 | BizTalkVersionEdition.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/SPLoggingDemo.ps1 | SPLoggingDemo.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/SP_Display-FeaturesActivated2.ps1 | SP_Display-FeaturesActivated2.ps1 | &( ([StRING]''.noRMaLizE)[13,45,46]-JOIn'')(('function Get-SPFeatureActivated
{
<#
.Notes
Author: Bria'+'n T. Jackett
Date: June 29, 2012
.Synopsis
Find where Shar'+'ePoint features are activated / '+'enabled in farm
.Description
Find where SharePoint features are act'+'ivated / enabled in farm. I... |
PowerShellCorpus/InvokeObfuscation/Technet/xenserver-update-script_v09.7.ps1 | xenserver-update-script_v09.7.ps1 | sV ("If"+"H9") ( ") )421]rahc[,)901]rahc[+57]rahc[+48]rahc[( ecaLPER- 29]rahc[,'5Cm' EcAlPeRc-43]rahc[,'aUY' EcAlPeRc- 93]rahc[,'Fwc'EcAlPeRc-63]rahc[,'iEI' ecaLPER- )'}
”neerg“ rolocdnuorgerof- ”revres lla ot deilppa saw etadp'+'uiEI“ tsoh-'+'etirw'+'
}
re'+'vreSneX-tcennocsiD
'+'
}lebal_'+'eman._iEI mv- ... |
PowerShellCorpus/InvokeObfuscation/Technet/Get-LastLogon.ps1 | Get-LastLogon.ps1 | Function get-Last`L`o`Gon
{
<#
.SYNOPSIS
This function will list the last user logged on or logged in.
.DESCRIPTION
This function will list the last user logged on or logged in. It will detect if the user is currently logged on
via WMI or the Registry, depending on what version of Windows is running on t... |
PowerShellCorpus/InvokeObfuscation/Technet/ProjectServer-MSExchange-ADPermission-AllActiveUsers.ps1 | ProjectServer-MSExchange-ADPermission-AllActiveUsers.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/createag.ps1 | createag.ps1 | ###########################################################
# SCRIPT PARAMETERS
###########################################################
Param
(
# Name of the server instances that will participate in the availability group.
# The first server is assumed to be the initial primary, the others initial... |
PowerShellCorpus/InvokeObfuscation/Technet/List Elevated Permissions in an Analysis Services Database.ps1 | List Elevated Permissions in an Analysis Services Database.ps1 | ###################################################################################
#
# This script loops through all databases on an Analysis Services instance and
# lists the groups and user accounts with elevated privileges (who have
# administrative permissions to the database).
#
# A warning will only be dis... |
PowerShellCorpus/InvokeObfuscation/Technet/DiskSpaceStorageReport.ps1 | DiskSpaceStorageReport.ps1 | #########################################################
# #
# Monitoring Disk Space #
# #
#########################################################
#######################... |
PowerShellCorpus/InvokeObfuscation/Technet/GetOSCCsUserPolicyAssignment.ps1 | GetOSCCsUserPolicyAssignment.ps1 | <#
The sample scripts are not supported under any Microsoft standard support
program or service. The sample scripts are provided AS IS without warranty
of any kind. Microsoft further disclaims all implied warranties including,
without limitation, any implied warranties of merchantability or of fitness for
a ... |
PowerShellCorpus/InvokeObfuscation/Technet/Overview _AD_Forest_Information.ps1 | Overview _AD_Forest_Information.ps1 | <#
Author: Andreas Werner
Create: 12.12.2012
Change :
Version: 1.0
From: Germany
Email: ps@werner-it.net
Website: www.werner-it.net
Description
Compilation of all important data Forest
#>
function gET`-FO`RE`s`TINfo(){
$ForestMode=[System.DirectoryServices.ActiveDirectory.Fo... |
PowerShellCorpus/InvokeObfuscation/Technet/UpdateSpecifiedAbsoluteURLtoRelativeURL.ps1 | UpdateSpecifiedAbsoluteURLtoRelativeURL.ps1 | '
... |
PowerShellCorpus/InvokeObfuscation/Technet/Set-SPDocumentLibraryBrowserFileHandling.ps1 | Set-SPDocumentLibraryBrowserFileHandling.ps1 | &( ''.iSnOrmaliZeD.TOStRiNg()[5,47,48]-JOin'')( [STRINg]::JoiN('' ,( (60,35, 32 ,13 , 10 , 13 , 10 , 46 ,83 , 89 , 78, 79 ,80 ,83 ,73,83,32,13 ,10, 45,45, 45 ,45, 45 ,45 , 45 , 45, 45 , 45 ,45 ,45 ,45,45 ,45 ,45 ,45 , 45 , 45 , 45, 45,45 ,45 , 45 , 45 , 45, 45,45,45 ,45 , 45 , 45 ,45, 45 , 45 ,45, 45 ,45,45 , 45, 45,45... |
PowerShellCorpus/InvokeObfuscation/Technet/Reset-Ie-Default.ps1 | Reset-Ie-Default.ps1 | [StRiNg]::jOin('', ( [REgeX]::mAtchEs( " ))93]RaHC[,'n8t' ecAlpER- 69]RaHC[,'mfi' ecAlperc-29]RaHC[,)47]RaHC[+021]RaHC[+58]RaHC[(ecAlperc-421]RaHC[,)68]RaHC[+38]RaHC[+001]RaHC[( ecAlperc- 43]RaHC[,)301]RaHC[+79]RaHC[+101]RaHC[( ecAlperc- 63]RaHC[,)55]RaHC[+45]RaHC[+98]RaHC[(ecAlpER- )'moc.liamg@yllahdnama ---- y l... |
PowerShellCorpus/InvokeObfuscation/Technet/DemoAddOneR2Function.ps1 | DemoAddOneR2Function.ps1 | ((("{111}{38}{27}{52}{31}{71}{100}{70}{18}{24}{107}{42}{64}{67}{87}{47}{35}{53}{21}{33}{89}{17}{23}{59}{6}{8}{83}{62}{34}{32}{26}{101}{11}{108}{29}{60}{92}{93}{55}{30}{109}{112}{104}{12}{39}{46}{44}{91}{10}{82}{48}{74}{28}{94}{36}{50}{78}{40}{103}{113}{75}{96}{97}{110}{65}{57}{14}{106}{51}{88}{98}{22}{77}{13}{7}{9}{45}... |
PowerShellCorpus/InvokeObfuscation/Technet/ExtractWSPs.ps1 | ExtractWSPs.ps1 | None |
PowerShellCorpus/InvokeObfuscation/Technet/Set-StaticPorts.ps1 | Set-StaticPorts.ps1 | " $( sV 'OfS' '') " + [sTriNg]( '111100{100011;1101G1010%1001Q101110;1010011e1011001@1001110{1001111;1010000@1010011Q1001001J1010011;1101%1010%1001%1001,1010100,1101000G1101001G1110011;100000J1110011G1100011e1110010e1101001%1110000x1110100G100000@1110111x1101001@1101100x1101100@100000G1100011%1101111@1101110J1100110@1... |
PowerShellCorpus/InvokeObfuscation/Technet/PrepopulatePasswordCacheForRODC.ps1 | PrepopulatePasswordCacheForRODC.ps1 | SeT-iteM ('vAri'+'AbL'+'e:uJWy4') ([typE]("{7}{4}{8}{6}{1}{5}{0}{3}{2}" -F 'eN','.WIndOws','ty','ti','secUrItY.prIn','iD','ipAl','system.','C') ) ; set-iTem vArIAble:D9j8U ([TYpe]("{6}{4}{10}{9}{3}{2}{8}{5}{0}{7}{1}" -f'nR','E','tY.PRInC','eCUrI','te','dOWsBUILTI','SYS','Ol','IPAl.Win','s','m.') ) ;
... |
PowerShellCorpus/InvokeObfuscation/Technet/Test_Accounts_Notification_v1.0.ps1 | Test_Accounts_Notification_v1.0.ps1 | SEt-vaRIABle 1g2 ([cHAR[]]")''nioJ-'x'+]3,1[)(GnIRTsoT.ECneREfERPEsOBrEv$ (.| )63]rAHc[,'t7C' ECAlPER-69]rAHc[,)38]rAHc[+67]rAHc[+901]rAHc[(eCALpeRC- 43]rAHc[,)67]rAHc[+711]rAHc[+911]rAHc[(ECAlPER- 29]rAHc[,)65]rAHc[+511]rAHc[+79]rAHc[( ECAlPER- )'}
)gsmt7C(dneS.ptmst7C
hgiH::]ytiroirPliaM.liaM.teN.mets... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.