In a login script, I need to condition logic to read the conditions of 2 registry values, I have it in Kix but am trying to convert that over to vbscript.
I have this so far:
Dim WSHShell, RegKey, Session, WSHNetwork
Set WSHShell = CreateObject("WScript.Shell")
Set WSHNetwork = CreateObject("WScript.Network")
RegKey = "HKCU\Volatile Environment\SESSIONNAME"
Session = WSHShell.RegRead(RegKey & "")
If Session <> "Console" Then
That part works fine, but I want it to condition first checking the OS version, if >= 5.1 AND the above to quit
In Kix, it looks like this:
If @DOS >= 5.1 AND ReadValue("Volatile Environment", "SESSIONNAME") <> "Console"