locked
Powershell - List shares in a EMC² Isilon RRS feed

  • Question

  • Hi everyone.

    I'm trying to get shares from a server but it's in an Isilon EMC server and I get an RPC error when submit the following code in Powershell:

    Get-WmiObject win32_share -ComputerName \\cpoatj02.tj.rs\

    Well, I wonder why can't I get the shares but ISE shows all off them with te intellisense cifs browser as shown in the picture below...

    There's any other way to get this data which Powershell ISE get and put in some object/array for later use?

    Thanks, in advance!


    João


    Friday, October 31, 2014 6:55 PM

Answers

  • Any way to to see shares defined on a remote device that doesn't have WMI?

    Not unless your device has a defined API for accessing those settings remotely that you can use from PowerShell (e.g., PowerShell module provided by the vendor). That's a question for your vendor.


    -- Bill Stewart [Bill_Stewart]


    • Edited by Bill_Stewart Friday, October 31, 2014 8:36 PM
    • Proposed as answer by Bill_Stewart Saturday, November 1, 2014 3:56 PM
    • Marked as answer by Bill_Stewart Friday, November 28, 2014 5:19 PM
    Friday, October 31, 2014 8:12 PM

All replies

  • I wouldn't expect it to work unless the device supports WMI.


    -- Bill Stewart [Bill_Stewart]

    Friday, October 31, 2014 6:58 PM
  • Yeah, Bill. It really doesn't. But how the PS get the entire list of the shares that I can only get within a ssh terminal to isi server? Quite strange, huh?


    João

    Friday, October 31, 2014 7:17 PM
  • The ISE is using CIFS, not WMI.

    -- Bill Stewart [Bill_Stewart]

    Friday, October 31, 2014 7:19 PM
  • So... there's any way to achieve it with cifs?

    João


    Friday, October 31, 2014 8:05 PM
  • Any way to to see shares defined on a remote device that doesn't have WMI?

    Not unless your device has a defined API for accessing those settings remotely that you can use from PowerShell (e.g., PowerShell module provided by the vendor). That's a question for your vendor.


    -- Bill Stewart [Bill_Stewart]


    • Edited by Bill_Stewart Friday, October 31, 2014 8:36 PM
    • Proposed as answer by Bill_Stewart Saturday, November 1, 2014 3:56 PM
    • Marked as answer by Bill_Stewart Friday, November 28, 2014 5:19 PM
    Friday, October 31, 2014 8:12 PM
  • There are generally three kinds of shares.  CIFS, NetBIOS And NFS.   If EMC is configured with SAMBA then we can see the shares with SMB or NetBIOS and they wll appear in Windows networking.  If the system is set up with CIFS we can see them on Windows systems with CIFS enabled.

    Unix boxes can install and usually have installed CIM.  CIM can be queried by WMI but you need to check with the vendor for how it is implemented.  Post in the EMC forum.

    NFS can be queried by installing Unix support on Windows.  2008R2 and later have Unix support available.


    ¯\_(ツ)_/¯

    Friday, October 31, 2014 8:53 PM
  • Windows 8.1 support for CIFS


    ¯\_(ツ)_/¯

    Friday, October 31, 2014 8:58 PM
  • How to mount an NFS share to Windows 7 and later:

    http://technet.microsoft.com/en-us/library/cc754350.aspx


    ¯\_(ツ)_/¯

    Friday, October 31, 2014 9:02 PM
  • NFS connection utilities for Windows 7 and WS2008.  This is already installed on WS2012

    ¯\_(ツ)_/¯

    Friday, October 31, 2014 9:11 PM