IIS7 – post #14 – Misc appcmd commands.

I was experimenting with IIS7 appcmd tool and wanted to post my few notes for appcmd.   There appears to be a lot more dynamic properties that can be set.  I’m still in the process of figuring them out but wanted to post this for now. I found the links on technet syntax didn’t appear to be updated.  


 Add Site.
C:WindowsSystem32inetsrv>appcmd add site /name:”dev.iislogs.com” /bindings:http/dev.iislogs.com:80: /physicalPath:”c:domainsdev.iislogs.com”
SITE object “dev.iislogs.com” added


Delete site
C:WindowsSystem32inetsrv>appcmd delete site dev.iislogs.com
SITE object “dev.iislogs.com” deleted



List all properties for apppool
C:WindowsSystem32inetsrv>appcmd add apppool /name:dev.iislogs.com -?
ERROR ( message:-name
-queueLength
-autoStart
-enable32BitAppOnWin64
-managedRuntimeVersion
-managedPipelineMode
-passAnonymousToken
-processModel.identityType
-processModel.userName
-processModel.password
-processModel.loadUserProfile
-processModel.manualGroupMembership
-processModel.idleTimeout
-processModel.maxProcesses
-processModel.shutdownTimeLimit
-processModel.startupTimeLimit
-processModel.pingingEnabled
-processModel.pingInterval
-processModel.pingResponseTime
-recycling.disallowOverlappingRotation
-recycling.disallowRotationOnConfigChange
-recycling.logEventOnRecycle
-recycling.periodicRestart.memory
-recycling.periodicRestart.privateMemory
-recycling.periodicRestart.requests
-recycling.periodicRestart.time
-recycling.periodicRestart.schedule.[value=’timespan’].value
-failure.loadBalancerCapabilities
-failure.orphanWorkerProcess
-failure.orphanActionExe
-failure.orphanActionParams
-failure.rapidFailProtection
-failure.rapidFailProtectionInterval
-failure.rapidFailProtectionMaxCrashes
-failure.autoShutdownExe
-failure.autoShutdownParams
-cpu.limit
-cpu.action
-cpu.resetInterval
-cpu.smpAffinitized
-cpu.smpProcessorAffinityMask
 )


Add Classic Pipeline Application Pool using APPCMD
C:WindowsSystem32inetsrv>appcmd add apppool -name:dev.iislogs.com -managedRuntimeVersion:Classic
APPPOOL object “dev.iislogs.com” added


Add Integrated Pipeline Application Pool using APPCMD
C:WindowsSystem32inetsrv>appcmd add apppool -name:dev2.iislogs.com -managedRuntimeVersion:Integrated
APPPOOL object “dev2.iislogs.com” added


List all properties for the ‘SITE’ option
C:WindowsSystem32inetsrv>appcmd add site /name:dev.iislogs.com -?
ERROR ( message:-name
-id
-serverAutoStart
-bindings.[protocol=’string’,bindingInformation=’string’].protocol
-bindings.[protocol=’string’,bindingInformation=’string’].bindingInformation
-limits.maxBandwidth
-limits.maxConnections
-limits.connectionTimeout
-logFile.logExtFileFlags
-logFile.customLogPluginClsid
-logFile.logFormat
-logFile.directory
-logFile.period
-logFile.truncateSize
-logFile.localTimeRollover
-logFile.enabled
-traceFailedRequestsLogging.enabled
-traceFailedRequestsLogging.directory
-traceFailedRequestsLogging.maxLogFiles
-applicationDefaults.path
-applicationDefaults.applicationPool
-applicationDefaults.enabledProtocols
-virtualDirectoryDefaults.path
-virtualDirectoryDefaults.physicalPath
-virtualDirectoryDefaults.userName
-virtualDirectoryDefaults.password
-virtualDirectoryDefaults.logonMethod
-virtualDirectoryDefaults.allowSubDirConfig
-[path=’string’].path
-[path=’string’].applicationPool
-[path=’string’].enabledProtocols
-[path=’string’].virtualDirectoryDefaults.path
-[path=’string’].virtualDirectoryDefaults.physicalPath
-[path=’string’].virtualDirectoryDefaults.userName
-[path=’string’].virtualDirectoryDefaults.password
-[path=’string’].virtualDirectoryDefaults.logonMethod
-[path=’string’].virtualDirectoryDefaults.allowSubDirConfig
-[path=’string’].[path=’string’].path
-[path=’string’].[path=’string’].physicalPath
-[path=’string’].[path=’string’].userName
-[path=’string’].[path=’string’].password
-[path=’string’].[path=’string’].logonMethod
-[path=’string’].[path=’string’].allowSubDirConfig
 )

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s