Skip to content

Instantly share code, notes, and snippets.

@egomesbrandao
Created June 22, 2015 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egomesbrandao/9b67d92c0fc5085fe487 to your computer and use it in GitHub Desktop.
Save egomesbrandao/9b67d92c0fc5085fe487 to your computer and use it in GitHub Desktop.
@echo off
witadmin exportcategories /collection:%1 /p:%2 /f:categories.xml
witadmin exportprocessconfig /collection:%1 /p:%2 /f:process.xml
witadmin listwitd /collection:%1 /p:%2 > wits.txt
FOR /F "eol=, tokens=*" %%i in (wits.txt) DO witadmin exportwitd /collection:%1 /p:%2 /n:"%%i" /f:"%%i".xml
del wits.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment