Get-WebConfigFile : Der Pfad "IIS:\Sites\ClientWebService" kann nicht gefunden werden, da er nicht vorhanden ist.
In C:\Install\Optimize-WsusServer-1.2.1\Optimize-WsusServer.ps1:845 Zeichen:26
+ $wsusWebConfigPath = Get-WebConfigFile -PSPath $iisPath | Select- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS:\Sites\ClientWebService:String) [Get-WebConfigFile], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.IIs.PowerShell.Provider.GetWebConfigCommand
So I checked the script step my step and found, that I get no output from the Get-WsusIISLocalizedNamespacePath function:
One problem is that Physical Path contains a Environment Variable:
PS C:\> Get-Website
Name ID State Physical Path Bindings
---- -- ----- ------------- --------
Default Web Site 1 Started %SystemDrive%\inetpub\wwwroot http *:80:
https :443: sslFlags=0
Hi,
I got a lot of error messages with FirstRun.
So I checked the script step my step and found, that I get no output from the
Get-WsusIISLocalizedNamespacePath
function:One problem is that Physical Path contains a Environment Variable:
This could be fixed with:
$iisLocalizedString = Get-Website |Where-Object -FilterScript {[System.Environment]::ExpandEnvironmentVariables($_.PhysicalPath) -eq [System.Environment]::ExpandEnvironmentVariables($iisSitePhysicalPath)} | Select-Object -ExpandProperty Name
But the problem is also, that the paths dont match!
So it looks like something is not right?!