Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.3k views
in Technique[技术] by (71.8m points)

powershell - Make New-PSDrive drive viewable to another device when a USB cable is plugged into each device

I need to map a drive as a virtual USB so that when a male to male USB cord is plugged into both devices the folder that is now a mapped drive can be seen by the other device plugged into the other end of the USB cord.

Mapping the folder is easy enough. When this is run it maps a drive (K) that has the content in the folder "Folder1", but how do I make this viewable by "Computer B" when the USB cable is plugged into both computers? The second device is a Linux based computer

<$Path = "\Computer_AFolder1">

<New-PSDrive –Name “K” –PSProvider FileSystem –Root $Path –Persist?>


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This reminds me that MicroSoft removed Easy Transfer from Windows 10. https://support.microsoft.com/en-us/windows/windows-easy-transfer-is-not-available-in-windows-10-ff30fba8-9b3e-58f8-5cf2-dfabae35fa01

This may not be possible the way you want.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...