logon script accessing HKLM with only user rights

Posted on 2006-06-07
Last Modified: 2013-11-13
I have this vbscript that changes or creates these three regestry entries

"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName"

"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword"

"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon"

well the HKLM i guess cannot be written to if your just in user mode. This script is a logon script. Is there anyway to get elevated privileges to run this script when the user logs on. I need it to automatically do it. I know I can logon in as a local admin and set it but thats not what I want to do.

Question by:Fubyou
    LVL 5

    Expert Comment


    If you have a domain network, you can have a login script directly from the domains sysvol - that script runs with domain admin priviliges.


    Author Comment

    Please Delete This Question
    LVL 5

    Expert Comment

    Why? I did answer it...

    Author Comment

    The script is allready there. It doeasn't work. When the user logs in that account doesn't allow anything to be written to HKLM. So I figured out a way for the script to have the same disired effects but it changes a part of the registry that can be modified by the current user's account.

    Accepted Solution

    Closed, 500 points refunded.
    Community Support Moderator
    replacement part #xm34

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now