SlideShare a Scribd company logo
WEB DEPLOY COMMAND LINE
Larry Nung
AGENDA
Web Deploy Command Line
Reference
Q & A
2
WEB DEPLOY COMMAND LINE
3
PATH
 C:Program FilesIISMicrosoft Web Deploy V3
4
SYNTAX
 msdeploy.exe
-verb:<verbName>
-source:<provider>[=<pathToProviderObject>
[,<providerSetting>=<providerSettingValue>]]
[-dest:<provider>[=<pathToProviderObject>
[,<providerSetting>=<providerSettingValue>]]
]
[-<MSDeployOperationSetting> ...]
5
ARGUMENTS
 -verb:<verbName>
 Specifies a Web Deploy verb. A verb determines the
action to be taken on a source or destination object.
 <verbName> must be one of the
following: delete, dump, getDependencies, getSyste
mInfo, or sync.
 The sync verb requires both the -source and -
dest arguments.
 The delete verb requires only the -dest argument.
6
ARGUMENTS
 -source:<provider>
 Specifies the source of the data for the verb argument.
 source is a required argument for
the sync and dump operations, but not delete.
 -dest: <provider>
 Specifies the destination of a synchronization operation.
 The destination argument is required only if
the sync or delete verb is specified.
7
ARGUMENTS
 -[-<MSDeployOperationSetting> ... ]
 Operation settings affect the execution of an entire Web
Deploy operation.
8
PROVIDER SETTINGS
 authType
 computerName
 encryptPassword
 getCredentials
 ignoreErrors
 includeAcls
 password
 storeCredentials
 tempAgent
 userName
 wmsvc 9
OPERATION SETTINGS
 allowUntrusted
 appHostConfigDir
 declareParam
 declareParamFile
 dest
 disableLink
 disableRule
 disableSkipDirective
 enableLink
 enableRule 10
OPERATION SETTINGS
 enableSkipDirective
 postSync
 preSync
 removeParam
 replace
 retryAttempts
 retryInterval
 setParam
 setParamFile
 showSecure
 skip 11
OPERATION SETTINGS
 source
 unicode
 useCheckSum
 verb
 verbose
 webServerDir
 whatif
 xml
 xpath
12
DUMP
 Dump local server
 msdeploy -verb:dump -source:webServer
13
DUMP
 Dump remote server
 msdeploy -verb:dump -
source:webServer,computerName=<DestServer>
14
DUMP
 Dump local site
 msdeploy -verb:dump -
source:appHostConfig="<SourceSite>"
15
DUMP
 Dump remote site
 msdeploy -verb:dump -
source:appHostConfig="<SourceSite>",computerName=
<SourceServer>
16
DUMP
17
 Dump local available backups
 msdeploy.exe -verb:dump -
source:backupManager=<SourceSite>
DUMP
18
 Dump remote available backups
 msdeploy.exe -verb:dump -
source:backupManager=<SourceSite>,computerName=
<DestServer>
SYNC
 Sync local server to remote server
 msdeploy -verb:sync -source:webServer -
dest:webServer,computerName=<DestServer>
 Sync remote server to local server
 msdeploy -verb:sync -
source:webServer,computerName=<SourceServer> -
dest:webServer
 Sync remote server to remote server
 msdeploy -verb:sync -
source:webServer,computerName=<SourceServer> -
dest:webServer,computerName=<DestServer>
19
SYNC
 Sync remote app pool to remote app pool
 msdeploy –verb:sync –
source:appPoolConfig="<SourceSite>",computerName=
<SourceServer> -
dest :appPoolConfig="<DestSite>",computerName=<De
stServer>
 Sync remote site to remote site
 msdeploy –verb:sync –
source:appHostConfig="<SourceSite>",computerName=
<SourceServer> –
dest :appHostConfig="<DestSite>",computerName=<De
stServer>
20
SYNC
 Sync local package to local site
 msdeploy -verb:sync -source:package=<Package> -
dest:appHostConfig="<DestSite>"
21
SYNC
 Sync local package to remote site
 msdeploy -verb:sync -source:package=<Package> -
dest:appHostConfig="<SourceSite>",computerName=<
SourceServer>
22
SYNC
 Sync local site to local package
 msdeploy -verb:sync -
source:appHostConfig="<SourceSite>" -dest:
package=<Package>
23
SYNC
 Sync remote site to local package
 msdeploy -verb:sync -
source:appHostConfig="<SourceSite>",computerName=
<SourceServer> -dest: package=<Package>
24
SYNC
25
 Backup local site
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>
SYNC
26
 Backup remote site
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>,computerName=<Des
tServer>
SYNC
27
 Restore local site to specified backup
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>/<BackupFile>
SYNC
28
 Restore remote site to specified backup
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<DestSite>/<BackupFile>,
computerName=<DestServer>
SYNC
29
 Restore local site to last backup
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<siteName>,useLatest=true
SYNC
30
 Restore remote site to last backup
 msdeploy.exe -verb:sync -source:backupManager -
dest:backupManager=<siteName>,useLatest=true,
computerName=<DestServer>
SYNC
31
 Recycle local application
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>"
SYNC
32
 Recycle remote application
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>" ,
computerName=<DestServer>
SYNC
33
 Stop local application
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>",recycleMode="
StopAppPool"
SYNC
34
 Stop remote app pool
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>",recycleMode="
StopAppPool" , computerName=<DestServer>
SYNC
35
 Start local app pool
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>",recycleMode="
StartAppPool"
SYNC
36
 Start remote app pool
 msdeploy -verb:sync -source:recycleApp -
dest:recycleApp="<DestApp>",recycleMode="
StartAppPool" , computerName=<DestServer>
SYNC
37
 Stop remote IIS
 msdeploy -verb:sync -source:runcommand -
dest:runCommand="iisreset
/stop",computerName=<DestServer>
SYNC
38
 Start remote IIS
 msdeploy -verb:sync -source:runcommand -
dest:runCommand="iisreset
/start",computerName=<DestServer>
SYNC
39
 Restart remote IIS
 msdeploy -verb:sync -source:runcommand -
dest:runCommand="iisreset
/restart",waitinterval=15000,computerName=<DestServ
er>
SYNC
40
 Sop site => Sync local package to remote site => Start site
 msdeploy -verb:sync -
presync:runCommand="%windir%system32inetsrvappc
md.exe stop apppool
<DestSite>",successReturnCodes=0,waitinterval=15000,c
omputerName=<DestServer> -
source:package=<Package> -
dest:appHostConfig="<DestSite>",computerName=<DestS
erver> -
postsync:runCommand="%windir%system32inetsrvappc
md.exe start apppool
<DestSite>",successReturnCodes=0,waitinterval=15000,c
omputerName=<DestServer>
SYNC
41
SYNC
 Sync local package to remote site and exclude specified file
 msdeploy -verb:sync -source:package=<Package> -
dest:appHostConfig="<DestSite>",computerName=<DestS
erver> -
skip:objectname='filePath',absolutepath='<FilePath>'
42
DELETE
 Delete local site
 msdeploy –verb:delete –
dest:apphostconfig="<DestSite>" –
skip:objectname=machineconfig –
skip:objectname=rootwebconfig
43
DELETE
 Delete remote site
 msdeploy –verb:delete –
dest:apphostconfig="<DestSite>",computerName=<Des
tServer> –skip:objectname=machineconfig –
skip:objectname=rootwebconfig
44
DELETE
 Delete local app pool
 msdeploy –verb:delete –dest: appPoolConfig
="<DestAppPool>"
45
DELETE
 Delete remote app pool
 msdeploy –verb:delete –dest: appPoolConfig
="<DestAppPool>",computerName=<DestServer>
46
DELETE
 Delete local site content
 msdeploy -verb:delete -
dest:contentPath=<ContentPath>
47
DELETE
 Delete remote site content
 msdeploy -verb:delete -
dest:contentPath=<ContentPath> ,computerName=<De
stServer>
48
DELETE
 Delete local file
 msdeploy -verb:delete -dest:filePath="<FilePath>"
49
DELETE
 Delete remote file
 msdeploy -verb:delete -
dest:filePath="<FilePath>",computerName=<DestServer
>
50
DELETE
 Delete local application
 msdeploy -verb:delete -dest:iisapp="<AppPath>"
