You can apply labels with a script, but you can't lock them down unless you block the toolbar commands. See http://www.outlookcode.com/codedetail.aspx?id=823 for a code sample.

Signature
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Is there anyway to either change the default label settings in Outlook,
> propogate them through the Exchange server, or lock the settings on the
> mailbox? Essentially, we're trying to achieve uniform label settings across
> an intranet and any suggestions you have to effect that are appreciated.
SAMAS - 14 May 2007 17:44 GMT
Okay, tried implementing the script but now I'm getting
E_ACCESSDENIED(80070005) after commented out the error skipping lines. I made
sure Server Scripting is enabled in Outlook, reinstalled it, and installed
SP2 all to no avail. I tried manually registering scrptxtn.dll and get error
entry point not found/does not appear to be a .DLL file.
Thoughts?
> You can apply labels with a script, but you can't lock them down unless you block the toolbar commands. See http://www.outlookcode.com/codedetail.aspx?id=823 for a code sample.
>
> > Is there anyway to either change the default label settings in Outlook,
> > propogate them through the Exchange server, or lock the settings on the
> > mailbox? Essentially, we're trying to achieve uniform label settings across
> > an intranet and any suggestions you have to effect that are appreciated.
Sue Mosher [MVP-Outlook] - 14 May 2007 18:51 GMT
That error suggests that the user running the script doesn't have owner-level permission on the folder being modified.
Server scripting has nothing to do with this task; it's used for creating event scripts on Exchange, not for performing client operations.

Signature
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Okay, tried implementing the script but now I'm getting
> E_ACCESSDENIED(80070005) after commented out the error skipping lines. I made
[quoted text clipped - 10 lines]
>> > mailbox? Essentially, we're trying to achieve uniform label settings across
>> > an intranet and any suggestions you have to effect that are appreciated.