Adding "Rules" via Scripts
David Schrader
07-09-2005, 11:22 PM
I know that this is a somewhat bizarre question to ask but
I've been asked to "preset" the OE mail agent for a large
number of users. I've also been told that I am to insure
that "a minimum of "spam" and "smut" should get through
upon initial entry.
Some of the items - username and the like are easy enough
to "trust" to the user via a piece of paper and their super-
visor. But hundreds of entries into a "rules" database is
asking *way* too much on the scale I'm talking about.
So, is there a way that a script can be used to automate
the addition of adding rules to an OE mail logon? In that
way as soon as the installation was complete this script
could be run to add all the rules. Everyone would get the
same rules. There would be no problem with typos or
rules being selectively omitted.
Just hoping but not holding my breath.
David Schrader
Florida State University
Jim Pickering
07-09-2005, 11:22 PM
You can create a set of rules by establishing them on one computer, then
exporting them as a reg file. The problem is that each user will have a
different GUID for their account in the registry, so that reg file would
have to be modified to change the GUID to agree with the one on the computer
it's to be installed on. If you want to try it, the key to export is the
following:
Rules are stored in the registry under the following key:
HKEY_CURRENT_USER\Identities\{GUID}\Software\Microsoft\Outlook
Express\5.0\Rules
GUID in the above is the big, long number that is created for each identity
you may have created. To do what you want (i.e., have identical rules on
both machines), you would have to open the Registry Editor and export the
key above to a reg file from Machine1 where you have the rules created.
Then go to Machine2 and export the same key for its identity and copy to the
clipboard the GUID identity for Machine2. Then using Notepad, open the
Machine1 reg file and edit the GUID to agree with the number copied from the
Machine2 key and save the revised file.
You could then copy and merge the revised reg file into Machine2. A fair
amount of work with several opportunities to do the wrong thing. If you are
not comfortable making changes to the registry, then ignore the comments.
If you do elect to do the procedure, make certain you have a backup of your
registry and are comfortable with restoring it before making any changes.
--
Jim Pickering, MVP, Outlook Express
https://mvp.support.microsoft.com/profile=F9F51EF1-4AE3-4D23-B2D8-1171988A62D6
Please deliver feedback to the newsgroup, so that others can be helped.
Thanks.
"David Schrader" <dfschrader@comcast.net> wrote in message
news:eiivcnlXFHA.2884@TK2MSFTNGP10.phx.gbl...
>I know that this is a somewhat bizarre question to ask but
> I've been asked to "preset" the OE mail agent for a large
> number of users. I've also been told that I am to insure
> that "a minimum of "spam" and "smut" should get through
> upon initial entry.
>
> Some of the items - username and the like are easy enough
> to "trust" to the user via a piece of paper and their super-
> visor. But hundreds of entries into a "rules" database is
> asking *way* too much on the scale I'm talking about.
>
> So, is there a way that a script can be used to automate
> the addition of adding rules to an OE mail logon? In that
> way as soon as the installation was complete this script
> could be run to add all the rules. Everyone would get the
> same rules. There would be no problem with typos or
> rules being selectively omitted.
>
> Just hoping but not holding my breath.
>
> David Schrader
> Florida State University
>
>
David Schrader
07-09-2005, 11:22 PM
Jim,
Thanks for replying. Unfortunately to much "intervention" if required
to make it as much "hands off" as possible. I suppose all of the export
and merge could be handled via a script but that just adds a layer of
complexity that would need to be fully understood if I were ever to
move on (a likelihood in these days a times).
I'll look into your suggestion though.
You'd have thought MS would have thought about making something
as vital as *rules* more easily accessible via scripts for enterprise
environments. (That, or have something like || HKEY_CURRENT_USER
\Identities\{ALLGUIDS}\Software\Microsoft\Outlook Express\5.0\Rules ||
that would let everyone share the same rule or set of rules.) [Where the
ALLGUIDS was some impossible GUID what Windows would "know" to
mean "everyone.]
Oh well, if you're going to wish for something wish for something BIG!
Thanks for your help.
David
"Jim Pickering" <jim.pickering@gmail.com> wrote in message news:O19SvGnXFHA.1404@TK2MSFTNGP09.phx.gbl...
> You can create a set of rules by establishing them on one computer, then
> exporting them as a reg file. The problem is that each user will have a
> different GUID for their account in the registry, so that reg file would
> have to be modified to change the GUID to agree with the one on the computer
> it's to be installed on. If you want to try it, the key to export is the
> following:
>
> Rules are stored in the registry under the following key:
> HKEY_CURRENT_USER\Identities\{GUID}\Software\Microsoft\Outlook
> Express\5.0\Rules
>
> GUID in the above is the big, long number that is created for each identity
> you may have created. To do what you want (i.e., have identical rules on
> both machines), you would have to open the Registry Editor and export the
> key above to a reg file from Machine1 where you have the rules created.
>
> Then go to Machine2 and export the same key for its identity and copy to the
> clipboard the GUID identity for Machine2. Then using Notepad, open the
> Machine1 reg file and edit the GUID to agree with the number copied from the
> Machine2 key and save the revised file.
>
> You could then copy and merge the revised reg file into Machine2. A fair
> amount of work with several opportunities to do the wrong thing. If you are
> not comfortable making changes to the registry, then ignore the comments.
> If you do elect to do the procedure, make certain you have a backup of your
> registry and are comfortable with restoring it before making any changes.
> --
> Jim Pickering, MVP, Outlook Express
> https://mvp.support.microsoft.com/profile=F9F51EF1-4AE3-4D23-B2D8-1171988A62D6
> Please deliver feedback to the newsgroup, so that others can be helped.
> Thanks.
>
>
>
>
>
> "David Schrader" <dfschrader@comcast.net> wrote in message
> news:eiivcnlXFHA.2884@TK2MSFTNGP10.phx.gbl...
>>I know that this is a somewhat bizarre question to ask but
>> I've been asked to "preset" the OE mail agent for a large
>> number of users. I've also been told that I am to insure
>> that "a minimum of "spam" and "smut" should get through
>> upon initial entry.
>>
>> Some of the items - username and the like are easy enough
>> to "trust" to the user via a piece of paper and their super-
>> visor. But hundreds of entries into a "rules" database is
>> asking *way* too much on the scale I'm talking about.
>>
>> So, is there a way that a script can be used to automate
>> the addition of adding rules to an OE mail logon? In that
>> way as soon as the installation was complete this script
>> could be run to add all the rules. Everyone would get the
>> same rules. There would be no problem with typos or
>> rules being selectively omitted.
>>
>> Just hoping but not holding my breath.
>>
>> David Schrader
>> Florida State University
>>
>>
>
Jim Pickering
07-09-2005, 11:22 PM
Sorry I couldn't be of more help, but what I outlined is all that we've got
for now. We'll have to wait and see what the next version will bring, but I
suspect we'll only have one identity with no ability to change so it may be
easier in the future, depending on your point of view. Thanks for the
feedback.
--
Jim Pickering, MVP, Outlook Express
"David Schrader" <dfschrader@comcast.net> wrote in message
news:erf6D9%23XFHA.1660@TK2MSFTNGP10.phx.gbl...
Jim,
Thanks for replying. Unfortunately to much "intervention" if required
to make it as much "hands off" as possible. I suppose all of the export
and merge could be handled via a script but that just adds a layer of
complexity that would need to be fully understood if I were ever to
move on (a likelihood in these days a times).
I'll look into your suggestion though.
You'd have thought MS would have thought about making something
as vital as *rules* more easily accessible via scripts for enterprise
environments. (That, or have something like || HKEY_CURRENT_USER
\Identities\{ALLGUIDS}\Software\Microsoft\Outlook Express\5.0\Rules ||
that would let everyone share the same rule or set of rules.) [Where the
ALLGUIDS was some impossible GUID what Windows would "know" to
mean "everyone.]
Oh well, if you're going to wish for something wish for something BIG!
Thanks for your help.
David
"Jim Pickering" <jim.pickering@gmail.com> wrote in message
news:O19SvGnXFHA.1404@TK2MSFTNGP09.phx.gbl...
> You can create a set of rules by establishing them on one computer, then
> exporting them as a reg file. The problem is that each user will have a
> different GUID for their account in the registry, so that reg file would
> have to be modified to change the GUID to agree with the one on the
> computer
> it's to be installed on. If you want to try it, the key to export is the
> following:
>
> Rules are stored in the registry under the following key:
> HKEY_CURRENT_USER\Identities\{GUID}\Software\Microsoft\Outlook
> Express\5.0\Rules
>
> GUID in the above is the big, long number that is created for each
> identity
> you may have created. To do what you want (i.e., have identical rules on
> both machines), you would have to open the Registry Editor and export the
> key above to a reg file from Machine1 where you have the rules created.
>
> Then go to Machine2 and export the same key for its identity and copy to
> the
> clipboard the GUID identity for Machine2. Then using Notepad, open the
> Machine1 reg file and edit the GUID to agree with the number copied from
> the
> Machine2 key and save the revised file.
>
> You could then copy and merge the revised reg file into Machine2. A fair
> amount of work with several opportunities to do the wrong thing. If you
> are
> not comfortable making changes to the registry, then ignore the comments.
> If you do elect to do the procedure, make certain you have a backup of
> your
> registry and are comfortable with restoring it before making any changes.
> --
> Jim Pickering, MVP, Outlook Express
> https://mvp.support.microsoft.com/profile=F9F51EF1-4AE3-4D23-B2D8-1171988A62D6
> Please deliver feedback to the newsgroup, so that others can be helped.
> Thanks.
>
>
>
>
>
> "David Schrader" <dfschrader@comcast.net> wrote in message
> news:eiivcnlXFHA.2884@TK2MSFTNGP10.phx.gbl...
>>I know that this is a somewhat bizarre question to ask but
>> I've been asked to "preset" the OE mail agent for a large
>> number of users. I've also been told that I am to insure
>> that "a minimum of "spam" and "smut" should get through
>> upon initial entry.
>>
>> Some of the items - username and the like are easy enough
>> to "trust" to the user via a piece of paper and their super-
>> visor. But hundreds of entries into a "rules" database is
>> asking *way* too much on the scale I'm talking about.
>>
>> So, is there a way that a script can be used to automate
>> the addition of adding rules to an OE mail logon? In that
>> way as soon as the installation was complete this script
>> could be run to add all the rules. Everyone would get the
>> same rules. There would be no problem with typos or
>> rules being selectively omitted.
>>
>> Just hoping but not holding my breath.
>>
>> David Schrader
>> Florida State University
>>
>>
>
Adding "Rules" via Scripts