Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System Tools
VMwareInventory
Commits
cd56cff8
Commit
cd56cff8
authored
Feb 20, 2014
by
Michael Kleger
Browse files
Initial Commit
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Forfiles.exe
0 → 100755
View file @
cd56cff8
File added
VMwareInventory.cmd
0 → 100644
View file @
cd56cff8
@ECHO
OFF
mode
con
:
cols
=
120
lines
=
40
REM #===============================================================================================================================================
REM # Programm : InventoryExport.cmd
REM # Version : 1.0
REM # Beschreibung : RVTool vCenter Inventory Export to XLS
REM # RVTool Download: http://www.robware.net/
REM #------------------------------------------------------------------------
REM # Autor : Michael Kleger, klem, ZHAW
REM # Datum : 28.05.2013
REM #===============================================================================================================================================
REM #------------------------------------------------------------------------
REM # Variablen setzen
REM #------------------------------------------------------------------------
SET
"RVTool=C:\Program Files (x86)\RobWare\RVTools\RVTools.exe"
SET
"FORFILES=D:\VMware Scripts\Forfiles.exe"
SET
"vCenterUser=<EXPORT-USER"
SET
"vCenterPasswort=<EXPORT-PASSWRT>"
SET
"vCenterServer=<VMWARE-vCENTER-URL>"
SET
"RemoteUser=<SHARE-USER>"
SET
"RemotePasswort=<SHARE-PASSWORT>"
SET
"RemoteShare=\\pools01.zhaw.ch\T\T-INIT-Operating\Dokumente\Inventory"
SET
"FileName=RVTool-
%vCenterServer%
-
%date%
.xls"
REM #------------------------------------------------------------------------
REM # Script
REM #------------------------------------------------------------------------
net
use
%RemoteShare%
/user
:
%RemoteUser%
%RemotePasswort%
/PERSISTENT
:NO
"
%RVTool%
"
-u
%vCenterUser%
-p
%vCenterPasswort%
-s
%vCenterServer%
-c
ExportAll2xls
-d
%RemoteShare%
-f
%FileName%
"
%FORFILES%
"
/p
"
%RemoteShare%
"
/s /m
*
.
*
/c
"cmd /c Del @path"
/d
–30
net
use
*
/delete /yes
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment