D
D
Digsecman2021-08-09 11:40:45
PowerShell
Digsecman, 2021-08-09 11:40:45

How to enable script execution support on all domain PCs?

Hello, are these commands enough to automatically execute scripts on the side of domain PCs and how to do it more efficiently: through logon script or through powershell (preferably the second option)

1.Enable-PSRemoting -Force
2Set-Item wsman:\localhost\client\ trustedhosts * -Force #PowerShell Remoting. Grant access to all remote PCs

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-08-09
@FluffyBeaver

PowerShell Remoting in the presence of a domain, in my opinion, is most conveniently configured through group policies.
Moreover, by driving into Google "enable psremoting group policy" you can immediately get a description of the configuration process.
To run scripts, it is very likely that you will also have to decide on the Execution Policy. This time, "powershell executionpolicy group policy" is driven into Google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question