eastb (2nd September 2008)
We wanted to place the aupstaff and aupstudent html files on the sysvol of all our logon servers.
However, when we entered the Path as \\%logonserver%\sysvol\EBSCG.INTERNAL\scripts\aup\ aupstaff.html in the AUP Informant config file we get a page cannot be displayed within the AUP Dialog box. The path is correct as it works from Start->Run (if you remove the "\\" at the beginning). I also tried using the Path with and without the "\\" in the AUP Informant config.
I was wondering, as I have zero knowledge of XML, if it was possibley to do with the serializeAs String meaning that the %logonserver% is represented literally, rather than converting to the server name? And if so, is there a work around?
Thanks !
have you tried using \\domainname\netlogon ?
eastb (2nd September 2008)
Thank you Strawberry. works perfectly. Have a good one. Cheers!
This could be considered a bug in AUP informant. It really should expand environment variables in paths provided to it via it's configuration.
bizzel (2nd September 2008)
Okay, I can make the program recognise this type of variable. Is there a list of these I can use? I know the odd few like %windir% but not the whole set.

Try here Global Variable List
Think that's pretty comprehensive.
Mike.
Also going to your nearest command prompt and typing 'set' will reveal many useful environment variables.![]()
bizzel (11th September 2008)
Thanks. There doesn't seem to be an easy way to recognise these in C# so I'm in the process of writing my own parser. This bug'll be fixed in version 1.6 which is turning out to be quite a big update now.
bizzel (11th September 2008)
Okay, here's a list of the environment variables that'll be supported:
temp
systemdrive
logonserver
windir
tmp
userprofile
programfiles
computername
legacyhome
systemroot
homeshare
homedrive
Thanks for that. I'm using the Environment class to get the list of variables but I was hoping the framework had a method to automatically parse them. No such luck but it shouldn't take too long.
Here's the new design as well, backported from 2.0. The background is greyed out which helps prevent tampering even further.
![]()
Last edited by bizzel; 11th September 2008 at 12:08 PM.
No, you have to take the list of environment variables it gives you and then loop though them all and stuff them in an array or collection or something.
This should now be fixed in 1.6. These are the supported variables if you enclose them in % % signs:
TEMP
USERDOMAIN
SystemDrive
APPDATA
windir
USERPROFILE
TMP
ProgramFiles
HOMEPATH
COMPUTERNAME
CLASSPATH
USERNAME
SystemRoot
ComSpec
LOGONSERVER
CommonProgramFiles
CLIENTNAME
QTJAVA
ALLUSERSPROFILE
AVENGINE
OS
HOMEDRIVE
Trying to use %USERNAME% and its not working, if i explicitly tell it the path then it works.
Can you help with this Bizzel?
This is in the userHomeFolderPath XML setting
Thanks
Matt
Last edited by mattmoo; 21st January 2009 at 04:16 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)