Quantcast
Channel: VBS Script Monitor
Viewing all articles
Browse latest Browse all 6

VBS Script Monitor

0
0

Hallo!

Ich versuche per VBS in einem Monitor den Logonserver auszulesen.

Leider bin ich mit meinem Latein am Ende.

3 Varianten habe ich versucht:

Set WSHShell = CreateObject("Wscript.Shell")    

Set WSHProcess = WSHShell.Environment("Process")    

DomainLogonServer = WSHProcess("LogonServer")    'Ausgabe: \\Servername

dim logonserverlogonserver = WSHShell.ExpandEnvironmentStrings("%logonserver%")

f.WriteLine "Server:" & logonserver logonserver = WSHShell.environment("process")("logonserver")

Dim strRegKey

strRegKey="HKCU\Volatile Environment\LogonServer"

f.WriteLine "Current Logon Server is: " & WSHShell.RegRead(strRegKey)

Bei keiner der Varianten wird die Variable gefüllt.

Führe ich das Skript manuell aus, funktioniert alles.

Was mache ich falsch?

danke

Hansi



Viewing all articles
Browse latest Browse all 6

Latest Images

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Vimeo 10.6.2 by Vimeo.com, Inc.

Vimeo 10.6.2 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.0 by Vimeo.com, Inc.

Vimeo 10.6.0 by Vimeo.com, Inc.

Re:

Re:





Latest Images

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.0 by Vimeo.com, Inc.

Vimeo 10.6.0 by Vimeo.com, Inc.

Re:

Re:

Re:

Re: