I have a script in place which is fixing a serialization issue College wide and I have everything mapped out to how that's all going to work but I'd like to see which computers the script has hit.
I was thinking that I would poll the computer for it's "ComputerName" then output this to a .txt file
scutil --get ComputerName
If comptuer name is "DW1234" then I'd like the script to out put a file to /location/DW1234.txt
I just can't figure out how to take the out put of "scutil --get ComputerName" and copy this to be the name "computername.txt
Is this possible? This would make it easy so we can visually see by name which computers have been his with the script.