Results 1 to 5 of 5

Thread: BASIC question (hopefully)

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    3

    BASIC question (hopefully)

    Hey guys,

    I generally a desktop support guy so my VB skills are pretty much what i can find on google. so be nice and keep the instructions one step above monkey!

    Basically I am going through the process of removing admin rights from users desktops.
    A couple of the applications require admin access to run. which we can manually get around by going into the registry adding the everyone group with full access to the specific reg key as well as some "normal folder permissions"

    I have managed to automate most of the process but i am a little stuck on what i hope is a very simple issue.



    I made a very basic VBS that does the following

    set oFSO = CreateObject("Scripting.FileSystemObject")
    strFileName = oFSO.GetTempName
    set oFile = oFSO.CreateTextFile(strFileName)
    oFile.WriteLine "HKEY_LOCAL_MACHINE\SOFTWARE\Bloomberg L.P. [1 5 7 11 17]"

    Now, if i did this manaually and added the group it would propergate down to all the sub directories of the reg key with no other input required.
    this script only seems to set the permissions at the top level.


    This is where it gets weird though i can log off, log in as a different user reboot and the permissions will not propergate down, HOWEVER whilst testing i made a local user called test added that to the registry permissions group (just to see what happened) the test users permissions propergated down AND through the test user to the group it seemed to force the propergation of the everyone group. which frankly was very strange.

    So long story short could someone tell me how to fiorce "HKEY_LOCAL_MACHINE\SOFTWARE\Bloomberg L.P. [1 5 7 11 17]"

    to propergate down wothout any manual input?

    As stated im not a VB guy so please be kind and keep it simple all the assistance is much appreciated!

    Thanks

  2. #2

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    3

    Re: BASIC question (hopefully)

    Anyone?

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: BASIC question (hopefully)

    You may not be getting the help you need because you posted in the VB section and not in the VBS area... I'll ask a mod to move it so you get better exposure.

    Happy Posting!
    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    3

    Re: BASIC question (hopefully)

    Appreciated Thanks mate!

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: BASIC question (hopefully)

    Welcome to VBForums

    Thread moved from the 'VB6 and Earlier' forum to the 'VBScript' forum (thanks for the reports!)

Posting Permissions

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



Click Here to Expand Forum to Full Width