windows2003 이상의 버전에 대한 시스템 정보를 제공 할 수있는 공통 명령이 있습니까?WIndows 2003에서 systeminfo 명령이 작동합니까?
1
A
답변
1
나는
0
또한 수 WMI를 통해 스크립트 "시스템 정보 수집은"호출 잘 윈도우 XP, 2003, 비스타의 작품으로 여러 번 사용했습니다.
사용에게 WMIC Code Creator과 little VB script, 당신은 당신이 원하는 정확하게 정보/필요성, 정적 systeminfo
명령에 반대를 얻을 수 있습니다. 예를 들어
:
public string GetHardDisks() {
ManagementObjectSearcher searcher = new
ManagementObjectSearcher("root\\CIMV2", "SELECT * FROM Win32_LogicalDisk");
StringBuilder sb = new StringBuilder();
foreach (ManagementObject wmi in searcher.Get()) {
try {
sb.Append("Drive Device ID: " +
wmi.GetPropertyValue("DeviceID").ToString() +Environment.NewLine);
sb.Append("Caption: " + wmi.GetPropertyValue("Caption").ToString() + Environment.NewLine);
sb.Append("Volume Serial Number: " + wmi.GetPropertyValue("VolumeSerialNumber").ToString()
+ Environment.NewLine);
sb.Append("Free Space: " + wmi.GetPropertyValue("FreeSpace").ToString() + "
bytes free" + Environment.NewLine + Environment.NewLine);
}
catch {
return sb.ToString();
}
}
return sb.ToString();
}
관련 문제
- 1. 모든 Windows 변종의 systeminfo 출력
- 2. 어떻게 명령이 작동합니까?
- 3. Microsoft.Office.Interop.Outlook 버전이 Outlook 2003에서 작동합니까?
- 4. Systeminfo : Product ID
- 5. Windows 서버 2003에서 보고서로드 실패
- 6. Windows Dll이 Windows Phone에서 작동합니까?
- 7. Windows 서버 2003에서 서비스 재시작 자동화
- 8. Windows Server 2003에서 네트워크 뮤텍스 제공
- 9. 응용 프로그램을 Windows 2003에서 실행할 수 없습니다
- 10. Windows 2003에서 파일 다운로드 성능 향상
- 11. Windows Server 2003에서 패킷 손실을 어떻게 감지합니까?
- 12. FileLoadException windows 2003에서 관리되는 C++ dll
- 13. jmap이 Windows 서버 2003에서 작동하지 않습니다.
- 14. MySQL이 갑자기 Windows Server 2003에서 작동하지 않습니다.
- 15. Windows 2003에서 cygwin sshd 서비스가 시작되지 않음
- 16. Windows 2003에서 새로 고침 라우팅 표
- 17. Windows 서버 2003에서 PHP cron 작업 설정
- 18. Windows 2008에서 서비스가 시작되지 않음 (Windows 2003에서 작동)
- 19. Windows 서버에서도 mod_rewrite가 작동합니까?
- 20. Windows 용으로 더 나은 명령이 있습니까?
- 21. form.remove 명령이 작동하지 않습니다.
- 22. Windows 서비스에서 프로세스는 어떻게 작동합니까?
- 23. Windows 인덱싱 서비스는 어떻게 작동합니까?
- 24. Windows 7에서 Flash 4가 작동합니까?
- 25. Windows NT ACL은 어떻게 작동합니까?
- 26. Windows API가 창과 함께 작동합니까?
- 27. NTEventLogAppender는 Windows Server 2008에서 작동합니까?
- 28. Windows LIve ID는 어떻게 작동합니까?
- 29. Windows 파일 시스템은 어떻게 작동합니까?
- 30. pywin32 확장은 Windows 7에서 작동합니까?