group-object formatting question

Hello there,

one question on the formatting of the group-object output. Using

dir | Get-Acl | ForEach-Object { $_.Access  } | Group-Object 
IdentityReference

I get a table with Count, Name and Group.

Count Name                      Group 
 

----- ----                      ----- 
 

9     predefines\Administr...  {System..
9     grpTP-FILES-IT-RW        {System.Secur



How can I access just the Name field of this output?

Thanks very much,

Uwe
0
Uwe
12/29/2009 9:43:50 PM
windows.powershell 690 articles. 0 followers. Follow

2 Replies
1314 Views

Similar Articles

[PageSpeed] 30

R2V0IHRoZSBwcm9wZXJ0eSB2YWx1ZSBmcm9tIGVhY2ggW01pY3Jvc29mdC5Qb3dlclNoZWxsLkNv
bW1hbmRzLkdyb3VwSW5mb10NCg0KZGlyIHwgR2V0LUFjbCB8IEZvckVhY2gtT2JqZWN0IHsgJF8u
QWNjZXNzICB9IHwNCiBHcm91cC1PYmplY3QgSWRlbnRpdHlSZWZlcmVuY2UgfCBGb3JFYWNoLU9i
amVjdCB7JF8uTmFtZX0NCg0KLS0gDQpSb2JlcnQ=

0
Robert
12/29/2009 9:58:21 PM
Robert Robelo schrieb:
> Get the property value from each [Microsoft.PowerShell.Commands.GroupInfo]
> 
> dir | Get-Acl | ForEach-Object { $_.Access  } |
>  Group-Object IdentityReference | ForEach-Object {$_.Name}
> 

Hi Robert,

Thank you very much, works like a charme. I think I also found a 
different solution:

dir | Get-Acl | ForEach-Object { $_.Access  } | select-object 
IdentityReference -unique



Uwe
0
Uwe
12/30/2009 6:36:17 AM
Reply:

Similar Artilces:

Sales Tax set-up question
I have a tax set up problem with RMS. I am using the "per customer" tax configuration because we ship products out of state and out of country. Here is the situation: Ontario (local) customers pay GST (federal) and PST (state/provincial) Rest of Canada pay GST only Outside Canada pay no tax However, in Ontario some products are still non-taxable (which is no problem) and some are GST only (which is a problem). Is there a way to accommodate all of this? Also, if I have a customer who is from out of province (with an out of province address in RMS) but who visits my store in Ont...

Question on Order Management
Hello all, Any workaround that i can setup GP9 Business Portal default currency USD rate change accordingly base on login person GP currency ID? example: if customer currecny ID is AUS, BP will show in AUS rate not in USD? cheers kkthui ...

Apply format to >0 cells
Hi All I have a code below that formats cells - but it formats all cells in the row & I need it to only format cells >0 in the row. I tried a few things and got errors .... How do I incorporate the additional If Then Else into this code? Sub Decorate() Dim rngB As Range Dim rngTemp As Range Set rngB = Sheets("Sheet2").UsedRange.Columns("A:S") For R = 1 To rngB.Rows.Count If Sheets("Sheet2").Cells(R, 1).Value = Range("A3") Then Set rngTemp = Sheets("Sheet2").Cells(R, 1).Range("C1:S1") '''' If rn...

how to link picture object and automatically update in publisher?
I want to creat a couple pages with links to spreadsheets and graphs. the spreadsheets update as links automatically. i can't insert a graph through the object insert. i have to do it as a picture file. how can i get the picture graph to automatically update? ...

Conditional Formatting of Numbers
Hello All WinXP Excel 97 I have a worksheet where if I enter a negative number in Cell C26 (example only), any other numbers that are entered in row 26 must also be negative. Unfortunately, I cannot rely upon the users to remember to press the minus sign. Thank you in advance for your assistance. Debra Debra, Here is some VBA that will negate the amount if the C value is negative Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False With Target If .Column <> 3 Then .Value = Abs(.Value) ...

Grouping data
I am trying to group data for a specific event and have not been successful, so I am hoping someone can help. ID Date Value 174 12/3/2007 102 174 12/3/2007 909 174 12/11/2007 405 174 12/11/2007 701 206 12/6/2007 1001 173 12/3/2007 500 I want to group by ID, the MAX Date for that ID and the Max Value for the ID & Max Date The desired result would be: ID Date Value 174 12/11/2007 701 206 12/6/...

Object library not registered
When I open a document in Excel (2002 on Windows XP) I get: Microsoft visual basic Object library not registered What does this mean, and how can I fix it? Thanks Carol ...

Group Footer at Bottom of Last Page of Group
I would like for a group footer to appear at the bottom of the last page of a group -- either hide the page footer on pages if it is not the last page of the group or have the group footer print at the bottom of the page. I have used the instructions to reset the page number and the total page count for each group. (http://support.microsoft.com/kb/841779/en-us) I was hoping to be able to set it where if the page equals the total pages of the group, it will make the page footer visible. For some reason, if there is more than one page, it doesn't work properly. I have also used the i...

e2K3 filtering question...
I've recently implemented E2K3. From time to time, I'll see spam with header info. similar to that shown below. Particularly, the "Received:" line will show my external IP (which is NOT the actual sender). Additionally, further down, somebody's email address from the org. will be on the "Cc:" line. What can I do to prevent this stuff from being delivered? Thanks in advance for insights! LJH ***************sample Header info******************************* Microsoft Mail Internet Headers Version 2.0 Received: from <our external IP> ([60.180.214.74]) by...

query based distribution group
Hello all running Exchange 2007 sp2, I need to modify an existing query based DL so it finds mailboxes and if the account has two different email address stamped on it. For example if the mailbox has test1.com and test2.com and it's a mailbox then make it a member of the query based DL Thanks for any help If it has those two e-mail addresses? That should return just one recipient. Or do you mean a recipient with any two proxy addresses? I don't believe that's possible with LDAP. Or do you mean a mailbox-enabled user with proxy addresses in two domai...

Creating Universal Groups with Distribution Group members?
Hello all. We have a Windows 2003 Active Directory with Exchange 2003, and I don't really want to duplicate work, but I think I may have to (ugh!). Here is the deal. I need to create an All Managers Universal Group with every group that has managers in it. So, what I tried doing, was I created a Universal Group and added the _All Managers DL into it -- but that didn't seem to work, according to my boss who asked me to create this UG for him. So, my question is, am I not allowed to add DL members to a Universal Security Group? And if now, is there any way that I can take...

The format disappears when I send the message via email
Need your help desperately!! I've created a file and sent out as message via email. However, the template collapsed, words and pictures are all distached. Last time, I was successful to do so but not this time. What happen to the setting? -- Christine Lam ...

Distribution Group list
I have a problem with the distribution group list. Here it goes: I removed and deleted the account from this group list but whenever I send a task, it always tries to reach this deleted account and give me a undeliverable error message. Please help. Thanks Restart Exchange services. Linh wrote: > I have a problem with the distribution group list. Here > it goes: I removed and deleted the account from this > group list but whenever I send a task, it always tries to > reach this deleted account and give me a undeliverable > error message. Please help. Thanks ...

Data, Group got error message Cannot shift object off sheet
I created a command grouping several columns together by going to Data, Group. When I go to click on the "-" sign to group. It gives me an error message;"Cannot shift object off sheet". Why? and how can I fix it. Maybe you have some objects that get rearranged when you hide the columns using your grouping symbols. This may have some suggestions that work for you. It's kind of a similar problem. XL: "Cannot Shift Objects Off Sheet" Error Hiding Columns http://support.microsoft.com/default.aspx?scid=kb;en-ca;211769 Remember to look for comments and merged ...

Attachment size question
Hey everyone, We are running Windows 2003 domain, Exchange 2003 sp1 on Windows 2003 sp1 (clustered). I know how to track a msg. with the "Message Tracking Center" but what I want to kown is, is there a way to tell (a report of some type) the sizes of attachments going through our Exchange systems? -- TIA, Clayton P.S.: I wrote an iTunes podcast tutorial and just want to publicize it. You can find it at: http://www.nikoli.net/itunepod ******************* On Mon, 19 Feb 2007 22:14:24 GMT, "Clayton Sutton" <none@none.com> wrote: >Hey everyone, &...

Local Data Groups
Hi, Does anyone know if its possible to create local data groups for offline clients and somehow push the groups out to all users, rather than going to each outlook laptop client? Jo Savidge You can deploy the SFO client using group policies. When the user next logs onto the domain the SFO client will be installed ======================= John O'Donnell Microsoft CRM MVP http://codegallery.gotdotnet.com/crm http://www.crowechizek.com/microsoft "Jo Savidge" <JoSavidge@discussions.microsoft.com> wrote in message news:CAE65DA4-C2E3-4F50-A78B-39C98940A129@microsoft.c...

Date format 04-19-07
Good afternoon: I have a field "ship date" in a table that is populated as follow "05JAN2006" (DDMMMYYYY) and this field is a text field. I would like to turn this field into a date field where I could make calculations and REALLY have a date information. I would like to add a column to the table and use an update query to transfor the ship date into a real date... What is the function you would recommend using to do so? Is there a better way than to add a column, upodate and then remove one column? Thanks Michel Khennafi wrote: > Good afternoon: > > I ...

Printing larg format
A client of mine woul'd like to have visio 2003 Pro flowcharts print on larg format. I could ask him to send me a PDF but then i have to explane him soooooo much and i don't wan't him to be troubled Is it possible for me to print visio 2003 Pro flowcharts from visio standard?? thanks for any help ! As long as it is Visio Standard 2003 ... "peter_F" <anonymous@discussions.microsoft.com> wrote in message news:1D7296A9-1233-481E-8E6E-9FD7CF71B0E1@microsoft.com... > A client of mine woul'd like to have visio 2003 Pro flowcharts print on larg format. I could a...

Trying to create an RSS feed, but XML page doesn't format in IE
I'm trying to learn how to create an RSS feed to distribute podcasts. After encountering a problem, for testing purposes, I cut the entire source code from http://www.democracynow.org/podcast.xml into a text file. Here's the rub, underlying the problem I was experiencing with my earlier attempt: When http://www.democracynow.org/podcast.xml is displayed in the browser by branching to it , it displays a nice, formatted display that is the familiar 'feedy' looking page. When 'same' code pasted into an empty text file is opened in IE, it displays...

multiple formats in a cell 11-17-09
I'm trying to find a way of displaying the content of a cell as either a number or a percentage depending on the output from a lookup. I'm struggling to find a way to do this in Excel 2003. Can you help please? Provide some examples about your data and how would you like to get the result… -------------------- (Ms-Exl-Learner) -------------------- "Gridlock" wrote: > I'm trying to find a way of displaying the content of a cell as either a > number or a percentage depending on the output from a lookup. I'm struggling > to find a way to...

graphing by group
I have 10 individuals in 5 groups. I would like to graph the individuals but keeping them within their groups. When I try to graph it ends up as 10 groups. I would also like to make each group of individuals a different colour. Thanks, Tim Hi Tim In Step 2 of Chart Wizard make sure you have Series by Rows or Series by Columns correctly selected. If you groups are in different columns us Series by Columns other wise use Series by Rows -- Bernard Liengme www.stfx.ca/people/bliengme remove CAPS in e-mail address "Tim Pasma" <anonymous@discussions.microsoft.com> wrote in m...

number format
Hi, I have been asked by my boss to convert a table of data in another format. Basicly what I need is to learn how can I format a cell so that when the value in it 1,500,000 shows as 1.5 only (i.e. I want to see how many millions the value is) thanks Use a custom number format of 0.0,, . -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com chip@cpearson.com "Suleyman" <anonymous@discussions.microsoft.com> wrote in message news:09c501c39e06$b467a6b0$a401280a@phx.gbl... > Hi, I have been asked by my boss to convert a ...

Formatting #6
When I open Excel 97 a box pops up that says that it is not fomatted for Excel 97 and asks if I want to convert the file. The problem is, there is no files open in Excel when this happens, just Excel itself. What do I do? Christine Maybe you have a hidden file open. Check under Window>Unhide. Also check your XLSTART directory to see if any files are in there. Good Luck, Mark Graesser mark_graesser@yahoo.com ----- Christine wrote: ----- When I open Excel 97 a box pops up that says that it is not fomatted for Excel 97 and asks if I want to convert th...

Passing option group value to vba function
I'm sure I've done this before but can't for the life of me figure it out now, and hours of research online haven't helped. I'm simply trying to pass an option group value from a form to a vba function. I'd like the user to choose option1 or option2 and when they click a button, the function will run an if statement like "if option1.value=true then...." I've got 2 options named option1 and option2 and a frame called frame20, what else do I need? I've also tried bounding the selection to a textbox, but keep getting errors. Any help on the process? Tha...

managing distribution groups
Hello all, I am running exchange 2003 and I would like to know is there a way and I can have a regular user maintain my distribtion groups. If so how would I go about that? Thanks so much Mike You can grant permissions at the disty group level to allow ordinary members to add and remove users. Be careful to only do disty groups as security groups changed by users in outlook is a touch insecure. "Mike B" <MikeB@discussions.microsoft.com> wrote in message news:0F2F3709-0900-46B1-B87B-A2449FD44B75@microsoft.com... > Hello all, > > I am running exchange 2003 and...