51
DELETE
 Delete remote application
 msdeploy -verb:delete -
dest:iisapp="<AppPath>",computerName=<DestServer>
52
GETDEPENDENCIES
 Get local server dependencies
 msdeploy -verb:getDependencies -source:webServer
53
GETDEPENDENCIES
 Get remote server dependencies
 msdeploy -verb:getDependencies -
source:webServer>",computerName=<SourceServer>
54
GETSYSTEMINFO
 Get local server system info
 msdeploy -verb:getSystemInfo -source:webServer
55
GETSYSTEMINFO
 Get remote server system info
 msdeploy -verb:getSystemInfo -source:webServer
>",computerName=<SourceServer>
56
REFERENCE
57
REFERENCE
 Web Deploy Command Line Reference
 https://technet.microsoft.com/en-
us/library/dd568991(v=ws.10).aspx
58
Q&A
59
QUESTION & ANSWER
60

More Related Content

What's hot (20)

PPTX
London Node.js User Group - Cloud-native Node.js
Bethany Nicolle Griggs
 
PDF
Ansible with oci
DonghuKIM2
 
PPT
Learn flask in 90mins
Larry Cai
 
PPTX
Bugzilla Installation Process
Vino Harikrishnan
 
PDF
JavaDo#09 Spring boot入門ハンズオン
haruki ueno
 
PPTX
Cake php
Jyotisankar Pradhan
 
PDF
Filling the flask
Jason Myers
 
KEY
Phpne august-2012-symfony-components-friends
Michael Peacock
 
PPT
Play!ng with scala
Siarzh Miadzvedzeu
 
PDF
Spring boot入門ハンズオン第二回
haruki ueno
 
PDF
Generators
Allan Davis
 
PDF
Whats New in the Http Service Specification - Felix Meschberger
mfrancis
 
PDF
Symfony: Your Next Microframework (SymfonyCon 2015)
Ryan Weaver
 
PDF
Spring Boot 1.3 News #渋谷Java
Toshiaki Maki
 
PDF
Python Flask app deployed to OPenShift using Wercker CI
Bruno Rocha
 
PDF
Maven 3… so what?
Abel Muíño
 
PDF
ContainerDays NYC 2016: "Introduction to Application Automation with Habitat"...
DynamicInfraDays
 
KEY
LvivPy - Flask in details
Max Klymyshyn
 
PDF
YouDrup_in_Drupal
tutorialsruby
 
PPTX
Flask – Python
Max Claus Nunes
 
London Node.js User Group - Cloud-native Node.js
Bethany Nicolle Griggs
 
Ansible with oci
DonghuKIM2
 
Learn flask in 90mins
Larry Cai
 
Bugzilla Installation Process
Vino Harikrishnan
 
JavaDo#09 Spring boot入門ハンズオン
haruki ueno
 
Filling the flask
Jason Myers
 
Phpne august-2012-symfony-components-friends
Michael Peacock
 
Play!ng with scala
Siarzh Miadzvedzeu
 
Spring boot入門ハンズオン第二回
haruki ueno
 
Generators
Allan Davis
 
Whats New in the Http Service Specification - Felix Meschberger
mfrancis
 
Symfony: Your Next Microframework (SymfonyCon 2015)
Ryan Weaver
 
Spring Boot 1.3 News #渋谷Java
Toshiaki Maki
 
Python Flask app deployed to OPenShift using Wercker CI
Bruno Rocha
 
Maven 3… so what?
Abel Muíño
 
ContainerDays NYC 2016: "Introduction to Application Automation with Habitat"...
DynamicInfraDays
 
LvivPy - Flask in details
Max Klymyshyn
 
YouDrup_in_Drupal
tutorialsruby
 
Flask – Python
Max Claus Nunes
 

Viewers also liked (20)

PPTX
Topshelf - An easy service hosting framework for building Windows services us...
Larry Nung
 
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 4
Larry Nung
 
PPTX
C# 6.0
Larry Nung
 
PPTX
Architecture in .net
Larry Nung
 
PPT
Developing Microsoft .NET Applications for Windows
Rishi Kothari
 
PDF
La tics y la formacion docente
josel2005
 
