diff --git a/conan/tools/microsoft/visual.py b/conan/tools/microsoft/visual.py index 73a20b5ad53..8e71b9cdf03 100644 --- a/conan/tools/microsoft/visual.py +++ b/conan/tools/microsoft/visual.py @@ -167,8 +167,7 @@ def generate(self, scope="build"): warn_tag="deprecated" ) except ConanException: - is_ps1 = self._conanfile.conf.get("tools.env.virtualenv:powershell", check_type=str, - choices=["powershell", "pwsh"]) + is_ps1 = self._conanfile.conf.get("tools.env.virtualenv:powershell", check_type=str) if is_ps1: content_ps1 = textwrap.dedent(rf""" if (-not $env:VSCMD_ARG_VCVARS_VER){{