in reply to Re: Need to modify windows system file.
in thread Need to modify windows system file.

I want turn off some of the options in win7 Action center via script. So i want to access that file. It can be accessed through VB Script. I can able to solve the issue by VB script (It's like keyboard macro).

But in some environment it's not supported. So i really want that run as a real script and not like keyboard macro.
  • Comment on Re^2: Need to modify windows system file.

Replies are listed 'Best First'.
Re^3: Need to modify windows system file.
by BrowserUk (Patriarch) on May 13, 2011 at 08:20 UTC
    I want turn off some of the options in win7 Action center via script.

    So, you don't want to edit the file, but rather, run the program contained in the file and manipulate the dialog it displays.

    Perhaps if you posted the VB code here, then someone might be able to help you write an equivalent Win32::OLE script.

    Alternatively, it might be possible to do what you want using Win32::GuiTest.

    But in some environment it's not supported.

    I find it strange that a company would restrict access to VB, but allow Perl to be installed.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Hi,

      I am using Windows 7 Enterprise 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_rtm.101119-1850).

      I want to disable the followings in wscui.cpl

      1. Network Firewall.
      2. Spyware and related production
      3. User Account Control
      4. Virus production
      5. Windows Backup
      6. Check for update
      7. Windows trouble shooting


      I want to enable the followings in wscui.cpl

      1. Windows update
      2. Internet security setting.

      The code not working because of "SendKeys". It jst like key board macro.

      Let me know anything else you need.

      Thanks
      Srinivasan.K

        Win32::GuiTest has SendKeys.

        Personally, I would make such setting changes through system policies. I presume there is a kit that creates and distributes these policies. This is far less fragile than trying to keep up with a changing UI and sending keystrokes to manipulate it.

        Also, when automating by sending keystrokes, I found it much less fragile to send ALT+... codes to trigger the hotkeys for each option instead of tabbing through the options.