Solved

SharePoint 2010 Powershell question - What are all the items in the Select option?

Posted on 2013-12-02
3
481 Views
Last Modified: 2013-12-02
I am building a list of all the SharePoint sites in SharePoint 2010.  I have got a script that can accomplish most of this.  I do not know how to see what all the options I can list with the Select option highlighted below.   I'd like to find out when a site was last modified and when it was created.

Get-SPWebApplication http://sharepointsite | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, ID, ParentWebID | Export-CSV C:\new\InfoArch1.csv

Any and all help is greatly appreciated.
0
Comment
Question by:cknoderer
3 Comments
 
LVL 40

Assisted Solution

by:Subsun
Subsun earned 250 total points
ID: 39690264
You can use Get-Member or Format-List command to list all available properties.. For example..

Get-SPWebApplication http://sharepointsite | Get-SPSite -Limit All | Get-SPWeb -Limit All | Get-Member -MemberType Property | Select Name

Open in new window


or

Get-SPWebApplication http://sharepointsite | Get-SPSite -Limit All | Get-SPWeb -Limit All | FL *

Open in new window


Or even Select * will give you all properties..

Created and LastItemModifiedDate are the two properties you might be looking for..
0
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 250 total points
ID: 39690277
Hi,
you can get all the properties mentioned here in the SPWeb object properties:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb_properties.aspx

There is also one special property called "Properties" which is of type "SPPropertyBag" and which contains also all properties as hash table.

HTH
Rainer
0
 
LVL 1

Author Comment

by:cknoderer
ID: 39690340
Thanks! They both are correct.  I tried using the * after Select and it returned all the results.  Which didnt' occur to me. (Typical)  

Get-SPWebApplication http://sharepointsite| Get-SPSite -Limit All | Get-SPWeb -Limit All | Select * | Export-CSV C:\new\listauthor.csv
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
Set OWA language and time zone in Exchange for individuals, all users or per database.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now