LIst all share drives within 283 Servers

This topic contains 2 replies, has 2 voices, and was last updated by  Vixon Haro 2 years, 11 months ago.

  • Author
  • #25371

    Vixon Haro

    Hello team,

    I need to get all the share drives from a list of 283 servers running:

    18 servers – windows server 2003
    218 servers – windows server 2008
    46 servers – windows server 2012

    I will use get-wmiobject -class win32_share to get the information or get-ciminstance -classname win32_share, then exporting it to a .txt file.

    There are some servers I don't have access and when I get an error message the command stops, any idea how can I implement this process more efficiently.

    Maybe an script, I new to PowerShell with very basic level of knowledge.

    Thank you!

  • #25372

    Don Jones

    Sure. You can make a single Get-WmiObject call, and just add -AsJob. It'll run each computer individually.

  • #25407

    Vixon Haro

    Thank you Don, that was a big help

You must be logged in to reply to this topic.