Hi Sebastiaan,
I am not sure about the reason for that. But, see if this helps.
Code:
<script language="vbscript">
Dim strUsername, wshShell
Set wshShell = CreateObject("WScript.Shell")
strUser = wshShell.ExpandEnvironmentStrings("%USERNAME%")
'This uses the Environment variable %USERNAME%
'Try Echo %USERNAME% in command prompt.
</script>
OR
Code:
<script language="vbscript">
Dim strUsername, adsNTSysInfo
Set adsNTSysInfo = CreateObject("WinNTSystemInfo")
strUsername = adsNTSysInfo.UserName
</script>
Cheers!
_________________________
- Vijay G
Strive for Perfection