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
OCS Inventory
WindowsAgent
Commits
81eb8a60
Commit
81eb8a60
authored
Feb 08, 2018
by
Gilles Dubois
Browse files
Add portable scripts
parent
36e24023
Changes
2
Hide whitespace changes
Inline
Side-by-side
Portable_Scripts/CleanPortableAgent.bat
0 → 100644
View file @
81eb8a60
@echo
off
title
OCS
Inventory
NG
Agent
for
Windows
-
Cleaning
OneShot
/
Portable
Agent
echo
.
echo
*
OCS
Inventory
NG
agent
for
Windows
echo
*
Cleaning
portable
agent
echo
.
Rem Don't touch this var unless you know what you are doing ?
set
WORK_DIR
=
%~dp0
Rem Folders
rmdir
/S /Q
%WORK_DIR%
download
Rem Files
del
%WORK_DIR%
history
del
%WORK_DIR%
ocsinventory
.dat
del
%WORK_DIR%
ocsinventory
.ini
del
%WORK_DIR%
last_state
\ No newline at end of file
Portable_Scripts/RunPortableAgent.bat
0 → 100644
View file @
81eb8a60
@echo
off
title
OCS
Inventory
NG
Agent
for
Windows
-
Running
OneShot
/
Portable
Agent
echo
.
echo
*
OCS
Inventory
NG
agent
for
Windows
echo
*
Running
portable
agent
echo
.
Rem Set your server url hee, example : http://myserver/ocsinventory
set
OCS_SERVER_URL
=
http
://myserver/ocsinventory
Rem Set your client TAG
set
OCS_CLIENT_TAG
=
"MYTAG"
Rem Don't touch this var unless you know what you are doing ?
set
WORK_DIR
=
%~dp0
set
FINAL_COMMAND
=
%WORK_DIR%
OCSInventory
.exe
/server
=
%OCS_SERVER_URL%
/work
_dir
=
%WORK_DIR%
/tag
=
%OCS_CLIENT_TAG%
%FINAL_COMMAND%
\ No newline at end of file
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