Windows10 Tips

¹¹¿·Æü2023-10-06 (¶â) 22:54:22

Hyper-V¤Î¥Í¥Ã¥È¥ï¡¼¥¯¹½À®

Windows¤ÎHyper-V¤ÏVMÍѤÎNIC¤ÈHOSTOSÍѤÎNIC2Ë礢¤Ã¤¿¤Û¤¦¤¦¤¬Îɤ¤¡£1Ëç¤Ç¤â¹½À®¤Ç¤­¤ë¤¬¡¢ESXi¤ÎNIC¤ò¥×¥í¥ß¥¹¥­¥ã¥¹¡¦¥â¡¼¥É¤òÍ­¸ú(LinkÀè)¤Ë¤¹¤ëɬÍפ¬¤¢¤ë¡£

¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥À¥×¥¿(vEthernet)¤ÎDNS¤ÎÀßÄê¤ò¼êÆ°¤ÇÀßÄꤹ¤ë¤ÈDNS¤¬ÍøÍѤǤ­¤ë.

¤½¤Î¤Û¤«¤È¤·¤ÆIPV6¤ò̵¸ú¤Ë¤·¤Æ¤â¡¢ÀßÄêÊѹ¹»þ¤ËÍ­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£

²¾ÁÛ.png

WindowsPC¤Ø¤Î¥ê¥â¡¼¥È¥·¥ó¥Ü¥ê¥Ã¥¯¤ÎºîÀ®

¥ê¥â¡¼¥È¤Ø¤Î¥ê¥ó¥¯µö²Ä

(¥¯¥é¥¤¥¢¥ó¥ÈPC¤Ç¼Â¹Ô:¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ï´ÉÍý¼Ô¸¢¸Â¤Ç³«¤¯)

C:\WINDOWS\system32>fsutil behavior query symlinkevaluation
¥í¡¼¥«¥ë¤«¤é¥í¡¼¥«¥ë¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤ÏÍ­¸ú¤Ç¤¹¡£
¥í¡¼¥«¥ë¤«¤é¥ê¥â¡¼¥È¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤ÏÍ­¸ú¤Ç¤¹¡£
¥ê¥â¡¼¥È¤«¤é¥í¡¼¥«¥ë¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤Ï̵¸ú¤Ç¤¹¡£
¥ê¥â¡¼¥È¤«¤é¥ê¥â¡¼¥È¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤Ï̵¸ú¤Ç¤¹¡£

¥ê¥â¡¼¥È¤«¤é ¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤ÎÍ­¸ú²½

C:\WINDOWS\system32>fsutil behavior set symlinkevaluation r2l:1 ¢«remote to local : 1(Í­¸ú)

C:\WINDOWS\system32>fsutil behavior query symlinkevaluation
¥í¡¼¥«¥ë¤«¤é¥í¡¼¥«¥ë¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤ÏÍ­¸ú¤Ç¤¹¡£
¥í¡¼¥«¥ë¤«¤é¥ê¥â¡¼¥È¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤ÏÍ­¸ú¤Ç¤¹¡£
¥ê¥â¡¼¥È¤«¤é¥í¡¼¥«¥ë¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤ÏÍ­¸ú¤Ç¤¹¡£¡¡¢«¤³¤³
¥ê¥â¡¼¥È¤«¤é¥ê¥â¡¼¥È¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤Ï̵¸ú¤Ç¤¹¡£

¥ê¥â¡¼¥È¥·¥ó¥Ü¥ê¥Ã¥¯¤ÎºîÀ®

C:\KPacs\K-Pacs-Server>mklink /d C:\KPacs\K-Pacs-Server\Database \\192.168.0.112\K-Pacs-Server\Database
C:\KPacs\K-Pacs-Server\Database <<===>> \\192.168.0.112\Database ¤Î¥·¥ó¥Ü¥ê¥Ã¥¯ ¥ê¥ó¥¯¤¬ºîÀ®¤µ¤ì¤Þ¤·¤¿

¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î³Îǧ

¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ë¤Æ

C:\KPacs>dir /a
 ¥É¥é¥¤¥Ö C ¤Î¥Ü¥ê¥å¡¼¥à ¥é¥Ù¥ë¤¬¤¢¤ê¤Þ¤»¤ó¡£
 ¥Ü¥ê¥å¡¼¥à ¥·¥ê¥¢¥ëÈÖ¹æ¤Ï 26AA-C2F7 ¤Ç¤¹

 C:\KPacs ¤Î¥Ç¥£¥ì¥¯¥È¥ê

2020/11/27  12:08    <DIR>          .
2020/11/27  12:08    <DIR>          ..
(ά)
2007/11/09  21:49         1,287,680 dicomdll.dll
2005/08/01  19:28           471,040 findscu.exe
2007/12/10  18:36            54,710 german.ini
2020/11/27  11:37    <SYMLINKD>     Imagebox [\\192.168.0.206\Imagebox] ¢«¤³¤³
2007/08/15  09:30           503,808 iQ.dll
2007/04/22  21:22             9,628 K-PACS EULA Evaluation.txt

¥Õ¥©¥ë¥À¤Î¶¦Í­¤Ê¤Î¤Ç¡¢Ê£¿ô¤ÎPC¤«¤é°ì¤Ä¤ÎPC¤Ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºîÀ®¤¹¤ë¤³¤È¤¬½ÐÍè¤ë¡£RemoteApp¤Ç¤ÏÊ£¿ô¤ÎPC¤«¤éƱ»þ¤ËÍøÍѤǤ­¤Ê¤¤¡£

Windows10¤ÇRemoteApp

Windows10 Pro¤ÇRemoteApp¤Î¥µ¡¼¥Ð¤ËÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£RemoteApp¤È¤ÏÀܳ¤·¤¿Àè¤Î¥µ¡¼¥Ð¤Ç¼Â¹Ô¤·¤¿¥¢¥×¥ê¤Î¥¦¥£¥ó¥É¥¦¤À¤±¤ò¥¯¥é¥¤¥¢¥ó¥È¦¤Ëɽ¼¨¤¹¤ëµ¡Ç½¡£

¼ê½ç

¥µ¡¼¥Ð¦

RemoteApp¤òÍ­¸ú²½¤¹¤ë¤Ë¤Ï¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥Û¥¹¥È¤È¤Ê¤ëWindows¦¤Ç¥ê¥â¡¼¥È¥Ç¥¹¥¯¥È¥Ã¥×¤òÍ­¸ú²½¤¹¤ë¡£

¥ì¥¸¥¹¥È¥ê¤òÊѹ¹

¥­¡¼¡§HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TsAppAllowList
ÃͤÎ̾Á°¡§fDisableAllowList
ÃͤμïÎࡧREG_DWORD
ÃͤΥǡ¼¥¿¡§1

¥¯¥é¥¤¥¢¥ó¥È¦

°Ê²¼¤Î¤è¤¦¤Ê¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Æ¡£¡Ö.rdp¡×¤ÇÊݸ¤¹¤ë¡£

full address:s:ÀܳÀè¥Û¥¹¥È̾orIP¥¢¥É¥ì¥¹
remoteapplicationmode:i:1
remoteapplicationprogram:s:"µ¯Æ°¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥Õ¥ë¥Ñ¥¹"
remoteapplicationname:s:"¥¢¥×¥ê¥±¡¼¥·¥ç¥ó̾¡ÊǤ°Õ¤Î̾Á°¡Ë"
remoteapplicationcmdline:s:"¥³¥Þ¥ó¥É¥é¥¤¥ó°ú¿ô¡ÊǤ°Õ¡Ë"

¥á¥âÄ¢¤ÎÎã

remote_notepad.rdp

