New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Windows Version über Powershell Anfrage auslesen

Votes:

0

Your Vote:

Up

Down

Ich versuche über

(Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" -Name ReleaseID).ReleaseId

und einem EXE/Script Sensor die Version von Windows anzeigen zu lassen. Es wird auch die aktuelle 18xx angezeigt, jedoch mit dem Fehler

Response not well-formed: "(1803 )" (code: PE132)

Die Abfrage ist einfach in einem "Einzeiler" als .ps1 eingebunden, muss ich eine Variable zur Übergabe verwenden?

Besten Dank

Detlev Beck

powershell sensor windowss-version

Created on Feb 13, 2019 7:39:44 AM by  detlevbeck (0) 1

Last change on Feb 13, 2019 11:12:24 AM by  Stephan Linke [Paessler Support]



3 Replies

Votes:

1

Your Vote:

Up

Down

Hallo Herr Beck,

PRTG erwartet hier folgendes Format: <wert>:<nachricht>

Entsprechend müsste es also so aussehen:

$Version = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" -Name ReleaseID).ReleaseId
Write-Host ([string]::Format("0:Windows Build is {0}",$Version))

PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Feb 13, 2019 11:14:23 AM by  Stephan Linke [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hallo Herr Linke,

vielen Dank für schnelle Antwort.

Leider erscheint Dashboard nur ein grüner Sensor ohne Rückgabewert der Windows Version.

Mit freundlichen Grüßen / With best regards

Detlev Beck

Externer Dienstleister der Siemens Healthcare GmbH

Created on Feb 13, 2019 11:44:22 AM by  detlevbeck (0) 1



Votes:

0

Your Vote:

Up

Down

Wie wird es denn in der Kommandozeile angezeigt?


PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Feb 13, 2019 11:59:13 AM by  Stephan Linke [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.