Solved

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

Posted on 2013-12-02
3
495 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

21 Experts available now in Live!

Get 1:1 Help Now