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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.