computerswera.blogg.se

How to query a mac address in sccm
How to query a mac address in sccm









how to query a mac address in sccm

$CollectionName = ‘Target collection name goes here’ Start-Transcript -path C:\Scripts\Log\wolreboot.txt The script uses the free wol.exe program from Gammadnye and is expecting to run from C:\Scripts\ but you can change that to whatever you like without breaking anything.ĭownload the script here (rename to. It doesn’t incorporate the forced reboot, but should be modifiable to achieve that result. I’ll also note that Adam Bertram wrote a different WOL script that will find each subnet and use any PC it can find to send WOL commands to other computers which is worth checking out. You need to use an account that has access on all servers required of course to be able to remotely trigger the scheduled tasks. This master task triggers all the WOL scripts, on a schedule or on demand as you wish. Then, a master task is created that calls the task on each of the other servers: Each server is configured to check the SCCM collection of computers that exist in that subnet. This only works in a single subnet though, so the next trick is to set this up on a server in each subnet as a scheduled task. It will leave all computers at the login screen, ready for software installs. This is valuable to me for software installs that require no user logged onto a computer. If offline, it will send a WOL magic packet to the computer.If online, it will trigger a reboot countdown of 5 minutes, with a warning prompt.Checks each computer to see if it’s online.

how to query a mac address in sccm

  • Pulls computers and in turn, MAC addresses from a pre-created SCCM collection.
  • In light of these, I wrote a script that was a mashed up version of a few things I could find and accomplish the task of sending WOL packets to each subnet I cared about. There’s also ‘ Wake Up Proxy‘ which was added to Configuration Manager that can potentially work too as it’s peer to peer and clients try to wake each other up, but won’t work in a lot of scenarios such as 802.1X. A magic packet will only work in the local subnet unless you happen to have complete access to your entire network and make some router changes. Running a Wake On LAN can be tricky if you’ve got lots of subnets to worry about.











    How to query a mac address in sccm