Software & Apps Windows Systemroot Command (Recovery Console) How to use the systemroot command in the Windows XP Recovery Console by Tim Fisher General Manager, VP, Lifewire.com Tim Fisher has 30+ years' professional technology support experience. He writes troubleshooting content and is the General Manager of Lifewire. our editorial process Facebook Twitter LinkedIn Tim Fisher Updated on May 16, 2019 Windows The Ultimate Laptop Buying Guide Tweet Share Email The systemroot command is a Recovery Console command that sets the current folder you're working in as the systemroot folder. Systemroot Command Availability The systemroot command is only available from within the Recovery Console in Windows 2000 and Windows XP. Systemroot Command Syntax systemroot The systemroot command has no additional switches or options. Systemroot Command Examples systemroot In the above example, typing the systemroot command will set the %systemroot% environment variable to the directory that you type the command from. For example, if you're working in the C:\Windows directory and you type the systemroot command, the %systemroot% environment variable will be set to C:\Windows.