Same command works with enter-pssession but not invoke-command

I'm trying to run an executable remotely with powershell. Right now I'm trying to install Office 2013 SP1, but in the past I've had the same issue with other executables.
The command I'm running is as follows:
Invoke-Command -computername computer01 -scriptBlock {C:\windows\Temp\proplussp2013-kb2817430-fullfile-x86-en-us.exe /quiet}
It finishes almost immediately, returning no result, having not installed anything.
However, if I do the following, it works just fine:
Enter-PSSession computer01
C:\windows\Temp\proplussp2013-kb2817430-fullfile-x86-en-us.exe /quiet
Any idea what my problem with Invoke-Command is?
Eric Hodges

I did an Enter-PSSession, then ran the command using start-process. It hangs indefinitely. I did have to change the command a little, because I couldn't just put the whole command in quotes - that gave me an error saying the file wasn't found. I separated
it into -filepath and -argumentlist params. Below is what I ran:
Enter-PsSession -computername computer01
start-process -filepath "C:\windows\Temp\proplussp2013-kb2817430-fullfile-x86-en-us.exe" -argumentlist "/quiet"
This resulted in the session hanging indefinitely. So here is where I'm at:
Enter-PsSession then running the command works
Invoke-command with the command immediately finishes, with no output and the program doesn't actually install
Enter-PsSession then running start-process hangs indefinitely
Invoke-Command plus start-process hangs indefinitely
I was curious to see if this held true with other programs, so I tried installing a program from HP with a silent switch and got identical behavior throughout all four scenarios listed above. 
Turning off on-access A/V protection made no difference.
Finally, regarding mjolinor's question about the program running in non-interactive environments: to the best of my knowledge the program can - but I'm not positive. I would assume, however, that invoke-command would build the same sort of environment as
Enter-PsSession does, and it works there.
Eric Hodges

