IIS のメタデータ設定 PowerShell編

ASDIでキャストすることでIISのメタオブジェクトを取得出来るみたいです。
これは非常に便利!!

IISのルートオブジェクトのメンバ一覧取得コマンド

[adsi]"IIS://localhost/W3SVC" | Get-Member

IISのルートオブジェクトのメンバ一覧

   TypeName: System.DirectoryServices.DirectoryEntry

Name                          MemberType Definition                                                                                   
----                          ---------- ----------                                                                                   
ConvertDNWithBinaryToString   CodeMethod static string ConvertDNWithBinaryToString(psobject deInstance, psobject dnWithBinaryInstance)
ConvertLargeIntegerToInt64    CodeMethod static long ConvertLargeIntegerToInt64(psobject deInstance, psobject largeIntegerInstance)   
AdminACL                      Property   System.DirectoryServices.PropertyValueCollection AdminACL {get;set;}                         
AllowKeepAlive                Property   System.DirectoryServices.PropertyValueCollection AllowKeepAlive {get;set;}                   
AnonymousPasswordSync         Property   System.DirectoryServices.PropertyValueCollection AnonymousPasswordSync {get;set;}            
AnonymousUserName             Property   System.DirectoryServices.PropertyValueCollection AnonymousUserName {get;set;}                
AnonymousUserPass             Property   System.DirectoryServices.PropertyValueCollection AnonymousUserPass {get;set;}                
AppAllowClientDebug           Property   System.DirectoryServices.PropertyValueCollection AppAllowClientDebug {get;set;}              
AppAllowDebugging             Property   System.DirectoryServices.PropertyValueCollection AppAllowDebugging {get;set;}                
AppFriendlyName               Property   System.DirectoryServices.PropertyValueCollection AppFriendlyName {get;set;}                  
AppIsolated                   Property   System.DirectoryServices.PropertyValueCollection AppIsolated {get;set;}                      
AppPackageID                  Property   System.DirectoryServices.PropertyValueCollection AppPackageID {get;set;}                     
AppPackageName                Property   System.DirectoryServices.PropertyValueCollection AppPackageName {get;set;}                   
AppRoot                       Property   System.DirectoryServices.PropertyValueCollection AppRoot {get;set;}                          
AppWamClsid                   Property   System.DirectoryServices.PropertyValueCollection AppWamClsid {get;set;}                      
AspAllowOutOfProcComponents   Property   System.DirectoryServices.PropertyValueCollection AspAllowOutOfProcComponents {get;set;}      
AspAllowSessionState          Property   System.DirectoryServices.PropertyValueCollection AspAllowSessionState {get;set;}             
AspBufferingLimit             Property   System.DirectoryServices.PropertyValueCollection AspBufferingLimit {get;set;}                
AspBufferingOn                Property   System.DirectoryServices.PropertyValueCollection AspBufferingOn {get;set;}                   
AspCodepage                   Property   System.DirectoryServices.PropertyValueCollection AspCodepage {get;set;}                      
AspDiskTemplateCacheDirectory Property   System.DirectoryServices.PropertyValueCollection AspDiskTemplateCacheDirectory {get;set;}    
AspEnableApplicationRestart   Property   System.DirectoryServices.PropertyValueCollection AspEnableApplicationRestart {get;set;}      
AspEnableAspHtmlFallback      Property   System.DirectoryServices.PropertyValueCollection AspEnableAspHtmlFallback {get;set;}         
AspEnableChunkedEncoding      Property   System.DirectoryServices.PropertyValueCollection AspEnableChunkedEncoding {get;set;}         
AspEnableParentPaths          Property   System.DirectoryServices.PropertyValueCollection AspEnableParentPaths {get;set;}             
AspEnableTypelibCache         Property   System.DirectoryServices.PropertyValueCollection AspEnableTypelibCache {get;set;}            
AspErrorsToNTLog              Property   System.DirectoryServices.PropertyValueCollection AspErrorsToNTLog {get;set;}                 
AspExceptionCatchEnable       Property   System.DirectoryServices.PropertyValueCollection AspExceptionCatchEnable {get;set;}          
AspKeepSessionIDSecure        Property   System.DirectoryServices.PropertyValueCollection AspKeepSessionIDSecure {get;set;}           
AspLCID                       Property   System.DirectoryServices.PropertyValueCollection AspLCID {get;set;}                          
AspLogErrorRequests           Property   System.DirectoryServices.PropertyValueCollection AspLogErrorRequests {get;set;}              
AspMaxDiskTemplateCacheFiles  Property   System.DirectoryServices.PropertyValueCollection AspMaxDiskTemplateCacheFiles {get;set;}     
AspMaxRequestEntityAllowed    Property   System.DirectoryServices.PropertyValueCollection AspMaxRequestEntityAllowed {get;set;}       
AspProcessorThreadMax         Property   System.DirectoryServices.PropertyValueCollection AspProcessorThreadMax {get;set;}            
AspQueueConnectionTestTime    Property   System.DirectoryServices.PropertyValueCollection AspQueueConnectionTestTime {get;set;}       
AspQueueTimeout               Property   System.DirectoryServices.PropertyValueCollection AspQueueTimeout {get;set;}                  
AspRequestQueueMax            Property   System.DirectoryServices.PropertyValueCollection AspRequestQueueMax {get;set;}               
AspScriptEngineCacheMax       Property   System.DirectoryServices.PropertyValueCollection AspScriptEngineCacheMax {get;set;}          
AspScriptErrorMessage         Property   System.DirectoryServices.PropertyValueCollection AspScriptErrorMessage {get;set;}            
AspScriptErrorSentToBrowser   Property   System.DirectoryServices.PropertyValueCollection AspScriptErrorSentToBrowser {get;set;}      
AspScriptFileCacheSize        Property   System.DirectoryServices.PropertyValueCollection AspScriptFileCacheSize {get;set;}           
AspScriptLanguage             Property   System.DirectoryServices.PropertyValueCollection AspScriptLanguage {get;set;}                
AspScriptTimeout              Property   System.DirectoryServices.PropertyValueCollection AspScriptTimeout {get;set;}                 
AspSessionMax                 Property   System.DirectoryServices.PropertyValueCollection AspSessionMax {get;set;}                    
AspSessionTimeout             Property   System.DirectoryServices.PropertyValueCollection AspSessionTimeout {get;set;}                
AspThreadGateEnabled          Property   System.DirectoryServices.PropertyValueCollection AspThreadGateEnabled {get;set;}             
AspThreadGateLoadHigh         Property   System.DirectoryServices.PropertyValueCollection AspThreadGateLoadHigh {get;set;}            
AspThreadGateLoadLow          Property   System.DirectoryServices.PropertyValueCollection AspThreadGateLoadLow {get;set;}             
AspThreadGateSleepDelay       Property   System.DirectoryServices.PropertyValueCollection AspThreadGateSleepDelay {get;set;}          
AspThreadGateSleepMax         Property   System.DirectoryServices.PropertyValueCollection AspThreadGateSleepMax {get;set;}            
AspThreadGateTimeSlice        Property   System.DirectoryServices.PropertyValueCollection AspThreadGateTimeSlice {get;set;}           
AspTrackThreadingModel        Property   System.DirectoryServices.PropertyValueCollection AspTrackThreadingModel {get;set;}           
AuthFlags                     Property   System.DirectoryServices.PropertyValueCollection AuthFlags {get;set;}                        
CacheISAPI                    Property   System.DirectoryServices.PropertyValueCollection CacheISAPI {get;set;}                       
CGITimeout                    Property   System.DirectoryServices.PropertyValueCollection CGITimeout {get;set;}                       
ConnectionTimeout             Property   System.DirectoryServices.PropertyValueCollection ConnectionTimeout {get;set;}                
ContentIndexed                Property   System.DirectoryServices.PropertyValueCollection ContentIndexed {get;set;}                   
CPUAppEnabled                 Property   System.DirectoryServices.PropertyValueCollection CPUAppEnabled {get;set;}                    
CPUCGIEnabled                 Property   System.DirectoryServices.PropertyValueCollection CPUCGIEnabled {get;set;}                    
CPULoggingInterval            Property   System.DirectoryServices.PropertyValueCollection CPULoggingInterval {get;set;}               
CPULoggingMask                Property   System.DirectoryServices.PropertyValueCollection CPULoggingMask {get;set;}                   
CPULoggingOptions             Property   System.DirectoryServices.PropertyValueCollection CPULoggingOptions {get;set;}                
CPUResetInterval              Property   System.DirectoryServices.PropertyValueCollection CPUResetInterval {get;set;}                 
DefaultDoc                    Property   System.DirectoryServices.PropertyValueCollection DefaultDoc {get;set;}                       
DirBrowseFlags                Property   System.DirectoryServices.PropertyValueCollection DirBrowseFlags {get;set;}                   
HttpCustomHeaders             Property   System.DirectoryServices.PropertyValueCollection HttpCustomHeaders {get;set;}                
HttpErrors                    Property   System.DirectoryServices.PropertyValueCollection HttpErrors {get;set;}                       
InProcessIsapiApps            Property   System.DirectoryServices.PropertyValueCollection InProcessIsapiApps {get;set;}               
KeyType                       Property   System.DirectoryServices.PropertyValueCollection KeyType {get;set;}                          
LogExtFileFlags               Property   System.DirectoryServices.PropertyValueCollection LogExtFileFlags {get;set;}                  
LogFileDirectory              Property   System.DirectoryServices.PropertyValueCollection LogFileDirectory {get;set;}                 
LogFilePeriod                 Property   System.DirectoryServices.PropertyValueCollection LogFilePeriod {get;set;}                    
LogFileTruncateSize           Property   System.DirectoryServices.PropertyValueCollection LogFileTruncateSize {get;set;}              
LogPluginClsid                Property   System.DirectoryServices.PropertyValueCollection LogPluginClsid {get;set;}                   
LogType                       Property   System.DirectoryServices.PropertyValueCollection LogType {get;set;}                          
MaxConnections                Property   System.DirectoryServices.PropertyValueCollection MaxConnections {get;set;}                   
NTAuthenticationProviders     Property   System.DirectoryServices.PropertyValueCollection NTAuthenticationProviders {get;set;}        
PasswordChangeFlags           Property   System.DirectoryServices.PropertyValueCollection PasswordChangeFlags {get;set;}              
Realm                         Property   System.DirectoryServices.PropertyValueCollection Realm {get;set;}                            
ScriptMaps                    Property   System.DirectoryServices.PropertyValueCollection ScriptMaps {get;set;}                       
WAMUserName                   Property   System.DirectoryServices.PropertyValueCollection WAMUserName {get;set;}                      
WAMUserPass                   Property   System.DirectoryServices.PropertyValueCollection WAMUserPass {get;set;}