Score:0

Execute command on windows client from windows server

im flag

how can we execute command on CMD or power shell windows clients from a windows server or admin domain on network

we are using windows server 2016 for active directory and all users have windows 10

we want to send "gpresult /r" and "gpupdate" command on clients

Score:0
cn flag

To run commands remotely, you can use either Windows Remote Shell (WinRs) or PowerShell Remoting. However, gpresult commonly fails to execute properly under these circumstances and should not be considered reliable. Gpupdate may be run, but should be used with /target:computer switch. Both WinRs/PSRemoting require port tcp/5985 or tcp/5986 (for TLS) for network communication, use the same underlying technology, and is a native tool and not an external binary.

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/winrs

https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/08-powershell-remoting?view=powershell-7.3

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.