Yes, Invoke-Command is permitted, but not script blocks. There are also restrictions on the uses of variables, comparison operators, other things. You can use Invoke-Command with a file, though.
Restricted powershell mode
Is it possible to use powershell "Invoke-command" while on restricted powershell mode?
Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing
Windows for business Windows Client for IT Pros Devices and deployment Configure application groups
Windows for business Windows Server User experience PowerShell
Windows for business Windows Client for IT Pros User experience Other
2 answers
Sort by: Most helpful
-
-
Limitless Technology 39,916 Reputation points
2021-11-23T09:00:28.607+00:00 Hi there,
The default execution policy of PowerShell is called Restricted. In this mode, PowerShell operates as an interactive shell only. It does not run scripts, and loads only configuration files signed by a publisher that you trust.
Invoke-command is Interactive one and you can use it in Restricted PowerShell command.
The Invoke-Command cmdlet runs commands on a local or remote computer and returns all output from the commands, including errors.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--