0

I have tried:

  1. deviceIoControl function but I think this cannot work for remote machine (my sample code)

  2. dismount function in WMI but it mount again as auto-mount is true when I tried to false the automount that function return mountpoint is available error,So How can I delete mount point in remote machine.

  3. disabling the USB mass storage driver in device manager can dismount the USB,but can not access the device manager in remote machine that has windows 8 and after release version click here to see

  4. i am going to try CM_Request_Device_EjectA function but to connect with remote machine CM_Connect_MachineA function cannot applied for windows 8 and after release version

I don't know what to do next.I want to do this without mostly setup or configure on remote machine.

  • write a program that runs on the other machine and does it? – user253751 Sep 14 '22 at 16:01
  • Which is exactly what I said 2 days ago on [this question](https://stackoverflow.com/questions/73679016/) – Remy Lebeau Sep 14 '22 at 16:04
  • @RemyLebeau ,To execute the program using namedpipe function in remote machine, I have to connected with that pipe,To connect with that pipe I have to create the pipe on remote machine,here is the problem , that I should not create any pipe in remote machine. So,Is there any default created pipe listening for connection that I can use ? – Naveen CS Sep 15 '22 at 07:01
  • @NaveenCS no, there is not. You will have to run your own software on the remote machine, and have it open some type of communication channel that you can then connect to (named pipe, socket, etc) – Remy Lebeau Sep 15 '22 at 09:22
  • @Jeaninez - MSFT how to connect using CM_CONNECT_MACHINE function – Naveen CS Sep 21 '22 at 06:27
  • @NaveenCS Accoring to the Doc: [CM_Connect_MachineW function](https://learn.microsoft.com/en-us/windows/win32/api/cfgmgr32/nf-cfgmgr32-cm_connect_machinew) Beginning in Windows 8 and Windows Server 2012 functionality to access remote machines has been removed. You cannot access remote machines when running on these versions of Windows. – Jeaninez - MSFT Sep 22 '22 at 06:43

0 Answers0