full address:s:192.168.0.213
remoteapplicationmode:i:1
remoteapplicationprogram:s:"C:\Windows\System32\notepad.exe"
remoteapplicationname:s:"¥ê¥â¡¼¥È¤Î¥á¥âÄ¢"
remoteapplicationcmdline:s:""

K-KACS¤Îµ¯Æ°VBS(Host¤Ë¥¤¥ó¥¹¥È¡¼¥ë)

Set WshShell = WScript.CreateObject("WScript.Shell")

'µ¯Æ°¤·¤Æ¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤3¤Ä¥×¥í¥°¥é¥à¤òÄä»ß

Call WshShell.Run( "taskkill /f /im k-pacs.exe",0, True )
Call WshShell.Run( "taskkill /f /im kpserver.exe",0, True )
Call WshShell.Run( "taskkill /f /im kpserveradmin.exe" ,0,True )
' WshShell.Run: Â裲°ú¿ô:0¤Ï¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤òɽ¼¨¤·¤Ê¤¤¡¡Â裳°ú¿ô¡§True¤ÏƱ´ü¡¢Àè¤Ë¥×¥í¥°¥é¥à¤¬¿Ê¤Þ¤Ê¤¤¡£

Call WshShell.Run( "C:\KPacs\k-pacs.exe", , False )

µ¯Æ°²èÌÌ

µ¯Æ°²èÌÌ1.png

µ¯Æ°²èÌÌ2.png

µ¯Æ°²èÌÌ3.png

»²¹Í

Windows10¤Î¥¤¥ó¥¹¥È¡¼¥ë»þHDD¤Ë°ì¤Ä¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤·¤«ºîÀ®¤·¤Ê¤¤ÊýË¡

MBR¤Î¤ß²Äǽ¡¢GTP¤Ç¤ÏÉÔ²Äǽ

DOS.png


format fs=ntfs label="Windows" quick

¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥Õ¥¡¥¤¥ë¤¬Èóɽ¼¨¤Î¤È¤­¤ÎÊѹ¹ÊýË¡

¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥Õ¥¡¥¤¥ë1.png

¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥Õ¥¡¥¤¥ë2.png

¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥Õ¥¡¥¤¥ë¤òCUI¤ÇÊѹ¹¤¹¤ë¼ê½ç

PS C:\WINDOWS\system32> Set-NetConnectionProfile -InterfaceIndex 12 -NetworkCategory Private
PS C:\WINDOWS\system32> Get-NetConnectionProfile


Name             : ¥Í¥Ã¥È¥ï¡¼¥¯ 2
InterfaceAlias   : Ethernet0(ÂçÄÔLAN)
InterfaceIndex   : 7
NetworkCategory  : Private
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic

Name             : ¼±Ê̤µ¤ì¤Æ¤¤¤Ê¤¤¥Í¥Ã¥È¥ï¡¼¥¯
InterfaceAlias   : Ethernet1(G-LAN)
InterfaceIndex   : 12
NetworkCategory  : Private¡¡¡¡¡¡¢«Public¤«¤éPrivate¤ËÊѹ¹
IPv4Connectivity : LocalNetwork
IPv6Connectivity : NoTraffic

¡Ö¼±Ê̤µ¤ì¤Æ¤¤¤Ê¤¤¥Í¥Ã¥È¥ï¡¼¥¯¡×¤Èɽ¼¨¤¹¤ë¤Î¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¥²¡¼¥È¥¦¥§¥¤¤òÀßÄꤷ¤Ê¤¤¾ì¹ç¤âɽ¼¨¤¹¤ë¤è¤¦¤À¡£

¾åµ­¤ÎÊýË¡¤Ï¥ê¥Ö¡¼¥È¤¹¤ë¤È¤â¤È¤ËÌá¤ë¤Î¤Ç¡Ö¥»¥­¥å¥ê¥Æ¥£¥Ý¥ê¥·¡¼¡×¤ÇÊѹ¹

¥»¥­¥å¥ê¥Æ¥£¥Ý¥ê¥·¡¼¤òµ¯Æ°

¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥Õ¥¡¥¤¥ë3.png

¡Úwindows¡Û¥µ¡¼¥Ó¥¹ÅÐÏ¿¥³¥Þ¥ó¥É sc

¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È´ÉÍý¼Ô¤Çµ¯Æ°

C:\WINDOWS\system32>sc create Conquest(Hospital1) binPath= "D:\hospital1\ConquestDICOMServer.exe"
[SC] CreateService SUCCESS

d:\hospital1>sc delete Conquest(Hospital1)
[SC] DeleteService SUCCESS

¡ÈbinPath= ¡È¤Î¸å¤í¤Ë¤Ï£±¤Ä¥¹¥Ú¡¼¥¹¤¬É¬Í×

²óÉü¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Îºï½ü

C:\WINDOWS\system32>diskpart

(ά)
DISKPART> list disk

  ¥Ç¥£¥¹¥¯      ¾õÂÖ           ¥µ¥¤¥º   ¶õ¤­   ¥À¥¤¥Ê GPT
  ###                                          ¥ß¥Ã¥¯
  ------------  -------------  -------  -------  ---  ---
* ¥Ç¥£¥¹¥¯ 0    ¥ª¥ó¥é¥¤¥ó            32 GB     8 GB
  ¥Ç¥£¥¹¥¯ 1    ¥ª¥ó¥é¥¤¥ó            28 GB  1024 KB

DISKPART> list partition

  Partition ###  Type                Size     Offset
  -------------  ------------------  -------  -------
  Partition 1    ¥×¥é¥¤¥Þ¥ê              100 MB  1024 KB
  Partition 2    ¥×¥é¥¤¥Þ¥ê               23 GB   101 MB
  Partition 3    ²óÉü                 580 MB    23 GB

DISKPART> select partition 3

¥Ñ¡¼¥Æ¥£¥·¥ç¥ó 3 ¤¬ÁªÂò¤µ¤ì¤Þ¤·¤¿¡£

DISKPART> list partition

  Partition ###  Type                Size     Offset
  -------------  ------------------  -------  -------
  Partition 1    ¥×¥é¥¤¥Þ¥ê              100 MB  1024 KB
  Partition 2    ¥×¥é¥¤¥Þ¥ê               23 GB   101 MB
* Partition 3    ²óÉü                 580 MB    23 GB
 
DISKPART> delete partition override

DiskPart ¤ÏÁªÂò¤µ¤ì¤¿¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òÀµ¾ï¤Ëºï½ü¤·¤Þ¤·¤¿¡£

DISKPART> list partition

  Partition ###  Type                Size     Offset
  -------------  ------------------  -------  -------
  Partition 1    ¥×¥é¥¤¥Þ¥ê              100 MB  1024 KB
  Partition 2    ¥×¥é¥¤¥Þ¥ê               23 GB   101 MB

»²¹Í

Windows10 ¥×¥í¥À¥¯¥È¥­¡¼É½¼¨

´ÉÍý¼Ô¤Ç¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥Èµ¯Æ°

>wmic path softwarelicensingservice get OA3xOriginalProductKey
OA3xOriginalProductKey
Q***-C***-****-****-****

ɽ¼¨¤µ¤ì¤Ê¤¤¤È¤­¤Ï°Ê²¼¤«¤é¡ÖKey Finder¡×¤òDL¤·¤Æ¼Â¹Ô¤¹¤ë

¼«Æ°¹¹¿·Ìµ¸ú²½

¼«Æ°¹¹¿·1.png

¼«Æ°¹¹¿·2.png

¼«Æ°¹¹¿·3.png

Proxy¥µ¡¼¥Ð·Ðͳ¤ÎWindowsUpadteÊýË¡

C:\windows\system32>netsh winhttp show proxy

