WindowsAgent icon indicating copy to clipboard operation
WindowsAgent copied to clipboard

OPSI Script Usage in OCS-Inventory

Open sokatra opened this issue 5 years ago • 0 comments

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General information

Operating system :
Windows 7- 64bit

OCS Inventory information

Windows agent version : 2.4.0

Problem's description

It would be nice if you can do something like OPSI can. OPSI is a open source solution to inventory pc's and deploy packages. OPSi has repository's to download packages automatically and deploy them to the clients Here are a list of such a repository https://forum.opsi.org/wiki/doku.php?id=userspace:packaging_links Try to unpack such a package 3 times with 7zip to lock what is inside the packages. There is a script inside in opsi-script syntax which is explained here. https://download.uib.de/opsi_stable/doc/html/opsi-winst-manual/opsi-winst-manual.html The command Interpreter is winst32.exe which is just a portable executable which can be downloaded here https://download.uib.de/opsi4.1/stable/packages/windows/localboot/ download the package opsi-client-agent_4.1.0.0-26.opsi unpack it with 7zip 3 times There is a folder inside which is named CLIENT_DATA In this folder you see files\opsi\opsi-winst which contains the file winst32.exe which is the command interpreter. You can run the winst32.exe if you have the corresponding files in the opsi-winst folder like ssleay32.dll.

Example to test the script functionality I download vlc.mediaplayer_3.0.6-go1.opsi from http://opsi.disconnected-by-peer.at/public/release/ i unpack the folder structure and start wininst32.exe which will open a gui. There you can select the file CLIENT_DATA\setup3264.ins and start the script, which will install vlc for you. It works you can make it silent with a silent parameter wininst32.exe /silent setup3264.ins It also works and can be deployed via OCS-Inventory It would be fantastic to automatically import such packages into OCS-Inventory an deploy them to client pc's With the fantastic open source script winst32.exe ocs-Inventory can be extended to use such scripts, and you don't have to depend on just the cmd or powershell.

So i can use OCS-Inventory to deploy OPSI Packages with automatic download form OPSI repository. The automatic download function could be implmented in a client side script, but should better be implemented in OCS-Inventory Server. So all OCS-Inventory Server Managers can use OPSI repositorys

Wouldn't that be nice?

Inventory log file ( optional )

Use github cloud or trusted upload website

sokatra avatar Apr 03 '19 16:04 sokatra