달력

1

« 2025/1 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
:
Posted by 커널64
2009. 11. 23. 16:28

P2V 후 숨겨진 장치 제거 Virtualization2009. 11. 23. 16:28

P2V 수행 후 더 이상 존재하지 않는 숨김 장치 제거

1. CMD 실행
2. set devmgr_show_nonpresent_devices=1
3. 장치관리자 실행 (devmgmt.msc)
4. 보기 -> 숨김장치표시 체크
5. 반투명으로 보이는 장치 제거
6. 재부팅

:
Posted by 커널64
2009. 11. 19. 18:29

도메인 컨트롤러 시간 동기화 오류 발생 시 Etc.2009. 11. 19. 18:29

도메인 컨트롤러 시간 동기화 오류 발생 시
-> 도메인 컨트롤러 OU에 적용된 그룹 정책인 'Default Domain Controller Policy' 수정
-> 또는 PDC Emulator 역할을 가지는 도메인 컨트롤러에 적용

Windows NTP 서버 사용: 사용
Windiws NTP 클라이언트 사용: 사용
Windows NTP 클라이언트 구성: 사용
NtpServer: time.windows.com,0x1
형식: NTP
CrossSiteSyncFlags: 2
ResolvePeerBackoffMinutes: 15
ResolvePeerBackoffMaxTimes: 7
SpecialPollInterval: 3600
EventLogFlags: 0

:
Posted by 커널64
2009. 11. 19. 16:56

Windows Server 2008 R2 Core의 기능/역할 설치 Etc.2009. 11. 19. 16:56

Powershell 설치
설치된 기능 쿼리
Dism /online /get-features /format:table

Powershell 설치를 위해 .NET Framework 2.0 설치
Dism /online /enable-feature /featurename:NetFx2-ServerCore

Powershell 설치
Dism /online /enable-feature /featurename:MicrosoftWindowsPowerShell

ServerManager, BestPractices 설치
Dism /online /enable-feature /featurename:ServerManager-PSH-Cmdlets
Dism /online /enable-feature /featurename:BestPractices-PSH-Cmdlets


Powershell 실행
c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe

기능 및 역할 설치를 위해 ServerManager 모듈 Import
Import-Module ServerManager

설치된 기능 쿼리
Get-WindowsFeature | Where {$_.installed –eq $true}

기능 설치/제거 (예: Hyper-V Role)
Add-WindowsFeature Hyper-V
Remove-WindowsFeature Hyper-V

:
Posted by 커널64
2009. 11. 19. 10:52

unattend.xml 샘플 (SCVMM) Virtualization2009. 11. 19. 10:52

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="specialize">
<component name="Microsoft-Windows-TerminalServices-LocalSessionManager"
           processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"
           language="neutral" versionScope="nonSxS"
           xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fDenyTSConnections>false</fDenyTSConnections>
</component>
<component name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64"
           publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
           xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<IEHardenAdmin>false</IEHardenAdmin>
</component>
</settings>
<settings pass="generalize">
<component name="Microsoft-ServerManager-SvrMgrNc" processorArchitecture="amd64"
          publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
          xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
</component>
<component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64"
          publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
          xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
</component>
</settings>
<settings>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64"
          publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"
          xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<AutoLogon>
<Password>
<Value>P@ssw0rd</Value>
<PlainText>true</PlainText>
</Password>
<Username>administrator</Username>
<LogonCount>1</LogonCount>
<Enabled>true</Enabled>
</AutoLogon>
</settings>
</unattend>

:
Posted by 커널64

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colListOfServices = objWMIService.ExecQuery _
        ("Select * from Win32_Service")
For Each objService in colListOfServices
If (objService.StartMode = "Auto") and (objService.State = "Stopped") then

Set objShell = CreateObject("Wscript.Shell")
objShell.LogEvent 2, "Service " & objService.DisplayName & " is not running. (" & objService.Name & ")"
End If
Next

응용 프로그램 이벤트 로그

:
Posted by 커널64

 'Parameter [ProcessName.exe] [WorkingSetLimit(MB)] [EventID]

    Set oArgs  = WScript.Arguments
    strTaskName = oArgs(0)
    strWorkingSet = oArgs(1)
    eNumber  = oArgs(2)

    Set oArgs = nothing
    Set shellobj = WScript.CreateObject("WScript.Shell")

    Const wbemFlagReturnImmediately = &h10
    Const wbemFlagForwardOnly = &h20

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
    Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_Process where name ='" & strTaskName & "'", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)

    For Each objItem In colItems
    if clng(objItem.WorkingSetSize/(1024*1024)) > clng(strWorkingSet) then

    objItem.Terminate()
    strMsg = objItem.Name & "(이)가 WorkingSet 임계치(" & strWorkingSet & "MB)를 초과하여 Operations Manager에서 " & strTaskName & " 프로세스 중지명령을 내렸습니다. 이 프로세스(PID:" &  cstr(objItem.ProcessId) & ")의 Workingset은 " &  clng(objItem.WorkingSetSize/(1024*1024)) & "MB 입니다. "
    strCommand = "EventCreate /L " & chr(34) & "Operations Manager" & chr(34) & " /SO " & chr(34) & "Operations Manager Agent" & chr(34) & " /T INFORMATION /ID " & eNumber & " /D " & chr(34) & strMsg & chr(34)
    shellobj.Run "%COMSPEC% /C START /W " & strCommand, 0, TRUE
    end if
    Next

    Set shellobj = nothing

:
Posted by 커널64

1. 드라이버 추가
Windows Server 2008 R2의 드라이버와 호환
1-1. 드라이버 파일을 임시 폴더에 복사
1-2. Command 창에서 복사한 폴더로 이동
1-3. pnputil -i -a <driver.inf>

2. 드라이버 목록 쿼리
Sc query type= driver

3. 드라이버 사용 안함
Sc delete <SERVICE_NAME>

:
Posted by 커널64

http://www.microsoft.com/downloads/details.aspx?FamilyID=4a41a8be-0a37-4bd2-b5b1-026468b317fb&displaylang=en

지원 OS (Linux, UNIX)
AIX 5.3 (Power), 6.1 (Power)
HP-UX 11iv2 (IA64/PA-RISC), 11iv3 (IA64/PA-RISC)
Red Hat Enterprise Server 4 (x86/x64), 5 (x86/x64)
Solaris 8 (SPARC), 9 (SPARC), 10 (SPARC/x86)
SUSE Linux Enterprise Server 9 (x86), 10 (x86/x64), 11 (x86/x64)

:
Posted by 커널64
2009. 10. 20. 22:57

Hyper-V Server 2008 R2 기능 Virtualization2009. 10. 20. 22:57

:
Posted by 커널64