Solved

Temporarily Disable Windows Server Shares

Posted on 2008-10-23
8
6,597 Views
Last Modified: 2013-11-05
I'm looking for a way to temporarily disable user access to shares I have setup on servers. This is to restrict access to users using them while I'm doing a migration.

I still need to have the Server service available in order for the migration software to work correctly. I also don't want to remove the shares or remove any groups from the server.

Any ideas would be helpful. Thanks!
0
Comment
Question by:gregca80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 22791428
Since you effectively eliminate the two options you could use, the only other option I can think of is to change the IP address/remove the server(s) from the network and do your migration in a separate network.

Of course, this migration method does not seem very good if it forces you to interrupt your staff like this.  I would suggest instead you use this opportunity to TEST your backups.  The migration would then be very simple and likely, very fast with little interruption to your users.

1. Backup your existing server's data using a FULL backup
2. Restore your full backup to the new server.
3. Alter your logon scripts so they now map to the new server for the data
4. Perform a differential backup on the old server
5. Restore the differential backup on the new server.
0
 
LVL 5

Accepted Solution

by:
gratex_ssd earned 125 total points
ID: 22791470
export registry
HKLM\SYSTEM\CCS\Services\LanmanServer\Shares
Then delete shares that you don't want during migration (compmgmt.msc)
After migration -> import that regitry hive back
restart server service
0
 

Author Comment

by:gregca80
ID: 22791478
gratex: Will that maintain all the permissions as well?
0
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 

Expert Comment

by:dwetmore
ID: 22791504
Could you remove users from the groups that have access to the shares?  Then add them back in after the migration?  If the groups do more than provide access to the shares, then consider a 'blackout' period to do the migration after-hours.
0
 

Author Comment

by:gregca80
ID: 22791522
There are a lot of groups. Also if i remove groups then I'll have to reset all the permissions again which i don't want to do.

So far Gratex's answer seems great if it will maintain the permissions.

I wish there was a way to Pause a share in Windows.
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 22791650
Exporting the registry key will work fine but you cannot import it to the new server UNLESS you use the same drive letter on the new server.
0
 

Author Comment

by:gregca80
ID: 22791871
0
 

Author Closing Comment

by:gregca80
ID: 31509467
hey great answer, thanks.
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question