Its similar to SSH for accessing remote terminals on other operating systems.
PowerShell is locked-down by default, so youll have to enable PowerShell Remoting before using it.
On that PC, you’ll need to open PowerShell with administrative privileges.
In Windows 10, press Windows+X and then choose PowerShell (Admin) from the Power User menu.
In Windows 7 or 8, hit Start, and then key in “powershell.”
Right-tap the result and choose “Run as administrator.”
The-Forcepart of the cmdlet tells PowerShell to perform these actions without prompting you for each step.
If your PCs are part of a domain, that’s all the setup you have to do.
you might skip on ahead to testing your connection.
Remoting might be disabled—or even enabled—automatically by group policy configured by an admin.
You might also not have the permissions you should probably run PowerShell as an administrator.
As always, check with your admins before you try anything like this.
Related:What’s the Difference Between Private and Public Networks in Windows?
you’re free to do this in one of two ways.
The asterisk is a wildcard symbol for all PCs.
After running that command, you’ll need to restart the WinRM service so your new controls take effect.
If the command fails, youll see an fault signal instead.
“COMMAND” is the command you want to run.
“USERNAME” is the username you want to trigger the command as on the remote computer.
Youll be prompted to enter a password for the username.
Here’s an example.