in the gui :
site >> basic settings >> connect as >> specific user >> set > ; enter user and password
i see these values using:
PS IIS:\sites> get-item "siteName" | fl *
PSPath : WebAdministration::\\serverName\Sites\siteName
PSParentPath : WebAdministration::\\serverName\Sites
PSChildName : siteName
PSDrive : IIS
PSProvider : WebAdministration
PSIsContainer : True
name : siteName
id : 3
serverAutoStart : True
state : Stopped
bindings : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
limits : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
logFile : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
traceFailedRequestsLogging : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
applicationDefaults : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
virtualDirectoryDefaults : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
ftpServer : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
Collection : {Microsoft.IIs.PowerShell.Framework.ConfigurationElement}
applicationPool : DefaultAppPool
enabledProtocols : http
physicalPath :
\\serverName\websitesproduction$\webSites\Redirection Folders\siteName
userName : USER@DOMAIN
password : THEpASSWORD
ItemXPath : /system.applicationHost/sites/site[@name='siteName' and @id='3']
Attributes : {name, id, serverAutoStart, state}
ChildElements : {bindings, limits, logFile, traceFailedRequestsLogging...}
ElementTagName : site
Methods : {Start, Stop}
Schema : Microsoft.IIs.PowerShell.Framework.ConfigurationElementSchema
----------
but i fail to find how to set the values of: username and password (which i assume sets the "connect as")
thank you
Roy