Strange problem with select-string

Hello
i wonder why the first command delivers desired output but the second doesn't. is there any technical explanation for this issue?
1st command:
PS C:\>IPConfig | Select-String -Pattern 'IPV4'
output:  IPv4 Address. . . . . . . . . . . : 10.1.1.1
2nd set of commands:
# none of the following commands generates output !!!!
(Get-WmiObject Win32_OperatingSystem) | Select-String -Pattern 'version'
#or
Get-WmiObject Win32_OperatingSystem | Select-String -Pattern 'version'
#or
[string]$var = Get-WmiObject win32_operatingSystem
$var | Select-String -Pattern 'version'
#or
[Array]$var = Get-WmiObject win32_operatingSystem
$var | Select-String -Pattern 'version'
what can be the reason?
( i do know that there are lots of workarounds to achieve that, for example redirecting Get-WmiObject win32_operatingSystem to a text file & the Get-content that text file piped into select string. but i need to know the reason about above examples since
the mechanism is the same !)
thanks in advanced

Hi,
You have an object, not a string.H
(Get-WmiObject Win32_OperatingSystem).Version should give you what you're looking for.
Some examples:
PS C:\> $ipconfig = ipconfig
PS C:\> $ipconfig.GetType()
IsPublic IsSerial Name BaseType
True True Object[] System.Array
PS C:\> $ipconfig[0].GetType()
IsPublic IsSerial Name BaseType
True True String System.Object
PS C:\> $os = Get-WmiObject Win32_OperatingSystem
PS C:\> $os.GetType()
IsPublic IsSerial Name BaseType
True True ManagementObject System.Management.ManagementBaseObject
Don't retire TechNet! -
(Don't give up yet - 13,225+ strong and growing)
Hi Mike, thanks a lot for Great explanation.
so i tried to convert the result of Get-WmiObject Win32_OperatingSystem as string or Array. but still no effect:
$a = Get-WmiObject Win32_OperatingSystem
$a.GetType() | ft name,fullname -AutoSize
<# result is :
# Name FullName
ManagementObject System.Management.ManagementObject
#>
$b = $a.ToString()
$b.GetType()
# output IsPublic IsSerial Name BaseType
#True True String System.Object
$b | Select-String -Pattern 'version'
# no result
Select-String -Pattern 'version' -InputObject $b
# result is: \\WIN8-NOTEBOOK\root\cimv2:Win32_OperatingSystem=@
# now trying to make output be Array:
$c = @(Get-WmiObject Win32_OperatingSystem)
$c | Select-String -Pattern 'version'
# no result
Select-String -Pattern 'version' -InputObject $c
# no result
any more help ?

Similar Messages

  • Please Help - Very strange problem with internal String encoding

    I created a file in one-byte russian encoding cp1251 and declared String literal with 2 letters:
    String str = "ab"; //attention! ab - two russian characters
    After I got bytes from it - str.getBytes("cp1251") - it returned 2 byte's array.
    Now I created a file with UTF-8 encoding with equal content and suddenly:
    After I got bytes from it - str.getBytes("cp1251") - it returned 4! byte's array. Why?
    I need to get a one-byte encoded arrays (cp1251 or koi8-r) but getBytes ALWAYS returns two-byte encoded arrays.
    It is very strange: cp1251 is always one-byte encoded, but .getBytes("cp1251") returns two-byte on each letter. Why? Please help.

    I did not read a string from a file. I created 2 .java files with different encodings (cp1251 and UTF-8) and compiled them, telling compiler with -Dfile.encoding=*** to read them correctly. While execution java interprets two looking equal in editor strings as different objects with different .intern() representation.
    Why java consider source .java file encoding while creating internal representation of String object and creates from looking equally in editor strings two DIFFERENT Unicode representations. And it is impossible to convert one representation to other - impossible to get two equal byte[] arrays.

  • Strange problem with select options, problem in my code or standard bug?

    I have a selection screen with no intervals.
    In my select option When i give a range for example
    BT(Between) 1 to 3 and then if i  remove 3 (s-high) value and press enter the BT changes to EQ automatically which is correct.
    Suppose i select BT as my operator and just give 1 in S-low and keep S-high as blank.
    It behaves wiered and the data selected is not correct.  BT now should have changed to EQ but it doesnt happen.
    Same case occurs with NB ie not in between.
    Can experts please give there advice on this behaviour of selection screen

    wht u can do is.....
    u can keep these two input fields as two diff attributes....
    consider it as A , B
    then on various possibilities....fire select queries...
    for eg:
    if A & B not initial.
    then select data between A and B
    if A is not initial B is initial
    then select data = A
    and all possiblities to can think

  • Strange Problem with tableView:didSelectRowAtIndexPath:

    Hi,
    I have a strange problem with selecting rows in a table view (iPhone OS 3.0):
    I select a row in the table view and the method tableView:didSelectRowAtIndexPath: doesn't get called. After that I select another row in the same table view and the method gets called, but with the indexPath of the first selected row. When I select a third cell in the table the method tableView:didSelectRowAtIndexPath: gets called with the Index Path of the second selected row and so on
    When I click on the same row for example n times in succession, tableView:didSelectRowAtIndexPath: doesn't get called, but when I select another row the method gets called n times with the index path of the first row.
    I'm using different table views in my app and in only one of them I have this problem. Unfortunately I have no clue whats the cause for that behavior. (the problematic table view is created and used like the other ones).
    I hope anybody has a hint for me.
    Thanks,
    Thomas

    Hi,
    since I didn't found a reason for the problem I recreated the ViewController class with the table view from scratch and the problem disappeared ...

  • Strange problem with JComboBox

    I am having a strange problem with JComboBox, I created a method as a JComboBox factory which returns a JComboBox filled with items. the method works fine and I can see the items in the JComboBox. The problem is when I try using the method myCombo.SelectedItem(String item); the object myCombo does not set the selected item, it just leaves the item blank (or unselected).
    //This method build a JComboBox
    public javax.swing.JComboBox makeJComboBox(String[] items) {
    javax.swing.JComboBox myComboBox = new javax.swing.JComboBox();
    for (int index=0;index<items.length;index++){
    myComboBox.addItem(makeObj(items[index]));
    return myComboBox;
    public Object makeObj(final String item) {
    return new Object() {
    public String toString() {
    return item;
    }

    Couple of better ways to populate a combo with items-
    public javax.swing.JComboBox makeJComboBox(String[]items) {
    javax.swing.ComboBoxModel cbModel = new DefaultComboBoxModel(items);
    javax.swing.JComboBox myComboBox = new javax.swing.JComboBox(cbModel);
    return myComboBox;
    }OR
    public javax.swing.JComboBox makeJComboBox(String[]items) {
    return new javax.swing.JComboBox(items);

  • Problem with selecting text in Adobe Reader XI

    Hi all, I am encountering a problem with Adobe Reader XI and it is very strange I could not find an alike issue on the internet so I guess I have to submit a question with it.
    So here it is, I am using Adobe Reader XI Version 11.0.2, operating system: Windows 7. I do not know it starts from when but it has the problem with selecting text - to be copied in pdf documents. I ensure that the documents are not scanned documents but word-based documents (or whatever you call it, sorry I cannot think of a proper name for it).
    Normally, you will select the text/paragraph you want to copy and the text/paragraph will be highlighted, but the problem in this case that I cannot select the text/paragraph, the blinking pointer (| <-- blinking pointer) will just stays at the same location so I cannot select/highlight anything to be copied. It happens oftenly, not all the time but 90%.
    This is very annoying as my work involves very much with copying text from pdf documents, I have to close the pdf file and then open it again so I can select the text but then after the first copying or second (if I am lucky), the problem happens again. For a few text I have to type it myself, for a paragraph I have to close all opening pdf documents and open again so I could select the paragraph to copy. I ran out of my patience for this, it causes trouble and extra time for me just to copying those texts from pdf documents. Does this problem happen to anyone and do you have a solution for this? I would much appreciate if you could help me out, thank you!

    Yeah,  I totally agree, this is very strange. I have always been using Adobe Reader but this problem only occurred ~three months ago. It must be that some software newly installed I think. But I have no idea.
    About your additional question, after selecting the texts and Ctrl + C, the texts are copied and nothing strange happens. It's just that right after I managed to copy the texts, it takes me a while to be able to select the texts again. For your information, I just tested to select the texts and then pressed Ctrl, the problem happened. And then I tried pressing C and then others letters, it all led to the problem.
    I guess I have to stick with left-clicked + Copy until I/someone figure the source of this problem. Thanks a lot for your help!

  • Strange problem with ACLs

    Hi,
    I have just migrated an oracle database from 11.1.0.7 on Win Server 2003 to 11.2 on Linux 64 bit. I am having a strange problem with ACLs - I can create the ACL but when I perform either of the following two commands:
    SELECT * FROM DBA_NETWORK_ACLS
    or
    SELECT * FROM NET$_ACL
    I get no rows returned. The ACL exists somehow because if I try and create it again I get the error that it exists. Has anyone got any advice here? Something is out of sync and I need to know how to fix it up.
    Thanks
    Adam

    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    PL/SQL procedure successfully completed.
    select * from DBA_NETWORK_ACLS;
    (no rows)
    BEGIN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
    acl => 'email_server_acl.xml',
    description => 'Network connection Email Server',
    principal => 'MAIL',
    is_grant => TRUE,
    privilege => 'connect');
    END;
    ORA-31003: Parent /sys/acls/ already contains child entry email_server_acl.xml
    ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 252
    ORA-06512: at line 2
    Edited by: Adam J. Sawyer on 15/04/2011 17:08

  • Some strange problem with Flash/As3

    Hi,
    I am having some strange problem with my flash cs3.
    Whatever script I write in as3  doesn't work, even a stop() function doesn't work . But when I change my publish setting to as2 it works fine.
    Not sure about the root cause, may be some setting or preference or my cs3 is corrupted.
    Can anybody please advise.
    Thanks,
    Kishor

    try this
    create a new fla as3,
    select frame 1
    open the actions panel
    paste in the following code
    var squares:Array = new Array;
    setup();
    function setup():void {
        for (var i = 0; i < 25; i++) {
            var square:Sprite = new Sprite();
            //square.name = "square" + i;
            square.graphics.beginFill(Math.random() * 0xffffff);
            squares.push(square);
            squares[i].graphics.drawRect(0, 0, 100, 100);
            squares[i].x = i*3;
            squares[i].y = i*3;
            squares[i].filters = [];
            square.graphics.endFill();
            stage.addChild(squares[i]);
    for (var j = 0; j < squares.length; j++) {
        squares[j].addEventListener(MouseEvent.MOUSE_DOWN, dragMovie);
        squares[j].addEventListener(MouseEvent.MOUSE_UP, dropMovie);
        squares[j].buttonMode = true;
    function dragMovie(event:MouseEvent):void {
        event.target.startDrag();
    function dropMovie(event:MouseEvent):void {
        event.target.stopDrag();

  • Strange Problem with a Vector wraped inside a Hashtable

    Hi all ,
    I'm having a strange problem with a Vector wraped within a Hashtable inherited Class.
    My goal is to keep the order of the elements of the Hashtable so what I did was to extend Hashtable and wrap a Vector Inside of it.
    Here is what it looks like :
    package somepackage.util;
    import java.util.Enumeration;
    import java.util.Hashtable;
    import java.util.Vector;
    public class OrderedHashTable extends Hashtable {
        private Vector index;
        /** Creates a new instance of OrderedHashTable */
        public OrderedHashTable() {      
            this.index = new Vector();
    //adds a key pair value to the HashTable and adds the key at the end of the index Vector
       public synchronized Object put(Object key,Object value){      
           index.addElement(key);
           Object obj = super.put(key,value);
           System.out.println("inside OrderedHashTable Put method index size = " + index.size());
           return obj;    
    public synchronized Object remove(Object key){
           int indx = index.indexOf(key);
           index.removeElementAt(indx);
           Object obj = super.remove(key);
           return obj;
    public synchronized Enumeration getOrderedEnumeration(){
           return index.elements();
    public synchronized Object getByIndex(int indexValue){
           Object obj1 = index.elementAt(indexValue);
           Object obj2 = super.get(obj1);      
           return obj2;
       public synchronized int indexOf(Object key){
        return index.indexOf(key);
        public synchronized int getIndexSize() {
            return index.size();
        }Everything seemed to work fine util I tried to add objects using a "for" loop such as this one :
    private synchronized void testOrderedHashTable(){
            OrderedHashTable test = new OrderedHashTable();
            for (int i = 1 ; i<15; i++){
                 System.out.println("adding Object No " + i);
                 String s = new String("string number = "+i);
                 test.put(new Integer(i),s);
                 System.out.println("-----------------------------------");
            //try to list the objects
            Enumeration e = test.getOrderedEnumeration();
            while (e.hasMoreElements()){
                Integer intObj = (Integer) e.nextElement();
                System.out.println("nextObject Number = "+ intObj);
        }Here is the console output :
    Generic/JSR179: adding Object No 1
    Generic/JSR179: inside OrderedHashTable Put method index size = 1
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 2
    Generic/JSR179: inside OrderedHashTable Put method index size = 2
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 3
    Generic/JSR179: inside OrderedHashTable Put method index size = 3
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 4
    Generic/JSR179: inside OrderedHashTable Put method index size = 4
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 5
    Generic/JSR179: inside OrderedHashTable Put method index size = 5
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 6
    Generic/JSR179: inside OrderedHashTable Put method index size = 6
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 7
    Generic/JSR179: inside OrderedHashTable Put method index size = 7
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 8
    Generic/JSR179: inside OrderedHashTable Put method index size = 8
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 9
    Generic/JSR179: inside OrderedHashTable Put method index size = 10
    Generic/JSR179: inside OrderedHashTable Put method index size = 10
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 10
    Generic/JSR179: inside OrderedHashTable Put method index size = 11
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 11
    Generic/JSR179: inside OrderedHashTable Put method index size = 12
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 12
    Generic/JSR179: inside OrderedHashTable Put method index size = 13
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 13
    Generic/JSR179: inside OrderedHashTable Put method index size = 14
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 14
    Generic/JSR179: inside OrderedHashTable Put method index size = 15
    Generic/JSR179: -----------------------------------
    Generic/JSR179: nextObject Number = 1
    Generic/JSR179: nextObject Number = 2
    Generic/JSR179: nextObject Number = 3
    Generic/JSR179: nextObject Number = 4
    Generic/JSR179: nextObject Number = 5
    Generic/JSR179: nextObject Number = 6
    Generic/JSR179: nextObject Number = 7
    Generic/JSR179: nextObject Number = 8
    Generic/JSR179: nextObject Number = 9
    Generic/JSR179: nextObject Number = 9
    Generic/JSR179: nextObject Number = 10
    Generic/JSR179: nextObject Number = 11
    Generic/JSR179: nextObject Number = 12
    Generic/JSR179: nextObject Number = 13
    Generic/JSR179: nextObject Number = 14
    You can notice that the output seems correct until the insertion of object 9.
    At this point the vector size should be 9 and the output says it is 10 elements long ...
    In the final check you can notice the 9 was inserted twice ...
    I think the problem has something to do with the automatic resizing of the vector but I'm not really sure. Mybe the resizing is done in a separate thread and the new insertion occurs before the vector is resized ... this is my best guess ...
    I also tested this in a pure J2SE evironment and I don't have the same strange behavior
    Can anybody tell me what I am doing wrong or how I could avoid this problem ?
    Thanks a lot !
    Cheers Alex

    Am i doing anything wrong?Uhm, yes. Read the API doc for addElement() and for addAll()

  • Strange Problem with Forms (Smart Forms)

    I have lately been experiencing a strange problem with standard forms in the system. We have WebAS640 / ECC5.0 System. Soon after the initial run of patches, most forms in the system are showing the character '#' in place of formatted texts.
    I have searched the internet and most forums, but have not found a solution. Since this is the standard forms that i am talking about (unmodified and untouched) so i assumed this had something to do with our patch levels. However that is only an assumption.
    In particular i am having problem with the billing invoice type RD00, form name: LB_BIL_INVOICE. I have traced the problem to this much. The form shows the expected text, where no character format is applied to it. And where ever there is some character format, it just shows a string of hashes ('#'). The style being used by this form is LO_STYLE.
    I am also listing my patch levels in case that helps.
    SAP_BASIS     640             0014
    SAP_ABA             640             0014
    ST-PI             003C_640     0001
    PI_BASIS     2004_1_640     0006
    SAP_BW             350             0012
    SAP_HR             500             0005
    SAP_APPL     500             0006
    PI             2004_1_500     0004
    EA-IPPE             300             0004
    EA-RETAIL     500             0005
    EA-PS             500          0005
    EA-HR             500          0005
    EA-GLTRADE     500          0005
    EA-FINSERV     500          0005
    EA-DFPS      500          0005
    EA-APPL      500           0005
    Hope somebody can help in regard

    Hi Ashan!
    Interesting problem. You are seeing replacement characters, because assigned font(size) is not installed (somewhere, SAP or printer).
    But since this is completely standard, open an OSS-request - maybe it's not as fast as SDN, but I'm sure you will get a qualified answer (and solution).
    Regards,
    Christian

  • Strange problem with HD

    I'm having a strange problem with my titanium 15" Powerbook G4 (I believe it's 867Mhz). When I start it up, I get a flashing question mark/folder, and I can't boot into safe mode or make it start up past that question mark.
    Here's the really weird part-- the hard drive is completely fine. I booted it in target mode, was able to access all files on it, transfer files to and from it, and when I ran disk utility, everything was fine.
    I heard disk utility doesn't catch everything, so I ran fsck 3 or 4 times with both the -f and -r options (to rebuild the file catalog), and it came up with 0 errors.
    I think it's just not recognizing the hard drive as the boot volume, but when I press option on startup to select it, it doesn't pop up in the list-- so there's no way to select it.
    Any suggestions?
    Thanks!
    Tim

    I reinstalled Leopard on it using the target disk method (because the DVD drive is broken on the computer). It installed fine, and I can see all system files on it, but I can't boot off of it-- same problem. Thanks for the suggestion... any others?
    Tim

  • Strange Problem with P67A-GD65

    Hi just got this board along with a 2500k and 8gb corsair xms3. Im getting a strange problem with the board as it when its supposed to be rebooting it just shuts down.
    Ive flashed it to the latest 1.6 bios before anything just to be safe which went ok, it boots and i select boot from dvd, i get to the part where windows 7 install wants to reboots and it just shuts down, then when i power up it starts win7 install and says there was an error and i must restart installation
    Any ideas?
    Ive tried clearing the cmos, removed power leads and cmos battery for a good while, even reflashed the bios to no avail so far

    Quote
    By the way, 1.7 bios is not available for download on european site, only us.
      I just saw it at the Global MSI site.

  • Strange problem with motherboard H67MA-E45(B3) =( please help

    Hi, I have a strange problem with my motherboard . I have a H67MA-E45 (B3) (MSI-7678) , when i try to update it ( http://www.pcbrain.it/images/stories/msi/H67MA-E45/bios/14.JPG ) , i choose the fourth option "Select one file to update bios" , but the bios did not recognize the update file (E7678IMS.1C0) into the Usb flash drive , but if i choose the second option (select one file to boot) the file is recognized. First I made a backup of the bios, and into the USB flash drive has been created a file called "E7678ICX.162" (my current update). Why the extension is IXC ?!? it should have been IMS ! . I tried changing the file extension "E7678IMS.1C0" (the new update) into "E7678ICX.1C0" and when i select the fourth option , the file is recognized! . Obviously I have not started the update , but if I proceed with the update, changed the name of the extension, is it safe? Or do damage?..please help me  :(
    P.S. Sorry for my bad bad and very poor english , i'm italian =)

    Quote from: HU16E on 28-September-11, 04:38:29
    Manufacturer's Website info;
    "KHX1333C9D3B1K2/4G 4GB 1333MHz
    (2 x 2GB)   CL9-9-9-27 1.5V"
    Still think there is a batch conflict or possibly a bad stick in the new sticks. Might test each new stick individually for a bad one. Again, the other solution for an 8BG kit may be the new Kingston HyperX PnP's. Could you post a screenshot of CPUID's CPU-Z Memory & SPD Tab for one of the new sticks?
    Added: Actually, screenshots of the old sticks Memory & SPD Tab may be of help too. It may be tRAS or tRFC differences between the two kits. Just speculation at this point though.
    All the batchs works perfectly...this is the screen http://imageshack.us/f/163/ramkk.jpg/ ...save and zoom
    EDIT: The old stick are SLOT #1 and SLOT #2 ...the new 3 and 4

  • Strange problem with Domain Values

    Dear All,
      I encounter one strange problem with Domain Fixed Values.
    Background:
       We have a custom domain ( ZXREF2) created for custom data element(ZXREF2) which has replaced standard dataelement in BSEG for field XREF2. This domain has 12 Fixed values. The idea was to have F4 help for field "Reference Key2" in FBL5N/FBL01 tcodes. It is working fine with these 12 Fixed value, means, on F4 we could see all these 12 values and when selecting a line from F4 the entry got thru the screen validation ( plz note hat this validation is like checking the mandatory value so this is done even before PAI).
    Problem:
      The requirement was to add a new line to F4 values( tecnically, 13th record in domain ZXREF2). We added this line to domain and moved to Quality system. Its working fine in both Dev and Qality, but the strange problem occured after moving and testing in Production.
      In production, we could see all 13 lines in F4 help. <b>BUT</b>, after selecting the new one( 13th one), and after the value appears on screen field, when Enter is pressed, it gives error message "Enter Valid value".
       This error message also comes when we enter any value which is not there in F4. That means, system is able to recognize the new value in F4, but falied to validate that.
      We thought that, this might be the problem with Buffer, and request Client to re-start the system. Even after system restart, it still gives the same error message.
    Please note that, the error message is triggered even before PAI of the screen called. So noway( I already tried system debugging) we can debug this error message to findout the rootcause.
    Any quick help would be highly appriciated.
    Thanks and Regards,
    Prasad.

    Hello Max,
      I guess DB Utility ( SE14 ) is to be run only when there is a change at structure level, to make Runtime and Database objects in sync. Here, we just added a new line to existing domain, and this added a new row to the Database table DD07T/DD07L.
      Could you please expalin it more clearly if your view is different that what I just described. 
    Prasad.

  • Strange problem with jpcap library.

    Hello everone;)
    I have a very strange problem with jpcap. I have ubuntu 8.10, libpcap installed by apt (manually upgraded to 0,9,8) and jpcap 0.7 (installed from deb package).
    My code is:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package agh;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import jpcap.*;
    import jpcap.packet.Packet;
    * @author iceman
    public class Main
         * @param args the command line arguments
        public static void main(String[] args)
            try
                Tcpdump interfejsy = new Tcpdump();
            catch (Exception ex)
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    //        agh_MainFrame ramka = new agh_MainFrame();
    //        ramka.setVisible(true);
        // TODO code application logic here
    class Tcpdump implements PacketReceiver
        public void receivePacket(Packet packet)
            System.out.println(packet);
        public Tcpdump() throws Exception
            System.out.println("wszedlem do wykazu interfejsow");
            NetworkInterface[] devices = JpcapCaptor.getDeviceList();
            if (devices.length ==0)
               System.out.println("no devices");
            for (int i = 0; i < devices.length; i++)
                System.out.println(i + " :" + devices.name + "(" + devices[i].description + ")");
    System.out.println(" data link:" + devices[i].datalink_name + "(" + devices[i].datalink_description + ")");
    System.out.print(" MAC address:");
    for (byte b : devices[i].mac_address)
    System.out.print(Integer.toHexString(b & 0xff) + ":");
    System.out.println();
    for (NetworkInterfaceAddress a : devices[i].addresses)
    System.out.println(" address:" + a.address + " " + a.subnet + " " + a.broadcast);
    When i start this simple code it isn't working correctly. On the output i have only "no devices". JpcapCaptor doesn't see any mine network interfaces. On windows this code works correctly.
    Anyone has any idea  what is wrong?
    Thanks,
    iiceberg                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi, guys,
    I also have a similar problem but in Windows. I've been using a W2008 Server for a short time. For what I've seen and have been told, it works like a Vista. I've wrote a program which uses jpcap and winpcap and, first of all, gets the device list.
    Well, if I boot my computer and log on with my usual account, which in theory is an administrator, gets 0 devices when I run the program.
    Then, if I log on with the actual Administrator account i works perfectly.
    And, if after logging and running the program with the Administrator account (NOT just logging on) I log on with my usual account, it works too.
    It's like the Adm account has some kind of "top" permission that doesn't go away at logoff. I tried that because I had some other problems accessing the DVD-ROM for writing from my usual account.
    I think that I doesn't happen in WXP, but I haven't tested that last problem, yet.
    Any ideas??
    Thank you.

Maybe you are looking for