Results 1 to 7 of 7
  1. #1
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,507
    Thanks
    34
    Thanked 206 Times in 185 Posts
    I've been asked to solve a problem where someone, in an administrator account, can get a .REG file to work by double-clicking on it, but gets unwanted results when running the file in a logon script, as in
    REGEDIT /S TheFile.REG

    The report is "If the /s switch (suppresses any user interaction) is removed it, then it will then work but the yes/no message box appears, which is not wanted. It's to be run transparently."

    If relevant, this is 64-bit XP!
    BATcher

    milliHelen
    (unit): that quantity of female facial beauty sufficient to launch a single ship

  2. #2
    5 Star Lounger PaulB's Avatar
    Join Date
    May 2002
    Location
    Ottawa, Ontario
    Posts
    765
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='BATcher' post='781931' date='26-Jun-2009 11:10']The report is "If the /s switch (suppresses any user interaction) is removed it, then it will then work but the yes/no message box appears, which is not wanted. It's to be run transparently."[/quote]

    I know very little about the intricacies of REGEDIT and even less about scripts, but would you not need to somehow supply the yes/no option?
    Regards,
    PaulB

  3. #3
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,507
    Thanks
    34
    Thanked 206 Times in 185 Posts
    [quote name='PaulB' post='781933' date='26-Jun-2009 16:30']I know very little about the intricacies of REGEDIT and even less about scripts, but would you not need to somehow supply the yes/no option?[/quote]
    The /s switch effectively does that for you (assuming Yes!).

    The problem seems to have been that you need URLs rather than drive letter mappings within the Logon Script...
    BATcher

    milliHelen
    (unit): that quantity of female facial beauty sufficient to launch a single ship

  4. #4
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,103
    Thanks
    5
    Thanked 1,164 Times in 1,019 Posts
    [quote name='BATcher' post='781943' date='26-Jun-2009 11:03']The /s switch effectively does that for you (assuming Yes!).

    The problem seems to have been that you need URLs rather than drive letter mappings within the Logon Script...[/quote]

    Would that be UNCs instead of URLs?

    Could be that the drive mappings are not initialized when the Login Script is run.

    Joe
    Joe

  5. #5
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,507
    Thanks
    34
    Thanked 206 Times in 185 Posts
    Quote Originally Posted by joeperez' post='781961 View Post
    Could be that the drive mappings are not initialized when the Login Script is run.
    Yes, that's what I was trying to say.

    (Not a very good post, on the whole, was it!)
    BATcher

    milliHelen
    (unit): that quantity of female facial beauty sufficient to launch a single ship

  6. #6
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    24,103
    Thanks
    5
    Thanked 1,164 Times in 1,019 Posts
    [quote name='BATcher' post='781970' date='26-Jun-2009 14:57'](Not a very good post, on the whole, was it!)[/quote]

    It is a little late in the week for completely clear and concise thinking.

    Joe
    Joe

  7. #7
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='BATcher' post='781931' date='26-Jun-2009 16:10'][/quote]
    Assuming the issue isn't resolved, would it work if the script called a (separate) batch file which contained the REGEDIT /S TheFile.REG ?

Posting Permissions

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