Add to the PATH on Windows 10
📅 March 17, 2018 ⏱ 1 min read
Hello fellow internet citizens! Here is a concise guide to modifying the PATH on Windows 10!
- Open the Start Search, type in “env”, and choose “Edit the system environment variables”:
- Click the “Environment Variables…” button.
- Under the “System Variables” section (the lower half), find the row with “Path” in the first column, and click edit.
- The “Edit environment variable” UI will appear. Here, you can click “New” and type in the new path you want to add. From this screen you can also edit or reorder them.
- Dismiss all of the dialogs by choosing “OK”. Your changes are saved!
- You will probably need to restart apps for them to pick up the change. Restarting the machine would ensure all apps are run with the PATH change.
To test it, in new PowerShell window, type:
Written by Ryan Hoffman, an experienced team leader, certified Scrum Master and software architect.
Contact RyanFollow Ryan on Twitter
Ryan to the windows
Windows 10 Professional Annoyance-Free Automated USB Install
A guide to creating a Windows 10 install without all of the «extras» — disabled One Drive, Soda Crush, etc., as well as turning off annoying prompts and online account registration.
The goal of this setup was to create a USB key that could be used to easily create a hassle-free desktop install method for a gaming PC, but may suit other purposes as well.
TOO LONG, WON’T READ
Fair enough, if you’ve already got Windows installed (or upgraded from something else, perchance?) and want to rid it of the numerous annoyances with one quick script, you can find that in the «PostInstall» folder. This script is from 4chan and is actually very handy, but my goal is to stop this from happening in the first place, rather than fixing it after the fact.
- Press the Windows key
- Type «powershell»
- Right click on «powershell» and select «run as administrator»
- Paste the following: Set-ExecutionPolicy RemoteSigned
- Run 4chan-win10.ps1
Download Windows 10
Use the Windows media creation tool to get a copy of Windows 10. Once your media is created, git clone this repository (or donwload a zip) and add all of the files to the root of the USB stick.
I used O&O Shut Up 10 to take care of many of the annoyances here, using the ooshutup10.cfg file as a parameter. Download this tool, unzip it and place the OOSU10.exe file in the root of the USB stick as well.
I’ve included two sample files that can be used once you have a Windows 10 install USB stick created: autounattend.xml and customize.xml .
Note, however, that they are customized to my liking. In particular, you will want to query/replace the username winadmin and the password muggles from within autounattend.xml . Otherwise, I think the defaults are pretty rational.
Should you wish to simply make your own starter file, the Windows Answer File Generator is a big help.
Furthermore, the sysprep.bat and customize.xml files assumes that you’ve only got one CDROM, one HDD and one USB stick attached to your Virtual Box VM. If this is not the case, chances are your WIM file will not be located in E:/sources/install.wim#Windows 10 Pro and the sysprep command parameter /unattend:e:\customize.xml should also be edited in turn.
You can stop here if it worked for you, otherwise, continue along for testing, and modifications.
Download Virtual Box
We’ll use Virtual Box to prepare the USB stick because it runs on Windows, Mac and Linux
As we’re using Virtual Box, we’ll bootstrap the USB boot when testing with a tiny Plop Boot Manager ISO. Note that on some platforms you can get this done with the Virtual Box tools and accepting a further agreement.
Once downloaed, unzip the ISO to a location you’ll use in a moment when creating your virtual machine.
Create a Test Virtual Machine
Create a Windows 10 64bit virtual machine in Virtual Box, making sure to attach you newly-created USB stick to it.
Continue the install as usual until you are met with the «express»/»custom install» screen. At this point press ctrl+shift+f3 in order to get into audit mode.
You will be presented with a sysprep window — simply cancel it for now.
Make the changes you want to see in default profiles now.
- Start a command prompt by pressing win+r, then typing «cmd»
- Run O&O Shutup 10 like so: e:/OOSU10.exe ooshutup10.cfg /silent /nosrp
- Disable the consumer content (games, etc.): regedit /s e:/disableconsumerfeatures.reg
- Uninstall OneDrive: e:/uninstall_onedrive.bat
Once you are done customizing your default user, run the sysprep command by double-clicking on sysprep.bat in your USB stick.
Unattended Configuration File
Now it’s time to create your unattended config file. You can use mine, but you may be better served using the wizard here: http://windowsafg.no-ip.org/win10x86_x64.html
Add this file to the root of your USB stick.
Finally, test the installation one last time by removing your virtual hard drive and creating a new one — this will make sure the changes made in our captured install are no longer present. No need for «ctrl+shift+f3» — just install as you would normally, minus all of the nags, prompts and apps installed post-setup.
Using the USB Disk
You can use this USB stick whenever you want to perofrm a new Windows 10 install!
About
A guide to creating a Windows 10 install without all of the «extras» — disabled One Drive, Soda Crush, etc