Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 29th, 2012, 10:20 AM
Registered User
 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Manipulating Registry Using VB Script

Hi
wonder if somone can help me please................I need to write a script to manipulate the registry for any user using VB.

For any (non-admin user) I basically I need to alter the subkey folder permissions and set them to 'deny' (ie 'ticks' in 'Full Control' and 'Read') so that on logon any user can't access that subkey folder.

This needs to be achieved by running the script one time only at machine build time, so that the subkey folder e.g. HKCU\Software\Recent File List is set to 'deny'.
Reply With Quote
  #2 (permalink)  
Old October 29th, 2012, 11:20 AM
Registered User
 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
looking around a bit more.....do I need to alter the default hive for new users (ntuser.dat) and restrict the permissions for HKCU\Software\Recent File List there so that any new logons will pick it up ?

Where is ntuser.dat on Vista ? various people have said it is hidden - but where and how do I unhide it ?
Reply With Quote
  #3 (permalink)  
Old December 15th, 2012, 09:05 AM
Registered User
 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX?

Would an ActiveX control help?

http://www.jcomsoft.com/reg.htm
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Path from the registry key in VB.NET remya1000 General .NET 1 September 2nd, 2008 04:01 PM
VB script using xp_cmdshell getfunky SQL Server 2000 1 February 23rd, 2007 02:38 AM
VB Script bab02 VB.NET 1 March 12th, 2006 08:06 PM
Begin VB.NET Ch12 - Registry CLLinder BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 August 5th, 2005 04:29 AM
Manipulating Excel Chart Axes from VB.NET Whitehall2000 VB.NET 2002/2003 Basics 0 September 25th, 2003 09:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.