Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Script to disable opportunistic locking on windows 2000 advanced server

Posted on 2006-07-05
3
Medium Priority
?
294 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 1000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Take a look at these 6 Outlook Email management tools which can augment the working and performance of Microsoft Outlook to give you a more rewarding emailing experience.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

971 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