+ Reply to Thread
Results 1 to 2 of 2

Thread: Vbs Logon script to backup registry, but regedit is disabled

  1. #1
    iali is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    5

    Default

    Hey Everyone,

    I'm hoping that someone can help me out with this problem. I'm open to other suggestions if you think I’m going down the wrong path

    I've created a vbscript that backups a couple of HKCU keys to a network drive which I am attaching to this post for your reference. I added this script as a logon script in my GPO, but it errors out because I have another policy in place that prevents access to the registry for standard users.

    Is there any other way I can backup these keys without lifting the registry policy?

  2. #2
    iali is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    5

    Default

    I think I need a crash course on How to Start a new discussion. I'm not sure if the script that I attached came through, so I will just post it..........


    ' This code exports the contents of a key to a Registry file.
    Dim objFso
    Dim objWshShell, wshnetwork
    Dim strDirectory, strUserName

    ' create the regkey on the users home drive"
    strCommand = "regedit /e U:\DMSProfiles.reg HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0 \iManExt\DefaultNewProfile"
    Set objWshShell = WScript.CreateObject("WScript.Shell")
    intRC = objWshShell.Run(strCommand, 0, TRUE)

    strCommand = "regedit /e U:\DMSSecTmplts.reg HKEY_CURRENT_USER\Software\Interwoven\WorkSite\8.0 \iManExt\SecTemplateDlg"
    set objWshShell = WScript.CreateObject("WScript.Shell")
    intRC = objWshShell.Run(strCommand, 0, TRUE)

+ Reply to Thread

Posting Permissions

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

Search Engine Friendly URLs by vBSEO