Hi everyone,
Ksingla, thanks for your help with my last query…..was
ripping my hair out lol. Anyways having the following issue with “-skip”. I know the Microsoft.Web.Deployment.config
file can be used but at the moment I’m scripting multiple options due to our
environment so still sticking to the command line.
My current
issue is using the “-skip” command more than once. No matter what I try it just
ignores the second “-skip”.
I’m trying
to avoid 2 files being replicated
\\cisco\keepalive.html
\\web.config*
I´ve
included the following output:
C:\>msdeploy.exe
-verb:sync -source:metakey=lm/w3svc/803843,computername=S-WF01Q-S01,username=****\**********,
assword=********
-dest:metakey=lm/w3svc/803843,computername=s-nptwebp-dr01 -disableRule:SkipConfigProtectedData
-disableRule:DefaultDependencyCheck -skip:objectName=filePath,absolutePath=.*.config
-skip:objectName=filePath,absolutePath=.cisco –verbose –whatif
Informational:
Pre-authenticating to remote agent URL
'http://s-nptwebp-dr01.besp.dsp.gbes/MSDEPLOYAGENTSERVICE' as 'S-NPTWEBP-DR01\***********'.
Informational:
Attempting to sync without payload (optimistic sync). Waiting for response...
Informational:
Received response from agent (HTTP status 'OK')
Informational:
Processing any events fired during remote agent operation
Informational:
Skipping destination rootWebConfig64
(metaKey/metaProperty[@name='ServerComment']/rootWebConfig64) due to rule
BitTo64BitRuleHandler
Informational:
Skipping destination machineConfig64
(metaKey/metaProperty[@name='ServerComment']/machineConfig64) due to rule
BitTo64BitRuleHandler
Informational:
Source filePath (keepalive.htm) missing from destination parent
(d:\Services\ESInteraction\rootempty\cisco).
Add pending
Action:
Adding child filePath (d:\Services\ESInteraction\rootempty\cisco\keepalive.htm)
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/AppRoot) to /lm/w3svc/803843/root/AppRoot due to rule
AppRootNormalize
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/ScriptMaps) to /lm/w3svc/803843/root/ScriptMaps due to
rule EnvironmentVariableNormalize
Informational:
Skipping destination filePath (d:\Services\ESInteraction\pimc\Web.config) due
to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\pimc\Web.config.08082006) due to rule
CommandLineSkipRule1
Informational:
Skipping source filePath (d:\Services\ESInteraction\pimc\Web.config) due to
rule CommandLineSkipRule1
Informational:
Skipping source filePath (d:\Services\ESInteraction\pimc\Web.config.08082006)
due to rule CommandLineSkipRule1
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/balcao/AppRoot) to /lm/w3svc/803843/root/balcao/AppRoot
due to rule AppRootNormalize
Informational:
Source filePath (keepalive.htm) missing from destination parent
(D:\Services\ESInteraction\rootempty\cisco).
Add pending
Action:
Adding child filePath (D:\Services\ESInteraction\rootempty\cisco\keepalive.htm)
Informational:
Skipping destination filePath
(D:\Services\ESInteraction\Compliance\Compliance-1.1.0-B95.bin\Compliance\web.config)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath (D:\Services\ESInteraction\Compliance\Compliance-1.1.0-B95.bin\Compliance\_web.config)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(D:\Services\ESInteraction\Compliance\Compliance-1.1.0-B95.bin\Compliance\web.config)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(D:\Services\ESInteraction\Compliance\Compliance-1.1.0-B95.bin\Compliance\_web.config)
due to rule CommandLineSkipRule1
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/Compliance/AppRoot) to
/lm/w3svc/803843/root/Compliance/AppRoot due to rule AppRootNormalize
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/Compliance/ScriptMaps) to
/lm/w3svc/803843/root/Compliance/ScriptMaps due to rule
EnvironmentVariableNormalize
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config) due to rule
CommandLineSkipRule1
Informational:
Skipping source filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.08082006)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.11102006) due to
rule CommandLineSkipRule1
Informational:
Skipping source filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.2008.02.21)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.2008.03.13) due to
rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.24012008) due to
rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config_04032007) due to
rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config_23042007) due to
rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config_26102007) due to
rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin\ESI.NPT.Web.Config.dll) due
to rule CommandLineSkipRule1
Informational:
Skipping destination filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin\ESI.NPT.Web.Config.dll) due
to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin\ESI.NPT.Web.Config.pdb) due
to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_04032007\ESI.NPT.Web.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_04032007\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_04032007\ESI.NPT.Web.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_04032007\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_27012007\ESI.NPT.Web.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_27012007\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_27012007\ESI.NPT.Web.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_27012007\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_old22112006\ESI.NPT.Web.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_old22112006\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_old22112006\ESI.NPT.Web.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\bin_old22112006\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\Clientes\ARC_Configuracao.aspx)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\Clientes\ARC_Configuracao.aspx)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\old_bin\ESI.NPT.Web.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\old_bin\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping destination filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\old_bin\ESInteraction.NPT.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\old_bin\ESI.NPT.Web.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\old_bin\ESI.NPT.Web.Config.pdb)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\old_bin\ESInteraction.NPT.Config.dll)
due to rule CommandLineSkipRule1
Informational:
Source filePath (versao.aspx) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\versao.aspx)
Informational:
Source filePath (WebForm1.aspx) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\WebForm1.aspx)
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/npt/AppRoot) to /lm/w3svc/803843/root/npt/AppRoot due to
rule AppRootNormalize
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/npt/ScriptMaps) to /lm/w3svc/803843/root/npt/ScriptMaps
due to rule EnvironmentVariableNormalize
Informational:
Skipping destination filePath (D:\Services\ESInteraction\pimcutils\Web.config)
due to rule CommandLineSkipRule1
Informational:
Skipping source filePath (D:\Services\ESInteraction\pimcutils\Web.config) due
to rule CommandLineSkipRule1
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/pimc/AppRoot) to /lm/w3svc/803843/root/pimc/AppRoot due
to rule AppRootNormalize
Change
count: 4
And if I
change the “-skip” command around
C:\>msdeploy.exe
-verb:sync -source:metakey=lm/w3svc/803843,computername=S-WF01Q-S01,username=****\**********,
assword=********
-dest:metakey=lm/w3svc/803843,computername=s-nptwebp-dr01 -disableRule:SkipConfigProtectedData
-disableRule:DefaultDependencyCheck -skip:objectName=filePath,absolutePath=.cisco
-skip:objectName=filePath,absolutePath=.*.config –verbose –whatif
Informational:
Pre-authenticating to remote agent URL
'http://s-nptwebp-dr01.besp.dsp.gbes/MSDEPLOYAGENTSERVICE' as 'S-NPTWEBP-DR01\************'.
Informational:
Attempting to sync without payload (optimistic sync). Waiting for response...
Informational:
Received response from agent (HTTP status 'OK')
Informational:
Processing any events fired during remote agent operation
Informational:
Skipping destination rootWebConfig64
(metaKey/metaProperty[@name='ServerComment']/rootWebConfig64) due to rule BitTo64BitRuleHandler
Informational:
Skipping destination machineConfig64
(metaKey/metaProperty[@name='ServerComment']/machineConfig64) due to rule
BitTo64BitRuleHandler
Informational:
Skipping source filePath (d:\Services\ESInteraction\rootempty\cisco\keepalive.htm)
due to rule CommandLineSkipRule1
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/AppRoot) to /lm/w3svc/803843/root/AppRoot due to rule
AppRootNormalize
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/ScriptMaps) to /lm/w3svc/803843/root/ScriptMaps due to
rule EnvironmentVariableNormalize
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/balcao/AppRoot) to /lm/w3svc/803843/root/balcao/AppRoot
due to rule AppRootNormalize
Informational:
Skipping source filePath
(D:\Services\ESInteraction\rootempty\cisco\keepalive.htm) due to rule
CommandLineSkipRule1
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/Compliance/AppRoot) to
/lm/w3svc/803843/root/Compliance/AppRoot due to rule AppRootNormalize
Informational:
Attribute value equality changed to True when comparing metaProperty (/lm/w3svc/803843/root/Compliance/ScriptMaps)
to /lm/w3svc/803843/root/Compliance/ScriptMaps due to rule
EnvironmentVariableNormalize
Informational:
Source filePath (versao.aspx) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\versao.aspx)
Informational:
Source filePath (web.config) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action: Adding
child filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config)
Informational:
Source filePath (web.config.08082006) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.08082006)
Informational:
Source filePath (web.config.11102006) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.11102006)
Informational:
Source filePath (web.config.2008.02.21) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.2008.02.21)
Informational:
Source filePath (web.config.2008.03.13) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.2008.03.13)
Informational:
Source filePath (web.config.24012008) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config.24012008)
Informational:
Source filePath (web.config_04032007) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config_04032007)
Informational:
Source filePath (web.config_23042007) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config_23042007)
Informational:
Source filePath (web.config_26102007) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\web.config_26102007)
Informational:
Source filePath (WebForm1.aspx) missing from destination parent
(d:\Services\ESInteraction\nptweb\1.0.0\wwwroot). Add pending
Action:
Adding child filePath (d:\Services\ESInteraction\nptweb\1.0.0\wwwroot\WebForm1.aspx)
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/npt/AppRoot) to /lm/w3svc/803843/root/npt/AppRoot due to
rule AppRootNormalize
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/npt/ScriptMaps) to /lm/w3svc/803843/root/npt/ScriptMaps
due to rule EnvironmentVariableNormalize
Informational:
Attribute value equality changed to True when comparing metaProperty
(/lm/w3svc/803843/root/pimc/AppRoot) to /lm/w3svc/803843/root/pimc/AppRoot due
to rule AppRootNormalize
Change
count: 11