As an Admin you can restrict access to PowerShell and what can run.
With a simple command you can view the execution policy set on a server:
- Get-ExecutionPolicy
![Powershell:- check vm replicas using simple commands. Powershell:- check vm replicas using simple commands.](https://everything-powershell.com/wp-content/uploads/2019/03/execution1-1024x128.png)
As shown above, it is set to unrestricted on this server.
To change it to restricted as an example you can run the following command in PowerShell:
- Set-ExecutionPolicy restricted
And then confirm the change.
Hope it helps.