PowerShell for Windows Admins:

Shares


March 7, 2010  5:23 AM

Shares: Understanding the Access Mask



Posted by: Richard Siddaway
PowerShell v2, Shares, WMI

 

We saw earlier that the access mask was returned as a number.  We need to understand what that number means.

NOTE – BEFORE RUNNING THE SCRIPT ENSURE LINE 16 AND 17 ARE COMBINED.  THEY ARE SPLIT HERE TO FIT THE LISTING INTO THE DISPLAY WIDTH.  THE...

March 6, 2010  6:06 AM

Share Type



Posted by: Richard Siddaway
PowerShell v2, Shares, WMI

 

One other point we need to cover is the type of share.  We have a number of choices as shown in the script.  The Type property has to be converted from a number to an understandable value – unless you want to learn the share types off by heart.


March 6, 2010  4:37 AM

Sharing



Posted by: Richard Siddaway
PowerShell v2, Shares, WMI

 

One area of our Windows machines that we definitely need to think about is the shares we create on a machine. These control access to resources – especially file resources.

We can find the shares on a machine using the Win32_Share class. The name of the share and its...


November 29, 2009  11:16 AM

PowerShell – what is it?



Posted by: Richard Siddaway
PowerShell, Shares, WMI

I am going to assume at least a passing acquaintance with PowerShell as we start this series. I will attempt to explain as we go. If there is something in the scripts that you don't understand please leave a comment and I will post an explanation. PowerShell is the automation engine for the...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: