Solved

Temporarily Disable Windows Server Shares

Posted on 2008-10-23
8
6,313 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
8 Comments
 
LVL 95

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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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 95

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Learn about cloud computing and its benefits for small business owners.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 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