Solved

Script to disable opportunistic locking on windows 2000 advanced server

Posted on 2006-07-05
3
286 Views
Last Modified: 2011-10-03
Hi All,

I keep trying to disable locking on server but to no avail - is there a script to make sure I am doing it corectly?
Ideally one for the client pcs too

Thanks a million
0
Comment
Question by:dbdp
  • 2
3 Comments
 
LVL 26

Expert Comment

by:Pber
ID: 17050618
Have you checked this out...

http://support.microsoft.com/kb/q296264/
0
 

Author Comment

by:dbdp
ID: 17051797
Yes - I tried it but didn't work and am a bit scared of playing too much with the registry that's why am hoping for a script.
0
 
LVL 26

Accepted Solution

by:
Pber earned 500 total points
ID: 17052525
Well I'm unfamilair with disabling the opportunistic locking, but that article should work.  Just be careful testing.

Scripting can be done fairly easy.

See reg.exe /? for syntax

Create a batch file with the following:

Rem Start of batch
reg add "\\%1\HKLM\SYSTEM\CurrentControlSet\Services\MRXSmb\Parameters" /v OplocksDisabled /t REG_DWORD /d 1 /f
Rem end of batch

Just save the file as locking.bat

Call it in the format (Just change Target computer to the machine you want to change):
c:\locking TargetComputer

The settings should take effect after the machine is reboot.

0

Featured Post

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
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…

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

21 Experts available now in Live!

Get 1:1 Help Now