How to get remote computer’s mac address from windows tool – “psexec”

How to get remote computer’s mac address from psexec

PS D:\Admin\User> psexec \\win10-test -u admin -p Pa$$w0rd ipconfig /all

PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com



Windows IP Configuration

   Host Name . . . . . . . . . . . . : win10-test
   Primary Dns Suffix  . . . . . . . : contoso.com
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : contoso.com

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 7265
   Physical Address. . . . . . . . . : F9-A4-C5-FA-0D-AA
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 9:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : FA-A5-2C-A0-E0-AB
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : contoso.com
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : AD-A2-03-6C-CC-AC
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe21::3007:f746:5e9b:f2bf%12(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.10.4.10(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.254.0
   Lease Obtained. . . . . . . . . . : February 14, 2018 11:16:09 AM
   Lease Expires . . . . . . . . . . : February 21, 2018 11:16:08 AM
   Default Gateway . . . . . . . . . : 10.10.4.254
   DHCP Server . . . . . . . . . . . : 10.10.4.17
   DHCPv6 IAID . . . . . . . . . . . : 61661907
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-22-0F-C5-56-AC-E2-D3-63-C3-30
   DNS Servers . . . . . . . . . . . : 10.10.4.99
                                       10.10.4.100
   Primary WINS Server . . . . . . . : 10.10.4.101
   Secondary WINS Server . . . . . . : 10.10.4.102
   NetBIOS over Tcpip. . . . . . . . : Enabled

ipconfig exited on it100092 with error code 0.

Turn off Windows 7 Admin share

my windows 7 system by default will share C$, D$. I would like to turn it off and just share the folder i would like to share
you can modify reg key to turn off default admin share

Add the following reg key will disable default admin share

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters]
"AutoShareWks"=dword:00000000

result

PS D:\> net share

Share name   Resource                        Remark

-------------------------------------------------------------------------------
IPC$                                         Remote IPC
share_public D:\share_public
The command completed successfully.