Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jpbruckler on github.
  • I am jpbruckler (https://keybase.io/jpbruckler) on keybase.
  • I have a public key ASDvG_tET85oryJt2rn0GvMrVvdZIcIOFHh3jDR_XkL0YQo

To claim this, I am signing this object:

function Connect-CaVault
{
<#
.SYNOPSIS
Establishes an authenticated REST connection to CyberArk.
.DESCRIPTION
Connect-CAVault establishes an authenticated connection to a given
CyberArk server. This connection can then be used to perform
additional tasks using the CyberArk REST API.
@jpbruckler
jpbruckler / Install-VCC.ps1
Created January 2, 2017 18:30
Install all Visual C++ Redistributables in order
<#
This script expects all the redistributables to be in a folder structure like:
D:\DOWNLOADS
├───VS2005
│ vcredist_x64.exe
│ vcredist_x86.exe
├───VS2008
│ vcredist_x64.exe
@jpbruckler
jpbruckler / New-EicarFile.ps1
Created July 19, 2016 17:48
Because I'm too lazy to keep downloading EICAR files.
function New-EicarFile
{
<#
.SYNOPSIS
Creates an EICAR file.
.DESCRIPTION
Will generate a file with the EICAR antimalware test string at the given path.
.PARAMETER Path
The full path of the file to create.
.PARAMETER Force
@jpbruckler
jpbruckler / GithubIssuesForMissingPesterTests.ps1
Last active June 22, 2016 05:27
Finds files that don't have a corresponding pester test, then creates Github issues for the missing tests
<#
.SYNOPSIS
Creates Github issues for missing Pester tests.
.DESCRIPTION
Recurses through .ps1 files and tries to find a matching .tests.ps1 file in
a given test directory. For each missing Pester test, a github issues is
created.
There are some assumptions here, namely that every .ps1 file in the $ScanPath
contains a single function. That's just how I write modules, so this script