# ROOT on Windows 11

**URL:** <https://root-forum.cern.ch/t/root-on-windows-11/62429>\
**Category:** ROOT\
**Tags:** root\
**Created:** [December 10, 2024, 12:23pm UTC](https://root-forum.cern.ch/t/root-on-windows-11/62429 "2024-12-10T12:23:14Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [December 12, 2024, 12:22pm UTC](https://root-forum.cern.ch/t/root-on-windows-11/62429/12 "2024-12-12T12:22:13Z")

</div>

> [@yordanov](#):
>
> 1.) Can’t setup the environment variables in cmd, which in powershell is done with: “C:\root\bin\thisroot.ps1”. Should I use the installation package instead?

In the command prompt you have to call `C:\root\bin\thisroot.bat`  
Then if you really want PowerShell, here is the command used in my Windows terminal:

```auto
powershell.exe -NoExit -Command "&{Import-Module """C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell 095cf59e -SkipAutomaticLocation -DevCmdArguments """-arch=x64 -host_arch=x64"""}"

```

---

_[View the full topic](https://root-forum.cern.ch/t/root-on-windows-11/62429)._
