Thursday, 7 June 2012

EX2010: ItemCount in a Public Folder

I needed to count the number of items in a bunch of subfolders in a Public Folder.  Here's how:

Get-PublicFolder
-id "\Storage\02_FeedbackArchive\"
-Recurse
-ResultSize unlimited
| Get-PublicFolderStatistics
| ft Name,ItemCount,Folderpath
> c:\powershell\ps_output\pf_itemcount_7jun12.txt

Get-PublicFolder -id "\Admin\02_Archive\00_Done\EmailFeedbackReport" -Recurse -ResultSize unlimited | Get-PublicFolderStatistics | ft Name,ItemCount,Folderpath > c:\powershell\ps_output\pf_itemcount_7jun12.txt

... This command took four minutes to run to produce a 111K .txt file, counting the items of 68 subfolders.  

Tuesday, 8 March 2011

Delegating specific subfolder access using PFDAVAdmin on Exchange 2007

Scenario
An Exchange 2007 user wants some of their subfolders to be accessible by other users. This needs to be effected administratively, since the user either doesn't have time themselves to adjust all the permissions on individual folders, or they don't have access to their Mailbox using either OWA, Entourage or Outlook.

As per best practice, you do not want to achieve this by giving yourself full access to the user's mailbox, then right-clicking on the specified folders to set permissions.

(This is not the same scenario as giving full access to the entire mailbox. )

Solution using PFDAVAdmin
Connect to Exchange 2007 using PFDAVAdmin to "All Mailboxes".
Navigate to the user's Mailbox, and give the delegates "Folder Visible" permission on the "Top of Information Store" folder.
Assign permissions to the delegate on the relevant subfolders. Push rights down to subfolders using Propagate ACLs from the context menu.

The delegate should now open the user's mailbox as an Additional Mailbox.


Monday, 21 September 2009

log checking

edge traffic at the gateway
dirty excuse for an angel
printer password won't reset
don't let this desperate moonlight leave me

Thursday, 3 September 2009

One user enters, one user leaves

subinacl, a wonderbox of command-line ACL power, is part of the Windows Resource Kit.

Here's syntax to transfer one user's access pattern onto another user.

subinacl /subdirectories \\server\departments\accounts\* /replace=ark=gru

This goes through all of the folders in accounts, and replaces ark's SID with gru's SID.
gru now has all the same folder permissions that ark had.

Note: According to the help file (subinacl /help /replace) :

SubInAcl version 5.2.3790.1180

/REPLACE
--------

/replace=DomainName\OldAccount=DomainName\New_Account

replace all ACEs (Audit and Permissions) in the object
Ex: /replace=DOM_MARKETING\ChairMan=NEWDOM\NewChairMan will replace
all ACEs containing DOM_MARKETING\ChairMan with NewChairMan SID
retrieves from NEWDOM domain
Warning: if DomainName\New_Account has already an ACE, ACE replacement is
skipped


Because /replace is supposed to _replace_ ark's SID with gru's, one would expect to find no more references to ark via the Sharing and Security GUI for a folder.
However, in my system, I found that gru now had an entry alongside every one of the ark's entries.

Wednesday, 2 September 2009

it's definitely not true

but it is something i had to find out today.

du –sh /it_support

drive the settings

Anonymous, come on down.
We Welcome Your Comments.

Friday, 28 August 2009

Our Drones


We have a special room for them ...