Registry
-
im trying to write to hklm so i can set my app to start up with windows, however, vista refuses access to hklm, any way to elevate the program access rights?
You need to include a manifest in your app to tell vista that it requires elevation. Alternatively, there are API methods you can call to only elevate briefly while you perform the action. You should still include a manifest though, because it's in the manifest you tell vista your app is aware of UAC and how vista should behave.
Simon
-
im trying to write to hklm so i can set my app to start up with windows, however, vista refuses access to hklm, any way to elevate the program access rights?
-
if you want to run a program with admin rights after login you can make a scheduled task. I did it for remove c$ and admin$.
You can disable the administrative shares properly if you want. http://en.wikipedia.org/wiki/Administrative_share#How_to_disable[^] It's not really necessary though. They are only accessibly locally on the domain and you have to have local admin access on the PC to view them. If someone has local admin access, they could just log in and create any shares they wanted anyway. It isn't a security hole to all your files. We use them quite a bit, it's handy to get to log files and stuff without having to go to the PC, or remote in, or create a proper share.
Simon
-
You can disable the administrative shares properly if you want. http://en.wikipedia.org/wiki/Administrative_share#How_to_disable[^] It's not really necessary though. They are only accessibly locally on the domain and you have to have local admin access on the PC to view them. If someone has local admin access, they could just log in and create any shares they wanted anyway. It isn't a security hole to all your files. We use them quite a bit, it's handy to get to log files and stuff without having to go to the PC, or remote in, or create a proper share.
Simon
-
good article thanks, but there is no in VISTA Hive: HKEY_LOCAL_MACHINE Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters Name: AutoShareWks where is AutoShareWks?
modified on Friday, July 18, 2008 8:49 AM
You have to create it. (it's a DWORD type key)
Simon