Copy/Send files by network

Visual Studio118
I've been creating C/S application but I've been wondering how to install

client module direct by network from server module (I don't want to install

it manually).

Main problem is, how to send/copy installation files by network from server

module.



It is possible to take advantage with administrative shares i.e.:

Connect to the host (WNetAddConnection2),

Check, if ADMIN$ is available (i.e.: NetShareGetInfo ),

Copy files,

Execute install file or something else to do,

Disconnect (WNetCancelConnection2).



Problem is, when administrative shares are disabled. What can I do then ?

Perhaps CreateFile and pipes can help in some way, but how ?



Any ideas ?


-