Jump to content

Recommended Posts

Posted

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 !

Posted
This could be considered a bug in AUP informant. It really should expand environment variables in paths provided to it via it's configuration.
  • Thanks 1
Posted
This could be considered a bug in AUP informant. It really should expand environment variables in paths provided to it via it's configuration.

 

Certainly something I'll look at. Thanks.

Posted
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.
  • 2 weeks later...
Posted
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.
Posted

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

Posted (edited)

 

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.

 

http://www.paulbeesley.com/wp-content/uploads/2008/09/newaup.jpg

Edited by bizzel
Posted
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.
Posted

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

  • 4 months later...
Posted (edited)

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

Edited by mattmoo
Posted
It would fail to load for me using any % variables so I had to tell ours to save the AUP.ini to a network drive instead rather than the local laptops.
Posted
It would fail to load for me using any % variables so I had to tell ours to save the AUP.ini to a network drive instead rather than the local laptops.

 

We don't map their home folder to a network drive so presumably this would not work as it would only need accepting once.

 

matt

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...