Email Notification Script is Not Working in Windows Server 2012..

Dears
I have Server 2012 and I wants to make new task seclude for email notification, while any user is login to the
server the server will send notification email about user name and IP address for the user, I have script it is working fine in windows 2008 and it is xml file, but the script is not working in 2012 because in task schedule in windows 2008 there is an option
called send email but in windows 2012 this option is deprecated, I’m using start program to run the script in PowerShell instead of send email and I configured as an
 end-MailMessage
-From [email protected]
-Subject "Email Notification"
-To [email protected]
-SmtpServer mail.domainName.com
But when I use this PowerShell I only receive email notification without any name and IP address, kindly I need
your support and help, I’m using below script.
<?xml version="1.0" encoding="UTF-16"?>
< Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2013-11-27T11:16:32.3962177</Date>
    <Author>Company Name\User Name</Author>
    <Description>RDP Login V1</Description>
  </RegistrationInfo>
  <Triggers>
    <EventTrigger>
      <Enabled>true</Enabled>
      <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[(EventID=4624)]] and *[EventData[Data[@Name='LogonType'] and (Data=10)]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
      <ValueQueries>
        <Value name="IpAddress">Event/EventData/Data[@Name="IpAddress"]</Value>
        <Value name="TargetUserName">Event/EventData/Data[@Name="TargetUserName"]</Value>
      </ValueQueries>
    </EventTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>Company Name\User Name</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <SendEmail>
      <Server>Name of the Server.com</Server>
      <Subject>RDP Login V1</Subject>
      <To>Sender Name</To>
      <From>Any Email.com</From>
      <Body>Login Alert on ServerName IP : $(IpAddress)  User: $(TargetUserName). Please take necessary action</Body>
      <HeaderFields />
    </SendEmail>
  </Actions>
< /Task>

Dears
I have Server 2012 and I wants to make new task seclude for email notification, while any user is login to the
server the server will send notification email about user name and IP address for the user, I have script it is working fine in windows 2008 and it is xml file, but the script is not working in 2012 because in task schedule in windows 2008 there is an option
called send email but in windows 2012 this option is deprecated, I’m using start program to run the script in PowerShell instead of send email and I configured as an
 end-MailMessage
-From [email protected]
-Subject "Email Notification"
-To [email protected]
-SmtpServer mail.domainName.com
But when I use this PowerShell I only receive email notification without any name and IP address, kindly I need
your support and help, I’m using below script.
<?xml version="1.0" encoding="UTF-16"?>
< Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2013-11-27T11:16:32.3962177</Date>
    <Author>Company Name\User Name</Author>
    <Description>RDP Login V1</Description>
  </RegistrationInfo>
  <Triggers>
    <EventTrigger>
      <Enabled>true</Enabled>
      <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[(EventID=4624)]] and *[EventData[Data[@Name='LogonType'] and (Data=10)]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
      <ValueQueries>
        <Value name="IpAddress">Event/EventData/Data[@Name="IpAddress"]</Value>
        <Value name="TargetUserName">Event/EventData/Data[@Name="TargetUserName"]</Value>
      </ValueQueries>
    </EventTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>Company Name\User Name</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>false</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <SendEmail>
      <Server>Name of the Server.com</Server>
      <Subject>RDP Login V1</Subject>
      <To>Sender Name</To>
      <From>Any Email.com</From>
      <Body>Login Alert on ServerName IP : $(IpAddress)  User: $(TargetUserName). Please take necessary action</Body>
      <HeaderFields />
    </SendEmail>
  </Actions>
< /Task>

Similar Messages

  • MFA not working on Windows Server 2012 R2

    Been using MFA since PF days.  Deployed it successfully many times but for some reason it's not working with Windows Auth, Terminal Services on a Win 2012 R2 DataCenter box?  The machine was successfully added to my domain PhoneFactor group, I
    can see and add the machine on the master MFA.  Services are running but when I remote in I go right through without MFA stopping me?  Any ideas?
    TIA

    6.3.0 has just been released and 2012 R2 is *still* not supported. What the hell?!?
    "Version 6.3.0 of the Azure Multi-Factor Authentication Server adds the
      following additional functionality:
    * Added one-way SMS functionality for AD FS, RADIUS and User Portal
    * Added .csv file import for OATH tokens
    * Added support to parse phone numbers in E.164 format during import
      From the directory
    * Fixed problem preventing slave servers from performing MFA if the
      master server was unavailable. This problem was found to exist in
      all 6.2.x builds. All customers running 6.2.x should upgrade to 6.3.
    * Fixed directory sync issue for recursive security groups
    * Added additional logging to AD FS adapter
    * Other minor bug fixes and security improvements
    Known Issues:
    * Windows Authentication for Terminal Services is still not supported for
      Windows Server 2012 R2"
    So they added a whole stack of other functionality, but still didn't get around to taking a look at this bug. I'm stunned. Is there any sort of timeline on fixing this, or is 2012 R2 just going to remain unsupported forever?

  • SCORM (flash Player Content) not working on Windows Server 2012 R2 which has IE11 integrated installed on it.

    Hi Everyone,
    I have website which contains SCORM package, installed on Windows Server 2012 R2 which has IE11 installed on it.
    Flash Player is also embedded with IE.
    IE Version:  11.0.9600.17278.
    Updated Version: 11.0.12 (KB2977629)
    When I launch SCORM (flash Player Content) from my application, it is not working. It just displays a blank page however the Title of IE is set to the text from the SCORM content.
    However if I access the same URL from any other machine which has previous version of Windows OS (i.e. previous to Windows 8 OS), it is working as expected on IE9, IE10 and IE11.
    While trying to find out the cause, I came across some forum which says we have to install the “Desktop Experience” on the server to enable the inbuilt flash player. After doing that also, My SCORM contents are not getting displayed.
    To find out more details, I have uploaded the SCORM Package on SCORM Cloud to check if it is working there. Here again the same problem, it doesn’t work and displays
    error message saying that “Member is not found” and when I tried to find out the location of the error then it is coming at
    Windows.document.myFlash.setVariable(…) method on the Windows Server 2012 R2 with IE11.  
    When I performed “Addwatch”, it is saying that Windows.document.myFlash doesn’t have setVariable(…) method.
    However if access the same cloud URL from other machine (Having OS previous to Windows 8 OS), it is working as expected.
    I have attached the screenshot of the error.
    Any help would be appreciated.
    Thanks

    Hello,
    I'd ask the SCORM package provider or in Microsoft's  ASP.Net forums:
    http://forums.asp.net/
    As Microsoft's ASP.Net forums are on a different platform, we cannot move the question for you.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Web Service Client(Console App) not working on Windows Server 2008 R2 Standard Edition

    I am trying to consume an ASMX Web Service in a console app, its working fine in Windows 7,Windows Server 2012 Standard,Windows Server 2008 R2 DataCenter,Windows Server 2008 R2 Enterprise, But its not working in Windows Server 2008 R2 Standard Edition which
    is the deployment server.
    I tried consuming the ASMX web service using Web Reference and Service Reference as well but its not helping. Its throwing up the following error,
    Message:There is an error in XML document (1, 331491).
    Inner Exception : System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 331491.
    The scenario is that i call the web service and it returns me an XML i am not able to receive the XML on Windows Server 2008 R2 Standard Edition.
    Please provide suggestions on this I need to resolve this ASAP.

    Hi,
    This question is better asked here:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=asmxandxml
    Experts here are more familiar about it and they can give you more efficient suggestion.
    Thank you.

  • Addon not working on Windows Server 2008 OS

    Dear Friends,
    I have developed an addon in XP and its working fine with XP operating system but it is not working on Windows Server 2008 Standard. Error is "An Attempt was made to load a program with an incorrect format.(Exception from HRESULT: 0x8007000B)".
    Regards,
    Mahesh.
    Edited by: mahesh A on Sep 19, 2009 9:26 AM

    Hi,
    Since only Windows 2008 SBS is supported with SAP Business One and that Server is available for 64bit Hardware as defined by Microsoft, I guess you should look into that direction.
    Regards
    Mario

  • Group Chat feature in Office Communications Server 2007 R2 does not work in Windows Server 2008 R2 domains

       Hello to all, there are two confliting articles about this topic:
       1-
    http://technet.microsoft.com/en-us/library/upgrade-domain-controllers-to-windows-server-2008-r2(v=ws.10).aspx#BKMK_Whatsnew : this one says that it does not work "The Group Chat feature in Office Communications Server 2007 R2 does not work in Windows
    Server 2008 R2 domains". This article was updated in 2013.
       2-
    http://technet.microsoft.com/en-us/library/ee692314(office.13).aspx: this other article says that it will function "Office Communications Server 2007 R2 Group Chat will function in a Windows Server 2008 R2 forest". This article was updated in
    2010 and was refered by the first one.
       What is the correct support position for Group Chat feature in Office Communications Server 2007 R2 and Windows Server 2008 R2 domains?
       Regards, EEOC.

    Hi,
    I notice the following sentence in the link below “Office Communications Server 2007 R2, Group Chat will not function in a Windows Server 2008 R2 forest or when Group Chat member servers are joined to a Windows Server 2008 R2 domain.
    We know of an issue with changes in Windows 2008 R2 that requires a Group Chat Client and Group Chat Admin Tools hotfix. The Group Chat Client and Group Chat Admin Tools hotfixes are currently scheduled for mid-April 2010.”
    http://blogs.technet.com/b/nexthop/archive/2010/11/06/supportability-for-office-communications-server-2007-r2-and-windows-server-2008-r2.aspx
    So in my opinion, if you update to the latest version of Windows Server 2008 R2, OCS Server 2007 R2 and Group Chat Client, Group Chat Admin Tools to the latest version, it should work.
    However, the best method for you is make a lab to test the problem firstly.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Remote video streaming not working with Windows Server Essentials Media Pack

    I installed Server Essentials Media Pack and the video streaming via remote access does not seem to be working. I see all the video files on the server's remotewebaccess page in "Media Library" group. When I try to play the video in Chrome
    the player appears for a brief moment, but then the browser starts downloading the entire file. With Internet Explorer the empty browser window opens and the download starts. I am trying it while outside of my local network. The video streaming used to work
    with Server 2012 Esesentials. Am I missing some additional codecs or remote streaming is no longer supported?

    Hi,
    What’s the default player for these media files on your computer? The issue may be caused by the default player could not load the media file correctly. Please make sure Windows Media Player
    with full codec installed is the default one. And then check if the media streaming feature could work as normal. Here is an article about how to configure the media streaming feature, hope it helps.
    Manage Digital Media in Windows Server 2012 Essentials
    http://technet.microsoft.com/en-us/library/jj628151.aspx
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • Full Text Search in PDF file Not Working in SQL Server 2012

    OS: Windows Server 2012 @ Azure
    DB: SQL Server 2012 SP 1 with Cum Update 6
    Filter: OfficeFilter installed, PDFFilter64 11 installed (actually I tried 9 too)
    I have done the following steps:-
    1. Configure SQL Server Instance to enable FILESTREAM for Transaction-SQL Access (IO Access and Allow Remote Client Access to FileStream data) and restart the instance service.
    2. Set Stream Access Level to Full Access and  
    3. Create Database with file stream folder and set the created database Properties.Options: FileStreamDirectorName = fileContainer and FileStream Non-Transaction Access = Full.
    4. Create a FileTable with file director
    5. Execute the following scripts to ensure all installed components working. PDF is listed as one of the supported filter.
    EXEC sp_fulltext_service @action='load_os_resources', @value=1;
    EXEC sp_fulltext_service 'verify_signature', 0 -- don't verify signatures
    EXEC sp_fulltext_service 'update_languages'; -- update language list
    EXEC sp_fulltext_service 'restart_all_fdhosts';
    EXEC sp_help_fulltext_system_components 'filter'
    reconfigure with override
    6. Copy a few PPTX, DOCX, PDF file into the file director.
    7. Search the data by following command. I can PPTX and DOCX files can return right result but PDF is not returned although it contains the searching contents.
    SELECT *
    FROM dbo.Course
    WHERE CONTAINS(file_stream, 'Counsellor');
    Any expert advise?
    Ant in SG

    Are you seeing any errors in the SQL Server Error Log, the Windows Application or System logs?  How about in the Full-text crawl logging?
    Troubleshooting Errors in a Full-Text Population (Crawl)
    If your server has a mix of multi-threaded iFilters and single-threaded iFilters, this can cause serious problems with building the full text index.  (How do I know this?  Well, let's just say that I have suffered as well. And I was shocked!) 
    The efficiency was greatly increased by this article: 
    Troubleshooting: Slow Full-Text Indexing Performance Due to Filtering Process
    This means changing the threading model for the multi-threaded (e.g. Microsoft Office) filters to be Apartment Threaded.  Or perhaps if you are full text indexing PDF files, abandoning the free single-threaded Adobe IFilter and purchasing the FoxIt
    (or some other) multi-threaded PDF iFilter would benefit you.
    RLF

  • Windows Server Backup scheduled task run successfully but backup do not start (not running) on Windows Server 2012

    Hi,
    A backup job has been setup on Windows Server 2012 (Platform: Win32NT; ServicePack: ; Version: 6.2.9200.0; VersionString : Microsoft Windows NT 6.2.9200.0) via Windows Backup Software UI (Local Backup 1.0).
    It is appearing as a scheduled task "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup" belonging to user 'nt authority\system' in task scheduler.
    The problem is that the Backup job never start despite the scheduled task running and completing successfully (when run automatically or manually)!
    Would you be able to explain why and assist in resolving that issue?
    Here is what we know:
    When the backup is run manually via the Windows Backup Software UI, it works fine.
    When the backup is run via command line (as set in schedule task) in a cmd command prompt (as local/domain 'administrator' or as 'nt authority\system' which is possible by running command prompt via 'PsExec.exe -i -s cmd'), something like "%windir%\System32\wbadmin.exe
    start backup -templateId:{f11eb3aa-74e7-4ff4-a57b-d8d567ee3f77} -quiet", it works fine.
    If you manually run the preset scheduled task while logged in as administrator, the task run and complete successfully but the backup job does not start.
    Idem if you schedule task is run automatically at scheduled time.
    The schedule task run and complete successfully but the backup job does not start.
    It is confirmed by running the following in a command prompt as 'nt authority\system':
    schtasks /run /tn "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup"
    SUCCESS: Attempted to run the scheduled task "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup".
    Despite success result, the Backup job does not start running...
    No errors or warning appears anywhere in Event Logs (Microsoft > Windows > Backup or Task Scheduler) nor in the scheduled task History tab. The schedule task complete successfully but no Backup job is run...
    If scheduled task automatically set by Windows Backup software is duplicated (copied) and set manually it runs fine as 'administrator' and as 'nt authority\system' (subject that 'nt authority\system' is added to the 'Backup Operators' AD group).
    Here is an export of the current pre-set schedule task, is there any settings that need to be changed to make it works?
    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Author>MYDOMAIN\SERVER1</Author>
        <SecurityDescriptor>D:AR(A;OICI;GA;;;BA)(A;OICI;GR;;;BO)</SecurityDescriptor>
      </RegistrationInfo>
      <Triggers>
        <CalendarTrigger id="Trigger 1">
          <StartBoundary>2014-07-14T21:00:00</StartBoundary>
          <Enabled>true</Enabled>
          <ScheduleByDay>
            <DaysInterval>1</DaysInterval>
          </ScheduleByDay>
        </CalendarTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <UserId>S-1-5-18</UserId>
          <RunLevel>HighestAvailable</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>true</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>false</StopOnIdleEnd>
          <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <Exec>
          <Command>%windir%\System32\wbadmin.exe</Command>
          <Arguments>start backup -templateId:{f11eb3aa-74e7-4ff4-a57b-d8d567ee3f77} -quiet</Arguments>
        </Exec>
      </Actions>
    </Task>
    Thank you in advance for your feedback.

    Once again, the issue is not to run the backup manually from the command line but to have it run via the scheduled task setup by the Windows Backup software.
    By default, the schedule task is to be run as NT Authority\System, and when run under this account, the backup does not start (even though account is member of Backup Operators) and job can manually be run via elevated command prompt. This is not a normal
    behavior and constitute a major bug in Windows Server 2012.
    From my understanding the NT Authority\System account is a built-in account from Windows that should by default be part of the Administrators group (built-in) even though it does not explicitly appears like it in AD by default.
    This account shall have by default Administrators rights and Backup Operators rights (via the Administrators group) without being explicitly added to those groups (http://msdn.microsoft.com/en-gb/library/windows/desktop/ms684190%28v=vs.85%29.aspx). By design
    it is supposed to be the most powerful account which has unrestricted access to all local system resources. If that is not the case (as it seems) then this would constitute a major bug in Windows Server 2012 edition.
    As said previously and as you confirmed, currently by default NT Authority\System on Windows 2012 server cannot start backup manually via an elevated command prompt unless it is manually added to Backup Operators (or Administrators) group. But wouldn't that
    constitute a bug of Windows Server 2012?
    Our server has not yet been restarted since I added NT Authority\System account to the Administrators group explicitly manually so I cannot yet confirmed it would sort the issue. Indeed it is heavily in use so cannot easily be restarted. Will confirm when
    done.
    We also have an additional problem where after a while of last reboot, part of the Exchange ECP can no longer be properly loaded in the web browser due to compilation error (compilation is done via NT Authority\System account which seems to no longer have
    sufficient right to compile .NET code). What is strange is that it works at first and then stop working at some point... I am hopeful that adding NT Authority\System to the Administrators group would sort this issue as well but once again, that shall not be
    needed!!!
    Could a Windows Server 2012 update introduced some security policy changes or else that prevent NT Authority\System to have full power?

  • MSXML6.dll method"SEND" don't work in Windows Server 2012 and SQL 2008R2

    Hi all,
    I have a SP to send a WebService data
    It works fine on Windows 2008R2 server and also on Windows Server 2003.
    moving it on Windows Server 2012 with SQL 2008R2 express (32bit) or SQL 2012 express (32bit), it doesn't work anymore.
    Below the SP.
    -- =============================================
    -- Author: Giancarlo MADA Service 2008
    -- Create date: 09/09/2008
    -- Description: Web Service Interface
    -- =============================================
    CREATE PROCEDURE [dbo].[spmd_HTTPRequest]
    @URI varchar(2000) = '',
    @methodName varchar(50) = '', -- POST, GET
    @requestBody varchar(8000) = '', -- XML Document envelope
    @SoapAction varchar(255),
    @UserName nvarchar(100), -- Domain\UserName or UserName
    @Password nvarchar(100),
    @responseText varchar(8000) output
    as
    SET NOCOUNT ON
    IF @methodName = ''
    BEGIN
    select FailPoint = 'Method Name must be set'
    return
    END
    set @responseText = 'FAILED'
    DECLARE @objectID int
    DECLARE @hResult int
    DECLARE @source varchar(255), @desc varchar(255)
    EXEC @hResult = sp_OACreate 'MSXML2.ServerXMLHTTP.6.0', @objectID OUT
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'Create failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    -- open the destination URI with Specified method
    EXEC @hResult = sp_OAMethod @objectID, 'open', null, @methodName, @URI, 'false', @UserName, @Password
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'Open failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    -- set request headers
    EXEC @hResult = sp_OAMethod @objectID, 'setRequestHeader', null, 'Content-Type', 'text/xml;charset=UTF-8'
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'SetRequestHeader failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    -- set soap action
    EXEC @hResult = sp_OAMethod @objectID, 'setRequestHeader', null, 'SOAPAction', @SoapAction
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'SetRequestHeader failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    declare @len int
    set @len = len(@requestBody)
    EXEC @hResult = sp_OAMethod @objectID, 'setRequestHeader', null, 'Content-Length', @len
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'SetRequestHeader failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    -- send the request
    EXEC @hresult = sp_OAMethod @objectID, 'send', NULL, @requestBody
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'Send failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    declare @statusText varchar(1000), @status varchar(1000)
    -- Get status text
    exec sp_OAGetProperty @objectID, 'StatusText', @statusText out
    exec sp_OAGetProperty @objectID, 'Status', @status out
    select @status, @statusText, @methodName
    -- Get response text
    exec sp_OAGetProperty @objectID, 'responseText', @responseText out
    IF @hResult <> 0
    BEGIN
    EXEC sp_OAGetErrorInfo @objectID, @source OUT, @desc OUT
    SELECT hResult = convert(varbinary(4), @hResult),
    source = @source,
    description = @desc,
    FailPoint = 'ResponseText failed',
    MedthodName = @methodName
    goto destroy
    return
    END
    destroy:
    exec sp_OADestroy @objectID
    SET NOCOUNT OFF
    The underlined portion is the one that gives error, reported below.
    "Msxml6.dll 0x80070057 The parameter is incorrect. Send failed POST"
    Previously the SP used MSXML3.dll and also with that it gives the same problem.
    I can't understand what the wrong parameter is.
    Even because, as mentioned at the beginning, everything works fine on windows server 2008R2 and Windows Server 2003
    Some ideas?

    Hello, 
    We have built a dll via CLR on the database. 
    Below is the code.
    If you want to send the file SOAP.dll. Give me an e-mail ..
    USE MydatabaseGO
    /****** Object: SqlAssembly [SOAP] Script Date: 03/05/2014 12:59:14 ******/
    CREATE ASSEMBLY [SOAP]
    AUTHORIZATION [dbo]
    FROM MyPath\SOAP.dll
    WITH PERMISSION_SET = EXTERNAL_ACCESS
    GO
    USE Mydatabase
    GO
    /****** Object: StoredProcedure [dbo].[spmd_HTTPRequest3] Script Date: 03/05/2014 12:53:32 ******/
    CREATE PROCEDURE [dbo].[spmd_HTTPRequest3]
    @URI [nvarchar](4000),
    @methodName [nvarchar](4000),
    @requestBody [nvarchar](4000),
    @SoapAction [nvarchar](4000),
    @UserName [nvarchar](4000),
    @Password [nvarchar](4000),
    @responseText [nvarchar](4000) OUTPUT
    WITH EXECUTE AS CALLER
    AS
    EXTERNAL NAME [SOAP].[StoredProcedures].[spmd_HTTPRequest3]
    GO
    Now call the new SP called spmd_HTTPRequest3
    By..

  • Services.msc window not opening in Windows Server 2012

    Hi,
    I have installed Windows Server 2012 on my laptop, when I am typing services.msc in run, the services management window opens and closes immediately and no logs in event viewer.
    Same thing happens with Task Manager. I am not able to diagnose this issue.
    Kindly suggest.
    Ankur Seth

    Did you ever find a fix to this issue?

  • SQL Server 2012 Express SP1 will not install on Windows Server 2012 Essentials R2

    I have been attempting to install SQL Server 2012 with SP1 Express Edition for about a two weeks and have been unsuccessful.  My organization recently purchased a new Dell PowerEdge T320 Server (64 Bit) with Intel Xeon Proc.-E5-2420; 2.2Ghz, 32 Gb RAM,
    1 Tb RAID 5 H/D, and Windows Server 2012 R2 Essentials (preinstalled).  The server will be configured as an on premises server.  We are running a small church management application that requires SQL Server 2012 SP1 Express.  Per the direction
    of our application vendor, we downloaded the SQL Server 2012 SP1 Express file (SQLEXPRADV_x64_ENU.exe) from the Microsoft SQL Server Website.  We ran the file "As Administrator" and the SQL Server 2012 Setup program began. 
    We selected New SQL Server Stand-Alone Installation, successfully installed the needed Product Updates, and accepted the MS SQL Server 2013 Express License terms. 
    When the Feature Selection Page appeared we checked only the "Data Base Eng Services".  The
    Instance Configuration Page was displayed and we inserted a "Named Instance= Shelby",then pressed next.  On the
    Server Configuration Page the only change was setting the "sql server browser = automatic".  The Database Engine Configuration Page appeared
    and we inserted the following settings:1] Server Configuration Tab; a) mixed mode, b)inserted SQL Server Admin pswd, c) added current user as administrator: 2] Data Directories Tab; default/no changes: 3] User Instanced Tab; default/no
    changes: and 4] Filestream Tab; default/no changes.  Next the
    Reporting Services Configuration Page came up and the reporting services native mode was set to
    "install and configure".  The Error Reporting Page appeared and was left as the
    "default".  The SQL Server 2012 Setup program proceeded to Installation Progress Page and started to install. Just before the install program ended it displayed a message saying that there
    were errors and the Database Eng Services did not succeed. I uninstalled SQL Server 2012 SP1 Express three (3) times, ran Windows Update after every uninstall, attempted to install the Database Engine and got the same results.  Are there any patches or
    special procedures for correctly installing SQL Server 2012 SP1 Express on my hardware configuration or Windows Server 2012 Essentials R2?  Any insight would be greatly appreciated.

    Can you post the setup Summary and detail logs, which will help to figure out the problem? The details about the location can be found at https://msdn.microsoft.com/en-us/library/ms143702(v=sql.110).aspx
    Satish Kartan www.sqlfood.com

  • Specific layout using Work Groups (Windows Server 2012 R2)

    I'm running Windows Server 2012 R2 in my company and we're interested in using the new Work Groups feature for a specific layout.
    We currently have a shared folder with our personal work folders inside, to which only each respective user has access to. Then we have a public folder for all the people in the company to share files freely. 
    So what do we want? We want to have a local folder that synchs with our server folder and to which only each of us has access. We also want each of the work folders to be encrypted. What's my problem? I haven't understood too much about the new
    feature yet. So far the feature is installed but it seems to me it can only be applied to one network folder (workgroup) entirely at a time. I want to sync each folder INSIDE the workgroup with the same number of local folder, and password-protect both.
    How can this be done?

    Hi,
    Did you check this article?
    Introducing Work Folders on Windows Server 2012 R2
    http://blogs.technet.com/b/filecab/archive/2013/07/10/introducing-work-folders-on-windows-server-2012-r2.aspx
    Regards.
    Vivian Wang

  • Monitor will not restart on Windows Server 2012

    With release build we can install Monitor agent on Windows Server 2012, with admin, POA, MTA etc also installed and running ok, in either service or application mode and the monitor agent will run ok at the end of the install. If then exit the application and try to restart it will fail with no errors. Uninstall and re install the application and it will again start first time but not thereafter.

    JulianBowker,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Problem Windows 8 logon script not working from windows server 2008 R2

    hi there , this is third post regard this problem, here is my problem goes .....
    Is a very simple logon script for mapping drive purpose .... PLS take note Domain users can access and run this script for domain users using windows XP / WINDOWS VISTA / WINDOSWS 7 and only  users " WINDOWS 8.1 " Does NOT run
    at all . the script I put on logon script in Windows server 2008R2 group policy ... 
    @jrv :- http://social.technet.microsoft.com/profile/jrv/?ws=usercard-mini , insist said is my group policy setup problem so I post here agn...
    Manually run the script on WINDOWS 8.1 is 100 % perfect so it is definitely not my logon script issue , PLS any guidance pls share for me ok ?? thanks
    Below is my script syntax ;-
    @echo off
    REM Login.bat Version 1.0
    REM Exit if user has logged on to the Server
    IF %COMPUTERNAME%.==SL2011. GOTO END
    REM Delete pre-existing drive mappings
    REM
    REM Map M: to SL2011 on sl2011
    NET USE M: /DELETE >nul
    NET USE M: \\SL2011\sl2011 /YES >nul
    REM
    REM Map Y: to AccScan on rss2
    NET USE Y: /DELETE >nul
    NET USE Y: \\rss2\Public\AccScan /YES >nul
    REM

    Hi Tee Ee Foong,
    According to your post, the gpresult showed the GPO was applied and the script could run successfullymanully in the client. Right? Please follow the following step to narrow down
    the issue:
    1. Change the script to the following command: add 
    > %SystemDrive%\Users\test.txt to the script.
    2. Log on to a client with a regular user account, run gpupdate/force, and then re-log on to this client.
    3. Check if the test.txtfile exists in this location %SystemDrive%\Users.
    If the test.txtfile exists, the GPO with logon script is applied successfully when user logs on. But the result of running logon script achieves the goal we excepted or not which
    is still not sure.
    Regards,
    Lany Zhang

