RE: Programmatically Changing An Interface's Metric on XP



Hi Jake,

I forgot to mention, though the sample code in the KB posted in my last
reply uses script, you can also use WMI in C++:

#Creating a WMI Application Using C++ (Windows)
http://msdn2.microsoft.com/en-us/library/aa389762.aspx


Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: SNMP Alerts
    ... We converted some of the sample code, ... MSDN's WMI reference...grab functions for searching from script. ... > While i'm not an expert and creating wmi scripts I'm ... >>Windows server is recording snmptrap on the Event ...
    (microsoft.public.windows.server.general)
  • WMI user/group sample code for localized XP installs?
    ... I know how to get users and group information using WMI from Windows ... Does anyone have any sample code to return user and group information ...
    (microsoft.public.win32.programmer.wmi)
  • RE: Downloading Problem
    ... Event Type: Error ... WMI Windows Management Instrumentation ... The Windows Security Center Service has started. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Access is Denied after Win2K to XP Upgrade
    ... Repairing and re-registering the WMI ... MS-MVP Windows Shell/User ... Network Connections folder won't work right. ... A network error occurred in connecting to Windows Management ...
    (microsoft.public.windowsxp.setup_deployment)
  • RE: WMI Error
    ... Yes, try to look for third-party, like the Add-Ons mentioned in my earlier ... About Turning OFF the DEP protection, you can if you have a Good Anti-Virus ... P.S does starting the WMI service change any thing?. ... Turn on DEP for essential windows programs and services only. ...
    (microsoft.public.windowsxp.general)