eastb Posted September 2, 2008 Posted September 2, 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 !
strawberry Posted September 2, 2008 Posted September 2, 2008 have you tried using \\domainname\netlogon ? 1
eastb Posted September 2, 2008 Author Posted September 2, 2008 Thank you Strawberry. works perfectly. Have a good one. Cheers!
Geoff Posted September 2, 2008 Posted September 2, 2008 This could be considered a bug in AUP informant. It really should expand environment variables in paths provided to it via it's configuration. 1
bizzel Posted September 2, 2008 Posted September 2, 2008 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.
bizzel Posted September 2, 2008 Posted September 2, 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.
maniac Posted September 2, 2008 Posted September 2, 2008 Try here Global Variable List Think that's pretty comprehensive. Mike.
Geoff Posted September 3, 2008 Posted September 3, 2008 Also going to your nearest command prompt and typing 'set' will reveal many useful environment variables. 1
bizzel Posted September 11, 2008 Posted September 11, 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.
Geoff Posted September 11, 2008 Posted September 11, 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. Environment Class (System) 1
bizzel Posted September 11, 2008 Posted September 11, 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
bizzel Posted September 11, 2008 Posted September 11, 2008 (edited) Environment Class (System) 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 September 11, 2008 by bizzel
Geoff Posted September 11, 2008 Posted September 11, 2008 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.
bizzel Posted September 16, 2008 Posted September 16, 2008 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
mattmoo Posted January 21, 2009 Posted January 21, 2009 (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 January 21, 2009 by mattmoo
john316 Posted January 21, 2009 Posted January 21, 2009 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.
mattmoo Posted January 21, 2009 Posted January 21, 2009 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now