How to use WMIC.EXE for remote registry access

G

Guest

Hi, i try to create a batch file with WMIC.EXE to create/delete registry keys
on remote machines and found no example or any usable documentation about
that (only that it should be possible, but no example or needed command line
parameters).

I'm aware of many VB scripts at scriptcenter / technet, but nothing with
WMIC.EXE. Unfortunatly my boss isn't willing to accept VB, as an alternativ
only a Perl-script.

Does anybody have experience with this kind of usage of WMIC.EXE ?
Thanks, Hans
 
W

Wesley Vogel

wmic /?

Type the following line into the Run command...

hh ntcmds.chm::/wmic.htm

A Description of the Windows Management Instrumentation (WMI) Command-Line
Utility (Wmic.exe)
http://support.microsoft.com/kb/290216

[[Use Windows Management Instrumentation
You can use WMI to automate administrative tasks (such as editing the
registry) in an enterprise environment. You can use WMI in scripting
languages that have an engine on Windows and that handle Microsoft ActiveX
objects. You can also use the WMI Command-Line utility (Wmic.exe) to modify
the Windows registry.

For additional information about WMI, visit the following Microsoft Web
site:
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/wmi_start_page.asp

For additional information about the Wmic.exe, click the following article
number to view the article in the Microsoft Knowledge Base:

A description of the Windows Management Instrumentation command-line utility
http://support.microsoft.com/kb/290216 ]]
from...
How to back up, edit, and restore the registry in Windows XP and Windows
Server 2003
http://support.microsoft.com/kb/322756

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

Guest

That's all very nice, but it isn't the answer to my question. I already read
many of these infos and many script samples. But there isn't any other docu
public available, which describes the syntax and the parameters necessary for
the command line usage of WMIC to manipulate the registry in any way.

Thanks, Hans

Wesley Vogel said:
wmic /?

Type the following line into the Run command...

hh ntcmds.chm::/wmic.htm

A Description of the Windows Management Instrumentation (WMI) Command-Line
Utility (Wmic.exe)
http://support.microsoft.com/kb/290216

[[Use Windows Management Instrumentation
You can use WMI to automate administrative tasks (such as editing the
registry) in an enterprise environment. You can use WMI in scripting
languages that have an engine on Windows and that handle Microsoft ActiveX
objects. You can also use the WMI Command-Line utility (Wmic.exe) to modify
the Windows registry.

For additional information about WMI, visit the following Microsoft Web
site:
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/wmi_start_page.asp

For additional information about the Wmic.exe, click the following article
number to view the article in the Microsoft Knowledge Base:

A description of the Windows Management Instrumentation command-line utility
http://support.microsoft.com/kb/290216 ]]
from...
How to back up, edit, and restore the registry in Windows XP and Windows
Server 2003
http://support.microsoft.com/kb/322756

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Hans said:
Hi, i try to create a batch file with WMIC.EXE to create/delete registry
keys on remote machines and found no example or any usable documentation
about that (only that it should be possible, but no example or needed
command line parameters).

I'm aware of many VB scripts at scriptcenter / technet, but nothing with
WMIC.EXE. Unfortunatly my boss isn't willing to accept VB, as an
alternativ only a Perl-script.

Does anybody have experience with this kind of usage of WMIC.EXE ?
Thanks, Hans
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top