Disabling net connection from all computers using one main computer.

G

Guest

Guest
I work with kids in a computer lab, however, I wanted to know if there is a way(quick way), to disable the net connection (using the desktop I work on) from all computers(except the one use) to prevent them from accessing the web and then enable the net connection when I give them permission to use the web.
 
Solution
In agreement with kanewolf.

However, you most likely can give Powershell a try on your own.

For example the Stop-Computer cmdlet:

Here:

https://blogs.technet.microsoft.com/heyscriptingguy/2012/12/24/powertip-use-powershell-to-shut-down-a-remote-computer/

However, a full shutdown and restart is not probably viable when the results include a bunch of idle kids..... :)

However stopping and start a process remotely could work - examples:

http://rakhesh.com/powershell/killing-a-process-on-a-remote-computer-using-powershell/

and

http://www.vexasoft.com/pages/stop-remoteprocess

https://www.devopsonwindows.com/7-ways-to-manage-windows-processes-remotely/...
G

Guest

Guest

The computers are set with a static IP instead of a DHCP assigned. I was told I could go about removing the gateway config.on some of the computers? How do I go about doing that? I'm not a pro so please bear with me.
 

Ralston18

Titan
Moderator
In agreement with kanewolf.

However, you most likely can give Powershell a try on your own.

For example the Stop-Computer cmdlet:

Here:

https://blogs.technet.microsoft.com/heyscriptingguy/2012/12/24/powertip-use-powershell-to-shut-down-a-remote-computer/

However, a full shutdown and restart is not probably viable when the results include a bunch of idle kids..... :)

However stopping and start a process remotely could work - examples:

http://rakhesh.com/powershell/killing-a-process-on-a-remote-computer-using-powershell/

and

http://www.vexasoft.com/pages/stop-remoteprocess

https://www.devopsonwindows.com/7-ways-to-manage-windows-processes-remotely/

https://4sysops.com/archives/query-and-kill-a-process-on-a-remote-computer-using-powershell-and-wmi/

Depending on the circumstances and your time you can clone from examples in the above links. And there are other such links available.

Then you should be able to test against just one or two lab computers without too much difficulty. Just use the cmdlet formats shown and substitute in the names of your lab computers.... Credentials may be a bit more difficult but once you have a working script(s) in place then you just cut and paste for each system. And change the name.

And you can google specific Powershell commands for additional explanation, insight, and examples.

Give it a try if you are so willing. Make it work on your local computer first. Then go to a remote implementation.

Post your scripts and the problem(s) you encounter.
 
Solution

TRENDING THREADS