Solved

Script to disable opportunistic locking on windows 2000 advanced server

Posted on 2006-07-05
3
290 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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 hard and fast method for reducing Active Directory Administrators members.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

738 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