I need to have a script to run just once when PC is being prepared (Primary DNS change) ((If interested -> (http://justin-bennett-msjc.blogspot.co.uk/2015/04/use-powershell-to-change-hosts-fqdn.html ))
I was hoping there is a way to Run this script after PC have been built.
After reading about this SCCM seems like the best way of doing this because if I put the script in toGPO it would Run every time on logon, and would need an IF statement (if its already done then Quit).
How do I get SCCM to run this script on the PCs ?
Ideally first I want to run it on a limited collection, if it all goes well then in all PCs.