ocsinventory
Dies ist eine alte Version des Dokuments!
run in admin cmd:
@"%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'))"
- edvc-ocs-inventory.ps1
$url="http://ocs.krainz-edv.at/OCS-NG-Windows-Agent-Setup.exe" $outpath = "$ENV:TEMP/ocs.exe" $wc = New-Object System.Net.WebClient $wc.DownloadFile($url, $outpath) $args = @("/S","/SERVER=https://ocs.krainz-edv.at/ocsinventory","/NO_SYSTRAY","/NOW") Start-Process -Filepath "$ENV:TEMP/ocs.exe" -ArgumentList $args
ocsinventory.1580552862.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
