This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Updated: 2014-04-21 | |
# Eric S. Johnson | |
# Sets The Registry on Windows 7 to Allow Auto Login of checkin user. | |
# Reference: http://superuser.com/questions/28647/how-do-i-enable-automatic-logon-in-windows-7-when-im-on-a-domain/28654#28654 | |
#The Code: | |
Set-ItemProperty -Name AutoAdminLogon -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value 1 #Allow Auto Login | |
Set-ItemProperty -Name DefaultUserName -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value username #Set the User Name | |
Set-ItemProperty -Name DefaultPassword -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value password #Set the Password | |
Set-ItemProperty -Name DefaultDomainName -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Value domain #Set the Domain to your organizations domain name | |
Remove-ItemProperty -Name AutoLogonCount -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Force #Remove the count of auto login (probably |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set WshNetwork = WScript.CreateObject("WScript.Network") | |
WScript.Echo "Domain = " & WshNetwork.UserDomain | |
WScript.Echo "Computer Name = " & WshNetwork.ComputerName | |
WScript.Echo "User Name = " & WshNetwork.UserName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Format is option=value. Lines starting with a # is considered comments | |
# and are ignored. | |
# Important: You must use a quoted path if there are spaces in the path. This | |
# is because the player command is parsed like a shell command to allow | |
# parameters to be passed to the player. | |
# VLC | |
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" | |
#player="C:\Program Files\VideoLAN\VLC\vlc.exe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET st2Path=C:\Program Files (x86)\Brackets\Brackets.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets" /t REG_SZ /v "" /d "Open with Brackets" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Brackets\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Brackets" /t REG_SZ /v "" /d "Open with Brackets" /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="bira" | |
# Uncomment the following line to use case-sensitive completion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
#You may need to enable the Universe Repository | |
# Last updated 2019-07-17 11:47:49 | |
echo "******************************************************************" | |
echo "Tools for Ubuntu WSL" | |
echo "******************************************************************" | |
echo "Adding Git PPA" | |
echo "******************************************************************" | |
sudo add-apt-repository -y ppa:git-core/ppa | |
echo "******************************************************************" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AppxPackage -AllUsers | Remove-AppxPackage; Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AppxPackage -AllUsers | Remove-AppxPackage | |
Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this command in an elevated (PowerShell) prompt. | |
# You may have to run the commands in reverse order. | |
# The first command activates the admin account | |
net user administrator /active:yes | |
# The second command gives it the password of "pass" without the quotes | |
net user administrator pass |