Get-WMI Object (0x800706F7) - The stub received bad data

Hello there,
i have an problem related to the above error..
When i do a remote wmi call and pass the credentials like this (from an script)
$passS =[ServerEye.PowerShellAPI]::Decrypt($pass)
$securePass = convertto-securestring $passS -asplaintext -force
$credential = New-Object System.Management.Automation.PsCredential("$domain\$user",$securePass)
$buffer = gwmi -Query "select * from Win32_PerfFormattedData_MSExchangeRpcClientAccess_MSExchangeRpcClientAccess" -Credential $credential -Authentication Default -ComputerName $computer -ErrorAction Stop
i sometimes get the above error with the stub received bad data...
When i open a new powershell and do the wmi request it works.. When i close the powershell.exe and execute the above code again from the same script it works. But sometimes (totally) random this issue occurs for the existing powershell.exe process and will
never go away till i close the process (which is not option, since i am using a deamon which runs script from a queue folder.. and this deamon runs for a long time.. 
When i restart the server.. this issue never occurs for a long time but then suddenly reoccurs. 
Anyone has an idea? I found one similar thread, but in this the solution was to pass the credential data in a server\user format or an domain\user format, which i am doing
Is this a bug? Is this an scripting flaw from my side? What can i do against it... Any help would be really cool!!

Thank you in advance for your answer. This is somehow what i expected..
Sadly those are not our own servers. They are from a customer that is using our script to monitor several aspects.. and of course the software is always to blame :D (From a customer perspective).
But i will inform the customer because this connection issue could be absolutly possible since i also see powershell sessions that get broken due to server communication..
The only thing i really do not understand is, why it does not "repair" itselfs. What is the difference between closing the powershell.exe or simply re-executing the same get-wmiobject request..  I dont know how get-wmiobject manages its connection..
but shouldn it do a new connection to the remote-server for each call?

Similar Messages

  • Unable to install. The stub received ve bad data error

    how to fix error unable to install. The stub received ve bad data error in windows 8 operating system while installing HP printer driver

    Dear Customer,
    Welcome and Thank you for posting your query on HP Support Forum
    Please click on the below shown link to troubleshoot the issue
    http://answers.microsoft.com/en-us/windows/forum/windows8_1-performance/the-stub-received-bad-data-e...
    Hope this helps, for any further queries reply to the post and feel free to join us again
     **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    Although I am an HP employee, I am speaking for myself and not for HP

  • To get Class object representing the primitive type by a String

    for classes,I can use
    classNameString = "java.lang.String"
    Class c=Class.forName(classNameString);
    to get Class object representing the classNameString.
    but to get Class object representing the primitive type ,I have to use something like :
    Class c=Integer.TYPE;
    is there any way to get Class object representing the primitive type by a String?

    not using Class.forName(). you'll just need to key off the String passed to see whether it names a primitive:class ClassUtilities {
       * Gives the <code>Class</code> corresponding to a named class or primitive.
       * @param  name  FQN of a class, or the name of a primitive type
       * @param  loader  a {@link java.lang.ClassLoader ClassLoader}
       * @return  the <code>Class</code> for the name given.  This method
       * converts primitive type names to their particular <code>Class</code>
       * object.  <code>null</code>, the empty string, <code>"null"</code>, and
       * <code>"void"</code> yield {@link java.lang.Void#TYPE Void.TYPE}.  If any
       * classes require loading because of this operation, the given
       * <code>ClassLoader</code> performs the loading.  Such classes are not
       * initialized, however.
       * @throws  ClassNotFoundException  if the name names an unknown class
       * or primitive
       * @see  java.lang.Class#getName
      static Class classForNameOrPrimitive( String name, ClassLoader loader )
        throws ClassNotFoundException {
        if ( name == null || name.equals( "" ) || name.equals( "null" ) || name.equals( "void" ) ) {
          return Void.TYPE;
        if ( name.equals( "boolean" ) )
          return Boolean.TYPE;
        if ( name.equals( "byte" ) )
          return Byte.TYPE;
        if ( name.equals( "char" ) )
          return Character.TYPE;
        if ( name.equals( "double" ) )
          return Double.TYPE;
        if ( name.equals( "float" ) )
          return Float.TYPE;
        if ( name.equals( "int" ) )
          return Integer.TYPE;
        if ( name.equals( "long" ) )
          return Long.TYPE;
        if ( name.equals( "short" ) )
          return Short.TYPE;
        return Class.forName( name, false, loader );
    }

  • When I open mail I get a list of the messages received but when I click on a message it does not displaying the main window. I have 2 different mail accounts

    Just bought a new MacMini(my first Apple PC) and when I open mail I get the brief details of mail received but whe I click on the message to read the details I get a "loading" sign but the message is not displayed.
    Any help for a Dumbo would be appreciated.

    Very strange, do you have any AV or Web filtering apps like Norton installed?
    Do the working accounts use a different Port or Authentication than the non-working one?
    The receiving email ports are:
    IMAP is port 143
    IMAP-SSL is port 993
    POP is port 110
    POP-SSL is port 995

  • Get-WMI object exporting IP configuration to HTML only displays System.String[]

    Hi,
     I'm trying to customise a powershell script I found in the technet gallery for server inventory by adding reporting information for IP details. The disk sample works perfectly and I can export my data to an HTML file, but the IP address information
    I'm struggling with.
    The IP information displays:
    True
    System.String[]
    System.String[]
    System.String[]
    laptop-04
    00:DB:DF:0D:84:
    I can use the IP powershell ina for loop and display the IP details correctly, but in this format if I want to export it to a HTML it doesn't work, please advise.
    $IPInfo = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName $ComputerName | Select-Object -Property [a-z]* -ExcludeProperty IPX*,WINS* |
    select DHCPEnabled, IPAddress, IPSubnet, DefaultIPGateway, DNSHostName, MACAddress | ConvertTo-Html -Fragment 
    #Logical Disk Information
    #the @Name below simply renames the size
    $Disk = Get-WmiObject -Class Win32_LogicalDisk -Filter DriveType=3 | 
    Select SystemName , DeviceID , @{Name=”size(GB)”;Expression={“{0:N1}” -f($_.size/1gb)}}, @{Name=”freespace(GB)”;Expression={“{0:N1}” -f($_.freespace/1gb)}} |
    ConvertTo-Html -Fragment
    Thanks in advance...
    IT Support/Everything

    jrv,
     Many thanks, much appreciated :-)
    I've used your format to get the following:
    $IPInfo = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName $ComputerName | Select-Object -Property [a-z]* -ExcludeProperty IPX*,WINS* |
    select DHCPEnabled, @{N='IPAddress';E={$_.IPAddress -join '|'}}, @{N='IP Subnet';E={$_.IPSubnet -join '|'}}, @{N='Default IP Gateway';E={$_.DefaultIPGateway -join '|'}}, DNSHostName, MACAddress | ConvertTo-Html -Fragment 
    QQ - I get the @{N='IPAddress' is used to rename the IP Address, but does the 'E={$_.IPAddress -join '|'}}' do? I can guess it's an express to expand the $_.IPAddress and pipe all the results into a join, but I'm not sure as I've never seen the 'E=' format
    before.
    @{N='IPAddress';E={$_.IPAddress -join '|'}}
    Thanks again

  • Why can't i get an object onto the display list!!!

    hi. i have this really basic class and all it does is create a button...i have another class called main where i want to put the button on the stage...problem is it all compiles but can't get the button to display...help would be greatly appreciated. thanx
    public class Main extends Sprite
    public function Main()
    var button1:ButtonPut = new ButtonPut();
    addChild(button1)
    package as_files.list
    import flash.display.Sprite;
    import spark.components.Button;;
    public class ButtonPut extends Sprite
    public function ButtonPut()
    var but:Button = new Button();
    but.x=100;
    but.y=100;
    but.width=100;
    but.height=100;
    addChild(but);

    Here is another thread that touches this issue:
    http://forums.adobe.com/thread/734266?tstart=0
    A guy references this blog:
    http://seeing-is-believing.blogspot.com/2007/11/flex-components-in-flash-example-with.html

  • I had my iphone 3gs unlocked so i could use it in Oz, however although i can phone works ok, i cant get internet, but i the option of Cellular Data Network does not appear with the new sim? Can anyone help pls?

    Hi Just wondered if anyone can help with the above question? I had O2 phone unlocked and bought a local sim card, but although the calls are fine i have no option for internet etc.  I have done searches and got the info details from the sim provider to activate, but  instructions say i go to : Settings; General; Network and then Celluar Data Network, but I dont get that option ?  When i put back my O2 sim card, the option reappears?
    Can anyone help me please? Off to Australia again soon and really could do with it working properly this time.
    Thanks everyone
    Ronnie

    Hi Ronnie, was wondering what brand sim card you bought?
    Was it from Telstra, Optus, Vodafone, Virgin or Mayasim?
    I have a 4 S running iOS 5.01 is there an option in Settings - Network - Carrier? As this should be set to the supplier of the sim card. In my Settings - Network there is no option for Celluar Data Network.
    What version of the iOS are you using?
    Some prepaid sim cards may not have a lot of data, so I suggest searching the companies websites for the best deals before you come here. Telstra usually have good plans. If you take your phone to the shop you purchased the sim card from they will usually set it up for you. 
    Telstra runs on a different frequency to others and offers the best coverage in Australia.
    Just for the record I am not an employee of any mobile company.

  • Getting short dump at the time of loading data from R/3 to ODS

    Hi BW Grurus,
    I am trying to load data from R/3 to ODS, but after running for a few minutes it is getting into the short dump and displays the following run time error. So please give me solution how I can load data without getting short dump. I tried thrice but it is giving the same and failed.
    Run time error : TSV_TNEW_PAGE_ALLOC_FAILED

    Hi,
    Check, is start routine or individual routine in present in update/transfer rule?
    May be read large amount data (select * from) another ODS and put into internal table cause these type of error.
    Regards,
    Saran

  • Get items between in the publishingstartdate and publishingend date in a content type.

    Hi,
    I have a content type that has  two site columns publishingStartdate and publishing end date.
    The content type is added to a document library.
    When I create an item of the content type then it  gives two options for publishing start date as immediately and then a date fiel.d
    For publishing end date as never and a date control.
    Now I want to be able to get only the results which are published as in  todays date is in between  publishing start date and end date.
    But  it seems publihsingstart date and publishingend date fields are text type hence I cannot run CAML Query with Greater than  and less than.
    Is there a way to get the items and run the caml quey 

    Hey Dennis,
    Thanks for the reply.
    But I am facing a strange issue. That is I also want to be able to get only those items contain certain keyword in the title column.
    I am using the following query, But it is not giving the right results. Here is the query 
    <Where>
                          <And>
                                                     <Or>
                                                        <And>
                                                          <Or>
                                                              <And>
                                                                 <BeginsWith>
                                                                    <FieldRef Name='ContentTypeId'
    />
                                                                    <Value Type='ContentTypeId'>{0}</Value>
                                                                 </BeginsWith>
                                                                 <IsNull>
                                                                    <FieldRef Name='PublishingStartDate'
    />
                                                                 </IsNull>
                                                              </And>
                                                              <Leq>
                                                                 <FieldRef Name='PublishingStartDate' />
                                                                 <Value Type='DateTime'>
                                                                    <Today />
                                                                 </Value>
                                                              </Leq>
                                                           </Or>
                                                           <IsNull>
                                                              <FieldRef Name='PublishingEndDate' />
                                                           </IsNull>
                                                        </And>
                                                        <Geq>
                                                           <FieldRef Name='PublishingEndDate' />
                                                           <Value Type='DateTime'>
                                                              <Today />
                                                           </Value>
                                                        </Geq>
                                                     </Or>
                          <Contains>
                          <FieldRef Name='Title' />
                       <Value Type='Text'>{1}</Value>
                        </Contains>
                        </And>
                                                    </Where><OrderBy><FieldRef Name='PostedDate' Ascending='False' /></OrderBy>
    But it is giving me incorrect results.
    Should I be using joins in SPQuery.

  • Help to get text objects in ABAP

    Hi guys!
    I've created my first report program and need some help to get text objects into the report. The program combines the tables KNA1, LIKP, LIPS, VBAK, VBAP and VBKD to create a deliverylist which we import as excel info a shipping service. The issue at hand is that our website allows customers to change the ship-to party's address when creating an order. The adress are not updated to KNA1, but are comitted as a text on the ship-to on the delivery itself.
    The text I need in the report is RV50A-TXTWE.
    Can you help me get going on how to add this from the delivery?
    Thanks a lot!

    Your problem is that its a structure.  Structures are filled in a program and no longer exist after the program is closed.  They are temporary data.  It will have been moved to tables somewhere most likely.  The next step is to debug / trace through the code to find out what was done with it.
    What program were you using that created the structure?
    Neal

  • How to get caller object reference from a method

    Hi,
    I am working a already existing Java Swing project, now I got a problem, in a method I need to get the caller object reference otherwise, I can't succeed this operation. So please tell me a way how to get the caller object reference from a method. that method would be static or regular method anything will do for me.
    Edited by: navaneeth.j on Jan 29, 2010 11:20 PM

    navaneeth.j wrote:
    Actually my doubt is, I have a method "addition" method, which is using by many classes so my requirement is in the addition method I want to write a code snippet which will identify and get the the caller object. Actually I tried Reflection.getcallerclass but there I am getting "CLASS" object not the actual object reference, but I want object reference.
    Actually we have a huge project which is writen plain JAVA, so in this project the authors written the Database connection package for single database transaction. so now we are using this project source code for JSF application in this web application the DB package has serve based on the dynamic db connection parameters, so if we want to change this package fully means need to solve the dependency problem in hundreds of classes, so my point is if I can access the caller object in the DB package when ever it gets called by any class from any where of the project. So actually I liked Reflection.getcallerclass, the way of implementation perfectly works for me but it is not giving caller object reference, if something gives the caller object then I can get the DB connection parameters then there is no need to pass the parameters in the hierarchy.You can add a parameter (of type Object) to your addition() method
    and everywhere you call the addition() method also pass this (which from the POW of the addition() method will be a reference to the calling class instance).
    There may be alternative solutions
    but none that require less effort.

  • Serializing objects with the NIO API

    I try to use the new IO API to implement a non-blocking multi-threaded server that communicates with client applications by exchanging serialized objects. I started from the code in the JavaWorld article at http://www.javaworld.com/javaworld/jw-09-2001/jw-0907-merlin.html .
    With the new features of J2SDK 1.4.0, you don't have to create a separate thread per connected client. That is a big improvement.
    But when I read an object with ObjectInputStream, I get a java.nio.channels.IllegalBlockingModeException.
    Has anybody successfully implemented such a server since the release of the new io API?
    Thanks.
    Jean-Robert

    The ObjectStream code is basically incompatible with non blockin I/O since you must block on the stream until a whole Object is available. You could roll something like this yourself, by reading bytes until there are enough available to build the next object and then getting that Object from the buffer and shipping it to your client thread. All of this is far more trouble than just using the Stream oriented I/O.
    NIO and mutilple threads are a nightmare, the whole idea of non-blocking I/O is to avoid needing multiple threads. If you do use multiple threads you will need queues between them. See the Taming the NIO Circus topic for lots of discussion of NIO and its problems. The system seems more stable in JDK 1.5, but most people haven't even started using 1.4 for production yet.
    Personally I avoid ObjectStreams. They are only useful between Java applications, if I want that I just use RMI and let Java do ALL the hard work. When I write a Socket based app, its probably because the other end is a mainframe of a C program. For that reason I send data as bytes, packaged up in packets, and encode as XML or ASN.1 so the other end can interpret it.

  • How to get value object (entity abject) from ViewObject?

    How to get data from ViewObject in the form of value object? I know BC4J creates entity object for database table/view (looks like value object) but I did not find api to get entity object from ViewObject.
    Thanks.

    BC4J provides an implementation of the value object design pattern for you, so you don't have to waste time writing your own.
    I wrote a whitepaper illustrating how to take advantage of this at:
    Implement Collections of Value Objects for MVC Apps with BC4J
    This allows clients (like a servlet, a JSP, a Swing client, etc.) to get value objects from the collection of value objects that BC4J supports.
    However, if you are writing code inside your view object implementation class and want to access the entity object, just call the accessor that we generate into your view row implementation class for you. For example, for a VO named EmployeeView that uses an entity object named Employee, there will be a private accessor method getEmployee() that will give you the entity.

  • Get all object using RandomAccessFile

    hi friends,
    i have one log file and this log file contain some object. and i am used Serializable Interface.
    i know basically object are not readable format, but consider log file(logInfo.log) contain some object like:
    12 javasun
    20 sunjava
    38 java
    96 sun
    like wise
    am using RandomAccessFile class and this my
    raf.writeInt(baos.size());
    raf.write(baos.toByteArray());
    raf.seek(0);
    int a = 0;
    while(true)
    a = raf.readInt();
    System.out.println("The pointer Value : " + a);
    byte[] b = new byte[a+4];
    int x=(int)raf.getFilePointer();
    System.out.println("file Pointer : " + x);
    raf.read(b,x,a);
    ByteArrayInputStream bais = new ByteArrayInputStream(b,x,a);
    ObjectInputStream ois = new ObjectInputStream(bais);
    Record rec = (Record)ois.readObject(); //here record is object
    System.out.println("The object : "+rec.getAttributes());
    using this code i got below result
    12 javasun
    but i can't get all object from the file(logInfo.log)
    how can i get all object? help me!!!...
    Thank You

    ok, sir
    i tried and i got all object from the file. Thank
    you,
    and,
    if i need last two object from file(logInfo.log)
    like
    38 java
    96 sun
    how can i get? please give some clue or code
    Thank youSince you don't have a set size for the objects, then you will have to read through the entire file always keeping the last two objects, and as soon as the read fails return them.
    As I said in your first thread, however, you would be much better off writing the objects with a set size (i.e. calling ByteArrayOutputStream(size) with a single max size rather than ByteArrayOutputStream( ) ) as you would then be able to use seek adding 4 (for the int) to size and multiplying by the position of the recordset you want to read (0 for the first). You would then, also be able to overwrite records and the such (which is the usually one of the main reasons for using something like RandomAccessFile, i.e. creating a Flat DB-Like File).
    Edit:
    And you would probably lose the int, then anyway (when using a set size), as it wouldn't be needed.

  • 4404 boot error, Bad data CRC

    HI,
    i have a 4404 Controler and when it boots i get the error message,
    Bad data CRC, i upgraded to OS 4-0-219-0 then 4-1-185-0 but now im getting the message
    bzImage Image Integrity Check Failed (Bad Data CRC). Hanging
    anything that i can do ?
    Thanks
    Dan

    Try to revert back to the backup image on the controller. If this fails, it's probably bricked and you need to replace it under smartnet.

Maybe you are looking for

  • Note playing twice

    I'm currently using MidiKeys (1.71b) to input notes with Garageband 3. I'm using the virtual instrument Le Synthe (4.1) to generate sounds. The Le Synthe plugin is awesome and generates some wonderful sounds, very similar to the original EMS Synthi.

  • 2 dvds inserted into drive. i can't get them out! any ideas?

    My daughter inserted 2 dvds into the drive and the computer is trying to eject them, but they are stuck! any suggestions? can't find any advice on the apple website. thanks!

  • Add ringtones to 5 c

    I have updated to a 5c from a galaxy s 2. So, I am new to the iOS. I want to personalize my ringtones and have the ones I have had before. I can not find the specific ringtones I am looking for in the app store. How can I get my old rintones on this

  • The songs on all my albums are out of sequence. Can I rearrange them in the correct order.

    After downloading ios7 the songs on all the albums in my music are in the wrong sequence. How can I fix this.

  • MS Project Download - Field Assignment

    In Customizing, you can define which cPro field is mapped to which MS Project field in cPro 4.5), which is nice. However, there is no default customizing available, and therefore, you have to manually define the mapping for all fields, which is not e