¸½ºß¤Î WinHTTP ¥×¥í¥­¥·ÀßÄê:

    ľÀÜ¥¢¥¯¥»¥¹ (¥×¥í¥­¥· ¥µ¡¼¥Ð¡¼¤Ê¤·)¡£
C:\windows\system32>netsh winhttp set proxy proxy-server="192.168.0.238:8090" bypass-list="<local>;*.microsoft.com"

¸½ºß¤Î WinHTTP ¥×¥í¥­¥·ÀßÄê:

    ¥×¥í¥­¥· ¥µ¡¼¥Ð¡¼:  192.168.0.238:8090
    ¥Ð¥¤¥Ñ¥¹°ìÍ÷     :  <local>;*.microsoft.com
C:\windows\system32>netsh winhttp show proxy

¸½ºß¤Î WinHTTP ¥×¥í¥­¥·ÀßÄê:

    ¥×¥í¥­¥· ¥µ¡¼¥Ð¡¼:  192.168.0.238:8090
    ¥Ð¥¤¥Ñ¥¹°ìÍ÷     :  <local>;*.microsoft.com

°Ê¹ß¤ÏÉáÄ̤ËÀßÄ꤫¤éWindowsUpdate

C:\windows\system32>netsh winhttp reset proxy
 
¸½ºß¤Î WinHTTP ¥×¥í¥­¥·ÀßÄê:

    ľÀÜ¥¢¥¯¥»¥¹ (¥×¥í¥­¥· ¥µ¡¼¥Ð¡¼¤Ê¤·)¡£

Windows¥é¥¤¥»¥ó¥¹Ç§¾Ú¤Ç¤­¤Ê¤¤¤È¤­¤Ï°Ê²¼¤Î¤è¤¦¤Ë¥Ð¥¤¥¢¥¹¤Î¥ª¥×¥·¥ç¥ó¤ò³°¤¹

C:\windows\system32>netsh winhttp set proxy proxy-server="192.168.0.238:8090"

NIC¤Ë¤è¤êGW,DNS¤ÎÀÚ¤êÂؤ¨¥Ð¥Ã¥Á

NIC¤¬2Ë縺ߤ·¡¢°ìËçÌܤÎNIC¤¬IPv4¡¢2ËçÌܤÎNIC¤Ë¤ÏIPv6¤¬³ä¤êÅö¤Æ¤é¤ì¤¿¤¤¤ë¡£
IPv6¦¤ÎNIC¤ÏIPv6¤ÎIPVPN¤ËÀܳ¤·¤Æ¤¤¤ë¡£
IPv4¦¤ÎNIC¤ÏLAN¤ËÀܳ¤·¤Æ¡¢¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ËÀܳ¤¹¤ë¤Ë¤ÏGW¤ÎÀßÄ꤬ɬÍ×
Ä̾ï¤Ï¡¢PC¤ÏIPv6¦¤ÎNIC(DHCP)¤ÇIPVPNÌÖ¤ÈIPv4¦¤ÎNIC¤ÇLAN¤ÈÀܳ¤¹¤ë(IPv4¤ÎG/W¤Ï¤Ê¤·)¡£
IPv6¤ÎDNS¤ò»ÈÍѤ·¤Æ¡¢IPv4¤ÎDNS¤Ïºï½ü¤¹¤ë¡£
¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ËÀܳ¤¹¤ë¤Ë¤ÏIPv6¤ÎDNS¤òºï½ü¤·¤Æ¡¢IPv4¤ÎDNS¤ò»ÈÍѤ·¡¢IPv4¤Î¤Ç¥Ç¥Õ¥©¥ë¥ÈGW¤òÀßÄꤹ¤ë¡£

@echo off
Rem IPv4¤ÈIPv6¤Î¥ë¡¼¥È¤ÎÊѹ¹ IPv4»þ¤Ë¤ÏIPv4¤ÎNIC¤ËGW¤ò»ØÄꤷ¤Æ¡¢IPv4ÍѤÎDNS
Rem ¤òÀßÄꤹ¤ë 
Rem IPv6»þ¤Ë¤ÏIPv6¤ÎNIC¤Ë¤ÏGW¤ò»ØÄꤷ¤Ê¤¤¤Ç¡¢IPv6ÍѤÎDNS¤òÀßÄꤹ¤ë 

echo Êѹ¹Á°
ipconfig /all | find "DNS ¥µ¡¼¥Ð¡¼"

echo.

echo 1¡§GW IPv4(¥¤¥ó¥¿¡¼¥Í¥Ã¥ÈÀܳ»þ)
echo 2¡§GW IPv6(¥ª¥ó¥é¥¤¥ó»ñ³Êǧ¾Ú»ÈÍÑ»þ)

echo.
choice /C:12 /M:¤É¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤ËÀܳ¤·¤Þ¤¹¤«
echo.

set NAME_IPv4=¥¤¡¼¥µ¥Í¥Ã¥È
set NAME_IPv6=¥¤¡¼¥µ¥Í¥Ã¥È 2

if %ERRORLEVEL% equ 1 (
  Rem IPv4¤ÎNIC¤ÎGW¤ÈDNS¤òÄɲÃ
  netsh interface ipv4 set address name="%NAME_IPv4%" addr=192.168.0.137 mask=255.255.255.0 gateway=192.168.0.243
  netsh interface ipv4 add dnsservers name="%NAME_IPv4%" 192.168.0.243 index=1 validate=no
  
 Rem IPv6¤ÎNIC¤ÎDNSºï½ü
netsh interface ipv6 delete dnsservers name="%NAME_IPv6%" all validate=no
Rem netsh interface ipv6 set address name="%NAME_IPv6%" dhcp

  echo IPv4¤ËÀÚ´¹¤¨¤¿¡ª[¥¤¥ó¥¿¡¼¥Í¥Ã¥ÈÀܳ»þ]

) else if %ERRORLEVEL% equ 2 (
  Rem IPv4¤ÎNIC¤ÎGW¤ÈDNS¤òºï½ü
  netsh interface ipv4 delete address name="%NAME_IPv4%" addr=192.168.0.137 gateway=all
  netsh interface ipv4 add address name="%NAME_IPv4%" addr=192.168.0.137 mask=255.255.255.0
  netsh interface ipv4 delete dnsservers name="%NAME_IPv4%" all validate=no

  Rem IPv6¤ÎNIC¤ÎDNS¤òÄɲáÊGW¤Ï¤â¤È¤â¤ÈÀßÄê¤Ê¤·)
  netsh interface ipv6 add dnsservers name="%NAME_IPv6%" 2001:a7ff:f014:d00::53:1 index=1 validate=no
  netsh interface ipv6 add dnsservers name="%NAME_IPv6%" 2001:a7ff:f014:d00::53:2 index=2 validate=no
  echo IPv6¤ËÀÚ´¹¤¨¤¿¡ª[¥ª¥ó¥é¥¤¥ó»ñ³Êǧ¾Ú»ÈÍÑ»þ]
)

echo.
echo Êѹ¹Á°
ipconfig /all | find "DNS ¥µ¡¼¥Ð¡¼"
pause

Windows10¤Ë£²ÂæÌܤÎRDT¥¯¥é¥¤¥¢¥ó¥È¤òÀܳ¤¹¤ëÊýË¡

ÉáÄ̤ϡ¢Windows10¤ËRDTÀܳ¤·¤Æ¤¤¤ë¤È¤­¤Ï¡¢ÀܳPC°Ê³°¤«¤é¤ÏƱ»þ¤ËÀܳ¤Ç¤­¤Ê¤¤

°Ê²¼¤ÎÊýË¡¤ÇÀܳ¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ë

Àܳ¤µ¤ì¤ëPC(1ÂæÌܤÎPC¤ÇÉáÄ̤ËÀܳ¤·¤¿PC)¤Ç¤Î³Îǧ»ö¹à

¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ç

C:\Users\okada>query session
 ¥»¥Ã¥·¥ç¥ó̾      ¥æ¡¼¥¶¡¼Ì¾               ID  ¾õÂÖ    ¼ïÎà        ¥Ç¥Ð¥¤¥¹
 services                                    0  Disc
 console                                     1  Conn
>rdp-tcp#12        okada                     3  Active¡¡¢«¡¡¤³¤³
 rdp-tcp                                 65536  Listen

¾õÂÖ¤¬¡ÖActive¡×¤ÎIDÈÖ¹æ¤ò³Îǧ

Àܳ¤µ¤ì¤ëPC¤¬ËÜÂΤ«¤é¥í¥°¥¤¥ó¤·¤Æ¤¤¤ë¤È¤­¤Ï¥»¥Ã¥·¥ç¥ó̾¡Öconsole¡×¤¬Active¤Ë¤Ê¤ë¡£

Àܳ¤¹¤ëPC(2ÂæÌܤÎÄɲÃPC)¤Ç¤Î¼ê½ç

¡ÖWindows PowerShell¡×¤Þ¤¿¤Ï¡Ö¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¡×¤òµ¯Æ°

PS C:\WINDOWS\system32> mstsc /v:192.168.10.221 /prompt /shadow:3 /control

¤³¤ì¤Ç1ÂæÌܤÎPC¤Î¥æ¡¼¥¶Ì¾¤È¥Ñ¥¹¥ï¡¼¥É¤òÆþÎϤ¹¤ë¤È¡¢1ÂæÌܤΥê¥â¡¼¥È¥Ç¥¹¥¯¥È¥Ã¥×¾å¤Ë¡Ö¥ê¥â¡¼¥ÈÀ©¸æÍ×µá¡×¤Î°Ê²¼¤ÎÆâÍƤΥÀ¥¤¥¢¥í¥°¥Ü¥Ã¥¯¥¹¤¬É½¼¨¤¹¤ë¡£

¡ÖPC001¤¬¥»¥Ã¥·¥ç¥ó¤Î¥ê¥â¡¼¥ÈÀ©¸æ¤òÍ׵ᤷ¤Æ¤¤¤Þ¤¹¡£¤³¤ÎÍ×µá¤ò¼õ¤±Æþ¤ì¤Þ¤¹¤«¡©¡×

¡ÖOK¡×¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¡£

¤¢¤È¤ÏÀܳ¤·¡¢¥Þ¥¦¥¹¡¢¥­¡¼¥Ü¡¼¥É¤¬¤É¤Á¤é¤«¤é¤âÆþÎϲÄǽ¤Ë¤Ê¤ë

¤¿¤À¤·¡¢Shadow¦(2ÂæÌÜ/¸å¤«¤éÀܳ)¤«¤é¤Î¥Þ¥¦¥¹Æ°¤­¤Ï1ÂæÌܤâƱ¤¸¤è¤¦¤ËÆ°¤¯¤¬¡¢1ÂæÌܤΥޥ¦¥¹¤ÎÆ°¤­¤ÏShadow¦¤Ë¤ÏÅÁ¤ï¤é¤Ê¤¤¤è¤¦¤Ê´¶¤¸¡£

¤¿¤À¤·¡¢PCËÜÂÎ¤Ë¥í¥°¥¤¥ó¤·¤Æ¡¢¥ê¥â¡¼¥È¤ÏShadow¤Î¤È¤­¤Ï¡¢¤É¤Á¤é¤«¤éÁàºî¤·¤Æ¤âÁê¼ê¦¤Î¥Þ¥¦¥¹¤ÏÆ°¤¯¤ß¤¿¤¤¡£

