I have recently installed Windows 2012. Unable to use common commands previously used e.g. "ipconfig" "hostname" etc. Have tried both Run as Administrator and non admin.
ipconfig or other commands are not working, it is due to path variable missing in configuration.
Follow these steps to fix it:
- Open the Start-Menu and Right click on ‘Computer’ and click ‘Properties’
- Click ‘Advanced System Settings’ then ‘Environmental Variables’ at the bottom of the screen
- Check for ‘Path’ in the list. If it is present, Click ‘Edit’
- Go to the end of the text box and type the following (without quotes):
3b. If it does not exist, create it with the ‘new’ button,
4b. In the next window, enter the variable name as Path. Enter the variable path as, “;%systemroot%\system32” (without quotes).
- Click ok to close.
Now open a new cmd prompt and type ‘ipconfig‘ or any of the system commands and they should work fine!