Powershell, automation, IT problem solving, Windows, Linux and more.......
Tuesday, September 1, 2015
Powershell verify and create a registry item
Hi mates,
how many times you asked to yourself : how can I create or check registry keys ?
I had the need to automate the check of a registry key for a customer SCCM clients.
This key was important for roadwarrior users as for internal ones.
If the key exists we have to overwrite it, if the key does not exists we have to inform our administrator about the exception triggered.
Let's see what I've done :
You could need to add some code to scan a subnet or to write down some logs.
To use this script as logon script please refer to the following article :
https://4sysops.com/archives/configuring-logon-powershell-scripts-with-group-policy/
No complications, no tricks, only the essential.
Hope this helps.
See you soon
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment