EEM: SAPGUI scripting not enabled on server

Hi Gurus,
I have setup SAPGUI EEM monitoring via SOLMAN 7.1 but after deployment there's an error message "SAPGUI scripting not enabled on server()-214722150:disabledByServer=True". I already checked the backend system, and the paramater of sapgui/user_scripting is set to TRUE.
Please advise what else do I need to check in order for the SAPGUI scripting to be working in EEM? Is there any additional parameter that I need to change in the backend system?
Thanks,
Virgilio

Hi Virgilio,
See this link is usefully
Security for the Use of SAP GUI Scripting - eCATT Security Guide - SAP Library
Regards,
Deva

Similar Messages

  • Java script not enabled

    I want to email a web page to my friends but the illustrations in the web page do not show up in the email. Instead the is a note that says "Java Script not enabled." If I go to Safari Preferences and go to the security tab, Java Script is checked to be enabled. How can I get these illustrations into my email? What is the problem?
    Thank you,
    Carl

    Try re-installing Java.
    Java - Install

  • ECATT - Scripting not enabled

    Hey,
    I have eCATT working on my Solution Manager 3.2 with Web AS 6.20. I have tried using SAPGUI 6.2 and SAPGUI 6.4 as well, but whenever i try to record any transaction through SAPGUI(record) on my test, production, QA or Dev server, it gives me a warning that Scripting is not enabled on target system, hence no recording would be performed. So, script is not recorded.
    I have the parameter "sapgui/user_scripting" on all my servers and its value is set to TRUE. What could be the problem, could anyone please help me out.
    Regards,
    Bilal

    Hello,
    did you make the appropriate settings to the clients in which you want to use eCATT. On SAP Support Portal is a note:519858. Please take a look!
    Regards,
    GP

  • The debugger agent is not enabled on server....

    We have to weblogic instances and IDM is deployed in both these instances.
    When I am trying to start the debugger on server1 I do get this error:
    +'The debugger agent is not enable on server2: To enable, please set the SystemConfiguration property serversettings.server2(or default).debugger.enabled=true and restart your application server.+
    I have checked and modifed the sys.config object in both the instances and restarted the server instances on both but still the error persisted.
    Am I missing anything here?
    Thanks.

    1) Launch BPE
    2) Go to File | Open Repository Object
    3) Double-click Generic Objects icon to expand it.
    4) Double-click System Configuration
    5) Expand serverSettings icon
    Click on default
    6) Highlight debugger
    7) Click on checkbox to select it for the enabled attribute.
    8) Save your change by going to File | Save in Repository.
    9) Restart your web container.

  • Got error: Location Code is not enabled in the XML Gateway Server

    Hi,
    When I perform Compliance rule screening on GTM - Globel Trade Management,that I defined GTM as an Trading Partner on EBS R12.1.3,
    GTM can send response to EBS,but I see the following error message via Transaction Monitor on EBS workflow:
    [The Standard:OAG, Transaction Type:ITM , Transaction SubType:EXPORT_COMPLIANCE and Location Code GTM6.2 is not enabled in the XML Gateway Server. Pls check your Setup.]
    On EBS,I defined an ITM Partner for GTM,named 'GTM6.2',according to the document created by you: ITM Setup.doc
    and I also finished the following steps:
    1. ITM Application Users
    2.ITM Partner Service Types
    3.ITM Parameter Setup
    4.Order Type Creation: ITM Only
    5.Customer Creation: create a customer named 'GTM6.2', also enter 'GTM6.2' as EDI Location
    6.Define Transactions on XML Gateway as following:
    <Header>:
    Party Type: Customer
    Transaction Type: ITM
    Transaction Sub Type: EXPORT_COMPLIANCE
    <External Transactions (Lines)>:
    Standard Code: OAG
    External Transaction Type: ITM
    External Transaction Sub Type: EXPORT_COMPLAINCE
    Queue: APPLSYS.ECX_IN_OAG_Q
    7.Define Trading Partners on XML Gateway as following:
    <Header>:
    Trading Partner Type: Customer
    Trading Partner Name: GTM6.2
    <Trading Partner Details>:
    Transaction Type: ITM
    External Transaction Type: ITM
    External Transaction Sub Type: EXPORT_COMPLAINCE
    Map: WSHITEIN
    Source Trading Partner Location Code: GTM6.2 (same as the value what defined in EDI Location for customer)
    I think the combination of External Transaction Type, External Transaction Subtype, Standard Code,Source Trading Partner Location Code
    should be existing once done above steps, I have no idea why the error prompted.
    Does someone can tell how to trace the error?
    Thanks,
    Rambler

    user12254038 wrote:
    Can you send any supporting documents on ITM Setup? My client is implementing ITM for the first time and I wanted to know more details on how it works in R12.1.3 version of EBS?Oracle International Trade Management (ITM) Partner Integration: Specifications [ID 572524.1]
    International Trade Management Integration [ID 259691.1]
    How Can I Tell if International Trade Management is Installed or Not? [ID 742539.1]
    What are the Required Setups for International Trade Management (ITM) Flows in Shipping Execution? [ID 782861.1]
    What Patches Provide the Latest Fixes and Enhancements for ITM Adapter? [ID 465122.1]
    How to Generate Debug Information From ITM Adapter for XML Processing [ID 738925.1]
    How to Generate Debug File for International Trade Management (ITM) [ID 1294853.1]
    Thanks,
    Hussein

  • Server side script not running on stand-alone XE

    Hello,
    In my application I created a Server side script (AJAX) which presents a select-list based on other fields on the page. The very same application runs on a 10g+APEX3.0.1 database AND on a standard XE+APEX2.1 database, which are both accessed via a HTTP-server. The application with the script runs fine on this platform (XP).
    I have two other XP-machines on which I also installed XE+APEX2.1. Both are stand-alone versions NOT accessed via a HTTP-server. I installed exactly the same application which runs on the platform with HTTP server on both of the machines. While testing the correct functioning, I noticed that everything works ok, EXCEPT the server side script which gives me a better select list. Instead of this I get the old-fashioned version of the select-list which is not able to use the value elsewhere on the page.
    I found a similar problem on the XE forum (Re: Server side scripts features ) but it doesn't answer my question how to get the script working on a standalone version of XE (= without access via a HTTP-server).
    Can anybody please help me?
    Thanks & regards,
    Jan.
    Message was edited by: Jan
    J. Hulsing

    Carl,
    Thanks for your suggestion to install FireFox and the Firebug tool (which I wasn't aware of).
    After having looked at the problem for hours, I found what I think is the problem: the htmldb_html_elements.js script.
    As already mentioned, the properly functioning XE on my local PC is accessed via a HTTP-server, as well as the 10gR2+APEX3.0.1 version also running on that PC.
    On the laptop, not running HTTP-server, I get the message: <br>
    <FONT COLOR="RED">$x is not defined <BR>
    <FONT COLOR="BLUE"> f_21_select_kpn<FONT COLOR="RED">(<FONT COLOR="BLUE">input<FONT COLOR="BLACK">#P21_GBREKNR 405<FONT COLOR="RED">, "P21_KOSTENPOST") <BR>
    <FONT COLOR="BLUE">onblur<FONT COLOR="RED">(<FONT COLOR="BLACK">blur <FONT COLOR="RED">)
    </FONT><BR>
    That is in the 'Console' of Firebug.
    When changing to Script I do see a remarkable difference.
    On the PC there the following text is found in the first lines of htmldb_html_elements.js:
    /*htmld_elements will contain the lower level html access js*/<br>
    var gDebug = true;<br>
    var gkeyPressTime;<br>
    var gLastTab=false;<br>
    var gRegex=false;<br>
    var ie=(document.all)?true:false;<br>
    if(ie){document.expando=true;}<br>
    var gDebugWindow = false;<br>
    /*<br>
    $x functions have to do with either single elements or array of elements<br>
    $v functions have to have to do with manipulating values or interaction based off a value<br>
    $xml function have to do with manipulating xml values<br>
    $a functions are based on ajax<br>
    $d functions are specific dhtml constructs<br>
    */<br>
    /* begin $x functions */<br>
    function $x(pNd){<br>
    try{<br>
    var node;<br>
    ...<br><br>
    On the laptop however the first few lines are:<br><br>
    /*htmld_elements will contain the lower level html access js*/<br>
    <br>
    var gDebug = true;<br>
    var gkeyPressTime;<br>
    var gLastTab=false;<br>
    var gRegex=false;<br>
    if(document.all){document.expando = true;}<br>
    // Elements //<br>
    <br>
    function html_GetElement(pNd){<br>
    try{<br>
    var node;<br>
    switch(typeof (pNd)){<br>
    ...<br><br>
    I think that the difference is in these two scripts.
    But why are the scripts different: it is the same XE that is installed on the laptop and the PC.<br>The answer I found in the images/javascript directory of APEX3.0.1 which is located in the APACHE directory-tree (you have to copy the images to APACHE when you use the HTTP-server). And indeed: the htmldb_html_elements.js has exactly the same text as what I see in Firebug on the PC. So XE on the PC is using the javascripts in the image-directory of APACHE on the PC and not the XE-version of the scripts, embedded in XE.
    <br><br>
    So the answer seems to be: copy the APEX3.0.1 versions of the script over to the PC and try to get them into the database. Or...???
    <br>
    Can it be loaded into the database? Will XE accept it?
    <BR><br>
    Would be nice to have answers if the conclusion I found is the right one and if it can be fixed by loading the js into XE.
    <br>
    Best regards and thanks for your help so far.
    <br>
    Jan.

  • Any connect not enabled on vpn server

                       DOES ANYONE KNOW HOW I CAN ENABLE THE ANYCONNECT ON THE VPN SERVER. I HAVE REGISTERED IT AND IT COMES UP AS APPLICATION IS NOT ENABLED ON VPN

    I got after a little time. svc is not enabled in that group thats why it does not come up.

  • Main.asc server side script not working

    Here the simple script i put at server seem like is not working also enclosed screenshot for the adminconsole
    my server side file main.asc save at /opt/adobe/fms/application/playtechmnflive/
    my doing FMS edge server.
    application.allowDebug= true;
    application.onAppStart = function(){
            this.eventTime = (new Date().valueOf() + 10000);
            this.timer_int = setInterval(checkForEvent, 1000, this);
    function checkForEvent(app){
            var now = new Date().valueOf();
            if(now > app.eventTime) {
                    trace("something");
            }else{
                    trace("damn");

    The script is fine (at least i assume u want the timer working with no errors). The thing is that u can't put any code nor apps on the edge node. Put it on the origin and hook up your edge to that origin.

  • Running ISA Scripts from SSL enabled IOP server?

    When attempting to run a script from an SSL enabled IOP server, scripts no longer run.
    Is there a setting to enable the script to utilize the appropriate SSL port?
    Thank you.

    Can you please elaborate some more information on the above post.

  • Firefox will not run a WebEx Meeting even though Java Script is Enabled! I am on 4.0, is this a beta version of FireFox? Are you going to Support Java anytime soon?

    I am getting the following error after going in and setting up a WebEx meeting. I will not be able to use FireFox unless you get the ability to enable Java:
    "Java Not Enabled
    Meeting Center cannot be installed because Java is disabled in your Web browser. Please enable Java in your browser, and then click Set Up again. For instructions on enabling Java, refer to your browser's online help.
    If Java cannot be enabled for any reason, you can download the manual installer and install it from your desktop by double-clicking the installer icon."
    I enabled Java, added WebEx to all secure sites and performed every possible check known to man. This is on your end FireFox.
    Do you have an ETA when 4.0 will support Java?

    I will not pretend to know any answers to your problems, but I do wonder if you realise Firefox did decide to produce and support an Extended Stability Release, unfortunately this is NOT going to be based on Firefox 3.6. but on Firefox 10.
    For those directly concerned with this see https://wiki.mozilla.org/Enterprise#How_to_Participate_and_Post

  • Short, basic VB script works on 2003 Server but not on 2012 R2 server

    Hello all,
    Hopefully I'm posting this in the right place. I have a legacy VB script that I need to keep, but I'm having trouble getting it to work on Server 2012 R2.
    The script reads a file called "Test.txt" that contains the following string:
    String1|String2
    Part of the VB script is to read this "Test.txt" file and parse this line into 2 separate elements based upon the "|" delimeter:
    On Error Resume Next
    Dim FSI, inputFile, String, f, WshShell,WshNetwork, WshFSO, StringArray
    inputFile = "Test.txt"
    CONST ForReading = 1, ForWriting = 2, ForAppending = 8
    Set FSI = CreateObject("Scripting.FileSystemObject")
    Set f = FSI.OpenTextFile(inputFile, ForReading, True)
    Set WshShell=WScript.CreateObject("WScript.Shell")
    '********* Read the file ********
    String = f.ReadLine
    msgbox("String: "&string)
    '********* Split the line *******
    StringArray = Split(String,"|", -1, 1)
    msgbox("stringarray(0): "&stringarray(0))
    msgbox("stringarray(1): "&stringarray(1))
    The variables in this script when ran on Server 2003 are:
    string = String1|String2
    stringarray(0) = String1
    stringarray(1) = String2
    So this script parses the String1|String2 line perfectly on Server 2003. However, running this same VB script on Server 2012 R2 results in very strange output:
    The variables in this script when ran on Server 2012 R2 are:
    string = ӱƥt
    stringarray(0) = ӱƥt
    stringarray(1) =
    Is there anything on Server 2012 R2 that I need to install to get this to work in VB, or what is the issue with Server 2012 R2 and visual basic? I'd LOVE to redo this in PowerShell but I need to keep it Visual Basic for legacy reasons for a few more months.

    Hmm interesting. I tried using the 3 different "format" parameters for the OpenTextFile method, and none of them worked on Server 2012 R2:
    http://msdn.microsoft.com/en-us/library/aa265347(v=vs.60).aspx
    However, I copied the text file directly from the 2003 server and placed it on the 2012 R2 server, and then the script worked great!
    Thanks for steering me in the right direction Bill!

  • EEM interface errors not matching

    I have the event applet configured below.  I test by changing the controller time-slots to 1-15 instead of 1-24 in order to generate errors on my Serial0/1/0:0 interface.  Errors are generated, but the eem applet does not match even though the errors are incrementing.  I've turned on all suggested eem debugging and it shows 0 matches while I can see that the interface is incrementing the errors that should be triggering the actions from the eem.  
    configuration:
    event manager applet multiple_if
    event tag if_1 interface name Serial0/1/0:0 parameter input_errors_crc entry-op ge entry-val 2 entry-type increment poll-interval 60
    event tag if_2 interface name Serial0/1/0:0 parameter input_errors entry-op ge entry-val 2 entry-type increment poll-interval 60
    event tag if_3 interface name Serial0/1/0:0 parameter input_errors_frame entry-op ge entry-val 2 entry-type increment poll-interval 60
    event tag if_4 interface name Serial0/1/0:0 parameter input_errors_overrun entry-op ge entry-val 2 entry-type increment poll-interval 60
    event tag if_5 interface name Serial0/1/0:0 parameter output_errors entry-op ge entry-val 2 entry-type increment poll-interval 60
    event tag if_6 interface name Serial0/1/0:0 parameter output_errors_underrun entry-op ge entry-val 2 entry-type increment poll-interval 60
    trigger
    action 100 cli command "enable"
    action 200 cli command "config t"
    action 300 cli command "int Serial0/1/0:0"
    action 400 cli command "description script worked!"
    action 500 syslog msg "CRC failure leased line $_interface_name"
    action 600 mail server "$_mail_smtp" to "$_mail_rcpt" from "$_info_routername@$_mail_domain" subject "ALERT: Serial Interface $id shutdown due to excessive interface error rate" body "\n$_syslog_msg"
    action 999 end
    debug ouput:
    Jun 20 14:20:48 EDT: fh_fd_syslog_event_match: num_matches = 0
    Jun 20 14:20:48 EDT: fh_fd_data_syslog: num_matches = 0
    Jun 20 14:20:48 EDT: fh_fd_syslog_event_match: num_matches = 0
    Jun 20 14:20:48 EDT: fh_fd_data_syslog: num_matches = 0
    Jun 20 14:21:00 EDT: fh_fd_timer_process_async
    Jun 20 14:21:00 EDT: cron_tick: num_matches 0
    Jun 20 14:21:22 EDT: %HSRP-5-STATECHANGE: FastEthernet0/0.4 Grp 4 state Standby -> Active
    Jun 20 14:21:22 EDT: fh_fd_syslog_event_match: num_matches = 0
    Jun 20 14:21:22 EDT: fh_fd_data_syslog: num_matches = 0
    Jun 20 14:22:00 EDT: fh_fd_timer_process_async
    Jun 20 14:22:00 EDT: cron_tick: num_matches 0
    Jun 20 14:23:00 EDT: fh_fd_timer_process_async
    Jun 20 14:23:00 EDT: cron_tick: num_matches 0
    Jun 20 14:24:00 EDT: fh_fd_timer_process_async
    Jun 20 14:24:00 EDT: cron_tick: num_matches 0
    output showing interface errors:
    csc-lab01#sh int s0/1/0:0
    Serial0/1/0:0 is up, line protocol is up
      Hardware is GT96K Serial
      Internet address is x.x.x.x/30
      MTU 1500 bytes, BW 1536 Kbit/sec, DLY 20000 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation PPP, LCP Open
      Listen: CDPCP
      Open: IPCP, loopback not set
      Keepalive set (10 sec)
      CRC checking enabled
      Last input 00:00:00, output 00:00:00, output hang never
      Last clearing of "show interface" counters 02:44:23
      Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: Class-based queueing
      Output queue: 0/1000/0 (size/max total/drops)
      30 second input rate 2000 bits/sec, 3 packets/sec
      30 second output rate 2000 bits/sec, 2 packets/sec
         9139 packets input, 1049231 bytes, 0 no buffer
         Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
         224 input errors, 224 CRC, 117 frame, 95 overrun, 0 ignored, 81 abort
         10737 packets output, 1511507 bytes, 0 underruns
         0 output errors, 0 collisions, 15 interface resets
         0 unknown protocol drops
         0 output buffer failures, 0 output buffers swapped out
         0 carrier transitions
      Timeslot(s) Used:1-24, SCC: 0, Transmitter delay is 0 flags

    A few other things I noticed.  Try this:
    event manager applet multiple_if
    event tag if_1 interface name  Serial0/1/0:0 parameter input_errors_crc entry-op ge entry-val 2  entry-type increment poll-interval 60
    event tag if_2 interface  name Serial0/1/0:0 parameter input_errors entry-op ge entry-val 2  entry-type increment poll-interval 60
    event tag if_3 interface  name Serial0/1/0:0 parameter input_errors_frame entry-op ge entry-val 2  entry-type increment poll-interval 60
    event tag if_4 interface  name Serial0/1/0:0 parameter input_errors_overrun entry-op ge entry-val 2  entry-type increment poll-interval 60
    event tag if_5 interface  name Serial0/1/0:0 parameter output_errors entry-op ge entry-val 2  entry-type increment poll-interval 60
    event tag if_6 interface  name Serial0/1/0:0 parameter output_errors_underrun entry-op ge  entry-val 2 entry-type increment poll-interval 60
    trigger occurs 1
    correlate event if_1 or event if_2 or event if_3 or event if_4 or event if_4 or event if_5 or event if_6
    action 100 cli command "enable"
    action 200 cli command "config t"
    action 300 cli command "int Serial0/1/0:0"
    action 400 cli command "description script worked!"
    action 401 set syslog_msg "CRC failure leased line $_interface_name"
    action 500 syslog msg "$syslog_msg"
    action 501 info type routername
    action 600 mail server "$_mail_smtp" to "$_mail_rcpt" from  "$_info_routername@$_mail_domain" subject "ALERT: Serial Interface $_interface_name  shutdown due to excessive interface error rate" body "\n$syslog_msg"

  • Newbie Quest. : Howto disable SAPGUI script warning

    Hi,
    just trying to do some things with vbs and sapgui, i've enabled scripting on the server and disabled scripting warning in the Control Panel. Scripting works fine if the gui is already started, but if i try to start the GUI over vbs and logon i still get:
    "A script is opening a connection to system xyz"
    Using Sapgui 6405.5.28
    how can i disable the warning message ?
    thx
    Heinrich

    Hi,
    Log into the SAP system you are running the script on. Goto the Customize Local Layout button on the toolbar (last one on the right). In the resulting drop down menu click on options.
    You should get a pop up box so go to the scripting tab. Untick the option "Notify When a Script Attaches to a Running GUI". Also untick the "Notify When a Script Opens a Connection".
    That should sort it out - let me know if not.
    Thanx
    Nath

  • Script that enables mail users and kicks out two csv files

    I am working on a script that will mainly be used as a scheduled task to enabled mailuser by calling the update-recipient command. 
    But before it calls that command it will get for various issues that can cause errors.
    Missing PrimarySMTP
    Display name having a space at front or back.
    The external email address being blank.
    I have IF statements setup to check for those and then call a function that will save into an array the issue for that user. 
    Here is the script
    <#
    .SYNOPSIS
    Enable-MailUsers Synced Mail Users in the Exchange environment
    THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE
    RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
    Version .9, 30 June 2014
    .DESCRIPTION
    This script mail-enables Synced Mail Users and creates a CSV report of mail users that were enabled.
    The following is shown:
    * Report Generation Time
    .PARAMETER SendMail
    Send Mail after completion. Set to $True to enable. If enabled, -MailFrom, -MailTo, -MailServer are mandatory
    .PARAMETER MailFrom
    Email address to send from. Passed directly to Send-MailMessage as -From
    .PARAMETER MailTo
    Email address to send to. Passed directly to Send-MailMessage as -To
    .PARAMETER MailServer
    SMTP Mail server to attempt to send through. Passed directly to Send-MailMessage as -SmtpServer
    .PARAMETER ScheduleAs
    Attempt to schedule the command just executed for 10PM nightly. Specify the username here, schtasks (under the hood) will ask for a password later.
    .EXAMPLE
    Generate the HTML report
    .\Enable-MailUsers.ps1 -SendMail -MailFrom [email protected] -MailTo [email protected] -MailServer ex1.contoso.com -ScheduleAs SvcAccount
    #>
    param(
    [parameter(Position=0,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Send Mail ($True/$False)')][bool]$SendMail=$false,
    [parameter(Position=1,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail From')][string]$MailFrom,
    [parameter(Position=2,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail To')]$MailTo,
    [parameter(Position=3,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail Server')][string]$MailServer,
    [parameter(Position=4,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Schedule as user')][string]$ScheduleAs
    # Sub Function to neatly update progress
    function _UpProg1
    param($PercentComplete,$Status,$Stage)
    $TotalStages=5
    Write-Progress -id 1 -activity "Mail enabled Objects" -status $Status -percentComplete (($PercentComplete/$TotalStages)+(1/$TotalStages*$Stage*100))
    #Sub Function create ErrObject output
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    # 1. Initial Startup
    # 1.0 Check Powershell Version
    if ((Get-Host).Version.Major -eq 1)
    throw "Powershell Version 1 not supported";
    # 1.1 Check Exchange Management Shell, attempt to load
    if (!(Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue))
    if (Test-Path "D:\Exchsrvr\bin\RemoteExchange.ps1")
    . 'D:\Exchsrvr\bin\RemoteExchange.ps1'
    Connect-ExchangeServer -auto
    } elseif (Test-Path "D:\Exchsrvr\bin\Exchange.ps1") {
    Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.Admin
    .'D:\Exchsrvr\bin\Exchange.ps1'
    } else {
    throw "Exchange Management Shell cannot be loaded"
    # 1.2 Check if -SendMail parameter set and if so check -MailFrom, -MailTo and -MailServer are set
    if ($SendMail)
    if (!$MailFrom -or !$MailTo -or !$MailServer)
    throw "If -SendMail specified, you must also specify -MailFrom, -MailTo and -MailServer"
    # 1.3 Check Exchange Management Shell Version
    if ((Get-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.Admin -ErrorAction SilentlyContinue))
    $E2010 = $false;
    if (Get-ExchangeServer | Where {$_.AdminDisplayVersion.Major -gt 14})
    Write-Warning "Exchange 2010 or higher detected. You'll get better results if you run this script from an Exchange 2010/2013 management shell"
    }else{
    $E2010 = $true
    $localserver = get-exchangeserver $Env:computername
    $localversion = $localserver.admindisplayversion.major
    if ($localversion -eq 15) { $E2013 = $true }
    #Get date
    $filedate = get-date -uformat "%m-%d-%Y"
    $filedate = $filedate.ToString().Replace("0", "")
    #Get the valid users that are not mail-enabled
    _UpProg1 1 "Getting User List" 1
    #$Users = Get-mailuser -ResultSize unlimited -OrganizationalUnit "R0018.COLLABORATION.ECS.HP.COM/Accounts/AbbVienet/Users" | ?{$_.legacyexchangeDN -eq ""}
    $i = 0
    $output = @()
    $errOutput = @()
    $err = $False
    #2 Process users
    ForEach ($User in $Users){
    $i++
    _UpProg1 ($i/$Users.Count*100) "Updating Recipients" 2
    If ($user.ExternalEmailAddress -eq $null){
    _ErrObject $user.Name, "Missing External Email Address"
    ElseIf($user.DisplayName -NotLike "* "){
    _ErrObject $user.Name, "DisplayName contains a trailing space"
    ElseIf($user.DisplayName -NotLike "_*"){
    _ErrObject $user.Name, "DisplayName contains a Leading space"
    ElseIf($user.PrimarySmtpAddress -eq $null){
    _ErrObject $user.Name, "Missing Primary SMTP address"
    Else{
    #Disable EmailAddressPolicy on these users
    Set-Mailuser $User.Name -EmailAddressPolicyEnabled $false
    #pass to Update-recipient
    Update-Recipient $User.Name
    $LEDN = Get-MailUser $User.Name | Select {$_.LegacyExchangeDN}
    If ($LEDN -ne ""){
    $object = New-Object -TypeName PSObject
    $X500 = "x500:" + $LEDN.'$_.LegacyExchangeDN'
    $object | Add-Member -Name 'Name' -MemberType Noteproperty -Value $User.Name
    $object | Add-Member -Name 'x500' -MemberType Noteproperty -Value $X500
    $output += $object
    #Creating CSVFile Output
    _UpProg1 99 "Outputting CSV file 3" 3
    $CSVFile = "c:\scripts\Mail-enable\Mailenabled_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    If($err){
    $ErrCSVFile = "c:\scripts\Mail-enable\ProblemUsers_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    $errOutput | Select-Object Name, Comment | ConvertTo-CSV -NoTypeInformation > $ErrCSVFIle
    $Output | ConvertTo-Csv -NoTypeInformation > $CSVFile
    if ($SendMail)
    _UpProg1 95 "Sending mail message.." 4
    If($err){
    Send-MailMessage -Attachments $CSVFile,$ErrCSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    Else{
    Send-MailMessage -Attachments $CSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    if ($ScheduleAs)
    _UpProg1 99 "Attempting to Schedule Task.." 4
    $dir=(split-path -parent $myinvocation.mycommand.definition)
    $params=""
    if ($SendMail)
    $params+=' -SendMail:$true'
    $params+=" -MailFrom:$MailFrom -MailTo:$MailTo -MailServer:$MailServer"
    $task = "powershell -c \""pushd $dir; $($myinvocation.mycommand.definition) $params\"""
    Write-Output "Attempting to schedule task as $($ScheduleAs)..."
    Write-Output "Task to schedule: $($task)"
    schtasks /Create /RU $ScheduleAs /RP /SC DAILY /ST 22:00 /TN "Enable Mail Users" /TR $task
    The Problem is that when I look at the $errOutput I see things but when I pipe the $erroutput to convertTo-CSV I get this within the CSV file. I think its because I an calling a function to do the updating. But not sure.
    Jeff C

    Hi Jeff,
    Any updates? If you have any other questions, please feel free to let me know.
    A little clarification to the script:
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    $errOutput = @()
    _ErrObject Name, "Missing External Email Address"
    $errOutput
    _ErrObject Name "Missing External Email Address"
    $errOutput
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Sapgui scripting

    Happy to meet Mr Cohr here.
    Let me tell you some comments on Sapgui scripting.
    a) The code generated is really different depending if your are using a slow or a regular lan connection. It is not that fun, I made some developments to use indexed fields instead of using names.
    schnick.schnack.scnock
    /1/2/0
    where schnick was the second control available
    schnack the third son of schnick
    schnock the first son of schnack
    it remains valid in any case.
    b) the management of session number  and connnection is not easy.
    how do you do that on your own?
    regards
    Didier

    Hi Didier,
    the problem with the low-speed-connection is a documented 'feature'. Unfortunately during a low-speed- connection the server does not send us the field names that we use to identify objects. I think according to the documentation Scripting doesn't work at all in low-speed-connection. As you noticed it's not quite that bad. The Scripting will work, but you get different Ids for your elements. These Ids follow the same concept as your solution: We use an index to identify objects on the same level of the hierarchy.
    Session and connection numbers are meaningless most of the time. They depend so much on what else you are or were doing in SAP GUI that a script relying on them will fail most of the time.
    The sample recorder generates code that will always access the first session of the first connection using app.children(0).children(0). All Ids in the scripts are then relative to this session and do not contain a session or connection number. That's ok if you work with one open session most of the time.
    We also have a property app.ActiveSession, which will return the session that is currently the topmost.
    If you need to access several sessions then it becomes difficult. You can distinguish sessions by checking the connection information in session.info or the window title, but that requires some code writing.
    Best regards,
    Christian

Maybe you are looking for

  • MacBook Pro Retina and Thunderbolt display

    Hi all, I noticed a for me new strange behavior when running  my new TBD on my new MBPR. Running Mountain Lion. When the lid is closed, that is when the MBPR's screen is closed and I use the TBD as an external display it only works when I use the TBD

  • Share network traffic between 2 parallel wireless bridges - What kit?

    Dear All, I'm a technology professional, but mainly in electronic design rather than high end networking. Hence my request for your advice. I wish to specify some items of kit that I can ask a networking professional to fit and configure to solve my

  • Exit/BAdi for COPA char's in VF01

    Hi all, Based on the Billing document no. and reference no. , i need to populate the COPA characteristic (a field). I tried to use exit COPA005 but its updating the COPA char's of Billing document Profitability section. I need to populate the COPA ch

  • Find missing fonts in AI file

    I am writing a VBA script to open and print a handful of AI files. It needs to detect any missing/substituted fonts in each file to alert the designers in an accompanying report. I tried creating a list of fonts using the TextFonts collection from th

  • Request not yet updated with datamart

    Hey guys, I am having trouble with an Upload. Some days ago I uploaded an Excel file in an ODS without any problems. Everything turns out green: Load: green Activation: green Yet the data is not in my Infocube yet, because when I run a query the data