Solved

Temporarily Disable Windows Server Shares

Posted on 2008-10-23
8
6,150 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
 

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
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.

 

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

Title # Comments Views Activity
terminal services not running - win server 2003 - recently changed internet provider 14 54
Best practice DHCP migration 7 63
GPO Access denied in AD 12 40
Can’t delete a file 14 139
The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now