logon script permission issues...

Discussion in 'Software' started by sebstah, Sep 21, 2008.

  1. sebstah

    sebstah Nibble Poster

    59
    0
    28
    hi all, i've been given the task of creating new power settings for our laptop's, approx 500 of them. i have tried the EZ GPO application but it wasnt working 100% of the time.

    So i've made a little logon batch file which starts on login but the users at work dont have the required permissions to change the registry keys.i'm using the powercfg.exe switch. It works under administrator but not for a general user.

    anyone know of a way of adding or allowing the batch file to run as admin?:blink

    i tried the runas /user:administrator command , that worked but then stops and doesnt continue with the rest of the batch file.
     
    Certifications: A+,70-270,70-290
    WIP: 70-620
  2. Notes_Bloke

    Notes_Bloke Terabyte Poster

    3,230
    54
    146
    Have you tried using a Startup script instead of the log on script?

    NB
     
    Certifications: 70-210, 70-215, A+,N+, Security+
    WIP: MCSA
  3. sebstah

    sebstah Nibble Poster

    59
    0
    28
    hey NB,

    no i havent, i'll give it a try.

    thanks,

    seb
     
    Certifications: A+,70-270,70-290
    WIP: 70-620
  4. sebstah

    sebstah Nibble Poster

    59
    0
    28
    Tried it but still unable to to change due to the permissions on the user account.

    there i was thinking this should be a easy fix... lol
     
    Certifications: A+,70-270,70-290
    WIP: 70-620
  5. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    Can you apply the startup script to the computer objects in AD rather than the users?
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  6. sebstah

    sebstah Nibble Poster

    59
    0
    28
    hey sparky,

    nope doesnt work either. i'm starting to think i might have to make it a vbs script, i've read i can add admin credentials in there.
     
    Certifications: A+,70-270,70-290
    WIP: 70-620
  7. Sparky
    Highly Decorated Member Award 500 Likes Award

    Sparky Zettabyte Poster Moderator

    10,718
    543
    364
    Yup, you can do that in vbs however the password is in plain text so if someone opened the script in notepad then they would have access to the admin password.

    There may be some other way you can do this though :hhhmmm
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) MS-900 AZ-900 Security+ Network+ A+
    WIP: Microsoft Certs
  8. ThomasMc

    ThomasMc Gigabyte Poster

    1,507
    49
    111
    you could use Xor to encrypt or a base64 encoding to hide the plain text, both could be easily over come by someone who knows what they are doing though.

    Base64
    Xor
     
    Certifications: MCDST|FtOCC
    WIP: MCSA(70-270|70-290|70-291)

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.