Results 1 to 2 of 2

Thread: Help - add policy rule

  1. #1
    Join Date
    Dec 2011
    Posts
    1

    Help - add policy rule

    hello every body.
    i am using windows xp.
    i create the local policy sercurity



    Uploaded with ImageShack.us



    Uploaded with ImageShack.us



    Uploaded with ImageShack.us

    i create rule for many file type: bat, cmd, com...

    can you help me create the rule automatic use script?

    thanks.

    //vncn820

  2. #2
    Join Date
    Dec 2007
    Posts
    459

    Re: Help - add policy rule

    I think that a "run a script" rule action actually uses not an external script but a VBA procedure with a MailItem or MeetingItem as its parameter. That item is processed by the code:

    Code:
    Sub RunAScriptRuleRoutine(MyMail As MailItem)
    Dim strID As String
    Dim olNS As Outlook.NameSpace
    Dim msg As Outlook.MailItem
    
    strID = MyMail.EntryID
    Set olNS = Application.GetNamespace("MAPI")
    Set msg = olNS.GetItemFromID(strID)
    ' do stuff with msg, e.g.
    MsgBox msg.Attachments.Count
    
    Set msg = Nothing
    Set olNS = Nothing
    End Sub

Similar Threads

  1. Replies: 2
    Last Post: 17-12-2013, 09:10 PM
  2. Service Policy rule setup on 5510 for SMTP traffic
    By Falynn in forum Networking & Security
    Replies: 3
    Last Post: 01-10-2011, 01:46 AM
  3. Folder Redirection policy object don't exist in group policy
    By Mohammad_dn in forum Operating Systems
    Replies: 3
    Last Post: 12-01-2011, 11:41 PM
  4. Replies: 3
    Last Post: 07-10-2009, 02:12 PM
  5. Replies: 3
    Last Post: 02-06-2008, 06:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,556,475.99332 seconds with 17 queries