Just recently, I received an email asking how you can access the 64 bit registry from a 32 bit script, or vice versa. The task the individual was facing was to come up with a way to verify installed applications via checking the corresponding Windows Installer registry entries. For a C++ programmer with access to […]
Tag: registry
Sometimes an Apple is an Orange
I was helping a member out in the PowerShell forum at ScriptingAnswers.com. He was trying to create a multistring registry entry on a remote computer using the .NET registry classes. Creating registry values is really not that complicated. Here’s a short example.
Techmentor Las Vegas ’08
If you didn’t make it to Techmentor this year, you missed out on some great stuff. As promised, here are a collection of zip files with my conference demos. If you didn’t make it to the show you are still welcome to download, although they may not all make sense to you out of context. I think I’ve gathered everything but if there as a particular demo you can’t find, let me know and I’ll either check my library or attempt to re-create it.
Read Remote Registry Function
Hopefully you found my last entry valuable. But I always like to take things a step further, especially when it comes to scripting and automation. So I turned my last script into a function that returns the value of a specified registry key
Remote Registry Reading the VBScript Way
Last week I blogged about using REG.EXE in a batch file to read a registry key. The batch file I provided works, but the output is limited. You could probably parse it a bit more to get it in some other format. But I’d probably turn to VBScript and WMI if I wanted better output control or if I had more complicated needs.
Registry queries the easy way
Another topic that I’ve seen resurface in the forums I frequent is reading remote registries. If you know exactly what you’re looking for it doesn’t get any easier than using REG.EXE from the command line. Here’s how to use it and a batch file ready for you to use.
Got-PowerShell Revisited
Last week I showed a PowerShell function that used WMI to remotely query a machine to determine if PowerShell was installed. Well, like most things Microsoft there’s often more than one way to accomplish a task. Here is a different version of essentially the same function. This version, however, uses the .NET framework and the Microsoft.Win32.Registry class.