Maybe you are looking for

  • Stereo Out Problem with Macbook Aluminium(Late 2008) Debian OS

    Hello. I'm using my Macbook Aluminium(Late 2008) with 2 operation systems: Snow Leopard(10.6.8) & Debian Squeeze (6.0.4). I've no problem with OsX side, works fast & great. But I've got a interesting problem with Linux side. Everything works but Ster

  • Lock & Edit button not present in Change Center

    Hi, I installed Weblogic server 10.3. When i go to the administration console, the "Lock & Edit" button is not present in the Change Center. The Change Center is present and has the following text in there "Configuration editing is enabled. Future ch

  • Reply/Forward Indicator in Mail

    For some odd reason, any message that I either "Forward" or "Reply" to in my Inbox, does not show the respective arrow icons. The Forward arrow icon being a horizontal arrow pointing to the right and the Reply icon being curved arrow which goes from

  • Amex and Navy Fed Approval

    So funny thing is I work at a bank, so after truly figuring out and understanding the run down of utilization, limits, and types of lending to establish good credit. After two years of bad credit and a 16% interest rate auto loan, I built my credit s

  • HT4906 how do i import photos fom my iphone to my iPhoto

    I just upgrated to the OS X Mountain Lion on my MacBook Pro to have the iCloud on my computer how can I make sure my iPhone 4s photos upload to the computer automatically best, Sigga