Does anyone have a good method of detecting the computer name? I'm looking for a way to change settings based on a computer name, such that when a user moves from their desktop to their laptop, the settings adjust accordingly.
I've done some investigating and made a few attempts, but I'm hoping that someone in the community has figured this out. Finding file paths, desktop path, etc., provide everything but the computer name. It looks like AppleScript might work for Macs, but I'm not sure if something similar would work for Windows.
Any answers or suggestions would be greatly appreciated.