IIS 7 and Above
Restore-WDApp missing a -ParameterValuesFile Powershell Parameter.
Last post May 18, 2018 10:25 AM by RyanStanley4
May 08, 2018 08:50 AM|RyanStanley4|LINK
Sorry if this is not right but this is my first post!
We use Powershell Web Deploy to roll out our websites, recently we built some new web servers and we cannot deploy to these.
After investigating I have found that there is a line in our deployment that uses the "-ParameterValuesFile" param this is available on our DEV servers. From looking at the version installed this looks like version 3.0, however, if I download this version
from MS I find that there "Version" column does not match under apps and features when I compare new and old servers.
There is basically no documentation on this parameter apart from in here: https://docs.microsoft.com/en-us/iis/publish/using-web-deploy/web-deploy-powershell-cmdlets#iii-restore "To
find out the Web Deploy parameters defined in any Web Deploy package you can simply open the zip file in Windows Explorer and examine the parameters.XML file present in the root of the package. Any Web Deploy parameter that does not have a default value or
a value needs a value to be specified. Add all of these parameters in an XML file and pass it in as the value for ParameterValuesFile parameter. You can generate this file as given in here or
manually. The format is"
I understand from the same article that there is a "Get-WDParameters -FilePath" command that could be a variable ($MyParams = Get-WDParameters -FilePath c:\Myfile.xml), this can be used on the newer "-Parameters" value.
Our ideal approach would be to install the matching WD package on the new servers, does anyone know where to get this? Otherwise, how would you approach this using the newer approaches without having to reinstall web deploy across all of our servers?
Thanks for any help!
May 15, 2018 09:37 AM|RyanStanley4|LINK
We still have this issue.
I have tried the "Get-WDParameters -FilePath" approach and this has not worked as the XML formatting seems to be different. Any help would be a massive help.
May 18, 2018 07:54 AM|deepakpanchal10|LINK
You had mentioned that,"We use Powershell Web Deploy to roll out our websites, recently we built some new web servers and we cannot deploy to these."
I suggest you to refer link below may help you.
PowerShell scripts for automating Web Deploy setup
May 18, 2018 10:25 AM|RyanStanley4|LINK
This is about how to deploy using web deploy.
We already do this, however, the PowerShell snapin for version 3.0 does not have the parameter "-ParameterValuesFile" whereas are old serves do.
How can I get "-ParameterValuesFile" on the new servers?