Can you create a miniscript with just the following lines:
code:
? 'Homeshare = '+@HOMESHR
? 'Error code = '+@ERROR+' - '+@SERROR

Then post the output of this script. Run this
1) from the console after you are logged in as a domain user
2) from the console after you are logged in as a domain administrator
3) as a login script logging in as a domain user
_________________________
There are two types of vessels, submarines and targets.