Benutzer-Werkzeuge

Webseiten-Werkzeuge


ocsinventory

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
ocsinventory [2020/01/31 01:07] edvcocsinventory [Unbekanntes Datum] (aktuell) – Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1
Zeile 1: Zeile 1:
 +[[https://github.com/OCSInventory-NG/WindowsAgent/releases|OCS Windows Agent Releases]]
 +
 run in admin cmd: run in admin cmd:
-<code>@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('http://cfg.krainz-edv.at/lib/exe/fetch.php?media=edvc-ocs-inventory.ps1'))" +<file cmd edvc-ocs-inventory.cmd> 
-</code>+@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://cfg.krainz-edv.at/doku.php?do=export_code&id=ocsinventory&codeblock=1'))" 
 +</file>
  
-<code>+<file ps1 edvc-ocs-inventory.ps1>
 $url="http://ocs.krainz-edv.at/OCS-NG-Windows-Agent-Setup.exe" $url="http://ocs.krainz-edv.at/OCS-NG-Windows-Agent-Setup.exe"
 $outpath = "$ENV:TEMP/ocs.exe" $outpath = "$ENV:TEMP/ocs.exe"
Zeile 10: Zeile 13:
 $wc.DownloadFile($url, $outpath) $wc.DownloadFile($url, $outpath)
  
-$args = @("/S","/SERVER=ocs.krainz-edv.at","/NO_SYSTRAY","/NOW")+$args = @("/S","/SERVER=http://ocs.krainz-edv.at/ocsinventory","/NO_SYSTRAY","/NOW")
 Start-Process -Filepath "$ENV:TEMP/ocs.exe" -ArgumentList $args Start-Process -Filepath "$ENV:TEMP/ocs.exe" -ArgumentList $args
-</code>+</file>
ocsinventory.1580432873.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki