Const HKEY_LOCAL_MACHINE = &H80000002
Ustalony oReg=GetObject ("winmgmts: {impersonationLevel=impersonate}! \ \. \ korzeń \ brak: StdRegProv")
strKeyPath = "SYSTEM \ CurrentControlSet \ Usługa \ lanmanserver \ parametr"
strVal = "IRPStackSize"
oreg.getdwordvalue HKEY_LOCAL_MACHINE, strKeyPath, strVal, dwValue
jeżeli isnull (dwValue) wtedy
oReg.SetDwordValue HKEY_LOCAL_MACHINE, strKeyPath, strVal, 33
Inny
WScript.Echo dwvalue
Jeżeli dwvalue <> 33 Wtedy oReg.SetDwordValue HKEY_LOCAL_MACHINE, strKeyPath, strVal, 33
Kończyć Jeżeli
|