Login Script to update Registry - Preferred Method

Hi all,

I'm writing a logon script that will modify registry settings in HKEY_CURRENT_USER that will be deployed via Group Policy.
When researching I see there are two method of reading from and writing to the registry,

a) Using WScript.Shell
b) Using WMI

Therefore my question is which method is the preferred method and why? Does one method impose restrictions for example if a user is a "standard" user and not admin?

Any advice is welcome.

Who is Participating?
Ayoub RouziCeo & CoFounderCommented:
WMI, or Windows Management Instrumentation, is essentially a way to get information. You can use a WMI object to get information about a computer's CPU or the OS, or details about the network cards or any of a thousand other things.

It isn't designed to write that data to XML. Or to perform if/then operations or to send emails to particular users when something in the numbers it gets back are off. That's where PowerShell comes in. The Instrumentation gets you info, the C#/VB.NET/VBScript/PowerShell/Whatever is the part that asks for the data, and once it's returned, does something useful with it.

It really depends on what you want to do, Personally, i would recommand you PowerShell is more or less a requirement for an IT Pro these days, it's the only way to manage quite a few of Microsoft's products in any detail.
anthony_hurleyAuthor Commented:
Hi Ayoub,

Thanks for your feedback, it's much appreciated.
Ayoub RouziCeo & CoFounderCommented:

With pleasure Anthony, Could you close the post choosing the helpful comment ?

anthony_hurleyAuthor Commented:
Thanks for you help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.