Solved

Script to disable opportunistic locking on windows 2000 advanced server

Posted on 2006-07-05
3
285 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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…
A Short Story about the Best File Recovery Software – Acronis True Image 2017
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

14 Experts available now in Live!

Get 1:1 Help Now