Why won't it allow me to activate my venv? - powershell

I've researched a few things about opening a venv. I've come to realize I need the PowerShell to allow scripts and so I started this session with:
set-executionpolicy remotesigned
Then I went ahead and tried the following, but it is not going through.
P
S C:\Windows\system32\xxxxx> venv/bin/activate
venv/bin/activate : The term 'venv/bin/activate' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ venv/bin/activate
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (venv/bin/activate:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\system32\xxxxx> source venv/bin/activate
source : The term 'source' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ source venv/bin/activate
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (source:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Any suggestions as how to move forward?

I had been following a tutorial and they used venv/bin/activate when it should be venv/Scripts/activate

Related

Error in VS Code during setting up client for project

The term 'yarn' is not recognized as the
name of a cmdlet, function, script file, or
operable program. Check the spelling of the name,
or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ yarn create vite client
+ ~~~~
+ CategoryInfo : ObjectNotFound: (yar
n:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExcep
tion
~~~~

Python command and VS code

I am using Anaconda, I have chosen the interpreter as conda.exe in my ENV but still the python command does not work in VS code' s Command Prompt. What to do?
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

The term 'get-ADComputer' is not recognized as the name of a cmdlet

I'm watching this tutorial (https://www.youtube.com/watch?v=UVUd9_k9C6A&t=1640s) about PowerShell. At 2:57:50, the instructor runs Get-ADComputer. But when I try to run the same command, I get the following error message:
get-ADComputer : The term 'get-ADComputer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
+ get-ADComputer
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-ADComputer:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How can I make it work?

powershell don't recognize vscode 'code' command

I registered the 'code' command in PATH, and in cmd and GitBash the command works but in powershell not.
Does anyone know if i need to register somewhere else to be able to use the vscode command in powershell?
#EDIT:
powershell apparently doesn't read directories correctly even in version 7.1
the command 'code' returns:
D:\Program : O termo 'D:\Program' is not recognized as a cmdlet, function, script file or program name
operable. Check the spelling of the name or, if a path has been included, see if the path is correct and try
again.
In line: 1 character: 1
+ D:\Program Files\VSCode-win32-x64-1.52\bin\code.cmd
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (D:\Program:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
the command 'yarn -v' returns:
x86: The term 'x86' is not recognized as a cmdlet name, function, script file or operable program. Check the
spelling the name or, if a path has been included, check that the path is correct and try again.
In line: 1 character: 19
+ C:\Program Files (x86)\Yarn\bin\yarn.cmd -v
+ ~~~
+ CategoryInfo : ObjectNotFound: (x86:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Getting cluster detail of Windows

Is there any other way to get Windows cluster details like cluster & machine info using PowerShell command?
I tried to use Get-Cluster command but it's not working throwing an error.
get-cluster : The term 'get-cluster' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ get-cluster
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-cluster:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException