' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Set shell = CreateObject("WScript.Shell")
If shell.Environment("PROCESS").Item("USERNAME") = "Arne" Then
    WScript.Echo "Du er Arne"
Else
    WScript.Echo "Du er ikke Arne"
End If

Set net = CreateObject("WScript.Network")
If net.UserName = "Arne" Then
    WScript.Echo "Du er stadig Arne"
Else
    WScript.Echo "Du er stadig ikke Arne"
End If
