Originally Posted By: ShaneEP
Honestly, I think it would be simpler if you used a registry value instead of a file. And, you wouldn't have to worry about writing over itself, or multiple entries.

Just use this line in your login script to create the registry key...
 Code:
$nul = WriteValue("HKCU\Software\Winternals\BGInfo", "hostname", Right(@WkSta,3), "REG_SZ")

And then simple create a custom entry in bginfo that points to "HKEY_CURRENT_USER\SOFTWARE\Winternals\BGInfo\hostname"


Don't think this is gona work because i use a computer logon script policy.
or am i wrong?