Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

PowerShell Script to run once on every NEW PC

$
0
0

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.


Viewing all articles
Browse latest Browse all 4762

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>