我阅读了有关Web Deploy Powershell Cmdlets的信息,我想开始使用它们。当然,我开始的第一个任务是备份我的测试网络服务器的当前配置状态——这个 cmdlet 应该这样做:
Backup-WDServer -ConfigOnly
但是,当我运行它时,我收到了这个投诉——我不确定如何解决它:
Backup-WDServer : The property 'password' located at '/webServer/appHostConfig[@path='']/location[@path='']/section[@name='system.applicationHost/applicationPools']/applicationPools/applicationPoolDefaults/processModel' is
marked as secure. You must specify an encryption password to archive this property.
At line:1 char:1
+ Backup-WDServer -ConfigOnly
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Backup-WDServer], DeploymentEncryptionException
+ FullyQualifiedErrorId : Microsoft.Web.Deployment.PowerShell.BackupServer