PowerShell for Windows Admins:

Shares


July 15, 2011  6:47 AM

Printer Security settings



Posted by: Richard Siddaway
Security, Shares, WMI

I was recently asked about getting the security settings for printers.

$pace = DATA {            

				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			

June 1, 2010  3:03 PM

PAM 0.2



Posted by: Richard Siddaway
PowerShell v2, PSAM, Shares

I’ve released the second module for the PowerShell Admin Modules tonight.  It is available from

http://psam.codeplex.com/releases/view/46364

This release...


April 25, 2010  9:35 AM

PowerShell Admin Modules



Posted by: Richard Siddaway
PowerShell v2, PSAM, Shares

I have created the first download for the PowerShell Admin Modules. This will be a set of of modules including code previously published on my blogs at:

Bookmark and Share     0 Comments     RSS Feed     Email a friend


April 21, 2010  2:30 PM

Shares:Security



Posted by: Richard Siddaway
PowerShell v2, Shares

 

In the previous post we saw how to get the Access Mask for the current user for a particular share.  It would be better if we could dump the information for all shares and all security access in one go.

We need to use Win32_LogicalAccess


April 14, 2010  7:08 AM

Shares: Access mask



Posted by: Richard Siddaway
Shares

The access mask controls what you can do i.e. what rights you have. We can use the GetAccessMask method to find the access mask but all we get back is a number we need unravel it. The number id a bit mask with the following values assigned

$mask = DATA {
ConvertFrom-StringData...


April 2, 2010  11:14 AM

Shares: Discovering



Posted by: Richard Siddaway
Shares

 

As I said last time I’ve modified the Get-Share function to accept a share name.


April 2, 2010  11:07 AM

Shares: Modifying



Posted by: Richard Siddaway
Shares

So far we’ve seen how to discover and create shares.  How do we alter a share?

When we created a share we supplied a number of pieces of information:

  1. folder path
  2. name
  3. type – disk share
  4. maximum number of connections
  5. ...


March 30, 2010  2:34 PM

Shares: Creating III



Posted by: Richard Siddaway
Shares

In a previous post

http://itknowledgeexchange.techtarget.com/powershell/shares-creating-ii/

we looked at...


March 21, 2010  7:22 AM

Shares: Creating II



Posted by: Richard Siddaway
PowerShell v2, Shares

Now we have seen how to create a share lets extend the script a bit.  This is how a lot of my scripts get developed.  I need to solve a particular problem so I write a script to do that task.  While I’m writing I try to see how I can make the script generic. Sometimes the script...


March 12, 2010  4:06 PM

Shares: Creating I



Posted by: Richard Siddaway
PowerShell v2, Shares, WMI

we’ve seen a few things we can do with shares – its time to look at creating them. A simple share craetion script will look like this

  Bookmark and Share     0 Comments     RSS Feed     Email a friend


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: