Tuesday, January 12, 2016

How to Document Servers with SYDI

Manual run
C:\temp\sydi>cscript.exe ss-xml2word.vbs -xc:\temp\xx1.xml -llang_english.xml -sC:\temp\BaseTemplate.xml -o"c:\temp\System Documentation For xxx1.doc" -d -b"Table list 4" -Tc:\temp\Template9.dotx


Batch file
cscript.exe ss-xml2word.vbs -xC:\temp\%1.xml -llang_english.xml
 -sC:\temp\BaseTemplate.xml -oC:\temp\WordDoc\System_Documentation_For_%1.doc -d -b"Table
list 4" -Tc:\temp\Template9.dotx




Run on Cmd Prompt
c:\temp\Writedoc.cmd Servername




SYDI-Server v.2.4
Usage: cscript.exe sydi-server.vbs [options]
Examples: cscript.exe sydi-server.vbs -wabes -rc -f10 -tSERVER1
          cscript.exe sydi-server-vbs -ex -sh -o"H:\Server docs\DC1.xml -tDC1"
Gathering Options
 -w     - WMI Options (Default: -wabefghipPqrsSu)
   a    - Windows Installer Applications
   b    - BIOS Information
   e    - Event Log files
   f    - File Shares
   g    - Local Groups (on non DC machines)
   h    - Additional Hardware (ie. Video Controller)
   i    - IP Routes (XP and 2003 only)
   p    - Printers
   P    - Processes (running)
   q    - Installed Patches
   r    - Registry Size
   s    - Services
   S    - Startup Commands
   u    - Local User accounts (on non DC machines)
 -r     - Registry Options (Default: -racdklp)
   a    - Non Windows Installer Applications
   c    - Windows Components
   d    - FQDN Domain Name
   k    - Product Keys
   l    - Last Logged on user
   p    - Print Spooler Location
 -t     - Target Machine (Default: ask user)
 -u     - Username (To run with different credentials)
 -p     - Password (To run with different credentials, must be used with -u)
Output Options
 -e     - Export format
   w    - Microsoft Word (Default)
   x    - XML (has to be used with -o)
 -o     - Save to file (-oc:\corpfiles\server1.doc, use in combination with -d
          if you don't want to display word at all, use a Path or the file will
          be placed in your default location usually 'My documents')
          -oC:\corpfiles\server1.xml
          WARNING USING -o WILL OVERWRITE TARGET FILE WITHOUT ASKING
Word Options
 -b     - Use specific Word Table (-b"Table Contemporary"
          or -b"Table List 4")
 -f     - Base font size (Default: -f12)
 -d     - Don't display Word while writing (runs faster)
 -n     - No extras (minimize the text inside brackets)
 -T     - Use .dot file as template (-Tc:\corptemplates\server.dot, ignores -f)
XML Options
 -s     - XML Stylesheet
  h     - HTML
  t     - Free text (-stE:\Files\mytransform.xsl or -stCORP.xsl)
Other Options
 -v     - Check for latest version (requires Internet access)
 -D     - Debug mode, useful for reporting bugs


 -h     - Display help




No comments:

Post a Comment