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

Similar Messages

  • ICal Server reacheable by the server but not by the clients

    Dear all,
    We've got an iCal Server running on Mac OS X Server 10.5.4. Suddenly (due to a power failure), the iCal Server stopped working. I checked the file /System/Library/LaunchDaemons/org.calendarserver.calendarserver.plist and Disabled was set to True, so I set it to False and I rebooted. Now, the iCal Server launches correctly and will work on the server itself, but not on the clients.
    The clients can't even reach http://iguane.local:8008/ (they can still reach the Apache web server).
    Any idea of how the access on the local network can be restored? I am not sure where to look and what's wrong.

    If you can't reach the server via Safari then there is some problem with the network setup on your server machine or with some device between the server and client.
    Can you stop then restart the calendar server and post the text from the error.log that appears when you restart? That should indicate which network interfaces are being bound to by the server - we should double-check that.

  • 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

  • HELP!! WRT54G2 works for one computer, but not for the other

    I have a WRT54G2 and it is connected to 2 computers. The internet works in one computer, but not on the other. The tech support said i needed to configure it or firmware or something like that. But my product is out of warranty and I really need the internet on the other computer as well. Please Help!!!

    As your one computer is working fine then there is no problem with the router so far...
    The computer which is not working...check the IP Address on that...
    Click Start >> All Programs >> Accessories >> Command Prompt...A black box will appear(Command Prompt)...In the Command Prompt window type ipconfig and press 'Enter'...Look for Ethernet Adapter Local Area Connection IP Address , Subnet Mask and Default Gateway...
    IP Address should be 192.168.1.x, Subnet Mask : 255.255.255.0, Default Gateway : 192.168.1.1 (assuming your router is 192.168.1.1)...
    If you get the above mentioned IP Address, Subnet and Gateway Address then you should ping the Gateway, type ping 192.168.1.1 and press Enter...If it gives you request timed out then disable any firewalls, security softwares on the computer...
    If you get 4 replies then type ping 4.2.2.2 and press Enter, if you get request timed out, then you need to upgrade your router's firmware...If you get 4 replies then type ping yahoo.com and press Enter...If you get replies for Yahoo then you should get the Internet after adjusting the browser settings...
    Adjusting Browser Settings : Open an IE, click Tools >> Internet Options, then delete all files, cookies, history, forms...Goto "Connections", make sure Never Dial a Connection is checked, click on LAN Settings and make sure all the options are unchecked...Once you are done click on O.k...Close the IE and re-open it...
    If yahoo times out then provide static DNS on your LAN Connection...
    Click on the Start button >>> Settings >>> Control Panel >>>Network Connections- Right click on the icon for Local Area Connection and go to properties- On the 'General' tab select 'Internet Protocol TCP/IP' and click on the Properties button- Select 'Use the Following DNS Settings' Preferred DNS 4.2.2.2 Alternate DNS - 192.168.1.1>>Click on Ok button to Save and Click on "Close" on main Properties window...You should be able to go online...

  • Why would a rented movie work on the ground but not in the air?

    This is the craziest thing.  I rented a movie from my MacBook Pro and then transferred it to my iPad 2 for a flight.  However once I got on the plane each time I tried to open it I received a message that the movie could not be opened.  OK.  I figured I made a mistake in the transfer.  Once I got home I tried to open the movie again (in Airplane mode, just to be sure) and it loaded right up.  I didn't press play since I was leaving on another flight in two days.  Got on the flight and had the exact same problem.  Once I landed I tried it again and it loaded right up, but I didn't hit play because I have another flight on Friday.  What are the odds it will occur three times in a row?  I have 20 days left on the rental and about six more flights.  This could be fun.
    To lend a little irony to the situation the movie is "Up In The Air".  Anyone have any clue what the heck is going on?  The only variable among the two instances is that in the air I had headphones plugged in, but on the ground I didn't.

    Hi Dominique:
    First-if your mac can control the camera but not see the video,
    *Open Garageband
    *Play a note or two
    *Close Garageband
    *Open iMovie
    The camera will work now-REALLY!!
    If not, look here:
    http://docs.info.apple.com/article.html?artnum=43000
    Sue

  • I have an iPad mini and an iPad 2. I can print email to my HP 6510 from the mini, but NOT from the iPad 2. Both are on the same wi-fi network. I have tried everything I can do including unplugging everything, restarting, etc.  Can anyone help?

    I have an iPad mini and an iPad 2. I can print email to my HP 6510 from the mini, but NOT from the iPad 2. Both are on the same wi-fi network. I have tried everything I can do including unplugging everything, restarting, etc.  Can anyone help?

    Thanks so much! My grandaughters played games on the iPad over Xmas and one of their moms said shed restricted their access! Guess they forgot to enable again. Thank you again! Karla

  • Opening a new file in photoshopcc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    opening a new file in photoshop cc and the file name is displayed but no white working canvas. you can see it as a layer in the layers panel and if i draw on the grey area i can see int on the layer but not on the main screen.

    Graphics card is the problem.
    Trying to update drivers now.
    Thanks for your help
    john

  • When syncing my iTunes to my iPad from the laptop, I get a list of missing songs; they are in the library, but not in the music folder on my HD. In particular, I uploaded 3 CDs at the same time, all are in my library - but two are missing from the folder.

    When syncing my iTunes to my iPad from the laptop, I get a list of missing songs; they are in the library, but not in the music folder on my HD. In particular, I uploaded 3 CDs at the same time, all are in my library, and all synced to the iPad - but the music from two of them are missing from the music folder. Questions are (a) where might they have gone? and (b) is there a way of "reverse loading" them back to my hard drive from the iPad? Thanks in advance!

    Hi dones49,
    It sounds like your issue here is that iTunes can not find the files for some of the songs you have brought into it. This happens occasionally even if the songs have not been moved from the location that iTunes places them on import or purchase. When you try to use the song, iTunes prompts you to find the file, as you have seen.
    To find the file, use the information in this article to navigate through the iTunes media folders -
    Locate and organize your iTunes files
    If you are still unable to locate the files, you may need to download them from the iTunes store again, or rip them from your CDs. See this article for assistance with downloading your past purchases -
    Download past purchases
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • The screen on my iPhone is frozen and I can access apps through Siri. The touch screen works within the apps but not in the home screen. What do I do?

    the screen on my iPhone is frozen and I can access apps through Siri. The touch screen works within the apps but not in the home screen. What do I do?

    Have you tried a reset which is similar to a computer restart and is done by pressing and holding the home button and the sleep/wake or on/off button simultaneously until you see the Apple logo and then release?

  • The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • Ichat works for me when I'm in the US but not in the UK.   In the UK it is like watching a tape played at about 1/10th speed.

    iChat works for me when I'm in the US but not in the UK.   In the UK it is like watching a tape played at about 1/10th speed.  I have O2 broadband (who decline to help as they "do not support third party software").

    Hi
    In iChats prefs click on video and change bandwidth limit to 500.
    Restart iChat.
    Tony

  • My applet works in the appletviewer but not in the navigator

    My applet works in the appletviewer but not in the navigator
    exceptions problem1 and problem2 are throwed
    this is my code
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ValiderHtml extends Applet implements ActionListener {
    JButton send =new JButton("Connexion");
    JScrollPane jscrollpane= new JScrollPane();
    DefaultListModel lignes=new DefaultListModel();
    JList lstURL = new JList(lignes);
    BufferedReader reader = null;
    String ligne;
    URL url;
    URLConnection conn;
       public void init(){   
       this.setSize(900,400);
       setLayout( new GridLayout(2,1));
       jscrollpane.setBounds(new Rectangle(19,53,160,73));
       jscrollpane.getViewport().add(lstURL,null);
       send.addActionListener(this);
            this.add(send);
       this.add(jscrollpane);
        public void actionPerformed(ActionEvent evt) {
             Send();
       public void Send(){
            try {
       url=new URL("http://www.developpez.com");
       conn = url.openConnection();
       reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    while ((ligne = reader.readLine()) != null) {
                     lignes.addElement(ligne);
        }//fin bloc try
       catch (Exception e) {
                   lignes.addElement("probleme1");     
                finally{
                   try{reader.close();}catch(Exception e){ lignes.addElement("probleme2");}
       }// fin Send
          public void paint(Graphics g) {
                super.paint(g);
    }// fin Applet

    As for tracking the source of your problem your applet sucks.
    Try e.printStackTrace() on a cought exception and check the (full) trace.
    url=new URL("http://www.developpez.com");
    Unless yor applet is on www.developpez.com this will throw an exception in an unsigned
    applet without special policies.
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and last post for the java class file
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore

  • Hello, i am having problems getting face time to work, I keep getting an error message saying the server could not process the registration, I am using the username and password I always have and it has always worked in the past, any ideas?

    Hello, i am having problems getting face time to work, I keep getting an error message saying the server could not process the registration, I am using the username and password I always have and it has always worked in the past, any ideas?

    We aren't Apple, just users like you volunteering to help other users with problems. Threatening to go to Samsung doesn't mean anything to us. What troubleshooting have you tried so far?

  • TS1347 just recently my iphone is not syncing calendar to my macbook.  It has worked all along until about a week ago.  It does transfer new items from the computer to the iphone but not from the iphone to the computer.

    just recently my iphone is not syncing calendar to my macbook.  It has worked all along until about a week ago.  It does transfer new items from the computer to the iphone but not from the iphone to the computer.

    Plug you iPhone into your computer, select the iPhone, select the photos tab. Now check (not uncheck) the sync photos from... Select the folder where the photo came from, click apply then sync, now uncheck the sync photos box, click apply, it will ask you if you want to remove the photos click remove, it will not delete other photos exept the ones in the folder that was synced. Then click sync and the photos will be removed

  • Win2012R2 error 364 Content file download failed.Reason: The server does not support the necessary HTTP protocol.

    Im running WSUS on Windows 2012 R2. Installed over "Add Roles and Features". Configured, synchronisation works, but can not download any updates.
    System
    Provider
    Name]
    Windows Server Update
    Services
    EventID
    364
    Qualifiers]
    0
    Level
    2
    Task
    2
    Keywords
    0x80000000000000
    TimeCreated
    SystemTime]
    2014-08-27T06:43:36.000000000Z
    EventRecordID
    390
    Channel
    Application
    Computer
    wsus-server.murrcz.local
    Security
    EventData
    Content file download
    failed. Reason: The server does not support the necessary HTTP protocol.
    Background Intelligent Transfer Service (BITS) requires that the server support
    the Range protocol header. Source File:
    /msdownload/update/software/crup/2011/03/windows6.1-kb2506014-x64_8c22199a738b51dbfe78262ca21ba98cf8bdeca2.cab
    Destination File:
    C:\WSUS-updates\WsusContent\A2\8C22199A738B51DBFE78262CA21BA98CF8BDECA2.cab
    The online help not works:
    Content download has failed. BITS service is not starting or is  stopping during downloads.
    Open a command window.
    Type sc config bits start= auto
    Type net stop bits && net start bits
    Type net stop wsusservice && net start wsusservice
    Start WSUS 3.0: Click Start, click Administrative Tools, then click
    Microsoft Windows Server Update Services v3.0.
    Click Synchronization Results.
    In the Action pane, click Synchronize Now.
    Verify
    Look for the corresponding error event.
    Open a command window.
    Type cd <WSUSInstallDir>\Tools
    Type wsusutil checkhealth
    Type eventvwr
    Review the Application log for the most recent events from source Windows Server Update Services and event id 10030.
    The KB922330 not aplicable, ExecuteSQL.exe not present.
    Please help.
    Thanks

    .\SQLCMD.EXE -S \\.\pipe\MICROSOFT##WID\tsql\query -d "SUSDB" -Q "update tbConfigurationC set BitDownloadPriorityForegroud=1"
    This should be considered a temporary fix. It will saturate your Internet connection during periods of WSUS downloads in this configuration.
    The correct and permanent fix should be to resolve the failure of your perimeter device to properly support the HTTP v1.1 protocol specification (which is now some 14 years old).
    Either your device is misconfigured, or it needs a firmware update to support the full specification.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

Maybe you are looking for

  • Connect to company

    Hai, Im creating a web Portal using VB.Net.When user login, it first connects with SAP B1.Once I connected in one Web Page and when I move to next Web Page, the connection does not exists. So, I have to connect again. What to do to solve this issue?

  • Conditional SQL?

    Is there a way to write a piece of pure SQL (no PL/SQL allowed!) which will conditionally execute a query or not. Something like select case when count(*) = 1 then (select * from dba_objects) else null end from my_table;...that is, count the records

  • Can PSP be used in Portals?

    Hi Portal Gurus, I understand PL/SQL Cartridges can be used in portal development. But, has Oracle started supporting use of PSP (PL/SQL Server Pages) for portal development? If so, is there any documentation out there for it? Any help will be greatl

  • How do I enable scrolling in new ibooks 3

    I downloaded new iBooks 3 but it doesn't scroll. How do I enable the scroll?

  • MacBook Pro 3.1 von USB bootfähig?

    Ich habe ein MacBook Pro 3.1, jetzt ist mein Superdrive nach sehr weniger benützung schon das 3te mal kaputt, jetzt mag ich nicht mehr.... Konn ich von einem externen USB Laufwerk booten?