Similar Messages

  • Same command works on the server but not on the workstation

    Scenario
    Exchange 2010 sp3
    Name                           Value
    CLRVersion                     2.0.50727.4984
    BuildVersion                   6.1.7600.16385
    PSVersion                      2.0
    WSManStackVersion              2.0
    PSCompatibleVersions           {1.0, 2.0}
    SerializationVersion           1.1.0.1
    PSRemotingProtocolVersion      2.1
    Worstation:
    Name                           Value
    PSVersion                      4.0
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    CLRVersion                     4.0.30319.18063
    BuildVersion                   6.3.9600.16406
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
    PSRemotingProtocolVersion      2.2
    I input a command from my workstation using ISE
    get-exchangeserver | Where-Object {$_.IshubtransportServer -eq $True} | Get-MessageTrackingLog -Start (get-date).AddHours(-2) -Sender '[email protected]'
    Error:
    The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the 
    parameters that take pipeline input.
    The Exact same command from the Server works.
    In my profile I have the following:
    set-Location c:\
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'http://MyExchangeServer/powershell'
    import-pssession $Session
    Import-Module ActiveDirectory
    $host.PrivateData.ErrorForegroundColor = 'green'
    Clear-Host
    From My Workstation:
    PS C:\> Get-PSSession
     Id Name            ComputerName    State         ConfigurationName     Availability
      1 Session1        MyExchangeServer  Opened        Microsoft.Exchange       Available
    Why  does the command work on the server but not on the workstation?
    Alexis

    Hi Tiri2014,
    There are some differences between Remote PowerShell and Exchange Management Shell. You cannot use the pipeline when you run some cmdlets by using Remote PowerShell.
    Here’s a link to similar case for your reference:
    Error message when you try to pipe the result of a cmdlet into another cmdlet by using Remote Powershell in Office 365 dedicated: “The input object cannot be bound to any parameters
    for the command”
    http://support.microsoft.com/kb/2701827/en-us
    Hope it helps
    Best regards

  • Windows 8.1 64bit. Webcam works with "Camera" app but not with Skype.

    I've spent a few hours googling and trying out various things - all listed below. I give up - any ideas??? OS: Windows 8.1 64bitMemory: 32GBWebCam: Microsoft VX-7000. As per subject - the webcam works with the "Camera" app but not with Skype for desktop or for Modern UI (or the Microsoft Lifecam software for that matter).  Already attempted: 1) Uninstall webcam drivers - download latest from microsoft (Windows 7) and install in Windows 7 compatibility mode.2) Close (from taskmgr) anything that looks like it might use Webcam. 3) Run Skype for Desktop in Windows 7 and 8 compatibility modes None of the above work. In Skype for Modern UI the webcam doesn't appear in the drop down in Settings - so I can't even select it. In Skype for desktops (version 6.11.32.102) the webcam is found but instead of image I get "Can't start video. Try closing other programs that might be using your webcam". I see from a bit of googling that various people seem to have the same issue (i.e. Webcam works with Camera app but not Skype) - so I'm hopeful someone has found a workaround / fix to this issue and I've just not had the googling skills to find it  Thanks, - Matt Symes

    OK - I appear to have resolved the issue.  I restricted my google terms to [vx-7000 site:microsoft.com "windows 8.1"] Which uncovered this article: http://support.microsoft.com/kb/933311 I noticed there were a couple of Windows 7 x64 specific registry settings that were mentioned so I checked these and they weren't as per the article. In fact - one of the Registry Keys was already used by other software "AI Charger+" which is some ValueAdd software that came with my motherboard. I uninstalled AI Charger+, uninstalled LifeCam driver. Reinstalled LifeCam driver in Windows 7 compatibility mode. Still not working. I returned to the registry and noticed the settings still differed from the above article. I corrected them (which involved not just amending Data but having to add new Values). I then disabled and reenabled the LifeCam from dvcmgmt.msc I was then able to get video from the webcam in the Skype for Desktop preview screen.    

  • Isight works with photo booth but not in ichat or google talk or skype?

    isight works with photo booth but not in ichat or google talk or skype?

    Hi
    Is this an Internal or External iSight ?
    In iChat, in the Video Menu (This is to the right of Buddies and may read Audio) is Camera Enabled Ticked ?
    If it reads Audio open the Connection Doctor from that same menu.
    In the connection Doctor open the Capabilities tab
    Does it say your Internet Connection is too slow ?
    At this point I would need to know which iChat Version.
    However also look in the View Menu.
    Is Show VIdeo Status ticked ?  (this shows green Icons next to your Buddy Pic and those of your Buddies
    Next go to the iChat Menu > Preferences > Video Section
    Do you see a preview here ?
    Re: GoogleTalk
    Have you enabled TALK on your Google Account Settings ?
    You need to have a Google Mail ID (Not any other sort of Google ID)
    Have you downloaded the Intel only Web Browser Plug-in to do Video in a  Web Browser.
    10:48 PM      Tuesday; August 30, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • My firewire port works with ext hd but not with audio interface

    2010 Imac 21.5 running 10.8.5. My firewire port works with ext hd but not with audio interface. The local authorized Apple tech said that I need a new motherboard, but my firewire ext drive works perfectly. I don't understand. Thanks.

    You must go to the website of the audio interface manufacturer and look for, download and install updated drivers for the audio device you are using.
    This is not, neccessarily, an Apple issue.

  • Enterprise Mgr works with one db but not the other

    Hi
    We have two Oracle 10g databases installed. Enterprise Manager works with the second, but not the first. I believe the problem started when we migrated the host server to another network domain. Everything else works fine, but I'm getting a page load failure when attempting to access enterprise mgr.
    The second db was installed after the migration and EM works fine.
    Can anyone tell me how to reconfigure this?
    Thank you

    by any change hostname or ip was changed during migration
    also can u paste the emoms.trc ?

  • Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    YEAY!
    I just got the solution (that worked for me, anyway) from a Sony support rep. No PC or VMWare needed.
    OK, you've installed Sony eBook Library v3, and Adobe Digital editions, you've set up your acocunts and authorized your computer on both of them, and you've authorized your Reader with the Sony Library application.
    You go to the public library ebook download page, either through the Sony Library or just through a bookmark.
    You check out a book, and open it in Adobe Digital Editions, which still won't recognize your Reader.
    BUT, in the Sony Library app, you can now click "File, Import.." and go find the pdf you downloaded with the Adobe app.
    On my Mac, it was in ~/Documents/Digital Editions
    Import it, and drag it to your Reader.
    The first time you do this, it will ask you to authorize the Reader with your Adobe ID.
    Worked like a charm.

  • Home sharing works with one account but not another?

    My family has an apple tv, we've been having problems setting up the home sharing and tried everything. We eventually decided to try my brother's apple id instead of my mother's and it worked. So my question is; why does home sharing not work with one id but works with the other? any suggestions to get it to work with my mother's id?

    Try resetting the Apple TV. enter your mother's ID again. Then remove her ID on iTunes and re-add it. Then see if it works this time.

  • Airport Express works with my Mac but not XP Pro

    Hello I have an Airport Express that I set up and use with my G4 laptop flawlessly.
    My Problem is trying to get my PC, running XP Pro, to play-nice with the Airport Express.
    The nutty thing is that this set up was working perfectly for months and then quit for some reason. Anyway, the I use WEP encryption and I have the same passwords set for both computers. Now, the PC sees the AE and is apparently able to connect with it but gives the alert that it has only limited connectivity and functionality with the network. Strange...
    Now, as far as I can tell there are two passwords to the AE. One is the Base Station password and the other one is for the encryption. The PC never seems to ask for the Base Station password which seems odd. As I said before, this worked well at one time (with WEP) so I don't know what's going on. I also obviously don't know XP at all so I apologize. Any advice is greatly appreciated. Thanks very much.
    -B

    Thanks for the link. I have set the AE to use WPA encryption using a 13 character plain-text network key password. I'm led to believe that this would be a palateable password for both the Mac and PC...of course this doesn't fix things. I should know that simply entering the same network key on both computers would not work. That would be too easy... Well now, in XP under Network Properties it only offers WEP or None for Data Encryption. This is weird right? Thanks a lot for all your help.
    -B

  • Attempting to use certreq -enroll to enroll to a client authentication certificate works with Windows 8, but not with Windows 7...

    This has been an issue for a while now.  Trying to use certreq -enroll -machine [Template Name] on Windows 7 machines fails with not implemented.  When I run this command with the -q flag I see that the certificate I want is unavailable and displays:
    A valid certification authority (CA) configured to issue certificates based on this template cannot be located, or the CA does not support this operation, or the CA is not trusted.
    When I go into the properties of this certificate and goto the Certification Authority tab and check the "Show all enrollment servers" it shows my server greyed out with this message:
    The system could not determine if you can access this certificate.  Not implemented.
    The template sits on a enterprise 2003 server CA and this process works with Windows 8.1 machines.  Which means that the template has the correct permissions and is issued correctly.
    Is this a known issue with Windows 7 or am I missing something in the config?  Help is greatly appreciated.
    Thanks,

    Hi
    I have done some tests on a Windows 7 Enterprise machine and a Windows 8.1 Enterprise machine, it turns out that I have the same issue with you.
    On the Windows 7 machines, I cannot use Certreq.exe to request machine certificates, but I can successfully request user certificates, and there is no issue with the Windows 8.1 machine.
    Best Regards,
    Amy
    Interesting.  From what I can tell, there are no patches that fix this issue either...

  • Mail Works With Internal Modem But Not With Airport

    The Mail app works great when I use a dial up connection but it won't work when I connect with Airport. It was something I could live with before because I could easily retrieve email through my ISP on the web, but now Mail won't work with my iPhone 3GS either after syncing it up with iTunes. Any suggestions?
    Thanks, Charlie

    Okay, I found the answer if anyone is having the same problem. The Mail POP settings on the Mac for the various Accounts I had were outdated. They were just for Dial-Up. Here is the link for the entire ATT page that deals with High Speed and iPhone connections, and the part in particular that helped me get it going.
    http://help.att.net/docs/use/email/gen/prbxxx_xxx_mail-news-settings.htm?area=customeremail-osxmail&platform=OSMAC&faqcounter#isps
    Note: Worldnet support is limited to providing the iPhone E-mail Configuration Settings. For all other iPhone technical support issues, refer the customer to: att.com/wireless
    Note: If you are using Mac OS 10.x, set up Mac OS X Mail to access your AT&T Worldnet Service e-mail.
    E-mail Settings:
    Mail Server Type: POP3
    Incoming Mail (POP): ipostoffice.worldnet.att.net
    Outgoing Mail (SMTP): imailhost.worldnet.att.net
    Note: If you are using Netscape Mail, enter your other ISP's outgoing e-mail server. If you are not sure what the SMTP server name is, contact your non-AT&T Worldnet Service ISP.
    Ensure that the option My server requires authentication is checked.
    User name or POP name: Enter the full e-mail address in the User Name field. For example: [email protected] or [email protected]
    Ensure that the option Always connect to this account using is selected, and Local Area Network is chosen from the drop-down menu on the Connections tab.
    Ensure that secure connection (SSL) is enabled and set to port number 465 for SMTP.
    Ensure that secure connection (SSL) is enabled and set to port number 995 for POP3.
    Cheers, Charlie

  • Webcam working with USB 1, but not USB 2 port with NEC Chipset

    On my sawtooth upgraded to 1.8 Mhz with 1G and a Radeo 9200 OS 10.4.9, I added a NEC Chipset USB 2.0 PCI.
    My USB Camera Logitech Quickcam Notebook Pro 860 -000026, works fine with the USB 1.0 ports, but when I hook it to the USB 2.0 it get split screen, jumpy and flashes. Same for Skype or iChat.
    USB works fine with printer, camera and mouse.
    Any thoughts?

    Just wanted to say I got hylafax to work with a usb modem on a powerbook, not sure if it's stable and user friendly enough to be used my a wide base here, but it's definitely cool, and it does work. I just wish it had LDAP/mysql integration, instead of the flat file business it has.
    Anybody with any input on hylafax would be great.

  • HylaFax on OS X 10.4.7 Working with internal modem but not USB Modem

    I have managed to configure and install HylaFax on a powerbook G4 with an internal fax/modem.
    Only a couple of hangups to get that configuration to work.
    As per the prerequisites outline here:HylaFax Prerequisites
    You need the Xcode tools to use it's compiler.
    The only other thing you may not have is:
    libtiff
    ghostscript
    If you are running an x-serve you probably already have an MTA as well (postfix)
    There are someOS X Specific install instructions of which I only had to follow the first couple, to create a user. Some of the latter instructions I found unecessary since startup is handled by launchd as far as I understand.
    Before I compiled I had to put the hylafax source on a thumb drive, I know it seems wierd, but it worked. Something to do with the HFS+ format of the hard drive. But low and behold it worked. (the hylafax website mentions issues with other disk formatting besides UFS, but the fat32 formatted thumb drive worked for me)
    A little side note:
    You need to actually download the ghostscript fonts from the ghostscript project FTP site and mv them to the proper location:
    /usr/local/share/ghostscript/8.54/fonts/
    Once installed run:
    /usr/local/sbin/faxsetup
    It should prompt you to install your modems.
    After doing this I had to start hylafax
    #sudo /usr/local/sbin/hylfax start
    and run a faxgetty command to enable incomming and outgoing
    #sudo /usr/local/sbin/faxgetty ttys.modem
    After doing so I was able to receive faxes and open them up with a pdf viewer, as well as send faxes via an application or printer driver on the mac and PC (windows xp with win hylafax print) Super SIMPLE! which is great for end users.
    Okay so here is why I am actually posting on here. It is great that I got this working, but the final configuration will be on an x-serve that has no internal modem, and I would like to use more than one modem in case of high traffic incoming and outgoing. I purchased 2 apple usb fax/modems and when running faxaddmodem it even recognizes the modem, but never is fully able to use it like the internal modem. If anyone has any insight it would be great.
    The issue I am seeing is that when I run
    /usr/local/bin/faxstat -s
    The modem says Waiting for modem to come ready
    Thanks!

    Just wanted to say I got hylafax to work with a usb modem on a powerbook, not sure if it's stable and user friendly enough to be used my a wide base here, but it's definitely cool, and it does work. I just wish it had LDAP/mysql integration, instead of the flat file business it has.
    Anybody with any input on hylafax would be great.

  • Works with normal = declaration but not with .add() function call? Why?

    I still have some problems in relation to my earlier post:
    http://forum.java.sun.com/thread.jspa?threadID=5164571&tstart=0
    Help is still warmely appreciated! Thanks already to you Franzis.
    So I try to add several JScrollPanes into on Container variable allComponents.
    I don't understand why in my program
    allComponents = jspane;works but
    allComponents.add(jspane);does not.
    Same is true for Jpanel objects. In my program
    allComponents = panel;works but
    allComponents.add(panel);does not. Why is this?
    Still I necessarily need to work with a add() function.
    So where is the problem?
    The whole source code is at:
    http://forum.java.sun.com/thread.jspa?threadID=5164571&tstart=0
    Message was edited by:
    wonderful123
    null

    I added a response in your original message:
    http://forum.java.sun.com/thread.jspa?messageID=9629812
    Let's keep to it since splitting things across two posts might be confusing.

  • ESR,ID working with 8000 port but not with 50000

    Hi experts,
    I am working with PI 7.1. I am working with SOAP to ABAP SERVER Proxy scenario. I have downloaded the WSDL from ID and using XMLSPY sent a SOAP request to PI server and I got an error in SXMB_MONI under the Call Adapter step saying CLIENT_RECEIVE_FAILED.
    We cross checked the services in  SMICM transaction, and we missed the HTTP port 8000 for the parameter icm/servr/port_xx.
    Then basis team changed the port 8000 in SMICM for the same parameter and restarted the Java stack.we checked the icm/HTTP/j2ee parameter which is having 50000 port.
    Now ESR,ID,SLD,RWB... etc are working with ABAP port 8000 but not with 50000 java port and also I am getting an error in SXI_ CACHE while doing my delta refresh if_http_client receive http_communication_failure : http_communication_failure:ICM_HTTP_CONNECTION_FAILED. Kindly suggest me to resolve this error.
    Naveen

    Hi,
    Re: Architecture of PI 7.1
    NW PI 7.1 - ICM is not binding to port 5$$00
    from the above two threads it is very clear that from PI 7.1 both the ABAP and J2EE ports are same.
    Now we maintained both the ICM and j2ee port as 50000. Now ESR,ID,SLD are working with port 50000.
    But in my SOAP to Proxy scenario I  am getting the same error. When I try to send request to XI server using Altova xmlspy I am getting following error in SXMB_MONI under Call Adapter
    <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
    When i click that HTML error It shows
    404 Resource not found
    I am getting the following error in CC monitoring .
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIServer:CLIENT_RECEIVE_FAILED
    My reciever communication channel is in green status CC monitoring.
    I tested my server proxy in my end system which is successfully fetching data.
    I am using the following URL format for generating the WSDL from Integration directory.
    http://host:port /XISOAPAdapter/MessageServlet?channel=p:s:c
    Do we need to maintain the Fully qualified host name  in the above URL?
    I tried with a test scenario which is an asynchronous communication with the above mentioned URL format. I got a success message in SXMB_MONI.
    Since I am using PI 7.1 I tried the following URL also  but i this case,the XML spy itself throws error. I couldnt see any messages in SXMB_MONI.
    http://host:port/XISOAPAdapter/MessageServlet?senderParty=&sender
    Service=FS&interface=IF&receiverParty=&receiverService=TS&interfa
    ceNamespace=IFNamespace
    I have seen many threads in SDN for this same error but I didn't get an answer for my scenario.
    Lakshman and Manjusha
    Thanks for the quick responses.
    Regards
    Naveen
    Edited by: naveen perumal on Jul 24, 2009 8:00 PM

Maybe you are looking for