+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
EduGeek AUP Informant Thread, Using %logonserver%\sysvol in Projects:; We wanted to place the aupstaff and aupstudent html files on the sysvol of all our logon servers. However, when ...
  1. #1

    Join Date
    May 2008
    Location
    London
    Posts
    7
    Thank Post
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Using %logonserver%\sysvol

    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 !

  2. #2

    Join Date
    Mar 2007
    Posts
    1,846
    Thank Post
    91
    Thanked 321 Times in 242 Posts
    Rep Power
    91
    have you tried using \\domainname\netlogon ?

  3. Thanks to strawberry from:

    eastb (2nd September 2008)

  4. #3

    Join Date
    May 2008
    Location
    London
    Posts
    7
    Thank Post
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Thank you Strawberry. works perfectly. Have a good one. Cheers!

  5. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227
    This could be considered a bug in AUP informant. It really should expand environment variables in paths provided to it via it's configuration.

  6. Thanks to Geoff from:

    bizzel (2nd September 2008)

  7. #5
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    Quote Originally Posted by Geoff View Post
    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.

  8. #6
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    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.

  9. #7

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,081
    Thank Post
    210
    Thanked 431 Times in 311 Posts
    Rep Power
    145
    Try here Global Variable List

    Think that's pretty comprehensive.

    Mike.

  10. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227
    Also going to your nearest command prompt and typing 'set' will reveal many useful environment variables.

  11. Thanks to Geoff from:

    bizzel (11th September 2008)

  12. #9
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    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.

  13. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227
    Quote Originally Posted by bizzel View Post
    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)

  14. Thanks to Geoff from:

    bizzel (11th September 2008)

  15. #11
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    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

  16. #12
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    Quote Originally Posted by Geoff View Post
    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 01:08 PM.

  17. #13

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227
    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.

  18. #14
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    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

  19. #15
    mattmoo's Avatar
    Join Date
    Jun 2008
    Location
    Leicester
    Posts
    124
    Thank Post
    5
    Thanked 8 Times in 7 Posts
    Rep Power
    15
    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.



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 8
    Last Post: 16th June 2008, 07:21 PM
  2. .vbs .bat error in sysvol
    By alonebfg in forum Windows
    Replies: 7
    Last Post: 16th July 2007, 08:57 PM
  3. SYSVOL Replication
    By Badger in forum Windows
    Replies: 19
    Last Post: 8th June 2007, 02:23 PM
  4. SYSVOL Replication
    By Norphy in forum Windows
    Replies: 10
    Last Post: 26th April 2007, 09:43 AM
  5. Replies: 4
    Last Post: 25th January 2007, 12:39 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •