{"id":592,"date":"2014-02-02T15:49:18","date_gmt":"2014-02-02T06:49:18","guid":{"rendered":"http:\/\/nsb.homeip.net\/wp\/?p=592"},"modified":"2015-06-28T03:29:58","modified_gmt":"2015-06-27T18:29:58","slug":"linux%e3%81%8b%e3%82%89wmi%e7%b5%8c%e7%94%b1%e3%81%a7windows%e3%81%ae%e6%83%85%e5%a0%b1%e3%82%92%e5%8f%96%e5%be%97%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/nsb.homeip.net\/wp\/?p=592","title":{"rendered":"Linux\u304b\u3089WMI\u7d4c\u7531\u3067Windows\u306e\u60c5\u5831\u3092\u53d6\u5f97\/\u30d7\u30ed\u30b0\u30e9\u30e0\u5b9f\u884c\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>Linux\u304b\u3089\u3001WMI\u7d4c\u7531\u3067Windows\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u308b\u30c4\u30fc\u30eb\u304c\u3042\u3063\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n<p>\u3053\u308c\u3068\u3001ZABBIX\u3068\u3046\u307e\u304f\u9023\u643a\u3067\u304d\u308c\u3070\u3001(SNMP\u7d4c\u7531\u3067\u306a\u3044)\u672c\u5f53\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30ec\u30b9\u304c\u3067\u304d\u305d\u3046\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a<\/p>\n<pre># wget http:\/\/www.orvant.com\/files\/packages\/source\/wmi_1.3.14.orig.tar.bz2\r\n# bzip2 -cd wmi_1.3.14.orig.tar.bz2 | tar xvf -\r\n# cd wmi-1.3.14\r\n# make<\/pre>\n<p>\u3053\u3053\u3067\u3001\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u308b\u5834\u5408\u306f\u3001<br \/>\n\/bin\/sh: line 2: .\/configure: \u305d\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3042\u308a\u307e\u305b\u3093<br \/>\nyum\u3067 autoconf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u518d\u5ea6make\u3057\u307e\u3059\u3002<\/p>\n<pre># yum install autoconf\r\n# make<\/pre>\n<p>make\u306b\u306f\u7d50\u69cb\u6642\u9593\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>make install\u524d\u306b\u52d5\u4f5c\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre># .\/Samba\/source\/bin\/wmic Usage: [-?|--help] [--usage] [-d|--debuglevel DEBUGLEVEL] [--debug-stderr] [-s|--configfile CONFIGFILE] [--option=name=value] [-l|--log-basename LOGFILEBASE] [--leak-report] [--leak-report-full] [-R|--name-resolve NAME-RESOLVE-ORDER] [-O|--socket-options SOCKETOPTIONS] [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP] [--realm=REALM] [-i|--scope SCOPE] [-m|--maxprotocol MAXPROTOCOL] [-U|--user [DOMAIN\\]USERNAME[%PASSWORD]] [-N|--no-pass] [--password=STRING] [-A|--authentication-file FILE] [-S|--signing on|off|required] [-P|--machine-pass] [--simple-bind-dn=STRING] [-k|--kerberos STRING] [--use-security-mechanisms=STRING] [-V|--version] [--namespace=STRING] [--delimiter=STRING] \/\/host query Example: wmic -U [domain\/]adminuser%password \/\/host \"select * from Win32_ComputerSystem\" [root@zabbix2 wmi-1.3.14]#<\/pre>\n<p>&nbsp;<\/p>\n<p>\u8a66\u3057\u306b\u3001\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>Windows\u306e\u60c5\u5831\u3092\u53d6\u5f97<\/p>\n<pre># .\/Samba\/source\/bin\/wmic -U username%password \/\/192.168.29.40 \"Select * From Win32_ComputerSystem\"\r\n\r\nCLASS: Win32_ComputerSystem\r\nAdminPasswordStatus|AutomaticResetBootOption|AutomaticResetCapability|BootOptionOnLimit|BootOptionOnWatchDog|BootROMSupported|BootupState|Caption|ChassisBootupState|CreationClassName|CurrentTimeZone|\r\nDaylightInEffect|Description|Domain|DomainRole|EnableDaylightSavingsTime|FrontPanelResetStatus|InfraredSupported|InitialLoadInfo|InstallDate|KeyboardPasswordStatus|LastLoadInfo|Manufacturer|Model|Name|\r\nNameFormat|NetworkServerModeEnabled|NumberOfLogicalProcessors|NumberOfProcessors|OEMLogoBitmap|OEMStringArray|PartOfDomain|PauseAfterReset|PowerManagementCapabilities|PowerManagementSupported|\r\nPowerOnPasswordStatus|PowerState|PowerSupplyState|PrimaryOwnerContact|PrimaryOwnerName|ResetCapability|ResetCount|ResetLimit|Roles|Status|SupportContactDescription|SystemStartupDelay|SystemStartupOptions|\r\nSystemStartupSetting|SystemType|ThermalState|TotalPhysicalMemory|UserName|WakeUpType|Workgroup\r\n1|True|True|3|3|True|Normal boot|XP-VMCLIENT|3|Win32_ComputerSystem|540|False|AT\/AT COMPATIBLE|NSB-LAN|0|True|3|False|NULL|(null)|3|(null)|VMware, Inc.|VMware Virtual Platform|XP-VMCLIENT|(null)|True|3|1|\r\nNULL|([MS_VM_CERT\/SHA1\/27d66596a61c48dd3dc7216fd715126e33f59ae7],Welcome to the Virtual Machine)|False|3932100000|NULL|False|0|0|3|(null)|his|1|-1|-1|\r\n(LM_Workstation,LM_Server,NT,Potential_Browser,Backup_Browser,Master_Browser)|OK|NULL|30|(\"Microsoft Windows XP Professional\" \/noexecute=optin \/fastdetect)|0|X86-based PC|3|3220676608|XP-VMCLIENT\\j-masuda|6|\r\n(null)<\/pre>\n<h3>\u7279\u5b9a\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u60c5\u5831\u3092\u53d6\u5f97(EpgTimerSrv.exe)<\/h3>\n<pre># .\/Samba\/source\/bin\/wmic -U username%password \/\/192.168.29.40 \"Select * From Win32_Process where Caption='EpgTimerSrv.exe'\"\r\nCLASS: Win32_Process\r\nCaption|CommandLine|CreationClassName|CreationDate|CSCreationClassName|CSName|Description|ExecutablePath|ExecutionState|Handle|HandleCount|InstallDate|KernelModeTime|MaximumWorkingSetSize|\r\nMinimumWorkingSetSize|Name|OSCreationClassName|OSName|OtherOperationCount|OtherTransferCount|PageFaults|PageFileUsage|ParentProcessId|PeakPageFileUsage|PeakVirtualSize|PeakWorkingSetSize|Priority|\r\nPrivatePageCount|ProcessId|QuotaNonPagedPoolUsage|QuotaPagedPoolUsage|QuotaPeakNonPagedPoolUsage|QuotaPeakPagedPoolUsage|ReadOperationCount|ReadTransferCount|SessionId|Status|TerminationDate|ThreadCount|\r\nUserModeTime|VirtualSize|WindowsVersion|WorkingSetSize|WriteOperationCount|WriteTransferCount\r\nEpgTimerSrv.exe|C:\\wintool\\HDP2\\EpgDataCap_Bon\\EpgTimerSrv.exe|Win32_Process|20140125092622.282684+540|Win32_ComputerSystem|XP-VMCLIENT|EpgTimerSrv.exe|C:\\wintool\\HDP2\\EpgDataCap_Bon\\EpgTimerSrv.exe|0|11484|\r\n115|(null)|773593750|1413120|204800|EpgTimerSrv.exe|Win32_OperatingSystem|Microsoft Windows XP Professional|C:\\WINDOWS|\\Device\\Harddisk0\\Partition1|9817532|161060012|174899|23060480|1020|31715328|78991360|\r\n35393536|8|23060480|11484|4808|65884|6256|70172|36078|76863544|0|(null)|(null)|11|713750000|76890112|5.1.2600|27054080|974246|225966796\r\n[root@zabbix2 wmi-1.3.14]#<\/pre>\n<p>\u7279\u5b9a\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u60c5\u5831\u3092\u53d6\u5f97\uff08\u5024\u306e\u884c\u306e\u307f\uff09<\/p>\n<pre># wmic -U username%password \/\/192.168.29.40 \"Select * From Win32_Process where Caption='EpgTimerSrv.exe'\" | tail -n +3\r\nEpgTimerSrv.exe|C:\\wintool\\HDP2\\EpgDataCap_Bon\\EpgTimerSrv.exe|Win32_Process|20140125092622.282684+540|Win32_ComputerSystem|XP-VMCLIENT|EpgTimerSrv.exe|C:\\wintool\\HDP2\\EpgDataCap_Bon\\EpgTimerSrv.exe|0|11484|\r\n114|(null)|889218750|1413120|204800|EpgTimerSrv.exe|Win32_OperatingSystem|Microsoft Windows XP Professional|C:\\WINDOWS|\\Device\\Harddisk0\\Partition1|11744618|191886458|212378|25841664|1020|32411648|78991360|\r\n36548608|8|25841664|11484|4648|65852|6256|70172|45978|111959645|0|(null)|(null)|9|822812500|74792960|5.1.2600|29843456|1082336|259218725<\/pre>\n<p>\u52d5\u4f5c\u78ba\u8a8d\u3057\u305f\u3089\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre># make istall\r\n# whereis wmic\r\nwmic: \/bin\/wmic<\/pre>\n<p>RPM\u3082\u3042\u308b\u3063\u307d\u3044\uff08\u3051\u3069\u3001\u307e\u3060\u8a66\u3057\u3066\u3044\u307e\u305b\u3093\uff09<br \/>\n<a title=\"http:\/\/www.harumaki.net\/2012\/05\/09\/centos%E3%81%ABwmi%E3%82%AF%E3%83%A9%E3%82%A4%E3%82%A2%E3%83%B3%E3%83%88%E3%82%92%E5%85%A5%E3%82%8C%E3%81%A6%E3%81%BF%E3%82%8B\/\" href=\"http:\/\/www.harumaki.net\/2012\/05\/09\/centos%E3%81%ABwmi%E3%82%AF%E3%83%A9%E3%82%A4%E3%82%A2%E3%83%B3%E3%83%88%E3%82%92%E5%85%A5%E3%82%8C%E3%81%A6%E3%81%BF%E3%82%8B\/\" target=\"_blank\">http:\/\/www.harumaki.net\/2012\/05\/09\/centos%E3%81%ABwmi%E3%82%AF%E3%83%A9%E3%82%A4%E3%82%A2%E3%83%B3%E3%83%88%E3%82%92%E5%85%A5%E3%82%8C%E3%81%A6%E3%81%BF%E3%82%8B\/<\/a><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u69d8\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre># wmic -U username%password \/\/192.168.29.40 \"Select * From CIM_DataFile Where Name = 'c:\\\\\\temp\\\\\\test.txt'\"\r\nCLASS: CIM_DataFile\r\nAccessMask|Archive|Caption|Compressed|CompressionMethod|CreationClassName|CreationDate|CSCreationClassName|CSName|Description|Drive|EightDotThreeFileName|Encrypted|EncryptionMethod|Extension|FileName|FileSize|FileType|FSCreationClassName|FSName|Hidden|InstallDate|InUseCount|LastAccessed|LastModified|Manufacturer|Name|Path|Readable|Status|System|Version|Writeable\r\n18809343|True|c:\\temp\\test.txt|False|(null)|CIM_LogicalFile|20140126190415.202647+540|Win32_ComputerSystem|XP-VMCLIENT|c:\\temp\\test.txt|c:|c:\\temp\\test.txt|False|(null)|txt|test|0|\u30c6\u30ad\u30b9\u30c8 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8|Win32_FileSystem|NTFS|False|20140126190415.202647+540|0|20140126190415.202647+540|20140126190415.202647+540|(null)|c:\\temp\\test.txt|\\temp\\|True|OK|False|(null)|True<\/pre>\n<p>\u306a\u305c\u304b\u3001\\ -&gt; \\\\\\\u306b\u5909\u63db\u3057\u306a\u3044\u3068\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059(\\\\\u3067\u306f\u30c0\u30e1)\u3002<br \/>\n\u305d\u308c\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306b2\u30d0\u30a4\u30c8\u6587\u5b57\u3092\u542b\u3080\u3088\u3046\u306a\u5834\u5408\u3082\u5931\u6557\u3057\u307e\u3059\u304c\u3001\u3053\u3061\u3089\u306f\u307e\u3060\u672a\u89e3\u6c7a\u3002<br \/>\n\u30d5\u30a9\u30eb\u30c0\u5358\u4f4d\u3067\u5404\u30d5\u30a1\u30a4\u30eb\u5168\u90e8\u3092WMI\u3067\u53d6\u5f97\u3057\u3066\u5f8c\u304b\u3089Grep\u3067\u6587\u5b57\u5217\u62bd\u51fa\u3059\u308b\u306e\u306a\u3089\u3044\u3051\u307e\u3057\u305f\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u306a\u304a\u3001\u63a5\u7d9a\u5148\u304cWindows Vista,2008\u4ee5\u964d\u3060\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u304c\u304d\u3073\u3057\u304f\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001<br \/>\nUAC\u3092\u7121\u52b9\u306b\u3059\u308b\u304b\u3001\u30ed\u30fc\u30ab\u30eb\u306eAdministrator\u3082\u3057\u304f\u306f\u3001\u7ba1\u7406\u8005\u6a29\u9650\u3092\u6301\u3063\u305f\u30c9\u30e1\u30a4\u30f3\u30e6\u30fc\u30b6\u3067\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>UAC\u306fGUI\u3067\u8a2d\u5b9a\u3059\u308b\u304b\u3001\u30ec\u30b8\u30b9\u30c8\u30ea\u3092\u5909\u66f4\u3057\u3066\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"\">HKLM\u00a5SOFTWARE\u00a5Microsoft\u00a5Windows\u00a5CurrentVersion\u00a5Policies\u00a5System\\EnableLUA\r\n\r\nDWORD:0<\/pre>\n<p>UAC\u3092\u7121\u52b9\u306b\u3067\u304d\u308b\u306e\u3067\u3042\u308c\u3070\u4e00\u756a\u65e9\u3044\u3067\u3059\u304c\u3001\u305d\u306e\u307e\u307e\u3060\u3068\u7ba1\u7406\u8005\u6a29\u9650\u3092\u6301\u3063\u305f\u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u3067\u63a5\u7d9a\u3057\u3066\u3082\u63a5\u7d9a\u3092\u62d2\u5426\u3089\u308c\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30ec\u30b8\u30b9\u30c8\u30ea\u3092\u4f5c\u6210\u30fb\u5909\u66f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u518d\u8d77\u52d5\u306f\u4e0d\u8981\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<pre class=\"code\" data-unlink=\"\">HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\LocalAccountTokenFilterPolicy\r\n\r\nDWORD:1<\/pre>\n<p>&nbsp;<\/p>\n<p>\u305d\u306e\u4ed6\u63a5\u7d9a\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u6b21\u306e\u70b9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\uff08Administrators\u30b0\u30eb\u30fc\u30d7\u306e\u30e6\u30fc\u30b6\u3067\u3042\u308c\u3070\u3001Firewall\u4ee5\u5916\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u5927\u4e08\u592b\u306a\u306f\u305a\u3067\u3059\u304c\u30fb\u30fb\u30fb\uff09<\/p>\n<p><strong>\u30fbFirewall\u306e\u8a2d\u5b9a<\/strong><\/p>\n<p>WindowsFireWall\u304c\u6709\u52b9\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u9805\u76ee\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<br \/>\n\uff3b\u6a19\u6e96\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\uff3dor\uff3b\u30c9\u30e1\u30a4\u30f3\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\uff3d<br \/>\n\u30fb\uff3bWindows\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\uff1a\u30ea\u30e2\u30fc\u30c8\u7ba1\u7406\u306e\u4f8b\u5916\u3092\u8a31\u53ef\u3059\u308b\uff3d(2003)<br \/>\n\u30fb\uff3bWindows\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\uff1a\u7740\u4fe1\u30ea\u30e2\u30fc\u30c8\u7ba1\u7406\u306e\u4f8b\u5916\u3092\u8a31\u53ef\u3059\u308b\uff3d(2008\u4ee5\u964d)<\/p>\n<p><strong>\u30fb\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u52d5\u78ba\u8a8d<\/strong><br \/>\nWindows Management Instrumentation\u30b5\u30fc\u30d3\u30b9\uff08\u30b5\u30fc\u30d3\u30b9\u540d\uff1aWinMgmt\uff09\u304c<br \/>\n\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u306e\u78ba\u8a8d<\/p>\n<p><strong>\u30fbDCOM\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650(\u63a5\u7d9a\u5143)<\/strong><\/p>\n<p>dcomcnfg.exe\u3092\u8d77\u52d5\u3057\u3001<br \/>\n\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30b5\u30fc\u30d3\u30b9-&gt;\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf-&gt;\u30de\u30a4\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3092\u958b\u304d\u3001<br \/>\n\u30fb\uff3b\u65e2\u5b9a\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\uff3d\u30bf\u30d6\u3092\u9078\u629e\u3057\u3066\uff0c\uff3b\u3053\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u3067\u5206\u6563COM\u3092\u6709\u52b9\u306b\u3059\u308b\uff3d\u304c<br \/>\n\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u30fbDCOM\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u9650(\u63a5\u7d9a\u5148)<\/strong><\/p>\n<p>dcomcnfg.exe\u3092\u8d77\u52d5\u3057\u3001<br \/>\n\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30b5\u30fc\u30d3\u30b9-&gt;\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf-&gt;\u30de\u30a4\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3092\u958b\u304d\u3001<br \/>\n\u30fb\uff3b\u65e2\u5b9a\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\uff3d\u30bf\u30d6\u3092\u9078\u629e\u3057\u3066\uff0c\uff3b\u3053\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u3067\u5206\u6563COM\u3092\u6709\u52b9\u306b\u3059\u308b\uff3d\u304c<br \/>\n\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002<br \/>\n\u30fb\uff3bCOM\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff3d\u30bf\u30d6\u3092\u9078\u629e\u3057\u3066\u3001\uff3b\u5236\u9650\u306e\u7de8\u96c6\uff3d\u304b\u3089\u63a5\u7d9a\u30e6\u30fc\u30b6\u3067<br \/>\n\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u30fbWMI\u306e\u540d\u524d\u7a7a\u9593\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u306e\u78ba\u8a8d<\/strong><\/p>\n<p>wmimgmt.msc\u3092\u8d77\u52d5\u3057\u3001WMI\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3092\u8868\u793a\u3057\u3001<br \/>\n\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30bf\u30d6\u306eRoot-&gt;CIMV2\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u63a5\u7d9a\u30e6\u30fc\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u3069\u3046\u3057\u3066\u3082\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u3067UAC\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u304c\u6709\u52b9\u306e\u5834\u5408\u306f\u3001<br \/>\n\u30e6\u30fc\u30b6\u30fc\u81ea\u8eab\u306b\u5bfe\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u304b\u3001<br \/>\nUsers\u30b0\u30eb\u30fc\u30d7\u3068Administrators\u30b0\u30eb\u30fc\u30d7\u4ee5\u5916\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5c5e\u3059\u308b\u30b0\u30eb\u30fc\u30d7\u306b\u5bfe\u3057\u3066<br \/>\n\u8a2d\u5b9a\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u306a\u304a\u3001\u4e00\u7dd2\u306b\u3001winexe\u3068\u3044\u3046\u30c4\u30fc\u30eb\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001Linux\u5074\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089Windows\u4e0a\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3082\u306e\u3067\u3059\u3002<br \/>\n\u57fa\u672c\u7684\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre># winexe -U username%password \/\/192.168.29.40 \"ipconfig\"\r\nWindows IP Configuration\r\nEthernet adapter \u30ed\u30fc\u30ab\u30eb \u30a8\u30ea\u30a2\u63a5\u7d9a 5:\r\n\r\nConnection-specific DNS Suffix . :\r\nIP Address. . . . . . . . . . . . : 192.168.29.40\r\nSubnet Mask . . . . . . . . . . . : 255.255.255.0\r\nDefault Gateway . . . . . . . . . : 192.168.29.1\r\n\r\nEthernet adapter \u30ed\u30fc\u30ab\u30eb \u30a8\u30ea\u30a2\u63a5\u7d9a 7:\r\n\r\nConnection-specific DNS Suffix . :\r\nIP Address. . . . . . . . . . . . : 192.168.30.40\r\nSubnet Mask . . . . . . . . . . . : 255.255.255.0\r\nDefault Gateway . . . . . . . . . :<\/pre>\n<p>\u305f\u3060\u3001\u5b9f\u884c\u6642\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre> [winexe\/winexe.c:120:on_ctrl_pipe_error()] ERROR: Failed to install service winexesvc - NT code 0x00000424<\/pre>\n<p>\u305d\u306e\u5834\u5408\u306f\u3001\u5bfe\u8c61\u306eWindows\u5074\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304a\u3051\u3070\u3088\u3044\u3088\u3046\u3067\u3059\u3002(\u53c2\u8003\uff1ahttp:\/\/community.zenoss.org\/people\/chitambira\/blog)<\/p>\n<pre>sc create winexesvc binPath= C:\\WINDOWS\\WINEXESVC.EXE start= auto DisplayName= winexesvc\r\nsc description winexesvc \"Remote command provider for Zenoss monitoring\"<\/pre>\n<p>\u3061\u306a\u307f\u306b\u3053\u308c\u3001\u30d0\u30b0\u3060\u305d\u3046\u3067\u3001<br \/>\nwinexe\/service.c \u30d5\u30a1\u30a4\u30eb\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u4fee\u6b63\u3057\u3066\u3001<br \/>\n\u518d\u5ea6make&amp;make install\u3059\u308c\u3070\u6cbb\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre>#define NT_STATUS_SERVICE_DOES_NOT_EXIST NT_STATUS(0xc0000424)\r\n\u2193\r\n#define NT_STATUS_SERVICE_DOES_NOT_EXIST NT_STATUS(0x00000424)<\/pre>\n<p>\u5b9f\u969b\u3084\u3063\u3066\u307f\u305f\u3089\u3001\u3061\u3083\u3093\u3068\u81ea\u52d5\u3067Windows\u5074\u306b\u30b5\u30fc\u30d3\u30b9\u304c\u767b\u9332\u3055\u308c\u3001\u30ea\u30e2\u30fc\u30c8\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u5834\u5408\u306f\u3001<\/p>\n<pre>ERROR: Failed to install service winexesvc - NT_STATUS_UNSUCCESSFUL<\/pre>\n<p>\u3044\u3063\u305f\u3093\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u308c\u308b\u3068\u89e3\u6c7a\u3067\u304d\u308b\u5834\u5408\u3082\u3042\u308b\u305d\u3046\u3067\u3059<\/p>\n<pre>sc delete winexesvc<\/pre>\n<p>\u306a\u304a\u3001\u4e0a\u8a18winexe\u306f\u30d0\u30fc\u30b8\u30e7\u30f30.80\u3067\u3059\u304c\u3001\u3001\u6700\u65b0\u7248(1.00)\u304c\u51fa\u3066\u3044\u308b\u3093\u306e\u3067\u3001\u5fc5\u8981\u304c\u3042\u308c\u3070\u3053\u3061\u3089\u3092<br \/>\nhttp:\/\/sourceforge.net\/projects\/winexe\/files\/<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u3053\u3061\u3089\u3092\u53c2\u8003\u306b<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"1iey6jGMM6\"><p><a href=\"http:\/\/junrei.dip.jp\/wordpress\/winexe\/winexe%ef%bc%881-00%ef%bc%89%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/\">winexe\uff081.00\uff09\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;winexe\uff081.00\uff09\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221; &#8212; \uff2a\u30e9\u30dc\" src=\"http:\/\/junrei.dip.jp\/wordpress\/winexe\/winexe%ef%bc%881-00%ef%bc%89%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/embed\/#?secret=sHecWgiKcw#?secret=1iey6jGMM6\" data-secret=\"1iey6jGMM6\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>Views: 113<\/p>","protected":false},"excerpt":{"rendered":"<p>Linux\u304b\u3089\u3001WMI\u7d4c\u7531\u3067Windows\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u308b\u30c4\u30fc\u30eb\u304c\u3042\u3063\u305f\u306e\u3067\u8a66\u3057\u3066\u307f\u305f\u3002 \u3053\u308c\u3068\u3001ZABBIX\u3068\u3046\u307e\u304f\u9023\u643a\u3067\u304d\u308c\u3070\u3001(SNMP\u7d4c\u7531\u3067\u306a\u3044)\u672c\u5f53\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30ec\u30b9\u304c\u3067\u304d\u305d\u3046\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a &hellip; <a href=\"https:\/\/nsb.homeip.net\/wp\/?p=592\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,22,11,21],"tags":[23],"class_list":["post-592","post","type-post","status-publish","format-standard","hentry","category-linux","category-windows","category-zabbix","category-21","tag-wmic"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=592"}],"version-history":[{"count":2,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/592\/revisions"}],"predecessor-version":[{"id":1453,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/592\/revisions\/1453"}],"wp:attachment":[{"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}