PPTX
Práctica4
Kenia Urbina
 
PPT
Sapcustomerserviceinmanufacturingindustry
striqo
 
PPT
Claudiu Niculescu
Catalin93
 
PPTX
Practicas culturales de la cosmovisión diapositivas trabajo 3
10496958
 
PDF
cvROG
Rodrigo Oropeza
 
DOCX
ANTH Final Paper
Emily Coffin
 
PPTX
Virus y antivirus
Jessica De Loera
 
PPTX
Vocabulary List 30
BehnkeNeadM
 
PDF
360° Mongolia Brochure
Andy Parkinson
 
DOCX
50 promesas para un matrimonio feliz
MESCyT
 
PPTX
Common.logging
Larry Nung
 
PPTX
Visual studio 2017
Larry Nung
 
PPS
WPF (Windows Presentation Foundation Unit 01)
Prashanth Shivakumar
 
PDF
Windows Forms For Beginners Part - 1
Bhushan Mulmule
 
Topshelf - An easy service hosting framework for building Windows services us...
Larry Nung
 
PL/SQL & SQL CODING GUIDELINES – Part 4
Larry Nung
 
C# 6.0
Larry Nung
 
Architecture in .net
Larry Nung
 
Developing Microsoft .NET Applications for Windows
Rishi Kothari
 
La tics y la formacion docente
josel2005
 
Práctica4
Kenia Urbina
 
Sapcustomerserviceinmanufacturingindustry
striqo
 
Claudiu Niculescu
Catalin93
 
Practicas culturales de la cosmovisión diapositivas trabajo 3
10496958
 
ANTH Final Paper
Emily Coffin
 
Virus y antivirus
Jessica De Loera
 
Vocabulary List 30
BehnkeNeadM
 
360° Mongolia Brochure
Andy Parkinson
 
50 promesas para un matrimonio feliz
MESCyT
 
Common.logging
Larry Nung
 
Visual studio 2017
Larry Nung
 
WPF (Windows Presentation Foundation Unit 01)
Prashanth Shivakumar
 
Windows Forms For Beginners Part - 1
Bhushan Mulmule
 
Ad

Similar to Web deploy command line (19)

PPTX
IIS Web Ecosystem
Kenny Abdiel Maita
 
PPTX
Harish Aspnet Deployment
rsnarayanan
 
PPTX
Deploying configuring caching
aspnet123
 
PPTX
Automatic deployment on .NET web stack (Minsk .NET meetup 12.02.14)
Is Antipov
 
PPTX
Power Shell and Sharepoint 2013
Mohan Arumugam
 
PDF
Automating Your Enterprise Application Deployments with PowerShell
Geoff Varosky
 
PPTX
Automating Your Enterprise Application Deployments With PowerShell by Geoff V...
SPTechCon
 
DOCX
important DotNet Questions For Practicals And Interviews
Rahul Jain
 
PPT
Make Web, Not War - Installfest: Extend Your Web Server, Rodney Buike
Make Web Not War
 
PPTX
Automating Enterprise Application Deployments with PowerShell
Geoff Varosky
 
PPTX
Web deploy
Sky S
 
PPTX
The art of .net deployment automation
MidVision
 
PDF
Deployit - Overview & concepts
XebiaLabs
 
PDF
SPSD SharePoint Solution Deployer
Matthias Einig
 
PDF
Professional SharePoint Solution Deployment with PowerShell
Matthias Einig
 
PPTX
SharePoint 2010 Training Session 3
Usman Zafar Malik
 
PDF
Introducing Deployit 3.9
XebiaLabs
 
PPSX
Automating Windows Server 2008 R2 Administration with Windows PowerShell
alexandair
 
PPTX
File -> new project to deploy in 10 minutes with TeamCity and Octopus Deploy
Tomas Jansson
 
IIS Web Ecosystem
Kenny Abdiel Maita
 
Harish Aspnet Deployment
rsnarayanan
 
Deploying configuring caching
aspnet123
 
Automatic deployment on .NET web stack (Minsk .NET meetup 12.02.14)
Is Antipov
 
Power Shell and Sharepoint 2013
Mohan Arumugam
 
Automating Your Enterprise Application Deployments with PowerShell
Geoff Varosky
 
Automating Your Enterprise Application Deployments With PowerShell by Geoff V...
SPTechCon
 
important DotNet Questions For Practicals And Interviews
Rahul Jain
 
Make Web, Not War - Installfest: Extend Your Web Server, Rodney Buike
Make Web Not War
 
Automating Enterprise Application Deployments with PowerShell
Geoff Varosky
 
Web deploy
Sky S
 
The art of .net deployment automation
MidVision
 
Deployit - Overview & concepts
XebiaLabs
 
SPSD SharePoint Solution Deployer
Matthias Einig
 
Professional SharePoint Solution Deployment with PowerShell
Matthias Einig
 
SharePoint 2010 Training Session 3
Usman Zafar Malik
 
Introducing Deployit 3.9
XebiaLabs
 
Automating Windows Server 2008 R2 Administration with Windows PowerShell
alexandair
 
File -> new project to deploy in 10 minutes with TeamCity and Octopus Deploy
Tomas Jansson
 
Ad

More from Larry Nung (20)

PPTX
Ansible - simple it automation
Larry Nung
 
PPTX
sonarwhal - a linting tool for the web
Larry Nung
 
PPTX
LiteDB - A .NET NoSQL Document Store in a single data file
Larry Nung
 
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 8
Larry Nung
 
PPTX
MessagePack - An efficient binary serialization format
Larry Nung
 
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 7
Larry Nung
 
PPTX
BenchmarkDotNet - Powerful .NET library for benchmarking
Larry Nung
 
PPTX
PLSQL Coding Guidelines - Part 6
Larry Nung
 
PPTX
SonarQube - The leading platform for Continuous Code Quality
Larry Nung
 
PPTX
SikuliX
Larry Nung
 
PPTX
protobuf-net - Protocol Buffers library for idiomatic .NET
Larry Nung
 
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 5
Larry Nung
 
PPTX
Regular expression
Larry Nung
 
PPTX
Fx.configuration
Larry Nung
 
PPTX
StackExchange.redis
Larry Nung
 
PPTX
Disruptor
Larry Nung
 
PPTX
GRUNT - The JavaScript Task Runner
Larry Nung
 
PPTX
Bower - A package manager for the web
Larry Nung
 
PPTX
Generic lazy class
Larry Nung
 
PPTX
PL/SQL Coding Guidelines - Part 3
Larry Nung
 
Ansible - simple it automation
Larry Nung
 
sonarwhal - a linting tool for the web
Larry Nung
 
LiteDB - A .NET NoSQL Document Store in a single data file
Larry Nung
 
PL/SQL & SQL CODING GUIDELINES – Part 8
Larry Nung
 
MessagePack - An efficient binary serialization format
Larry Nung
 
PL/SQL & SQL CODING GUIDELINES – Part 7
Larry Nung
 
BenchmarkDotNet - Powerful .NET library for benchmarking
Larry Nung
 
PLSQL Coding Guidelines - Part 6
Larry Nung
 
SonarQube - The leading platform for Continuous Code Quality
Larry Nung
 
SikuliX
Larry Nung
 
protobuf-net - Protocol Buffers library for idiomatic .NET
Larry Nung
 
PL/SQL & SQL CODING GUIDELINES – Part 5
Larry Nung
 
Regular expression
Larry Nung
 
Fx.configuration
Larry Nung
 
StackExchange.redis
Larry Nung
 
Disruptor
Larry Nung
 
GRUNT - The JavaScript Task Runner
Larry Nung
 
Bower - A package manager for the web
Larry Nung
 
Generic lazy class
Larry Nung
 
PL/SQL Coding Guidelines - Part 3
Larry Nung
 

Recently uploaded (20)

PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 

