full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/credentials/Invoke-TokenManipulation.ps1 | Invoke-TokenManipulation.ps1 | function Invoke-TokenManipulation
{
<#
.SYNOPSIS
This script requires Administrator privileges. It can enumerate the Logon Tokens available and use them to create new processes. This allows you to use
anothers users credentials over the network by creating a process with their logon token. This will work even wi... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/credentials/Get-VaultCredential.ps1 | Get-VaultCredential.ps1 | function Get-VaultCredential
{
<#
.SYNOPSIS
Displays Windows vault credential objects including cleartext web credentials.
PowerSploit Function: Get-VaultCredential
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Ge... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/credentials/Invoke-Mimikatz.ps1 | Invoke-Mimikatz.ps1 | function Invoke-Mimikatz
{
<#
.SYNOPSIS
This script leverages Mimikatz 2.0 and Invoke-ReflectivePEInjection to reflectively load Mimikatz completely in memory. This allows you to do things such as
dump credentials without ever writing the mimikatz binary to disk.
The script has a ComputerName parameter which a... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/fun/Set-Wallpaper.ps1 | Set-Wallpaper.ps1 | # adapted from https://social.technet.microsoft.com/forums/scriptcenter/en-US/9af1769e-197f-4ef3-933f-83cb8f065afb/background-change
Function Set-WallPaper
{
[CmdletBinding()] Param($WallpaperData)
$SavePath = "$Env:UserProfile\\AppData\\Local\\wallpaper" + ".jpg"
Set-Content -value $([System.Con... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/fun/Invoke-Thunderstruck.ps1 | Invoke-Thunderstruck.ps1 | Function Invoke-Thunderstruck
{
[CmdletBinding()]
Param (
[Parameter(Mandatory = $False, Position = 0)]
[ValidateNotNullOrEmpty()]
[String] $VideoURL = "https://www.youtube.com/watch?v=leJ_wj7mDa0"
)
Function Set-Speaker($Volume){$wshShell = new-object -com wscript.... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/fun/Invoke-VoiceTroll.ps1 | Invoke-VoiceTroll.ps1 | Function Invoke-VoiceTroll
{
[CmdletBinding()]
Param (
[Parameter(Mandatory = $True, Position = 0)]
[ValidateNotNullOrEmpty()]
[String] $VoiceText
)
Set-StrictMode -version 2
Add-Type -AssemblyName System.Speech
$synth = New-Object -TypeName System.Speech.Synthesis.... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/lateral_movement/Invoke-PsExec.ps1 | Invoke-PsExec.ps1 | function Invoke-PsExec {
<#
.SYNOPSIS
This function is a rough port of Metasploit's psexec functionality.
It utilizes Windows API calls to open up the service manager on
a remote machine, creates/run a service with an associated binary
path or command, and then cleans everyth... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/lateral_movement/Invoke-SSHCommand.ps1 | Invoke-SSHCommand.ps1 |
function Invoke-SSHCommand {
<#
.Description
This script was created to easily send commands to SSH servers.
.Parameter IP
The string containing the IP or hostname of the target server.
.Parameter Username
The username for the ssh server
.Parameter Password
The password for the ss... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/lateral_movement/Invoke-InveighRelay.ps1 | Invoke-InveighRelay.ps1 | function Invoke-InveighRelay
{
<#
.SYNOPSIS
Invoke-InveighRelay performs NTLMv2 HTTP to SMB relay with psexec style command execution.
.DESCRIPTION
Invoke-InveighRelay currently supports NTLMv2 HTTP to SMB relay with psexec style command execution.
HTTP/HTTPS to SMB NTLMv2 relay with granular control
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/trollsploit/Get-RickAstley.ps1 | Get-RickAstley.ps1 | # from https://gist.githubusercontent.com/SadProcessor/3e413f9542b01ee90979/raw/463c518c90fca50a2cee594d1b619a0d3fb5bed5/Get-RickAstley.ps1
function Get-RickAstley {
[console]::beep(440,150)#A
[console]::beep(493,150)#B
[console]::beep(587,150)#D
[console]::beep(493,150)#B
Start-Sleep -m 20
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/persistence/Invoke-BackdoorLNK.ps1 | Invoke-BackdoorLNK.ps1 | function Invoke-BackdoorLNK {
<#
.SYNOPSIS
Takes an existing (full) .LNK path and backdoors it to trigger a base64-encoded and registry-stored script.
The original application is still launched, the original icon is preserved, and no powershell.exe window pops up.
Author: @harmj0y
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/persistence/Install-SSP.ps1 | Install-SSP.ps1 | function Install-SSP
{
<#
.SYNOPSIS
Installs a security support provider (SSP) dll.
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Install-SSP installs an SSP dll. Installation involves copying the dll to
%windir%\S... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/persistence/PowerBreach.ps1 | PowerBreach.ps1 | ###################################################################################
# Name: PowerBreach
# Author: sixdub (sixdub.net)
# Tested on: Windows 7
#
#
###################################################################################
function Invoke-CallbackIEX
{
<#
.SYNOPSIS
Used to callback t... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/persistence/Get-SecurityPackages.ps1 | Get-SecurityPackages.ps1 | function Get-SecurityPackages
{
<#
.SYNOPSIS
Enumerates all loaded security packages (SSPs).
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Get-SecurityPackages is a wrapper for secur32!EnumerateSecurityPackages.
It... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/host/Find-TrustedDocuments.ps1 | Find-TrustedDocuments.ps1 | function Find-TrustedDocuments
{
<#
.SYNOPSIS
This script is used to get useful information from a computer.
Function: Enumerate-TrustedDocuments
Author: Jeff McCutchan, Twitter: @jamcut
Required Dependencies: None
Optional Dependencies: None
Version: 0.1
.DESCRIPTION
This script is used to enumerate... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/host/Get-SystemDNSServer.ps1 | Get-SystemDNSServer.ps1 |
function Get-SystemDNSServer
{
<#
.Synopsis
Enumerates the DNS Servers used by a system
Part of Posh-SecMod (https://github.com/darkoperator/Posh-SecMod/)
Author: darkoperator
.DESCRIPTION
Enumerates the DNS Servers used by a system returning an IP Address .Net object... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/host/Invoke-Paranoia.ps1 | Invoke-Paranoia.ps1 | function Invoke-Paranoia {
param(
[String[]] $watchUsers,
[String[]] $watchProcesses,
[String[]] $watchGroups
)
$defaultprocesses = @("taskmgr.exe", "mmc.exe", "wireshark.exe", "tcpview.exe", "procdump.exe", "procexp.exe", "procmon.exe", "netstat.exe", "psloggedon.exe", "lo... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/host/Get-ComputerDetails.ps1 | Get-ComputerDetails.ps1 | function Get-ComputerDetails
{
<#
.SYNOPSIS
This script is used to get useful information from a computer.
Function: Get-ComputerDetails
Author: Joe Bialek, Twitter: @JosephBialek
Required Dependencies: None
Optional Dependencies: None
Version: 1.1
.DESCRIPTION
This script is used to get useful infor... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/host/Invoke-WinEnum.ps1 | Invoke-WinEnum.ps1 | function Invoke-WinEnum{
<#
.SYNOPSIS
Collects all revelant information about a host and the current user context.
.DESCRIPTION
This script conducts user, system, and network enumeration using the current user context or with a specified user and/or keyword.
.PARAMETER UserName
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/network/Get-SPN.ps1 | Get-SPN.ps1 | # Author: Scott Sutherland 2013, NetSPI
# Version: Get-SPN version 1.1
# Requirements: Powershell v.3
# Comments: The technique used to query LDAP was based on the "Get-AuditDSDisabledUserAcount"
# function found in Carols Perez's PoshSec-Mod project.#
function Get-SPN
{
<#
.SYNOPSIS
Dis... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/network/Invoke-ReverseDNSLookup.ps1 | Invoke-ReverseDNSLookup.ps1 |
function Invoke-ReverseDNSLookup
{
<#
.Synopsis
Performs a DNS Reverse Lookup of a given IPv4 IP Range.
Part of Posh-SecMod (https://github.com/darkoperator/Posh-SecMod/)
Author: darkoperator
.DESCRIPTION
Performs a DNS Reverse Lookup of a given IPv4 IP Range.
.EXA... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/network/powerview.ps1 | powerview.ps1 | #requires -version 2
<#
PowerSploit File: PowerView.ps1
Author: Will Schroeder (@harmj0y)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
#>
########################################################
#
# PSReflect code for Windows API access
# Author: @... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/network/Invoke-SmbScanner.ps1 | Invoke-SmbScanner.ps1 | function Invoke-SMBScanner {
<#
.SYNOPSIS
Tests a username/password combination across a number of machines.
If no machines are specified, the domain will be queries for active machines.
For domain accounts, use the form DOMAIN\username for username specifications.
Author: Chris Campbell (@obs... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/network/Invoke-SMBAutoBrute.ps1 | Invoke-SMBAutoBrute.ps1 | function Invoke-SMBAutoBrute
{
<#
.SYNOPSIS
Performs smart brute forcing of accounts against the current domain, ensuring that
lockouts do not occur.
Author: Jason Lang (@curi0usJack)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
Version: 1.0
.DE... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/network/Invoke-Portscan.ps1 | Invoke-Portscan.ps1 | function Invoke-Portscan
{
<#
.SYNOPSIS
Simple portscan module
PowerSploit Function: Invoke-Portscan
Author: Rich Lundeen (http://webstersProdigy.net)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Does a simple port scan using regular sockets, based (prett... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/situational_awareness/network/Invoke-ARPScan.ps1 | Invoke-ARPScan.ps1 | function Invoke-ARPScan {
<#
.Synopsis
Performs an ARP scan against a given range of IPv4 IP Addresses.
Part of Posh-SecMod (https://github.com/darkoperator/Posh-SecMod/)
Author: darkoperator
.DESCRIPTION
Performs an ARP scan against a given range of IPv4 IP Addresses.
.EXAMPLE
Invoke an ARP S... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/Invoke-BypassUAC.ps1 | Invoke-BypassUAC.ps1 | function Invoke-BypassUAC
{
<#
.SYNOPSIS
Performs the bypass UAC attack by utilizing the trusted publisher
certificate through process injection.
PowerSploit Function: Invoke-BypassUAC
Author: @sixdub, @harmj0y, @mattifestation, @meatballs__, @TheColonial
License: BSD 3-Clause
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/Invoke-EventVwrBypass.ps1 | Invoke-EventVwrBypass.ps1 | function Invoke-EventVwrBypass {
<#
.SYNOPSIS
Bypasses UAC by performing an image hijack on the .msc file extension
Expected to work on Win7, 8.1 and Win10
Only tested on Windows 7 and Windows 10
Author: Matt Nelson (@enigma0x3)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: Non... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/Invoke-WScriptBypassUAC.ps1 | Invoke-WScriptBypassUAC.ps1 | function Invoke-WScriptBypassUAC
{
<#
.SYNOPSIS
Performs the bypass UAC attack by abusing the lack of an embedded manifest in wscript.exe.
Author: @enigma0x3, @harmj0y, Vozzie
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/Invoke-MS16032.ps1 | Invoke-MS16032.ps1 | function Invoke-MS16032 {
<#
.SYNOPSIS
PowerShell implementation of MS16-032. The exploit targets all vulnerable
operating systems that support PowerShell v2+. Credit for the discovery of
the bug and the logic to exploit it go to James Forshaw (@tiraniddo).
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/Invoke-Tater.ps1 | Invoke-Tater.ps1 | function Invoke-Tater
{
<#
.SYNOPSIS
Invoke-Tater is a PowerShell implementation of the Hot Potato Windows Privilege Escalation exploit from
@breenmachine and @foxglovesec.
.DESCRIPTION
Invoke-Tater is a PowerShell implementation of the Hot Potato Windows Privilege Escalation with functionality
similiar to Po... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/Get-GPPPassword.ps1 | Get-GPPPassword.ps1 | function Get-GPPPassword
{
<#
.SYNOPSIS
Retrieves the plaintext password and other information for accounts pushed through Group Policy Preferences.
PowerSploit Function: Get-GPPPassword
Author: Chris Campbell (@obscuresec)
Mods by: @harmj0y
License: BSD 3-Clause
Required Dependenc... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/Get-SiteListPassword.ps1 | Get-SiteListPassword.ps1 | function Get-SiteListPassword {
<#
.SYNOPSIS
Retrieves the plaintext passwords for found McAfee's SiteList.xml files.
Based on Jerome Nokin (@funoverip)'s Python solution (in links).
PowerSploit Function: Get-SiteListPassword
Original Author: Jerome Nokin (@funoverip)
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/Get-System.ps1 | Get-System.ps1 | function Get-System {
<#
.SYNOPSIS
GetSystem functionality inspired by Meterpreter's getsystem.
'NamedPipe' impersonation doesn't need SeDebugPrivilege but does create
a service, 'Token' duplications a SYSTEM token but needs SeDebugPrivilege.
NOTE: if running PowerShell 2.0, ... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/privesc/PowerUp.ps1 | PowerUp.ps1 | <#
PowerUp v1.7
Various methods to abuse local services to assist
with escalation on Windows systems.
See README.md for more information.
by: @harmj0y
#>
########################################################
#
# Helpers
#
##################################################... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/code_execution/Invoke-Shellcode.ps1 | Invoke-Shellcode.ps1 | function Invoke-Shellcode
{
<#
.SYNOPSIS
Inject shellcode into the process ID of your choosing or within the context of the running PowerShell process.
PowerSploit Function: Invoke-Shellcode
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: N... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/code_execution/Invoke-MetasploitPayload.ps1 | Invoke-MetasploitPayload.ps1 | function Invoke-MetasploitPayload
{
<#
.SYNOPSIS
Kick off a Metasploit Payload using the exploit/multi/script/web_delivery module
Author: Jared Haight (@jaredhaight)
License: MIT
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Spawns a new, hidden PowerShell window that downloads and ... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/code_execution/Invoke-ShellcodeMSIL.ps1 | Invoke-ShellcodeMSIL.ps1 | function Invoke-ShellcodeMSIL
{
<#
.SYNOPSIS
Execute shellcode within the context of the running PowerShell process without making any Win32 function calls.
PowerSploit Function: Invoke-ShellcodeMSIL
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
Required Dependencies: N... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/code_execution/Invoke-DllInjection.ps1 | Invoke-DllInjection.ps1 | function Invoke-DllInjection
{
<#
.SYNOPSIS
Injects a Dll into the process ID of your choosing.
PowerSploit Function: Invoke-DllInjection
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
.DESCRIPTION
Invoke-DllInjection injects a ... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/module_source/code_execution/Invoke-ReflectivePEInjection.ps1 | Invoke-ReflectivePEInjection.ps1 | function Invoke-ReflectivePEInjection
{
<#
.SYNOPSIS
This script has two modes. It can reflectively load a DLL/EXE in to the PowerShell process,
or it can reflectively load a DLL in to a remote process. These modes have different parameters and constraints,
please lead the Notes section (GENERAL NOTES) for in... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/agent/stager_hop.ps1 | stager_hop.ps1 | function Start-Negotiate{
param($s,$SK,$UA="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko")
# try to ignore all errors
$ErrorActionPreference = "SilentlyContinue";
$e=[System.Text.Encoding]::ASCII;
# set up the AES encryption object
# $SK -> staging key for t... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/agent/agent.ps1 | agent.ps1 |
function Invoke-Empire {
<#
.SYNOPSIS
The main functionality of the Empire agent.
Additional functionality can be loaded dynamically.
Author: @harmj0y
License: BSD 3-Clause
.PARAMETER SessionKey
Server AES session key to use for communications
... |
PowerShellCorpus/Github/DolpheusLabs_PowerShell-Empire/data/agent/stager.ps1 | stager.ps1 | function Start-Negotiate{
# param($s,$SK,$UA="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko")
param($s,$SK,$UA="lol")
# make sure the appropriate assemblies are loaded
Add-Type -assembly System.Security;
Add-Type -assembly System.Core;
# try to ignore all err... |
PowerShellCorpus/Github/shadowgyz_FolderGenerator/FolderOnly_Script.ps1 | FolderOnly_Script.ps1 | ## The purpose of this script is to simplify creating directories when inputting logs in the Tech Support Teams Drive Folder
Set-ExecutionPolicy -ExecutionPolicy AllSigned
cls
Write-Host "Last Update: 8/11/2016"
Write-Host "Questions/Comments/Improvements? E-mail justin.maatubang@hologic.com"
Wri... |
PowerShellCorpus/Github/shadowgyz_FolderGenerator/TS_Teams_Folder_Generator.ps1 | TS_Teams_Folder_Generator.ps1 | ## The purpose of this script is to simplify creating directories when inputting logs in the Tech Support Teams Drive Folder
## and to access other workflow products, such as FileZilla and File Explorer.
# loop to check for invalid input in the initial screen
$menu = 1
cls
do
{
Write-Host
Write-Ho... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/packages/jQuery.1.10.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/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
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersio... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/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/Github/RasaCosmin_ReportsMVC/MVCReports/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
}
catch {
# _references.js file not found
return
}
if ($referencesFileProject... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/packages/EntityFramework.6.1.3/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIa4AYJKoZIhvcNAQcCoIIa0TCCGs0CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/packages/EntityFramework.6.1.3/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$compilerPackageName = 'Microsoft.Net.Compilers'
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$libDirectory = Join-Path $installPath 'lib\net45'
$packageDirectory = Split-Path $installPath
$compilerPackage = Get-Chil... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory = Join-Path $projectRoot 'bin'
$targetDirectory = Join-Path $binDirectory $roslynSubFolder
if (Te... |
PowerShellCorpus/Github/RasaCosmin_ReportsMVC/MVCReports/packages/Newtonsoft.Json.6.0.4/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
# open json.net splash page on package install
# don't open if json.net is installed as a dependency
try
{
$url = "http://james.newtonking.com/json"
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
if ($dte2.ActiveWindow.Caption -eq "Package Manager Con... |
PowerShellCorpus/Github/aricblunk_sys_info_ps/Sys_Info_latest.ps1 | Sys_Info_latest.ps1 | #sys_info revision 64
param (
$report = "interactive"
)
$drivetypes = @{
2="Removable"
3="Fixed"
4="Network"
5="Optical"
}
function Format-Header1 {
param( [parameter(ValueFromPipeline)] $str )
"$str`r`n"
}
$reports = @(
"1) Operating System"
"2) User Account"... |
PowerShellCorpus/Github/aricblunk_sys_info_ps/Sys_Info_v58.ps1 | Sys_Info_v58.ps1 | # Init
$pshost = Get-Host
$pswindow = $pshost.UI.RawUI
$newsize = $pswindow.buffersize
$newsize.height = 9999
$newsize.width = 120
$pswindow.buffersize = $newsize
$drivetypes = @{
2="Removable"
3="Fixed"
4="Network"
5="Optical"
}
$of = "Sys_Info " + $env:COMPUTERNAME + " " + (Get-Date... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_VMBuild99SCOMAgent.ps1 | JEM_VMBuild99SCOMAgent.ps1 | workflow JEM_VMBuild99SCOMAgent {
param (
[Parameter(Mandatory=$true)]
[STRING]$VMName
)
#region Runbook header
$ErrorActionPreference = 'Stop'
$VerbosePreference = 'Continue'
$WebServiceCred = Get-AutomationPSCredential -Name 'credSMAWorker'
$WebserviceEndp... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_SQLBuild11CreateADObjects.ps1 | JEM_SQLBuild11CreateADObjects.ps1 | workflow JEM_SQLBuild11CreateADObjects {
param
(
[Parameter(Mandatory=$true)]
[STRING]$SQLProjectName,
[Parameter(Mandatory=$true)]
[STRING]$VMName,
[Parameter(Mandatory=$true)]
[STRING]$SQLAgentPassword,
[Parameter(Mandatory=$true)]
[S... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_VMBuild30VMware.ps1 | JEM_VMBuild30VMware.ps1 | workflow JEM_VMBuild30VMware {
param
(
[Parameter(Mandatory=$false)]
[STRING]$VMName,
[Parameter(Mandatory=$false)]
[int]$Memory,
[Parameter(Mandatory=$false)]
[int]$CPU,
[Parameter(Mandatory=$false)]
[int]$DiskSize,
[Parameter... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_VMBuild22CreateADGroups.ps1 | JEM_VMBuild22CreateADGroups.ps1 | workflow JEM_VMBuild22CreateADGroups {
param
(
[Parameter(Mandatory=$true)]
[STRING]$VMName
)
#region Runbook header
$ErrorActionPreference = 'Stop'
$VerbosePreference = 'Continue'
$WebServiceCred = Get-AutomationPSCredential -Name 'credSMAWorker'
$WebserviceEnd... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_VMBuild20ActiveDirectory.ps1 | JEM_VMBuild20ActiveDirectory.ps1 | workflow JEM_VMBuild20ActiveDirectory {
param
(
[Parameter(Mandatory=$false)]
[STRING]$VMName
)
#region Runbook header
$ErrorActionPreference = 'Stop'
$VerbosePreference = 'Continue'
$WebServiceCred = Get-AutomationPSCredential -Name 'credSMAWorker'
$WebserviceE... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_VMBuild.ps1 | JEM_VMBuild.ps1 | workflow JEM_VMBuild {
param
(
[Parameter(Mandatory=$true)]
[STRING]$VMName,
[Parameter(Mandatory=$true)]
[int]$MemoryinGB,
[Parameter(Mandatory=$true)]
[int]$CPU,
[Parameter(Mandatory=$true)]
[int]$DiskSizeinGB,
[Parameter(Ma... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_SendEmail.ps1 | JEM_SendEmail.ps1 | workflow JEM_SendEmail {
param
(
[Parameter(Mandatory=$true)]
[string]$EmailBody
)
#region Runbook header
$ErrorActionPreference = 'Stop'
#$VerbosePreference = 'Continue'
$WebServiceCred = Get-AutomationPSCredential -Name 'credSMAWorker'
$WebserviceEndpoint = Ge... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_SQLBuild10VMCustomisation.ps1 | JEM_SQLBuild10VMCustomisation.ps1 | workflow JEM_SQLBuild10VMCustomisation {
param
(
[Parameter(Mandatory=$true)]
[STRING]$VMName,
[Parameter(Mandatory=$true)]
[int]$SQLDPartitionSize,
[Parameter(Mandatory=$true)]
[STRING]$LDEVOS,
[Parameter(Mandatory=$true)]
[STRING]$LDE... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_SQLBuild12InstallSQL.ps1 | JEM_SQLBuild12InstallSQL.ps1 | workflow JEM_SQLBuild12InstallSQL {
param
(
[Parameter(Mandatory=$true)]
[STRING]$VMName,
[Parameter(Mandatory=$true)]
[STRING]$SQLInstanceName,
[Parameter(Mandatory=$true)]
[string]$SQLCollation,
[Parameter(Mandatory=$true)]
[string]$S... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_VMBuild21CreateADComputerObject.ps1 | JEM_VMBuild21CreateADComputerObject.ps1 | workflow JEM_VMBuild21CreateADComputerObject {
param
(
[Parameter(Mandatory=$true)]
[STRING]$VMName
)
#region Runbook header
$ErrorActionPreference = 'Stop'
$VerbosePreference = 'Continue'
$WebServiceCred = Get-AutomationPSCredential -Name 'credSMAWorker'
$Webse... |
PowerShellCorpus/Github/davidobrien1985_SMA_Workflows/SMAWorkflows/JEM_VMBuild31VMwareOSConfig.ps1 | JEM_VMBuild31VMwareOSConfig.ps1 | workflow JEM_VMBuild31VMwareOSConfig {
param
(
[Parameter(Mandatory=$false)]
[STRING]$VMName
)
#region Runbook header
$ErrorActionPreference = 'Stop'
$VerbosePreference = 'Continue'
$WebServiceCred = Get-AutomationPSCredential -Name 'credSMAWorker'
$WebserviceEn... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/runbooks/rb-Deploy-CoreWebAppDemo-To-Nano-Server.ps1 | rb-Deploy-CoreWebAppDemo-To-Nano-Server.ps1 | <#
.SYNOPSIS
This Azure Automation Runbook, when triggered via Webhook, will look for Nano Server VMs with a Tag Text of 'CoreWebAppDemo' and attempt to deploy
the .NET Core Web Application to that Nano Server.
.DESCRIPTION
When this Runbook is triggered via the Webhook: the rb-CoreWebAppDemo-Webhook, the foll... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/arm-templates/deploy-vnet-and-nano-server/vs-project/deploy-vnet-and-nano-server/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = 'deploy-vnet-and-nano-server',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $St... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/arm-templates/deploy-hadoop/vs-project/deploy-hadoop/bin/Debug/staging/deploy-hadoop/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = 'deploy-hadoop',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageContainer... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/arm-templates/deploy-hadoop/vs-project/deploy-hadoop/Scripts/Deploy-AzureResourceGroup.ps1 | Deploy-AzureResourceGroup.ps1 | #Requires -Version 3.0
#Requires -Module AzureRM.Resources
#Requires -Module Azure.Storage
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = 'deploy-hadoop',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageContainer... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/scripts/setup-deployment-env-for-nano-server-in-azure.ps1 | setup-deployment-env-for-nano-server-in-azure.ps1 | <#
.SYNOPSIS
This script deploys a new Azure Automation Account and all required deployment Resources to a specific Azure Subscription.
.DESCRIPTION
This Script must be executed using an Account that is either a Co-Administrator or an Azure Organizational Account to the Subscription that
is being targeted. Add... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/scripts/update-nano-server-iis-for-dotnet-core-apps.ps1 | update-nano-server-iis-for-dotnet-core-apps.ps1 | <#
.SYNOPSIS
This script updates the IIS Configuration to work with .NET Core on a target Nano Server.
.DESCRIPTION
This script updates the IIS Configuration to work with .NET Core on a target Nano Server.
Once this script is launched, the following actions will occur:
- A new PowerShell Session will be c... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/scripts/install-dotnet-core-on-nano-server.ps1 | install-dotnet-core-on-nano-server.ps1 | <#
.SYNOPSIS
This script downloads and installs .NET Core 1.0.1 to 'C:\dotnet' on a target Nano Server.
.DESCRIPTION
This script downloads and installs .NET Core 1.0.1 to 'C:\dotnet' on a target Nano Server.
Once this script is launched, the following actions will occur:
- A new PowerShell Session will be... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/sandbox/rb-parse-github-commit.ps1 | rb-parse-github-commit.ps1 | <#
.SYNOPSIS
This Azure Automation Runbook, when triggered via Webhook, will look for Nano Server VMs with a Tag Text of 'CoreWebAppDemo' and attempt to deploy
the .NET Core Web Application to that Nano Server.
.DESCRIPTION
.PARAMETER WebhookData
This is the WebhookData that is automatically passed from the... |
PowerShellCorpus/Github/starkfell_starkfell.github.io/sandbox/graph-api-requests/generate-access-token-from-app.ps1 | generate-access-token-from-app.ps1 |
# Application Client ID and Client Secret
$Client_ID = "5dc13166-0814-45ad-a670-2207eed8910c"
$Client_Secret = "fAd0ZF2eiX0+nWagwZLCKvXjAzIK3L35sB5/Nic744E="
# Encoding the Client ID and Client Secret.
$Client_ID_Encoded = [System.Web.HttpUtility]::UrlEncode($Client_ID)
$Client_Secret_Encoded = [Syst... |
PowerShellCorpus/Github/travipl2015_ipl2015/helloworldipl/PublishScripts/Publish-WebApplicationWebsite.ps1 | Publish-WebApplicationWebsite.ps1 | #Requires -Version 3.0
<#
.SYNOPSIS
Creates and deploys a Microsoft Azure Website for a Visual Studio web project.
For more detailed documentation go to: http://go.microsoft.com/fwlink/?LinkID=394471
.EXAMPLE
PS C:\> .\Publish-WebApplicationWebSite.ps1 `
-Configuration .\Configurations\WebApplication1-WAWS-... |
PowerShellCorpus/Github/anthonymjones_Battleship/Battleship/packages/EntityFramework.6.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
if (Get-Module | ?{ $_.Name -eq 'EntityFramework' })
{
Remove-Module EntityFramework
}
Import-Module (Join-Path $toolsPath EntityFramework.psd1)
# SIG # Begin signature block
# MIIarwYJKoZIhvcNAQcCoIIaoDCCGpwCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQ... |
PowerShellCorpus/Github/anthonymjones_Battleship/Battleship/packages/EntityFramework.6.0.0/tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
Initialize-EFConfiguration $project
Add-EFProvider $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
Write-Host
Write-Host "Type 'get-help EntityFramework' to see all available Entity Framework comma... |
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/Git-Alias.ps1 | Git-Alias.ps1 |
Set-Alias st Start-Feature -scope Global
Set-Alias ff Finish-Feature -scope Global
Set-Alias sr Start-Release -scope Global
Set-Alias fr Finish-Release -scope Global
Set-Alias shf Start-HotFix -scope Global
Set-Alias fhf Finish-HotFix -scope Global
Set-Alias igf Init-GitFlow -scope Global
|
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/Finish-HotFix.ps1 | Finish-HotFix.ps1 | <#
.SYNOPSIS
Merge a hot fix branch with 'master' and 'develop' and delete the hot fix branch.
.DESCRIPTION
Hot fix branch is merged back into master and develop.
.PARAMETER name
The name of the hot fix to finish. If not given,
use name of current branch and check if it is a hot f... |
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/Start-HotFix.ps1 | Start-HotFix.ps1 | <#
.SYNOPSIS
Start a new hot fix branch from the 'master' branch.
.DESCRIPTION
Hot fix branches are used to fix bugs in the master/ production branch.
.PARAMETER name
The name of the issue to start/ fix.
#>
function Start-HotFix
{
[CmdletBinding()]
PARAM(
[Paramet... |
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/Start-Release.ps1 | Start-Release.ps1 | <#
.SYNOPSIS
Start a new release branch from the 'develop' branch.
.DESCRIPTION
Release branches support preparation of a new production release (minor bug fixes, preparing metadata, etc). By
doing all of this in a release branch, the 'develop' branch is clear to receive features for the... |
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/Finish-Release.ps1 | Finish-Release.ps1 | <#
.SYNOPSIS
Merge a release branch with 'develop' and 'master' and delete the release branch.
.DESCRIPTION
When the release branch is ready to become a real release, it is merged with 'master' and 'master' is tagged with
the version number. The branch is also merged with 'develop'. The releas... |
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/Finish-Feature.ps1 | Finish-Feature.ps1 | <#
.SYNOPSIS
Merge a feature branch with 'develop' and delete the feature branch.
.DESCRIPTION
Finished features will be merged back into the 'develop' branch and pushed to the 'origin/develop'.
The feature branch will then be deleted. This function uses '--no-ff' by default (look it up!... |
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/GitFlow-Init.ps1 | GitFlow-Init.ps1 | <#
.SYNOPSIS
Initialize a git-flow controlled repository.
.DESCRIPTION
The central repository holds two main branches with an infinite lifetime: 'master' and 'develop'.
The HEAD of 'origin/master' is considered to be production ready code.
The HEAD of 'origin/develop' is th... |
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/New-Repository.ps1 | New-Repository.ps1 | function New-Repository {
<#
.SYNOPSIS
Creates a git repository in the given folder with an optional template
.DESCRIPTION
Create script to create a git repository and auto init with template
.EXAMPLE
New-Repository -Directory "Repos... |
PowerShellCorpus/Github/eriklieben_Posh-GitFlow/Start-Feature.ps1 | Start-Feature.ps1 | <#
.SYNOPSIS
Start a new feature branch from the 'develop' branch.
.DESCRIPTION
Feature branches are used to devleop new features for upcoming releases.
The feature branch exists as long as the feature is in development.
It will eventually be merged back to the 'develop' branch (or... |
PowerShellCorpus/Github/thongbkv_hotbirthday/packages/jQuery.1.10.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Determine the file paths
$projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
$origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
if (Test-Path $projectIntelliSense... |
PowerShellCorpus/Github/thongbkv_hotbirthday/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
$vsVersion = [System.Version]::Parse($dte.Version)
$supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
if (-not $supportsJsIntelliSenseFile) {
$displayVersio... |
PowerShellCorpus/Github/thongbkv_hotbirthday/packages/jQuery.1.10.2/Tools/common.ps1 | common.ps1 | function Get-Checksum($file) {
$cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
$fileInfo = Get-Item $file
trap { ;
continue } $stream = $fileInfo.OpenRead()
if ($? -eq $false) {
# Couldn't open file for reading
return $null
}
$bytes = $... |
PowerShellCorpus/Github/thongbkv_hotbirthday/packages/Modernizr.2.6.2/Tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
. (Join-Path $toolsPath common.ps1)
# Update the _references.js file
Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx |
PowerShellCorpus/Github/thongbkv_hotbirthday/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/Github/thongbkv_hotbirthday/packages/Modernizr.2.6.2/Tools/common.ps1 | common.ps1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
try {
$referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
}
catch {
# _references.js file not found
return
}
if ($referencesFileProject... |
PowerShellCorpus/Github/thongbkv_hotbirthday/packages/Microsoft.ApplicationInsights.WindowsServer.2.2.0/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.IO.File]::Exists($project.FullName))
{
function MarkItemASCopyToOutput($item)
{
Try
{
#mark it to copy if newer
$item.Properties.Item("CopyToOutputDirectory").Value = 2
}
Catch
{
write-host $_.Exception.ToString()
}... |
PowerShellCorpus/Github/thongbkv_hotbirthday/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/init.ps1 | init.ps1 | param($installPath, $toolsPath, $package, $project)
$compilerPackageName = 'Microsoft.Net.Compilers'
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$libDirectory = Join-Path $installPath 'lib\net45'
$packageDirectory = Split-Path $installPath
$compilerPackage = Get-Chil... |
PowerShellCorpus/Github/thongbkv_hotbirthday/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0/tools/uninstall.ps1 | uninstall.ps1 | param($installPath, $toolsPath, $package, $project)
$roslynSubFolder = 'roslyn'
if ($project -eq $null) {
$project = Get-Project
}
$projectRoot = $project.Properties.Item('FullPath').Value
$binDirectory = Join-Path $projectRoot 'bin'
$targetDirectory = Join-Path $binDirectory $roslynSubFolder
if (Te... |
PowerShellCorpus/Github/thongbkv_hotbirthday/hbd/packages/Microsoft.ApplicationInsights.WindowsServer.2.2.0/Tools/install.ps1 | install.ps1 | param($installPath, $toolsPath, $package, $project)
if ([System.IO.File]::Exists($project.FullName))
{
function MarkItemASCopyToOutput($item)
{
Try
{
#mark it to copy if newer
$item.Properties.Item("CopyToOutputDirectory").Value = 2
}
Catch
{
write-host $_.Exception.ToString()
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.