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,420
    Thanks
    33
    Thanked 195 Times in 175 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

    Time prevents everything happening all at once...

  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,420
    Thanks
    33
    Thanked 195 Times in 175 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

    Time prevents everything happening all at once...

  4. #4
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,585
    Thanks
    5
    Thanked 1,059 Times in 928 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,420
    Thanks
    33
    Thanked 195 Times in 175 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

    Time prevents everything happening all at once...

  6. #6
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,585
    Thanks
    5
    Thanked 1,059 Times in 928 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
  •