Skip to content

Instantly share code, notes, and snippets.

View TJAdryan's full-sized avatar
💭
Around mostly

domryan TJAdryan

💭
Around mostly
View GitHub Profile
@TJAdryan
TJAdryan / gist:eab4eb15597b1581dc5c3d7d96233e72
Last active July 30, 2025 14:39
Useful Windows Commands
#create admin
net user /add [*username] [password]
net localgroup administrators [username] /add
#set the password to never expire
wmic UserAccount where "Name=[username]" set PasswordExpires=False
#set timezone
tzutil /s "Eastern Standard Time"
@TJAdryan
TJAdryan / for user desktop
Last active February 4, 2019 19:26
boxstarterjan19
#1. Set-ExecutionPolicy Unrestricted
#2. Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#3. START https://boxstarter.org/package/url?(Add Gist URL HERE)
#---- TEMPORARY ---
Disable-UAC -y
@TJAdryan
TJAdryan / bxstarter
Last active February 8, 2018 20:18
set up machine len
Disable-BingSearch;
Disable-GameBarTips;
Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
$credentials = Get-Credential
$filename = C:\txts\creds
$credentials | Export-CliXml -Path $Filecred
$Credpath = 'C:\txts\creds'
$Filecred = Import-Clixml -Path $Credpath
#
#Machine Policies
Set-ExplorerOptions $Boxstarter.RebootOk=$true # Allow reboots
$Boxstarter.NoPassword=$false # machine has login password
$Boxstarter.AutoLogin=$true # Encrypt and temp store password for auto-logins after reboot
#Program installs
cinst googlechrome
cinst googledrive
cinst google-hangouts-chrome
cinst firefox
cinst notepadplusplus
#Machine Policies
Set-ExplorerOptions $Boxstarter.RebootOk=$true # Allow reboots
$Boxstarter.NoPassword=$false # machine has login password
$Boxstarter.AutoLogin=$true # Encrypt and temp store password for auto-logins after reboot
#Program installs(Office Removed for Test Version)
cinst googlechrome
cinst googledrive
cinst google-hangouts-chrome
cinst slack
#Pinned items
@TJAdryan
TJAdryan / macusr.txt
Last active May 4, 2017 12:48
Mac deployment with brew Add Admin
#!/bin/bash
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew cask install google-chrome
brew cask install google-drive
brew cask install slack
brew cask install google-hangouts
#enter password change admin name if needed
#Machine Policies
Set-ExplorerOptions $Boxstarter.RebootOk=$true # Allow reboots
$Boxstarter.NoPassword=$false # machine has login password
$Boxstarter.AutoLogin=$true # Encrypt and temp store password for auto-logins after reboot
#Program installs
cinst googlechrome
cinst googledrive
cinst google-hangouts-chrome
cinst office365business
cinst slack
@TJAdryan
TJAdryan / Newmachine.ps1
Last active May 4, 2017 12:53
New Machine Choco
Set-ExecutionPolicy Bypass
#add admin account **MUST CHANGE PASSWORD and Admin name**
net user admin P@ssw0rd /add
net localgroup administrators gadmin /add
#install chocolatey
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
#install software