¤¿¤À¤·2ÂæÌܤÏShadow¤Ç¤ÎÀܳ¤Ê¤Î¤Ç¡¢1ÂæÌܤòÀÚÃǤ¹¤ë¤È2ÂæÌܤâÀÚÃǤµ¤ì¤ë¡££³ÂæÌܤÏÀܳ¤Ç¤­¤Ê¤¤¡£°Ê²¼¤Î¥á¥Ã¥»¡¼¥¸

¡Ö»ØÄꤷ¤¿¥»¥Ã¥·¥ç¥ó¤Ï¥·¥ã¥É¥¦¥¤¥ó¥°¤Ç¤­¤Þ¤»¤ó¡£¤³¤Î¥»¥Ã¥·¥ç¥ó¤Ï´û¤Ë¥·¥ã¥É¥¦¤Ç»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤¹¡£¡×

¡Ö¥ê¥â¡¼¥ÈÀ©¸æÍ×µá¡×¤òɽ¼¨¤·¤Ê¤¤ÊýË¡

°Ê²¼¤Î¤è¤¦¤Ë¥ê¥â¡¼¥ÈÀè¤ÎPC¤Î¥°¥ë¡¼¥×¥Ý¥ê¥·¡¼¤òÊѹ¹¤·¡¢¥³¥Þ¥ó¥É¤Ë¡Ö/noConsentPrompt¡×¤òÄɲ乤롣

PS C:\WINDOWS\system32> mstsc /v:192.168.10.221 /prompt /shadow:3 /control /noConsentPrompt

¤¿¤À¤·¡¢°Ê²¼¤Î¥°¥ë¡¼¥×¥Ý¥ê¥·¡¼¥¨¥Ç¥£¥¿(gpedit.msc)¤ÇÀßÄê¤ÎÊѹ¹¤¬¥ê¥â¡¼¥ÈPC¤ËɬÍ×

[¥³¥ó¥Ô¥å¡¼¥¿¡¼¤Î¹½À®] – [´ÉÍýÍѥƥó¥×¥ì¡¼¥È] – [Windows ¥³¥ó¥Ý¡¼¥Í¥ó¥È] – [¥ê¥â¡¼¥È¥Ç¥¹¥¯¥È¥Ã¥×¥µ¡¼¥Ó¥¹] – [¥ê¥â¡¼¥È¥Ç¥¹¥¯¥È¥Ã¥×¥»¥Ã¥·¥ç¥ó¥Û¥¹¥È] – [Àܳ]
¡Ö¥ê¥â¡¼¥È ¥Ç¥¹¥¯¥È¥Ã¥× ¥µ¡¼¥Ó¥¹ ¥æ¡¼¥¶¡¼ ¥»¥Ã¥·¥ç¥ó¤Î¥ê¥â¡¼¥ÈÀ©¸æ¤Î¥ë¡¼¥ë¤òÀßÄꤹ¤ë¡×

¥æ¡¼¥¶¤ÎƱ°Õ¤Ê¤·ÀßÄê.png

RDT¤ÎÀܳ²èÌ̤¬É½¼¨¤¹¤ë¤Î¤Ç1ÂæÌܤÎPC¤ÈƱ¤¸¡Ö¥æ¡¼¥¶Ì¾¡×¡Ö¥Ñ¥¹¥ï¡¼¥É¡×¤òÆþÎÏ

¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë

445/TCP¤òÄ̲ᤷ¤¿¤éÀܳ¤Ç¤­¤¿

¥ê¥â¡¼¥È¥Ç¥¹¥¯¥È¥Ã¥×-¥·¥ã¥É¥¦(TCP)¤âÍ­¸ú¤Ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë¢ª¥ê¥â¡¼¥È¥Ç¥¹¥¯¥È¥Ã¥×¤òµö²Ä¤·¤¿»þÅÀ¤ÇÍ­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È»×¤ï¤ì¤ë¡£

»²¹Í


¥È¥Ã¥×   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS