Disable Control Panel

Hi experts out there !!!!

How can I disable user from accessing control panel and display property using vb.
And also how to prevent user from add, delete, or change properties of printer.

TQ in advanced
mshukAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mcriderConnect With a Mentor Commented:
To disable accessing the control panel... In your \WINDOWS\SYSTEM directory, there is a .CPL file for each control panel item... Just rename the .CPL files to another extension.


Cheers!
0
 
mshukAuthor Commented:
Thanks mcrider for your suggestion, its work. I have tried  to rename timedate.cpl and its work well in windows environment, but I still can change date at DOS prompt, how to prevent this ? How about printer ?
0
 
mcriderCommented:
With the printer environment, unfortunately, that is part of the SHELL32.DLL and you can't stop that.  If you rename SHELL32.DLL your system WILL crash.  This command launches the printer configuration:

   rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder


where:
  rundll32.exe executes a DLL
  shell32.dll is the DLL to be executed
  SHHelpShortcuts_RunDLL is the exported entry point in shell32.dll that is started
  PrintersFolder is the argument passed to the DLL


As for Date/Time in DOS, this is an internal command contained in COMMAND.COM.  You would have to hex edit your command.com to rename the date command.

For example, in the WIN95 COMMAND.COM at location 0x10B0C is the string DATE, and at location 0x10B11 is the string TIME...  If you were to change the character at location 0x10B0C from 0x44 to 0x45 and the character at location 0x10B11 from 0x54 to 0x55, then the new date and time commands would be EATE and UIME.


Cheers!
0
 
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
All Courses

From novice to tech pro — start learning today.