Certreq -submit run locally returns successful but run remote via invoke-command hangs

Good morning I have been struggling with a certificate request script.
The requesting server is in the dmz and I have a management server internally.
I successfully create the Inf file, as well as the req file then copy the req file to my internal management server. Once copied internal I attempt to run the following command from my laptop executing as my admin account
$Fqdn = "server.dmz.com"
$managementServer = "InternalServer"
$Path = "C$\Test\CertRequests"
Invoke-Command -ComputerName $Managementserver -ScriptBlock {param($CertificateAuthority,$FQDN,$Managementserver,$Path) certreq.exe -submit -attrib "CertificateTemplate:DVNOfflineComputer" -config "$CertificateAuthority" "\\$Managementserver\$Path\$FQDN.req" "\\$Managementserver\$Path\$FQDN.crt"} -ArgumentList $CertificateAuthority,$FQDN,$Managementserver,$Path
This exact command pasted into a powershell window locally on the management server returns the crt file.
Run via invoke-command just hangs forever. I even tried to the Silent=True in inf file as well as -q but neither worked.
Any help is greatly appreciated.

Hi Jason,
I reform the script as below, and add the "test-path" to check if the .req and .crt files exist, please also note you haven't assign value to the "$CertificateAuthority" variable:
$Fqdn = "server.dmz.com"
$managementServer = "InternalServer"
$Path = "C$\Test\CertRequests"
$CertificateAuthority = "something"
$script={
param($CertificateAuthority,$FQDN,$Managementserver,$Path)
test-path "\\$Managementserver\$Path\$FQDN.req"
test-path "\\$Managementserver\$Path\$FQDN.crt"
certreq.exe -submit -attrib "CertificateTemplate:DVNOfflineComputer" -config $CertificateAuthority "\\$Managementserver\$Path\$FQDN.req" "\\$Managementserver\$Path\$FQDN.crt"
Invoke-Command -ComputerName $Managementserver -ScriptBlock $script -ArgumentList $CertificateAuthority,$FQDN,$Managementserver,$Path
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • HTTP Request returns success, but does not work in azure

    I created a simple worker role project that sends an HTTP GET request to the weather underground site to update my weather stats from my weather station. The data it sends is pulled from a SQL database stored on Azure.
    The solution works perfectly when I run it on my local emulator.  When I deploy it to staging in azure it runs without error.  I even get an HTTP success as the response to my GET.  However, my weather underground stats don't get updated. 
    I connected the VS debugger to azure and can step through the code and it all seems to work as expected.  I get back an appropriate HTTP response.
    Thoughts???
    Thanks,
    McP

    I figured it out.  Upon close inspection I noticed that the date and time value that I was setting in my query string was off by 4 hours.  See, azure uses UTC time.  The service I was calling expects the datetime to be UTC as well.  So,
    I was doing a simple conversion to UTC time in my code.  However, because the time was being stored in the database as local time, when I would call the conversion in code it was basically adding 0 hours to it because the azure instance was already running
    in UTC.  So, I ended up doing a little time zone math to calculate the difference between my zone and UTC and then added that to the time coming from the database.
    The reason it was returning success was because the service allows you to update older records.  However, if you are just looking at current weather conditions you would think that it wasn't being updated.
    So remember - Azure runs on UTC time!!!

  • UCCX Recording step returns success, but the recording is empty

    I have a weird problem on a new UCCX install. (10.5)
    When recording a prompt using the recording step, I am immediately trying to play the recording back, and it is silence / empty.  I can upload the recording ok, but the uploaded file is always 0.06KB regardless of how long I try to record the prompt.
    Any ideas?

    Ooops. I'm so sorry. Yes, it is the same issue. It looks like I was too keen and posted at the same time as a colleague.
    Please disregard this post.
    Apologies.

  • Scheduled report gets no data but returns success status

    I have a large scheduled webi report which normally takes 2 hours to run against SAP BW. Sometimes, the report will complete very quickly (within 30 miunutes) and returns success, but there is no data in the report. Is this a WEBI problem  or some sort of BW time-out? The thing bothers me is that it should not have returned success.
    I'm using 3.1 SP2, FP 2.5.

    How much huge data you have?? (No.of rows -- In WebI)
    Scheduling done by User logged in BO or Administrator??
    If User, he/she have rights to do that(data access) or have only Schedule right??
    Thank You!!

  • Load js file fail while the server returned successfully

    I found a wired problem in our user's firefox.
    in our project, we need load many javascript files to render the form,
    we have two similar js files, in firefox one loaded successfully while the other will not, but both of the js files can be loaded successfully in Chrome.
    I debugged in firebug, in most times, it will have no return, and if I try to refresh the page, I can still see the request of previous page, and the response says "please reload the page to get source for http://......"
    we doubt if this is because the server didn't return successfully, I used WireShark to monitor the packages received from server. It is strange that the js file returned with Http code "200"
    it means the server returned successfully, but the browser didn't load it.
    and this problem only happens in firefox of our user in north china, for those from Japan, Thailand, USA don't have this problem, and if I use proxy in USA, the problem will not happen either.

    I monitored all the requests in browser console, I found there is a POST request to safebrowsing.clients.google.com.
    this request cost more than 40 seconds.
    In which situation, Browser will send request to safebrowsing.clients.google.com?

  • Running FMLE via command line without installation?

    Hi,
    I would like to run FMLE via the command line without an installation of FMLE. I would use AIR to deliver FMLE files and call the command line via the NativeProcess API.
    Is that possible?
    Thanks a lot.
    Malte

    Ladies and gentlemen.....I have solved my problemo!
    The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
    trying to access the same standard log file simultaneously.
    I modified each cmd file to write logging info to individual files: eg
    /logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
    Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
    I am definitely having a beer this evening!
    Thanks for everyone's input...kept me on the righteous path :)

  • 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?

  • Uninstall Adobe Shockwave 12.1.1.151 scripts run successfully but doesn't uninstall program

    I am using sccm2012 R2 and trying to deploy package to uninstall Adobe shockwave player 12.1.1.151 using following script
    cmd /c shockwave-test.bat
    pushd "%~dp0"
    msiexec /uninstall sw_lic_full_installer.msi
    If run script manually on command prompt it uninstall Adobe shockwave player but deployment using sccm doesn't work.
    Deployment status - success,
    Message ID: 10008
    program completed with success
    Program and features still have Adobe shockwave player listed there.
    I have also tried msiexec /x using product code as application using windows installer and registry key as detection method but same results
    Here are logs of Execmgr.log file
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="AO10022F",ProgramID="Uninstall shockwave - test", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l
    execmgr 06/11/2014 6:45:07 PM
    2480 (0x09B0)
      Processing [{40BF1D3A-8F3D-4088-A1F7-ED85EB5EFF7F}, 0]: OnContentAvailable
    execmgr
    06/11/2014 6:45:11 PM 4664 (0x1238)
    [{40BF1D3A-8F3D-4088-A1F7-ED85EB5EFF7F}]: Content Version 12 is available for advert RET210E2, pkg: AO10022F, program Uninstall shockwave - test.
    execmgr 06/11/2014 6:45:11 PM
    4664 (0x1238)
    An existing MTC token was not supplied, using ExecutionRequest's Id as MTC token and this execution request is the owner of resultant MTC task.
    execmgr 06/11/2014 6:45:11 PM
    4664 (0x1238)
    Request a MTC task for execution request of package AO10022F, program Uninstall shockwave - test with request id: {CBD5312D-CAAB-446C-BB2F-7DB515F6EE79}
    execmgr 06/11/2014 6:45:11 PM
    4664 (0x1238)
    Execution Request for advert RET210E2 package AO10022F program Uninstall shockwave - test state change from WaitingContent to Ready
    execmgr 06/11/2014 6:45:12 PM
    4664 (0x1238)
    MTC task with id {CBD5312D-CAAB-446C-BB2F-7DB515F6EE79}, changed state from 0 to 4
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="AO10022F",ProgramID="Uninstall shockwave - test", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l
    execmgr 06/11/2014 6:45:12 PM
    4664 (0x1238)
      Processing [{40BF1D3A-8F3D-4088-A1F7-ED85EB5EFF7F}, 0]: RemoveNotification
    execmgr 06/11/2014 6:45:12 PM
    4664 (0x1238)
    MTC signaled SWD execution request with program id: Uninstall shockwave - test, package id: AO10022F for execution.
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Sending ack to MTC for task with id: {CBD5312D-CAAB-446C-BB2F-7DB515F6EE79}
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Executing program cmd /c shockwave-test.bat in Admin context
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Execution Request for advert RET210E2 package AO10022F program Uninstall shockwave - test state change from Ready to NotifyExecution
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="AO10022F",ProgramID="Uninstall shockwave - test", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Checking content location C:\Windows\ccmcache\1g for use
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Successfully selected content location C:\Windows\ccmcache\1g
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Executing program as a script execmgr
    06/11/2014 6:45:12 PM 1624 (0x0658)
    Found executable file cmd with complete path C:\Windows\system32\cmd.exe
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Successfully prepared command line "C:\Windows\system32\cmd.exe" /c shockwave-test.bat
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Command line = "C:\Windows\system32\cmd.exe" /c shockwave-test.bat, Working Directory = C:\Windows\ccmcache\1g\
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Running "C:\Windows\system32\cmd.exe" /c shockwave-test.bat with 32bitLauncher
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Created Process for the passed command line
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Raising event:
    [SMS_CodePage(437), SMS_LocaleID(1033)]
    instance of SoftDistProgramStartedEvent
    ClientID = "GUID:d0c3da0e-ff4f-48c2-8612-805a8de31191";
    CommandLine = "\"C:\\Windows\\system32\\cmd.exe\" /c shockwave-test.bat";
    DateTime = "20141107004512.476000+000";
    PackageName = "AO10022F";
    ProcessID = 1264;
    ProgramName = "Uninstall shockwave - test";
    ThreadID = 1624;
    UserContext = "NT AUTHORITY\\SYSTEM";
    WorkingDirectory = "C:\\Windows\\ccmcache\\1g\\";
    execmgr
    06/11/2014 6:45:12 PM 1624 (0x0658)
    Raised Program Started Event for Ad:xx210E2, Package:AO10022F, Program: Uninstall shockwave - test
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="AO10022F",ProgramID="Uninstall shockwave - test", actionType 1l, value NULL, user NULL, session 4294967295l, level 0l, verbosity 30l
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Raising client SDK event for class CCM_Program, instance CCM_Program.PackageID="AO10022F",ProgramID="Uninstall shockwave - test", actionType 1l, value , user NULL, session 4294967295l, level 0l, verbosity 30l
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    MTC task with id {CBD5312D-CAAB-446C-BB2F-7DB515F6EE79}, changed state from 4 to 5
    execmgr 06/11/2014 6:45:12 PM
    1624 (0x0658)
    Program exit code 0 execmgr
    06/11/2014 6:45:21 PM 4276 (0x10B4)
    Looking for MIF file to get program status execmgr
    06/11/2014 6:45:21 PM 4276 (0x10B4)
    Thanks in advance for help and suggestions
    RJ
    RJ09

    Thanks for quick reply Daniel
    I tried your suggestion and in log files I found error
     Product: Adobe Shockwave Player 12.1 -- Error 2753.The File 'swhelper_1211151.exe' is not marked for installation.
    Error 2753.The File 'swhelper_1211151.exe' is not marked for installation.
    Property(S): ErrorDialog = SetupError
    MSI (s) (34:D8) [14:08:29:832]: Windows Installer removed the product. Product Name: Adobe Shockwave Player 12.1. Product Version: 12.1.1.151. Product Language: 1033. Manufacturer: Adobe Systems, Inc. Removal success or error status: 1603.
    RJ09

  • I just purchased the latest iPhoto to update my 7.1.5.I have run the Library upgrade tool 2x, each saying installed successfully.But, each time I try to open iPhoto, I get the msg,"To open this version of iPhoto,the library needs to be prepared"OSX 10.9.3

    I just purchased the latest iPhoto to update my 7.1.5.I have run the Library upgrade tool 2x, each saying installed successfully.But, each time I try to open iPhoto, I get the msg,"To open this version of iPhoto,the library needs to be prepared"OSX 10.9.3

    each saying installed successfully
    It looks like you installed the Library Upgrader, but did not run it. It is installed in "Applications > Utilities". Launch this tool and click the "Choose Library" button to direct it to your iPhoto library.

  • Task scheduler is showing success but not running job

    Hello, I have a relatively simple .net application that I realized when ran through the Task Scheduler of a Windows 2008 R2 server it shows in the status that i completed successfully but apparently did not run at all from looking at the log file. 
    When I just manually execute this program it runs perfectly fine.  I am using myself as the user to run this task and have full permissions. 
    I also tried a test batch file that just echos some text into a text file.  Same issue.... shows that it runs ok in task scheduler but doesnt do anything while running it manually works fine.
    Any ideas of what could be causing this?  thanks

    Hi Nehemiah,
    I ran the test batch file as below and work without issue:
    @echo This is a test> d:\test.txt
    And this is my setting:
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Service Pack for Proliant installing successfully but returning failure in OSD task sequence

    Building bare metal servers with SCCM 2012 SP1 CU2 OSD and running into an issue with HPs where they attempt to install the Service Pack for Proliant 2013.02.0.  I am using a package with a program.  Here is the program command line:
    Hpsum.exe /use_latest /allow_non_bundle_components /current_credential /silent
    The application installs successfully but there is a distinct delay and then errors thrown that fails the TS.  Setting 'continue on error' is a work around but not what I want to have in the production environment.  How can I get around this issue?
     This is the same exact package and program that ran perfectly fine in SCCM 2007, but we are seeing this as a new issue since the migration to SCCM 2012.
    I'd like to solve this issue as well as get rid of the "Waiting for job status notification....InstallSoftware"
    Any suggestions?
    SMSTS.LOG
    Invoking Execution Manager to install software InstallSoftware
    12/3/2013 9:59:49 AM 1568 (0x0620)
    Installing software for PackageID='WCD002D2' ProgramID='Silent install' AdvertID='WC120008' has started, jobID='{8B4082A9-9477-4D1F-9DEC-6A3F19EC3F6F}'
    InstallSoftware 12/3/2013 9:59:50 AM
    1568 (0x0620)
    Setting TSEnv variable 'SMSTSInstallSoftwareJobID_WCD002D2_WC120008_Silent install'='{8B4082A9-9477-4D1F-9DEC-6A3F19EC3F6F}'
    InstallSoftware 12/3/2013 9:59:50 AM
    1568 (0x0620)
    Waiting for installation job to complete.. InstallSoftware
    12/3/2013 9:59:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:00:20 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:00:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:01:20 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:01:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:02:20 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:02:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:03:20 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:03:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:04:20 AM 1568 (0x0620)
    Launching command shell. OSDSetupHook
    12/3/2013 10:04:25 AM 2696 (0x0A88)
    Windows station: WinSta0 OSDSetupHook
    12/3/2013 10:04:25 AM 2696 (0x0A88)
    Desk"Apple-tab-span" style="white-space:pre;"> OSDSetupHook
    12/3/2013 10:04:25 AM 2696 (0x0A88)
    executing command: C:\WINDOWS\system32\cmd.exe /k
    OSDSetupHook 12/3/2013 10:04:25 AM
    2696 (0x0A88)
    executed command: C:\WINDOWS\system32\cmd.exe /k
    OSDSetupHook 12/3/2013 10:04:25 AM
    2696 (0x0A88)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:04:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:05:20 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:05:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:06:20 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:06:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:07:20 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:07:50 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:08:20 AM 1568 (0x0620)
    Waiting for job status notification... InstallSoftware
    12/3/2013 10:08:50 AM 1568 (0x0620)
    CompleteExecution received InstallSoftware
    12/3/2013 10:09:00 AM 3320 (0x0CF8)
    CompleteExecution processed InstallSoftware
    12/3/2013 10:09:00 AM 3320 (0x0CF8)
    Received job completion notification from Execution Manager
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    Installation completed with exit code 0x80070001
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    Installation failed with error (0x80070001)
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    Setting TSEnv variable 'SMSTSInstallSoftwareJobID_WCD002D2_WC120008_Silent install'=''
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    GetExecRequestMgrInterface successful InstallSoftware
    12/3/2013 10:09:00 AM 1568 (0x0620)
    Releasing job request, jobID='{8B4082A9-9477-4D1F-9DEC-6A3F19EC3F6F}'
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    Releasing of Job Request successful InstallSoftware
    12/3/2013 10:09:00 AM 1568 (0x0620)
    CompleteJob successful InstallSoftware
    12/3/2013 10:09:00 AM 1568 (0x0620)
    Entering ReleaseSource() for D:\_SMSTaskSequence\Packages\WCD002D2
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    reference count 1 for the source D:\_SMSTaskSequence\Packages\WCD002D2 before releasing
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    Released the resolved source D:\_SMSTaskSequence\Packages\WCD002D2
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    pInstall->Install(sPackageID, sProgramName), HRESULT=80070001 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,361)
    InstallSoftware 12/3/2013 10:09:00 AM
    1568 (0x0620)
    Install Software failed, hr=0x80070001 InstallSoftware
    12/3/2013 10:09:00 AM 1568 (0x0620)
    Process completed with exit code 2147942401
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    Failed to run the action: HP Server Pack for ProLiant 2013.02. 
    Incorrect function. (Error: 80070001; Source: Windows)
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    MP server http://MP_server.company.com. Ports 80,443. CRL=false.
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    Setting authenticator TSManager
    12/3/2013 10:09:00 AM 3372 (0x0D2C)
    Set authenticator in transport TSManager
    12/3/2013 10:09:00 AM 3372 (0x0D2C)
    Sending StatusMessage TSManager
    12/3/2013 10:09:00 AM 3372 (0x0D2C)
    Setting message signatures. TSManager
    12/3/2013 10:09:00 AM 3372 (0x0D2C)
    Setting the authenticator. TSManager
    12/3/2013 10:09:00 AM 3372 (0x0D2C)
    CLibSMSMessageWinHttpTransport::Send: URL: MP_server.company.com:80  CCM_POST /ccm_system/request
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    Request was succesful. TSManager
    12/3/2013 10:09:00 AM 3372 (0x0D2C)
    Set a global environment variable _SMSTSLastActionRetCode=-2147024895
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    Set a global environment variable _SMSTSLastActionSucceeded=false
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    Clear local default environment TSManager
    12/3/2013 10:09:00 AM 3372 (0x0D2C)
    Let the parent group (System Management Install) decides whether to continue execution
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    The execution of the group (System Management Install) has failed and the execution has been aborted. An action failed.
    Operation aborted (Error: 80004004; Source: Windows)
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)
    Failed to run the last action: HP Server Pack for ProLiant 2013.02. Execution of task sequence failed.
    Incorrect function. (Error: 80070001; Source: Windows)
    TSManager 12/3/2013 10:09:00 AM
    3372 (0x0D2C)

    Hello Guys!
    HP ProLiant Support Pack / Service Pack uses different Exit Codes, due to that this software support other operating systems than Windows. Therefore HP has standardized to use other Exit Codes, which Windows Detect as failures.
    HPSum Exit Codes:
    ExitCode 1 = "Installation Successful"
    ExitCode 2 = "Installation Successful, but a reboot is required"
    ExitCode 3 = "Installation was canceled, or no components were updated"
    EcitCode 9009 = "Installation did not complete.  Check the path and make sure that the Installation exists at the specified location"
    HP recommends to use following Batch File to workaround this issue for SCCM:
    =======================START_BatchFile=============================
    :Init
      @Echo Off
      Cls
    :Main
      Echo HP Proliant Service Pack Setup
      Echo Source : %~dp0
      Echo ===============================================================================
      Echo Installing the HP Proliant Service Pack Setup
      Echo Command: "%~dp0hpsum.exe" /use_latest /target:%COMPUTERNAME% /force /Use_WMI /s
      "%~dp0hpsum.exe" /use_latest /target:%COMPUTERNAME% /force /Use_WMI /s
    :CheckForErrors
      Echo HP Proliant Service Pack Stauts:
      If "%errorlevel%"=="0" (
         Echo *******************************************************************************
      Echo                            INSTALLATION FAILED!
      Echo *******************************************************************************
      exit 1
      If "%errorlevel%"=="1" (
         Echo Installation Successful!
         exit 0
      If "%errorlevel%"=="2" (
         Echo Installation Successful, but a reboot is required.
         exit 3010
      If "%errorlevel%"=="3" (
         Echo Installation was canceled, or no components were updated
         exit 0
      If "%errorlevel%"=="9009" (
         Echo Installation did not complete.  Check the path and make sure that the
      Echo Installation exists at the specified location:
      Echo Path: %~dp0
      Exit 1
    :End
      Echo An unknown status code was returned from the PSP.
      Echo This status code is [%errorlevel%].  This will be treated as a success,
      Echo but please check the installation to make sure it completedly properly!
      Exit 0
    =======================STOP_BatchFile=============================
    God Luck!
    Best Regards Anders Horgen

  • Complete data not getting returned when running IIS (v7.5) commands remotely.

    Hello All,
    I searched quite a number of forums before posting and all that I have come to know is that some have mentioned it to be related to COM. I do not have experience dealing with COM and no idea how I can sort this out. I hope someone can provide guidance on
    these:
    Question 1: Server (2008 R2 Standard) is having 4 websites. Default - Running, WS2 - Stopped, WS3 - Running and WS4 - Running. When I run the command "invoke-command -computername Server1 -Credential domain\User -ScriptBlock
    {import-module 'webAdministration'; get-website}"
    I get this output and then an error:
    name            : Default Web Site
    id              : 1
    serverAutoStart : False
    state           : Stopped
    bindings        : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
    PSComputerName  : Server1
    RunspaceId      : ca8bbb00-4631-4c92-a7c7-3bec8039eaee
    Attributes      : {Microsoft.IIs.PowerShell.Framework.ConfigurationAttribute,
                      Microsoft.IIs.PowerShell.Framework.ConfigurationAttribute,
                      Microsoft.IIs.PowerShell.Framework.ConfigurationAttribute,
                      Microsoft.IIs.PowerShell.Framework.ConfigurationAttribute}
    ChildElements   : {Microsoft.IIs.PowerShell.Framework.ConfigurationElement
                      Microsoft.IIs.PowerShell.Framework.ConfigurationElement
                      Microsoft.IIs.PowerShell.Framework.ConfigurationElement
                      Microsoft.IIs.PowerShell.Framework.ConfigurationElement
                      Microsoft.IIs.PowerShell.Framework.ConfigurationElement,
                      Microsoft.IIs.PowerShell.Framework.ConfigurationElement,
                      Microsoft.IIs.PowerShell.Framework.ConfigurationElement,
                      Microsoft.IIs.PowerShell.Framework.ConfigurationElement...}
    ElementTagName  : site
    Methods         : {Microsoft.IIs.PowerShell.Framework.ConfigurationMethod,
                      Microsoft.IIs.PowerShell.Framework.ConfigurationMethod}
    Schema          : Microsoft.IIs.PowerShell.Framework.ConfigurationElementSchema
    The data is invalid. (Exception from HRESULT: 0x8007000D)
        + CategoryInfo          : NotSpecified: (:) [Get-Website], COMException
        + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.GetWebsite
       Command
    What I have been able to figure out is that it returns complete data for the Default Website and then throws the error. Tried the same command on another server running 2 websites (both in started state) and same results :(
    Question 2: When the same command "Get-Website" is run locally on the server then only 5 columns show by default; Name, ID, State, Physical Path & Bindings. Why then the command when run remotely returns slightly
    more data?
    PS: I have Win7 x64 on my desktop. Tried the commands from x86 as well as x64 shells and same results.

    Hi Yan,
    When I use Enter-PSSession, it works in the same manner as if the command is run locally. Hence the same output as local.
    I am not sure of the exact way to use [Reflection.Assembly]::LoadFile('C:\Windows\System32\inetsrv\Microsoft.Web.Administration.dll') 
    I tried this and get an error:
    invoke-command -Session $session -ScriptBlock invoke-command -Session $session -ScriptBlock {[Reflection.Assembly]::LoadFile('C:\Windows\System32\inetsrv\Microsoft.Web.Administration.dll'); get-website}
    Output:
    GAC    Version        Location                                                   PSComputerName
    True   v2.0.50727     C:\Windows\assembly\GAC_MSIL\Microsoft.Web.Administrati... Server1
    The term 'get-website' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
    name, or if a path was included, verify that the path is correct and try again.
        + CategoryInfo          : ObjectNotFound: (get-website:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
        + PSComputerName        : Server1
    The version of the dll on the server is 6.1.7601.17514
    Thanks

  • Run App Engine through command line but have it show up in Process Monitor

    We are trying to run Application Engine through command line and have it show up in the Process Monitor.
    We have successfully ran the Application Engine through command line. We also can successfully run the Application Engine through PIA.
    Only when you run the AppEng through PIA it goes through the Process Scheduler and shows up in the Process Monitor.
    We would like to be able to do this through command line as well. Has anyone done this before?

    I'm not sure if it is (easily) doable.
    => Fire a process through the front end appl is nothing but insert few rows in process scheduler tables settings (PSPRCSRQST, PSPRCSQUE), then the process scheduler is taking information from there every x seconds and eventually run the command (on the process scheduler server) keeping an eye on the process result in the tables to post the result.
    => Fire psae through command line (or pssqr) bypass the process scheduler, you can run it from any client... so even without any clue about Process Scheduler server or even without Process Scheduler at all (cf. the very first AE running during an installation is VERSION without anything else than the client).
    So finally, your AE program has no clue where it should run outside the client you are fired the command from (i.e. on the batch server as it is running when you are fired the same AE through the front end application), nothing more about the process scheduler configuration file, and where the output files should be posted.
    Maybe not by running the AE from the command line, but by simulating the actions as it would be from the front end application, for instance by inserting in the tables whatever you want to run... but it sounds odd. Probably some developer might have done this before... but this should be reconsidered by Peopletools version/patch level (or through CI ?)
    Nicolas.
    added the last paragraph
    Edited by: N Gasparotto on May 21, 2010 2:46 PM

  • Oracle report runs correctly via report builder but call report via form with parameters skips one of the plsql formula

    Hello everybody,
    I created a oracle report i.e Bank Book having banks transactions receipts and payments and opening balance w.e.f 01-jul-2014. parameters are bank code, from_date and to_date. opening balance calculates (return ope from table bankinfo +total receipts-total payments). reports runs correctly via report builder. balances are ok. but the problem is when i run this report via oracle form opening balance return only ope from table bankinfo and skips total receipts-total payments.....
    i dont think so why this happend at all. some body help me...
    thanks
    Abdul Salam

    Hi ,
    This community is to discuss Oracle Application Server specific issues, you can post this query in for better response:
    Oracle Reports (MOSC)
    Regards,
    Prakash.

  • Powershell script to set custom attribute on mailuser returns WARNING: The command completed successfully but no settings of user have been modified.

    I am trying to write a script to enable a mailuser (I do know the difference between mailuser and mailbox) and set a custom attribute for that mailuser.  Every time I run the script I get "WARNING: The command completed successfully but no settings
    of <User DN> have been modified."  Both commands being invoked work when typed manually into the exchange management shell on the exchange server itself.  I am using the same administrator account in the script, and when I login to the
    exchange server to manually run the commands, so it shouldn't be a permission issue.  Here is my script so far.  If anyone can shed some light on what I'm doing wrong, I'd appreciate it.
    $excel = new-object -com excel.application
    $wb = $excel.workbooks.open("c:\temp\testmail8.xlsx")
    $ws = $wb.Worksheets.Item(1)
    $row = 1
    $s = New-PSSession -ConfigurationName microsoft.exchange -ConnectionUri http://<Exchange Server Name>/powershell -Credential [email protected]
    Do {
    $Email = $ws.Cells.Item($row, 1).Value()
    $Cat = $ws.Cells.Item($row, 2).Value()
    invoke-command -Session $s -ScriptBlock {Enable-MailUser -ExternalEmailAddress $($args[0][0] + "@domain.com") -Identity $($args[0][0])} -ArgumentList (,$Email, $Cat)
    invoke-command -Session $s -ScriptBlock {Set-MailUser -Identity $($args[0][0]) -CustomAttribute1 $($args[0][1])} -ArgumentList (,$Email, $Cat)
    $row++
         } While ($ws.Cells.Item($row,1).Value() -ne $null)
    $excel.quit    
    Exit-PSSession

    Hi,
    I'm not sure where is wrong in your script. If you want to get more help about the script troubleshooting, I recommand you to ask a question in Script Center forum for more professional answers:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    As a workaround, please directly create a mail user in EAC and set related custom attribute to have a try.
    Thanks,
    Winnie Liang
    TechNet Community Support

Maybe you are looking for