"????? wmic computersystem AutomaticManagedPageFile = FALSE" ???? ????? ????? ??????? ??? ????? ??????? ???????? ?? ???? ??????? Windows Vista ?? Windows Server 2008, 7 Windows ?? ???? ??????? ???? ????? ??????? Windows Server 2008 R2

?????? ????????? ?????? ?????????
???? ???????: 974028 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

??? ????? ??????? ??? ????? ??????? ?? ????? ??????? ??????? ??? ???? ??????? ???? ????? ??????? Windows Vista ?? Windows Server 2008 7 Windows ?? Windows Server 2008 R2:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles
??? ??? ?????? ????? ?????? ????? ???? REG_MULTI_SZ ????? ??????? ??? "C:\pagefile.sys 0 0":
wmic computersystem set AutomaticManagedPageFile=FALSE
????? ??? ??????? ??? ??????? ??? ????? ??????? ???????? ?? ????? ??????? ???? ????? ??? ??????? ??? ????? ??????? ???????:
  • ??? ????? ??? ??? ????? ??????? ?????? ????? ?????? ?????.
    ??? ???? ??????:
    C:\pagefile.sys 4095 4095
  • ???? ????? ????? ?????? ??? ????? ????? ??????.
    ??? ???? ??????:
    C:\pagefile.sys 8200 8200
    D:\pagefile.sys 8200 8200
    E:\pagefile.sys 8200 8200
?????? ???? ??????? ????? ??? ?? ????? ??????? AutomaticManagedPagefile ??? WMI Win32_ComputerSystem "FALSE" ?????? ??? ???????? ???????? COM ?? ???????.

???? ??????

??????? ??????
????? ??????? ?????? ?? ??? ????? ??????? ?? ???? ????? ????? ??????:
?????? ??? wmic computersystem AutomaticManagedPageFile
???????? ??? ???? ???? ????? ????? ?????? "FALSE" ??? ?? ?????? ????? "FALSE".

??????? 2
???? ?????? ??????? ?????? VBScript ????? ?? ????? wmic ?????? ????? AutomaticManagedPageFile. ?????? ????? ???? ??????? ???????:
  1. ??? ????? "???????".
  2. ?? ???? ???????? ???????? ??????? ?? ???????: strComputer
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
        & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    
    For Each objCS in objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
        on Error Resume Next
    '    Wscript.Echo "AutomaiticManagedPagefile: " & objCS.AutomaticManagedPagefile
        If (objCS.AutomaticManagedPagefile) Then
            Wscript.Echo "Setting AutomaticManagedPagefile to False"
            objCS.AutomaticManagedPageFile=False
            objCS.Put_
        Else
            Wscript.Echo "AutomaticManagedPagefile was already False. Just leaving"
        End If
    '    Wscript.Echo "AutomaiticManagedPagefile: " & objCS.AutomaticManagedPagefile
    Next
    
  3. ?? ??????? ???? ???? ??? ??? ????.
  4. ????? ???? ???? AutomaiticManagedPagefile.vbs ?? ?????? ??? ????? ??? ?? ???? ??? ???.
  5. ????? ???????? ????? AutomaiticManagedPagefile.vbs ??? ???? ????????? ????? ??.

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ??? "????? ???".

??????? ????

??? ????? ???? WMI ????? Win32_ComputerSystem ?? CimWin32.dll. ????? ??? ????? .dll ???? ??????? ??????? ??? ???? ??????? AutomaticManagedPageFile ??? WMI Win32_ComputerSystem:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles
??? ?? ????? ??????? AutomaticManagedPageFile ??? TRUE, ??? ????? ?????? ??? "?: \pagefile.sys." ??? ?? ????? ??????? AutomaticManagedPageFile FALSE, ??? ????? ?????? ??? "c:\pagefile.sys 0 0." ????? ??? ??????? ??? ??? ??????? ???? ??? ?????? ??? ???? ??? ???????.

????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft" (????? ?? ??? ???????? ??? ???? ?? ???? ??????? ??? ?? ??? ??? ?????? ??????????):
959516??? ????? ????? ????? ?????? ??? ????? ??????? AutomaticManagedPagefile ????? Win32_ComputerSystem ??? ??? ??? ???? ??????? ???? ????? ??????? Windows Vista ?????? ????? ?????? Service Pack 1 ?? Windows Server 2008

???????

???? ???????: 974028 - ????? ??? ??????: 06/?????/1430 - ??????: 1.1
????? ???
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Server 2008 Standard without Hyper-V
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Standard
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Standard
  • Windows 7 Enterprise
  • Windows 7 Home Basic
  • Windows 7 Home Premium
  • Windows 7 Professional
  • Windows 7 Starter
  • Windows 7 Ultimate
  • Windows Vista Enterprise 64-bit edition
  • Windows Vista Home Basic 64-bit edition
  • Windows Vista Home Premium 64-bit edition
  • Windows Vista Ultimate 64-bit edition
  • Windows Vista Business 64-bit edition
  • Windows Vista Enterprise
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Starter
  • Windows Vista Ultimate
  • Windows Vista Business
????? ??????: 
kbmt kbtshoot kbsurveynew kbexpertiseinter kbinfo KB974028 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????974028

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com