के माध्यम से प्रदर्शित नहीं कर सकता है, मैं निम्न कथन निष्पादित करने का प्रयास कर रहा हूं।पावरशेल cmdlet संपत्ति दिखाता है, लेकिन यह इसे 'select'
dir IIS:\Sites| foreach{ get-webapplication -site $_.Name} | select -first 1
यह
Name Application pool Protocols Physical Path
---- ---------------- --------- -------------
i1 DefaultWebSite http C:\inetpub\hosts\DefaultWebSite\i1
में परिणाम है लेकिन जब मैं परिणाम निम्नलिखित निष्पादित खाली
dir IIS:\Sites| foreach{ get-webapplication -site $_.Name} | select -first 1 name
तो मैं इस वस्तु
dir IIS:\Sites| foreach{ get-webapplication -site $_.Name} | select -first 1 | get-member | sort
Name | select Name, MemberType | format-table -auto
Name MemberType
---- ----------
applicationPool NoteProperty
Attributes Property
ChildElements Property
ClearLocalData Method
Collection NoteProperty
ConfigurationPathType NoteProperty
Copy Method
Delete Method
ElementTagName Property
enabledProtocols NoteProperty
Equals Method
GetAttribute Method
GetAttributeValue Method
GetChildElement Method
GetCollection Method
GetHashCode Method
GetMetadata Method
GetParentElement Method
GetType Method
Item ParameterizedProperty
ItemXPath NoteProperty
LoadProperties Method
Location NoteProperty
Methods Property
path NoteProperty
PhysicalPath ScriptProperty
PSPath NoteProperty
Schema Property
SetAttributeValue Method
SetMetadata Method
ToPSObject Method
ToString Method
Update Method
UpdateCollection Method
virtualDirectoryDefaults NoteProperty
के लिए गुण में देखा है तो कोई 'नाम' संपत्ति नहीं है । यह कैसे है कि गेट-वेबप्लिकेशन नाम संपत्ति दिखा सकता है, लेकिन हम इसे चुन नहीं सकते?
संबंधित प्रश्न: http://stackoverflow.com/questions/7504027/powershell- webadministration-हो w-to-get-website-from-webapplication – BACON