Web deploy command line

  • 1. WEB DEPLOY COMMAND LINE Larry Nung
  • 2. AGENDA Web Deploy Command Line Reference Q & A 2
  • 6. ARGUMENTS  -verb:<verbName>  Specifies a Web Deploy verb. A verb determines the action to be taken on a source or destination object.  <verbName> must be one of the following: delete, dump, getDependencies, getSyste mInfo, or sync.  The sync verb requires both the -source and - dest arguments.  The delete verb requires only the -dest argument. 6
  • 7. ARGUMENTS  -source:<provider>  Specifies the source of the data for the verb argument.  source is a required argument for the sync and dump operations, but not delete.  -dest: <provider>  Specifies the destination of a synchronization operation.  The destination argument is required only if the sync or delete verb is specified. 7
  • 8. ARGUMENTS  -[-<MSDeployOperationSetting> ... ]  Operation settings affect the execution of an entire Web Deploy operation. 8
  • 9. PROVIDER SETTINGS  authType  computerName  encryptPassword  getCredentials  ignoreErrors  includeAcls  password  storeCredentials  tempAgent  userName  wmsvc 9
  • 10. OPERATION SETTINGS  allowUntrusted  appHostConfigDir  declareParam  declareParamFile  dest  disableLink  disableRule  disableSkipDirective  enableLink  enableRule 10
  • 11. OPERATION SETTINGS  enableSkipDirective  postSync  preSync  removeParam  replace  retryAttempts  retryInterval  setParam  setParamFile  showSecure  skip 11
  • 12. OPERATION SETTINGS  source  unicode  useCheckSum  verb  verbose  webServerDir  whatif  xml  xpath 12
  • 13. DUMP  Dump local server  msdeploy -verb:dump -source:webServer 13
  • 14. DUMP  Dump remote server  msdeploy -verb:dump - source:webServer,computerName=<DestServer> 14
  • 15. DUMP  Dump local site  msdeploy -verb:dump - source:appHostConfig="<SourceSite>" 15
  • 16. DUMP  Dump remote site  msdeploy -verb:dump - source:appHostConfig="<SourceSite>",computerName= <SourceServer> 16
  • 17. DUMP 17  Dump local available backups  msdeploy.exe -verb:dump - source:backupManager=<SourceSite>
  • 18. DUMP 18  Dump remote available backups  msdeploy.exe -verb:dump - source:backupManager=<SourceSite>,computerName= <DestServer>
  • 19. SYNC  Sync local server to remote server  msdeploy -verb:sync -source:webServer - dest:webServer,computerName=<DestServer>  Sync remote server to local server  msdeploy -verb:sync - source:webServer,computerName=<SourceServer> - dest:webServer  Sync remote server to remote server  msdeploy -verb:sync - source:webServer,computerName=<SourceServer> - dest:webServer,computerName=<DestServer> 19
  • 20. SYNC  Sync remote app pool to remote app pool  msdeploy –verb:sync – source:appPoolConfig="<SourceSite>",computerName= <SourceServer> - dest :appPoolConfig="<DestSite>",computerName=<De stServer>  Sync remote site to remote site  msdeploy –verb:sync – source:appHostConfig="<SourceSite>",computerName= <SourceServer> – dest :appHostConfig="<DestSite>",computerName=<De stServer> 20
  • 21. SYNC  Sync local package to local site  msdeploy -verb:sync -source:package=<Package> - dest:appHostConfig="<DestSite>" 21
  • 22. SYNC  Sync local package to remote site  msdeploy -verb:sync -source:package=<Package> - dest:appHostConfig="<SourceSite>",computerName=< SourceServer> 22
  • 23. SYNC  Sync local site to local package  msdeploy -verb:sync - source:appHostConfig="<SourceSite>" -dest: package=<Package> 23
  • 24. SYNC  Sync remote site to local package  msdeploy -verb:sync - source:appHostConfig="<SourceSite>",computerName= <SourceServer> -dest: package=<Package> 24
  • 25. SYNC 25  Backup local site  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<DestSite>
  • 26. SYNC 26  Backup remote site  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<DestSite>,computerName=<Des tServer>
  • 27. SYNC 27  Restore local site to specified backup  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<DestSite>/<BackupFile>
  • 28. SYNC 28  Restore remote site to specified backup  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<DestSite>/<BackupFile>, computerName=<DestServer>
  • 29. SYNC 29  Restore local site to last backup  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<siteName>,useLatest=true
  • 30. SYNC 30  Restore remote site to last backup  msdeploy.exe -verb:sync -source:backupManager - dest:backupManager=<siteName>,useLatest=true, computerName=<DestServer>
  • 31. SYNC 31  Recycle local application  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>"
  • 32. SYNC 32  Recycle remote application  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>" , computerName=<DestServer>
  • 33. SYNC 33  Stop local application  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>",recycleMode=" StopAppPool"
  • 34. SYNC 34  Stop remote app pool  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>",recycleMode=" StopAppPool" , computerName=<DestServer>
  • 35. SYNC 35  Start local app pool  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>",recycleMode=" StartAppPool"
  • 36. SYNC 36  Start remote app pool  msdeploy -verb:sync -source:recycleApp - dest:recycleApp="<DestApp>",recycleMode=" StartAppPool" , computerName=<DestServer>
  • 37. SYNC 37  Stop remote IIS  msdeploy -verb:sync -source:runcommand - dest:runCommand="iisreset /stop",computerName=<DestServer>
  • 38. SYNC 38  Start remote IIS  msdeploy -verb:sync -source:runcommand - dest:runCommand="iisreset /start",computerName=<DestServer>
  • 39. SYNC 39  Restart remote IIS  msdeploy -verb:sync -source:runcommand - dest:runCommand="iisreset /restart",waitinterval=15000,computerName=<DestServ er>
  • 40. SYNC 40  Sop site => Sync local package to remote site => Start site  msdeploy -verb:sync - presync:runCommand="%windir%system32inetsrvappc md.exe stop apppool <DestSite>",successReturnCodes=0,waitinterval=15000,c omputerName=<DestServer> - source:package=<Package> - dest:appHostConfig="<DestSite>",computerName=<DestS erver> - postsync:runCommand="%windir%system32inetsrvappc md.exe start apppool <DestSite>",successReturnCodes=0,waitinterval=15000,c omputerName=<DestServer>
  • 42. SYNC  Sync local package to remote site and exclude specified file  msdeploy -verb:sync -source:package=<Package> - dest:appHostConfig="<DestSite>",computerName=<DestS erver> - skip:objectname='filePath',absolutepath='<FilePath>' 42
  • 43. DELETE  Delete local site  msdeploy –verb:delete – dest:apphostconfig="<DestSite>" – skip:objectname=machineconfig – skip:objectname=rootwebconfig 43
  • 44. DELETE  Delete remote site  msdeploy –verb:delete – dest:apphostconfig="<DestSite>",computerName=<Des tServer> –skip:objectname=machineconfig – skip:objectname=rootwebconfig 44
  • 45. DELETE  Delete local app pool  msdeploy –verb:delete –dest: appPoolConfig ="<DestAppPool>" 45
  • 46. DELETE  Delete remote app pool  msdeploy –verb:delete –dest: appPoolConfig ="<DestAppPool>",computerName=<DestServer> 46
  • 47. DELETE  Delete local site content  msdeploy -verb:delete - dest:contentPath=<ContentPath> 47
  • 48. DELETE  Delete remote site content  msdeploy -verb:delete - dest:contentPath=<ContentPath> ,computerName=<De stServer> 48
  • 49. DELETE  Delete local file  msdeploy -verb:delete -dest:filePath="<FilePath>" 49
  • 50. DELETE  Delete remote file  msdeploy -verb:delete - dest:filePath="<FilePath>",computerName=<DestServer > 50
  • 51. DELETE  Delete local application  msdeploy -verb:delete -dest:iisapp="<AppPath>" 51
  • 52. DELETE  Delete remote application  msdeploy -verb:delete - dest:iisapp="<AppPath>",computerName=<DestServer> 52
  • 53. GETDEPENDENCIES  Get local server dependencies  msdeploy -verb:getDependencies -source:webServer 53
  • 54. GETDEPENDENCIES  Get remote server dependencies  msdeploy -verb:getDependencies - source:webServer>",computerName=<SourceServer> 54
  • 55. GETSYSTEMINFO  Get local server system info  msdeploy -verb:getSystemInfo -source:webServer 55
  • 56. GETSYSTEMINFO  Get remote server system info  msdeploy -verb:getSystemInfo -source:webServer >",computerName=<SourceServer> 56
  • 58. REFERENCE  Web Deploy Command Line Reference  https://technet.microsoft.com/en- us/library/dd568991(v=ws.10).aspx 58