Skip to content

Instantly share code, notes, and snippets.

View davidphay's full-sized avatar

David Phayanouvong davidphay

View GitHub Profile
@davidphay
davidphay / gist:83dfb54f80e5fe50511ce967caf68a08
Created May 13, 2019 06:39 — forked from jstangroome/gist:3087453
Change your own Active Directory password from PowerShell without any special permissions
Set-AdAccountPassword -Identity $env:UserName -OldPassword (Read-Host -asSecureString "Enter the current password") -NewPassword (Read-Host -asSecureString "Enter the new password")
@davidphay
davidphay / boxstarter.ps1
Last active May 25, 2018 10:09 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt: