System Event ID 129 source vhdmp

Hi All, i have a DC running Windows 2008 R2 and lately i have noticed the errors listed below which are being logged in the system log every 30 seconds! I have Windows Backup scheduled to backup the system state every night at 8pm. Please see below log and
help if you can. This questioned was posted previously but the answer given was to do with Filters in the registry and nothing to do with this particular error. Thank you all in advance.
Log Name:      System
Source:        vhdmp
Date:          25/02/2012 02:30:43
Event ID:      129
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      MYSEDC.company.com
Description:
The description for Event ID 129 from source vhdmp cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
\Device\RaidPort2
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="vhdmp" />
    <EventID Qualifiers="32772">129</EventID>
    <Level>3</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2012-02-25T02:30:43.559509300Z" />
    <EventRecordID>38439</EventRecordID>
    <Channel>System</Channel>
    <Computer> MYSEDC.company.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>\Device\RaidPort2</Data>
    <Binary>0F001800010000000000000081000480040000000000000000000000000000000000000000000000000000000000000000000200810004800000000000000000</Binary>
  </EventData>
</Event>
mcsa

Hi Mohammed, thanks for replying.
I have looked at both those posts the 1st one from "APLCMUL" only responds to the second potion of the original post which deals with filtering and forgets about the original 129 id.
The second suggestion from "Prem.Kr" has no solution mentioned, Prem.Kr only says he has resolved the issue but does not care to share the solution. if you look at the post right at the bottom from Mark Reynolds touches on Nics of which mine are all up to
date and since its a DC all replication etc is working perfectly well.
Thanks a lot for suggesting the above but for now they have not reslved my issue.
Welligton Vambe MCITP

Similar Messages

  • Event 129 Source "storahci" in Win8RTM

    I'm having log entries for event id 129 from source "storahci" ("Reset to device, \Device\RaidPort0, was issued.") in Win 8 RTM Enterprise (MSDN) on a Dell Precision M4500 with SSD OCZ-AGILITY3.
    These entries are in correlation with event id 153 from source "disk" ("The IO operation at logical block address ... for Disk 0 was retried.").
    I already saw a thread reporting this issue at "http://answers.microsoft.com/en-us/windows/forum/windows_cp-performance/windows-8-unresponsive-with-disk-reported-at-100/d4cf6b80-635e-4359-99ec-b9d453e731ee?page=2", but that thread is marked as "closed" with
    the remark "This thread applies to Windows 8 Consumer Preview. The thread is locked because the information in it might not be relevant or accurate as new versions of Windows 8 become available."
    Was anybody already able to fix that issue?
    Since this is the second SSD with that issue (the previous was one from Corsair), I cannot recommend running Windows 8 RTM on a laptop with an SSD installed, what makes me really sad.

    The BIOS is most likely set to RAID for sata operation. That would require that the Intel RApid Storage drivers from Dell
    here for the M4500 be added during a clean installation at the select a partition stage, ADD Drivers and point to the files on external storage media. Win 7 only available at this time from Intel or Dell.
    The RTM may not have those in-the-box yet. Intel will provide those to MS later. Win 7 has those.
    So, I would say that you could try an F8 repair mode to add drivers or you may have to reinstall again to add the drivers.
    Any joy?

  • Continuous "36888 Schannel Errors" in System Event Log when NOT connected to Internet

    We are hoping someone will be able to assist with us this very strange issue please ?
    We are using Windows 8.1 x64 Enterprise with Office 2013 and the latest Symantec Endpoint Proctecion v12.1.5 installed. They are managed using SCCM2012 in a large AD domain environment
    When our workstations are NOT connected to the internet (only local intranet) the following errors appear in SYSTEM event log almost continuously (several times a minute).
    Event ID:36888  User: SYSTEM  OpCode:Info  Level:Error  Source:SChannel 
    "A fatal alert was generated and sent to the remote endpoint. This may result in termination of the connection. The TLS protocol defined fatal error code is 70. The Windows Schannel error state is 11."
    The process associated with these events is "Local Security Authority Process"
    When an internet connection is enabled for these machines these 36888 errors will suddenly stop !.
    An event "Error 36887 "A fatal alert was received from the remote endpoint. The TLS protocol defined fatal alert code is 40." Is also occurring on these machines but only occasionally.
    As a result, We suspect there must be a process continuously attempting to connect to an internet service and failing ?.
    Some of the things we have tried so far;
    - We have disabled all non-essential services (e.g. Windows Store Service) one by one but this didn't fix.
    - We have tried disabling Tile updates on Start 
    - We have tried a bunch of different Group Policy settings to disable different combinations of TLS/SSL in IE config.
    - We have searched the internet forums and tried some suggested fixes but this combination of error state and error code seems unique ?.
    It doesn't happen on our Windows 7 x64 workstations that have much same apps & configuration.
    Any advice or suggestions would be greatly appreciated !
    Thanks.

    Hi Makes006,
    This Event ID 36888 occurs if a user tries to access a web site using HTTP but specifies an SSL port in the URL.
    We can try clean boot to troubleshoot whether this issue is caused by a third party program .
    How to perform a clean boot in Windows
    http://support.microsoft.com/kb/929135
    If there is no sensible impacts on operating the machines ,we can try to disable this log by modify the following registry key value to 0.
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SecurityProviders\SCHANNEL\EventLogging
    For more information, please refer to the following link:
    How to enable Schannel event logging in IIS
    http://support.microsoft.com/kb/260729
    Regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Event id 6037 source Lsaserv

    hello All .
    I have system warning on both DAG Exchange 2010 sp3  servers (Event id 6037 source Lsaserv )
    "The program svchost.exe, with the assigned process ID 1728, could not authenticate locally by using the target name HOST/servername\. The target name used is not valid. A target name should refer to one of the local computer names, for example,
    the DNS host name.
     Try a different target name."
    how can fix it .
    Thank you

    Hello,
    Please try the the following suggestions in the similar thread:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/05cedf19-cd02-4c26-9651-4b5d5f46d58b/event-6037-lsasrv?forum=operationsmanagergeneral
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • System Events keeps crashing

    First of all, forgive me if there is a more appropriate category for this to be posted in. I couldn't think of anything better suited to this exact issue.
    On every boot, OS X brings up a standard "Application quit unexpectedly" dialogue for System Events. I can simply close this and disregard it, and it does not affect operation in any way.
    However, just recently I have found that when I attempt to launch Adium, the open-source IM client, it hangs for a good deal of time and then brings up the same dialogue. Adium, in the end, is unable to start and must be forcefully terminated.
    I was wondering if there might be any relation between the two occurrences. I do not know exactly what System Events is responsible for, and if someone could enlighten me, perhaps I could go about fixing the annoyance at startup, and possibly the problem with Adium at the same time.
    Thanks in advance.
    Oh, another note: both problems started very recently, at least one of them around the time I updated to 10.4.11.

    You can certainly remove System Events from Login Items, and I suggest you do. It serves no useful purpose by being launched independently in that way. It will be 'called' (transparently) by an AppleScript (or something similar) as and when needed. The time penalty for it not already running will be indiscernible.
    However, sorry to tell you, but removing it as a login item is unlikely to make a scrap of difference to anything. Having System Events made to run in that way is unnecessary but should not be harmful in any way: it just runs consuming no CPU, only being used when 'called' by an app, and it is the app that is doing the calling that I would suspect. Did you also check /Library/StartupItems?
    There is the remote (very remote) possibility that System Events.app itself is corrupted. You can easily check that. Launch Script Editor (in /Applications/AppleScript), paste this line:
    tell app "System Events" to say "Hello Benjamin"
    Hit <Enter>. The line should format (the text will change its appearance) without error; then hit the 'Run' button. If, as I expect, that causes no error, you are condemned to carry on playing "hunt the app".
    Does the error message appear when you log into another account? (Create a temporary account if needed, and then delete it).

  • My machine got restarted with event 1074 and source user32

    Hi Expert,
    One of our employee's computer got restarted while working. While checking the event log's under SYSTEM i found only this sustable event for restart.
    Event ID - 1074
    Source - USer32
    The process setup.exe has initiated the restart of computer PTD09487 on behalf of user NT AUTHORITY\SYSTEM for the following reason: No title for this reason could be found
    Reason Code: 0x2
    Shutdown Type: restart
    Comment:
    1. How can i find out what set.exe was runned or who initiated it ?
    2. What does this event id means other than restart ?
    3. what more option should i check to know why this restart took place ?
    4. If this has happend due to Windows update. How can confirm that there was a message show to user for restart ? Because normally in our GPO we have configured to display restarting msg to user before 30 mins .
    Please Let me know if i posted in wrong forum.

    Hi,
    If this situation occur for Windows Update, user will receive a restart message.
    If it's not this situation, please create a new user to see if it occur.
    If yes, please fix your corrupted user profile:
    Fix a corrupted user profile
    http://windows.microsoft.com/en-in/windows/fix-corrupted-user-profile#1TC=windows-7
    If no, please repair the system using your installation media:
    Create a system repair disc
    http://windows.microsoft.com/en-in/windows7/create-a-system-repair-disc
    Karen Hu
    TechNet Community Support

  • IPs system events and restart

    Hi,
    I am looking at monitoring the IDS system events like adding users/sensor application restart,interface down with a SDEE client.Does system events like this get logged in detail to the event store to be picked up by the API ...or is there something i need to do with my CIPS ver 6 to get it across with verbose messages .
    Thanks and appreciate

    Simply go into your IPS and create an "Event Action Filter." Simply modify the source address with that of your scanning system. You can leave the rest pretty much stock or, adjust the destination to the subnet of your DMZ. Also, you'll want to keep an eye on the areas to subtract. Making sure to take away the deny actions, and if necessary, reporting as well.
    http://www.cisco.com/en/US/docs/security/ips/6.1/configuration/guide/ime/ime_event_monitoring.html

  • Applescript's System Events forces Mac OS Roman encoding?

    I have written an Applescript which reads the first line of a UTF-8 text file. That string is used to "set value" a particular text area of an IRC client (Textual).
    Unfortunately, any characters not native to Mac OS Roman encoding (unicode-only characters, asian-only glyphs) are substituted for Mac OS Roman characters.
    For example: 
    旦 welcome
      is written into the text area as: 
    Êó¶ welcome
    How can I force the text back into UTF-8 encoding, or fix this issue?
    my script:
    set source to "/Users/admin/Documents/file.txt" --UTF-8 file
    set N to paragraphs of (read POSIX file source)
    set phrase to first item of N
    tell application "Textual" --IRC client
    activate
    tell application "System Events"
        delay 0.3
        set value of text area 1 of scroll area 1 of window 1 of process "Textual" to phrase
        --the main text entry field of this application
        keystroke return
    end tell
    end tell

    Nothing is "forced"; how a file is read is determined by your system's language settings - for English, this is usuallly MacRoman.  To read in a different encoding, use the read command's as parameter to specify, for example:
        read POSIX file source as «class utf8»

  • Windows 8.1 - Windows Couldn't connect to the System Event Notification Service service

    I have an issue that has been bothering me for a while on new 8.1 computers. Standard users are not able to log into the computer on the first try consistently. They receive the error message: Group Policy client service failed the sign-in access is
    denied. They are stuck at the logon screen.
    If an administrator logs in (local or domain), they can log in but get a black desktop with two error messages. The first is Location is Not available - C:\Windows\system32\config\systemprofile\Desktop is unavailable. The second error message is a popup
    balloon. It states "Failed to Connect to a Windows service. Windows couldn't connect to the System Event Notification Service service."
    When a standard user attempts to log in, event viewer records three warnings. They are listed in order from oldest to newest
    The winlogon notification subscriber <Profiles> was unavailable to handle a critical notification event. -Logged 9:14:44
    The winlogon notification subscriber <GPClient> failed a critical notification event. - Logged 9:14:44
    The winlogon notification subscriber <Profiles> was unavailable to handle a notification event. - Logged 9:14:49
    After a reboot, users still have the issue. I noticed that the user profile services and system event notification service are not running though their startup type is automatic. They start after a minute or two.

    Hi Joseph__Moody,
    Based on your description ,I assume it is a domain environment .First of all ,I would suggest you to try to update all the machine .
    "I have an issue that has been bothering me for a while on new 8.1 computers"
    Do you mean all the Windows 8.1 machine share the same symptom or just a specific one ?Did the machine work correctly before ?When did the issue start to occur ?Have you installed any third party software before ?Can we operate the machine when we login with
    an administrator account ?
    If the issue occurred with the specific machine :
    "The first is Location is Not available - C:\Windows\system32\config\systemprofile\Desktop is unavailable."
    Please try the following suggestions if we can operate the machine when we login with the administrator account :
    Open Windows Explorer and navigate to: C:\Windows\system32\config\systemprofile and verify if it has the Desktop folder there.If the folder doesn`t exit, we can copy from C:\users\Default\Desktop location(This folder is hidden by default).
    We also can try the following suggestions to have a troubleshoot :
    1.Run "sfc /scannow"or "dism /online /cleanup-image /restorehealth" to check the health of the system files.
    2.Perform a full scan with an antivirus software.
    3."They start after a minute or two."
    I suspect there is a third party service confilct here. Please perform a clean boot to verify whether there is a third party conflict here .
    How to perform a clean boot in Windows
    https://support.microsoft.com/en-us/kb/929135
    If the issue occurred with multiple machines in the domian ,I would suggest you to check whether you have configured any logon scripts and logon group policy .We can remove the machine from the domain to have  a troubleshoot .
    If the issue occurred recently ,we can perform a system restore to recover the machine to a previous normal point.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected].

  • Open file With System Events

    i have a backup and sychronizing program called Synk that is currently unscriptable. I want to set up folder action so that when i plug various drives in this program opens the correct backup files and the program.
    So far i have managed to get the program to open and i have managed to get the open dialog box up, i have also managed to get it to click the right button to start the process. Where this fails is when selecting the correct backup file. The open dialog box appears and i can see which one i want it to select, but i am unsure of how i get system events to select a specified item from the open dialog box. It also fails to initalize when the drive is inserted.
    on adding folder items to this_folder after receiving added_items
    if (added_items as string) contains "Humphrey" then
    --set bup to file "Humphrey To University.sknd" of folder "Backup documents" of folder "documents" of "home"
    tell application "Synk"
    activate
    tell application "System Events"
    key code 31 using {command down}
    -- open bup
    -- (click the radio button "Open" of window) open
    tell process "Synk"
    click the button "Run" of the front window
    end tell
    end tell
    end tell
    end if
    end adding folder items to
    Rich

    Richard,
    Does this help:
    tell app "Finder" to open file "Humphrey To University.sknd" of folder "Backup documents" of folder "documents" of "home"
    It should open Synk for you with the target settings file.
    Reese

  • AppleScript 10.9.0 System Events -10006  Update property list file item

    Have AppleScript that runs without error on Mountain Lion 10.8.5, but errors out on Mavericks  10.9.0.
    At end of script, property list items need to be updated and this is when error occurs.
    Put together a subset of the script, see below) that get the error
    Statement reads "set value of property list item "ArrayList001" to ArrayList001"
    Text of error:
         error "System Events got an error: 'xxx.plist' is not a property list file."
         number -10006 from contents of property list file "xxx05.plist"
    =============================================================================
    property myPListFile : "cbmck05.plist"
    property myPListFilePath : ""
    property constPreviousRunDay : "PreviousRunDay"
    on run
       set today to "Date01" as string
              set List001 to {}
              set List002 to {}
              set myPListFilePath to ""
              repeat with i from 1 to 8
                        set end of List001 to (i * 2) as string
              end repeat
              set myPListFilePath to path to desktop folder from user domain as string
              set fileMyPList to (myPListFilePath & myPListFile) as string
    clear_file(fileMyPList)
    -- First time! need to initalize
              tell application "System Events"
      -- create an empty property list dictionary item
                        set the parent_dictionary to make new property list item with properties {kind:record}
      -- create new property list file using the empty dictionary list item as contents
                        set new_plistfile to ¬
      make new property list file with properties {contents:parent_dictionary, name:fileMyPList}
      make new property list item at end of property list items of contents of new_plistfile ¬
      with properties {kind:string, name:constPreviousRunDay, value:today}
      make new property list item at end of property list items of contents of new_plistfile ¬
                                  with properties {kind:list, name:"ArrayList001"}
      make new property list item at end of property list items of contents of new_plistfile ¬
                                  with properties {kind:list, name:"ArrayList002"}
              end tell
              set previousRunDate to today
              set xxList to (repopulate_lists())
              set ArrayList001 to List001
              set ArrayList002 to List002
    -- save info in the plist file
              tell application "System Events"
                        tell property list file fileMyPList
                                  tell contents
                                            set value of property list item constPreviousRunDay to previousRunDate
                                            set value of property list item "ArrayList001" to ArrayList001     --   <<< ------- error caused by the statement
                                            set value of property list item "ArrayList002" to ArrayList002
                                  end tell
                        end tell
              end tell
    end run
    -- ==========================================
    on repopulate_lists()
              set newList to {}
              set List002 to {}
              repeat with i from 1 to 8
                        set end of newList to i as string
              end repeat
              set List001 to newList
              return List001
    end repopulate_lists
    -- ==========================================
    -- Does the file exist?
    on fileExists(f)
              try
      f as string as alias
                        return true
              on error errMsg number errNum
                        return false
              end try
    end fileExists
    -- Delete the  files if exist
    on clear_file(aFile)
              if fileExists(aFile) then
                        tell application "Finder"
                                  set resultObject to delete aFile
                        end tell
              end if
    end clear_file

    Here's an AppleScript handler that partially works around this bug (warning: it turns each list item into a string).
    on plistWrite(plistPath, plistItemName, plistItemValue)
      -- version 1.1, Daniel A. Shockley
      -- 1.1 - rough work-around for Mavericks bug where using a list for property list item value wipes out data
              if class of plistItemValue is class of {"a", "b"} and AppleScript version of (system info) as number ≥ 2.3 then
      -- Convert each list item into a string and escape it for the shell command:
      -- This will fail for any data types that AppleScript cannot coerce directly into a string.
                        set plistItemValue_forShell to ""
                        repeat with oneItem in plistItemValue
                                  set plistItemValue_forShell to plistItemValue_forShell & space & quoted form of (oneItem as string)
                        end repeat
                        set shellCommand to "defaults write " & quoted form of POSIX path of plistPath & space & plistItemName & space & "-array" & space & plistItemValue_forShell
      do shell script shellCommand
                        return true
              else -- handle normally, since we aren't dealing with Mavericks list bug:
                        tell application "System Events"
      -- create an empty property list dictionary item
                                  set the parent_dictionary to make new property list item with properties {kind:record}
                                  try
                                            set plistFile to property list file plistPath
                                  on error errMsg number errNum
                                            if errNum is -1728 then
                                                      set plistFile to make new property list file with properties {contents:parent_dictionary, name:plistPath}
                                            else
                                                      error errMsg number errNum
                                            end if
                                  end try
                                  tell plistFile
                                            try
                                                      tell property list item plistItemName
                                                                set value to plistItemValue
                                                      end tell
                                            on error errMsg number errNum
                                                      if errNum is -10006 then
      make new property list item at ¬
                                                                          end of property list items of contents of plistFile ¬
      with properties ¬
                                                                          {kind:class of plistItemValue, name:plistItemName, value:plistItemValue}
                                                      else
                                                                error errMsg number errNum
                                                      end if
                                            end try
                                  end tell
                                  return true
                        end tell
              end if
    end plistWrite

  • A JAVA PROGRAM TO CONTROL SYSTEM EVENTS OF WIDOWS XP

    Hello everyone.
    The question is: can I develop a java program that can control system events of a windows environment? For example a program to shut down the computer, log off or open and close windows applications?
    If so, how can i do that??
    please help me. Your help is appreciated in advance.
    thanks.
    Wakariuki

    Hi,
    If you want to make native calls, you can use JNI (Java Native Interface).
    Using JNI, you call call any C/C++ funtions.
    Please visit, http://java.sun.com/docs/books/jni/ for JNI structure. To program using JNI, read the book given in the link. It is very useful for beginners.

  • A JAVA PROGRAM TO CONTROL SYSTEM EVENTS OF WIDOWS environment

    Hello everyone.
    The question is: can I develop a java program that can control system events of a windows environment? For example a program to shut down the computer, log off or open and close windows applications?
    If so, how can i do that??
    please help me. Your help is appreciated in advance.
    thanks.
    Wakariuki

    Hi,
    If you want to make native calls, you can use JNI (Java Native Interface).
    Using JNI, you call call any C/C++ funtions.
    Please visit, http://java.sun.com/docs/books/jni/ for JNI structure. To program using JNI, read the book given in the link. It is very useful for beginners.

  • Windows 8 system doesn't get internet, says system event log on service has some problem of STOP 0xC000021A error which system restarts very slowly

    Hi, my system runs on windows 8 on hp laptop envy series. All of a sudden, system event log on service stopped, errors which prevented the system to log on services. It displayed error of STOP 0xC000021A when i use system restore to roll back to previous
    configuration. Also when I tried to refresh my pc, it says i can't do changes as log in was switched to prevent the changes by notification.I don't know what to do next, I tried to put recovery dvds which I made when system was bought, now not at all working.
    Internet is not active, not able to resolve by trouble shooting and system taking lot of time to get dsktop. Previously I used to get my desktop in 10 seconds. Now its 10 min. May be I m infected with virus. My files, they are there. I tried to transfer some
    files by pendrive to another system, now the new system(where i put my files in another system) crashed, windows 7 system which does not display desktop, icons etc and not at all workable. 
    Also in my hp system, i m unable to open control panel. if its opened, it will not go off, when i use task manager, it says explorer and shuts down. I had to force restart the system. Please resolve something to get my hp laptop workable. I m waiting for
    my MS thesis to be working on that. My files are locked and no way to transfer, I fear of infected by virus to another computer also. 
    Pls give instructions to hw to set my hp laptop at the earliest without losing any of the files. Idon't want to reinstall and lose all the data for timebeing. Else, inform me the option for copying data safely. I tried to change the adv startup and recovery
    by changing the boot sequence by DVD but this also shows error 0xC000021A and asks us to see the details. I didn't understand all this. Pls help asap.
    Thanks
    venkata
    STOP 0xC000021A

    MV
    If you can boot either from the win 8 dvd or in safe mode we need the DMP files
    We do need the actual DMP file as it contains the only record of the sequence of events leading up to the crash, what drivers were loaded, and what was responsible.  
    WE NEED AT LEAST TWO DMP FILES TO SPOT TRENDS AND CONFIRM THE DIAGNOSIS.
    Please follow our instructions for finding and uploading the files we need to help you fix your computer. They can be found here
    If you have any questions about the procedure please ask
    Wanikiya and Dyami--Team Zigzag

  • System Events not working correctly with Acrobat Professional

    Hey Guys, I have a script that I have written that automatically enables security settings on a PDF through Acrobat Professional. Because of Acrobats poor scriptability I am forced into doing much though System Events.
    This is not a major problem... however when activating some settings in the security settings, often warning Alert dialog boxes appear when you tell System Events to enable particular settings. These Alerts do not have a title... The only way I have been able to get the script to deal with them is with the following code:
    if title of front window is "" then
        tell front window
            click button "OK"
        end tell
    end if
    I guess this is an ok solution... bit hard to identify windows when they don't have titles...
    BUT this is not my main problem. The main problem is that the script gets to one of these alert dialog boxes and just sits there... It sits there for like 10 seconds and then it performs the "click button "OK"" command.
    This is a problem as there are like 3 of these instances and it really adds up. Can anybody help me... I am using Acrobat Professional 8.2.0 and the entire code is:
    tell application "System Events"
        try
            tell process "Acrobat"
                -- Enable security settings
                click menu item "Properties..." of menu "File" of menu bar item "File" of menu bar 1
                tell window "Document Properties"
                    tell tab group 1
                        click radio button "Security"
                        tell group "Document Security"
                            click pop up button 1
                            click menu item 2 of menu 1 of pop up button 1
                        end tell
                    end tell
                end tell
                tell window "Password Security - Settings"
                    click pop up button 1
                    click menu item 4 of menu 1 of pop up button 1
                    tell group "Permissions"
                        click checkbox "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
                        click text field 1
                        keystroke pdfPassword
                        click pop up button 1
                        click menu item 2 of menu 1 of pop up button 1
                        click pop up button 2
                        click menu item 4 of menu 1 of pop up button 2
                    end tell
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Adobe Acrobat - Confirm Permissions Password"
                    click text field 1
                    keystroke pdfPassword
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Document Properties"
                    click button "OK"
                end tell
    end tell
        on error
            display alert "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator."
        end try
    end tell
    A delay does not work... its like as soon as I click the "OK" button it stalls for 10 seconds or does not know that is meant to continue... because I did this:
    tell window "Password Security - Settings"
        click button "OK"
    end tell
    beep
    In this situation it still takes like 10 seconds for the beep to occur after the click button "OK" command.

    Hey Guys, I have a script that I have written that automatically enables security settings on a PDF through Acrobat Professional. Because of Acrobats poor scriptability I am forced into doing much though System Events.
    This is not a major problem... however when activating some settings in the security settings, often warning Alert dialog boxes appear when you tell System Events to enable particular settings. These Alerts do not have a title... The only way I have been able to get the script to deal with them is with the following code:
    if title of front window is "" then
        tell front window
            click button "OK"
        end tell
    end if
    I guess this is an ok solution... bit hard to identify windows when they don't have titles...
    BUT this is not my main problem. The main problem is that the script gets to one of these alert dialog boxes and just sits there... It sits there for like 10 seconds and then it performs the "click button "OK"" command.
    This is a problem as there are like 3 of these instances and it really adds up. Can anybody help me... I am using Acrobat Professional 8.2.0 and the entire code is:
    tell application "System Events"
        try
            tell process "Acrobat"
                -- Enable security settings
                click menu item "Properties..." of menu "File" of menu bar item "File" of menu bar 1
                tell window "Document Properties"
                    tell tab group 1
                        click radio button "Security"
                        tell group "Document Security"
                            click pop up button 1
                            click menu item 2 of menu 1 of pop up button 1
                        end tell
                    end tell
                end tell
                tell window "Password Security - Settings"
                    click pop up button 1
                    click menu item 4 of menu 1 of pop up button 1
                    tell group "Permissions"
                        click checkbox "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
                        click text field 1
                        keystroke pdfPassword
                        click pop up button 1
                        click menu item 2 of menu 1 of pop up button 1
                        click pop up button 2
                        click menu item 4 of menu 1 of pop up button 2
                    end tell
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Adobe Acrobat - Confirm Permissions Password"
                    click text field 1
                    keystroke pdfPassword
                    click button "OK"
                end tell
                if title of front window is "" then
                    tell front window
                        click checkbox 1
                        click button "OK"
                    end tell
                end if
                tell window "Document Properties"
                    click button "OK"
                end tell
    end tell
        on error
            display alert "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator."
        end try
    end tell
    A delay does not work... its like as soon as I click the "OK" button it stalls for 10 seconds or does not know that is meant to continue... because I did this:
    tell window "Password Security - Settings"
        click button "OK"
    end tell
    beep
    In this situation it still takes like 10 seconds for the beep to occur after the click button "OK" command.

Maybe you are looking for