Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a non viewable Drive in XP

Status
Not open for further replies.

jeffpoulsen

Technical User
Dec 9, 2002
30
0
0
US
Hello all,

I usually carve up a drive to have at least 3 partitions. C (where the OS is) Swap (for Page Files or Virtual Memory) and Storage (for, well, data storage) My question is how can I make the disk "Swap" not viewable or greyed out in Explorer in XP Pro? This is so that users will not be tempted to use it. But the system must still be able to write to it as it is home for Page Files. I have just started looking into this and would be thankful for any help. Thanks, Jeff
 
I think under Computer Management - Disk Management. You have the option, there, of assigning a drive letter or not. I beleive if you set it to no drive letter that it will not show up, but I'm not 100% positive as to whether it will be "invisible" in Explorer views, or whether it just won't have a drive letter.
 
I'd have thought if you specifically assign ALL the space on that particular partition to the swapfile, then users wouldn't be able to do anything with it even if it does show up...

ROGER - G0AOZ.
 
Good point, thatrenowned. That's an invaluable tool.
 
Thanks all
I have had problems with setting the whole drive for virtual memory. I usually leave a portion of the drive unused. I forgot about TweakUI. Your right it's a great tool. I will try some of these when I get back to the machine tonight. And I plan on downloading TweakUI too. Thanks again and I will post the results.
 
Would it be easier to manage ntfs permissions for your swap partition so that users have restricted access?

-thefourthwall
 
Well I still have not found a solution. It seems that you cannot remove the drive letter if it contains page files. And I downloaded TweakUI and it works for the administrator, but does not hide it from a restricted user. I gues I will have to keep trying. It seems there is a regisrty edit that takes care of what I want. If anybody has any other ideas I would be greatfull. Thanks, jeff
 
As far as "hiding" from a restricted user, you may not can do that, but you can disable teak ui. I know that, b/c they have it disabled where I work - even users with local Admin rights can't use it, only certain accounts. I guess it's a registry tweak that takes care of it - not sure.
 
Assuming you used Tweakui to hide the partition, the Registry Key is HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrive when logged on as the administrator. This key is actually a link to HKU\"the administrator's SID"\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrive. You need to create the same key for each user's SID e.g. HKU\"user1's SID"\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrive.

Note that this tweak does not prevent access to this drive by other means such as the Command Prompt.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top