This is really not something you want to use Perl for. I would create a registry file (.reg) of the keys you want to change; use regedit to do that.

You can then use regedit again to insert the registry values into other workstations, or there are a few other ways to do it as well. The best way would be to use System Policy Editor from the DC so that the changes are made as people log in. (See O'Reilly's System Policy Editor, or the Microsoft KnowledgeBase for more information on doing that; it's not too complicated). Another, similar method is to build a batch script file to import the .reg file as a logon script; that's also not too complicated.

The last method I would use would be Perl. This is one case where the Swiss Army Chainsaw is the wrong tool for the job.

- email Ozymandias

In reply to RE: setting remote registry values by Ozymandias
in thread setting remote registry values by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.