Custom Search PowerShell Scripting - WmiObject Win32_Share PowerShell Scripting - WmiObject Win32_Share The purpose of this script is to list shares on a server. In fact, this code will enumerate the shares on any computer. WMI and PowerShell Topics # Research WMI Classes Get-WmiObject -List | Where {$_.name -Like "win32*"} Note 1: See how the production line of classes is controlled by the pipe | in the middle. Note 2: Remember that 'Where' {takes curly brackets}. Note 3: Observe that 'like' is a parameter or switch, thus needs a minus sign: -Like.
Read full article from Using PowerShell and WMI to list file shares on a server. Scripting�- WmiObject Win32_Share
No comments:
Post a Comment