Solved

Script to disable opportunistic locking on windows 2000 advanced server

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

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…
Most MSPs worth their salt are already offering cybersecurity to their customers. But cybersecurity as a service is wide encompassing and can mean many things.  So where are MSPs falling in this spectrum?
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

792 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