Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am swizzlez on github.
  • I am swizzlez_ (https://keybase.io/swizzlez_) on keybase.
  • I have a public key ASCFqa1BvydW7x-xgwGqw_YwAYuu8pna480xR4oHNsIIMwo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am swizzlez on github.
* I am swizzlez_ (https://keybase.io/swizzlez_) on keybase.
* I have a public key ASDX-P5lqE3rKfoAoK51DwhS1gqsQdcjbLngclYT_ut9qQo
To claim this, I am signing this object:
$mytemp = [environment]::getfolderpath("mydocuments")
(new-object System.Net.WebClient).DownloadFile('https://github.com/swizzlez/RTTest/raw/master/gavs-unicorns.jpg',"$mytemp\b.jpg");
Add-Type @"
using System;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
using System.Runtime.InteropServices;
using Microsoft.Win32;
namespace Wallpaper
{
public enum Style : int
@swizzlez
swizzlez / hello.ps1
Created April 15, 2019 14:34
hello world powershell script for demo's
echo "Hello, World!";
@swizzlez
swizzlez / ADJoin.ps1
Created November 9, 2018 17:17
A PowerShell script to domain join a system from the User Data while launching in EC2.
####
# Run this script in the user data portion of windows images you want to join to your domain.
# User needs rights to join computers to the domain.
####
<powershell>
$domain = "mydomain.local"
$password = "Password1" | ConvertTo-SecureString -asPlainText -Force
$username = "mydomain\username"
$credential = New-Object System.Management.Automation.PSCredential($username,$password)