How can we easily view every member of the objects returned in powershell and their values?

Source: Internet
Author: User

A SharePoint 2010 people picker cannot query the user's problems. Capture the NETMON package and check whether the LDAP query is sent out.

My colleagues and I did not solve the problem after three days. nick finally made the debut and waved his hand to solve the problem. the trick is to write all the fields of an object to an XML file. Then, you can view the data fields that cause the problem.

 

Command example

 

View the results in XMLActivedirectorycustomfilterThis attribute, if there is anything messy, remember to clear it through powershell (that is, the default status ).

 

Remember to update the web application object after modification.

 

All commands are listed here for future reference.

PS c: \ Users \ administrator. VSAT> $ webapp = Get-spwebapplication http: // sps2010

PS c: \ Users \ administrator. VSAT> $ ppickersetting = $ webapp. Invalid invalid ickersettings

PS c: \ Users \ administrator. VSAT> $ ppickersetting |Export-clixmlC: \ temp \ ppicker.

XML

PS c: \ Users \ administrator. VSAT> $ ppickersetting. activedirectorycustomfilter = ""

PS c: \ Users \ administrator. VSAT> $ webapp. Update ()

PS c: \ Users \ administrator. VSAT>

 

You can useGet-memberCommand. Example:

PS c: \ Users \ administrator. VSAT> $ site = Get-spsite http: // sps2010

PS c: \ Users \ administrator. VSAT> $ site | get-member


Typename: Microsoft. Sharepoint. spsite

Name membertype Definition

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

Addworkitem method system. guid addworkitem (sys...

Bypassuseremoteapis method system. Void bypassuseremote...

Checkforpermissions method system. Void checkforpermiss...

Close method system. Void close ()

Confirmusage method bool confirmusage ()

Delete method system. Void Delete (), deleting e...

Dispose method system. Void dispose ()

Doesuserhavepermissions method bool doesuserhavepermission...

Equals method bool equals (system. Object OBJ)

Getallreusableacls method system. Collections. Generic ....

......

Getselfservicesitecreationsettings method system. Void getselfservices...

GetType method type GetType ()

Getvisualreport method system. Collections. Generic ....

Getwebtemplates method Microsoft. Sharepoint. spwebt...

Getworkitems method system. Void getworkitems (mi...

Makefullurl method string makefullurl (string s...

Openweb method Microsoft. Sharepoint. spweb...

Queryfeatures method Microsoft. Sharepoint. spfeat...

.........

Deadwebnotificationcount property system. int16 deadwebnotific...

Eventreceivers property Microsoft. Sharepoint. speven...

Externalbinaryids property Microsoft. Sharepoint. spexte...

Featuredefinitions property Microsoft. Sharepoint. admini...

Features property Microsoft. Sharepoint. spfeat...

Globalpermmask property Microsoft. Sharepoint. sprigh...

.........

Resourcequotawarningnotificationsent property system. boolean resourcequot...

Rootweb property Microsoft. Sharepoint. spweb...

Searchserviceinstance property Microsoft. Sharepoint. admini...

Secondarycontact property Microsoft. Sharepoint. spuser...

Serverrelativeurl property system. String serverrelativ...

Showurlstructure property system. boolean showurlstruc...

Sitesubtesproperty Microsoft. Sharepoint. spsite...

Solutions property Microsoft. Sharepoint. spuser...

Syndicationenabled property system. boolean syndicatione...

..........

Usertoken property Microsoft. Sharepoint. spuser...

Warningnotificationsent property system. boolean warningnotif...

Webapplication property Microsoft. Sharepoint. admini...

Workflowmanager property Microsoft. Sharepoint. workfl...

Writelocked property system. boolean writelocked...

Zone property Microsoft. Sharepoint. admini...


PS c: \ Users \ administrator. VSAT>

 

Reference

================

Export-clixml

Http://technet.microsoft.com/en-us/library/dd347657.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.