VMware Cloud Community
jvm2016
Hot Shot
Hot Shot

powershell code for creating network drive

Hi Luc,

can you please check on the following requirement to suggest powershell code .

1:company 1,2 and 3 are three virtual machines where one powershell script is generating report.

2:instead of storing on company 1 2 and 3 i want to store them on SF folder which i want to map as network drive to all three computers .

3:all four are in different domains .

pastedImage_0.png

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

You can create network shares with the New-SmbShare cmdlet.
If you will be able to connect to the share from all these VMs (in different AD domains), depends a bit how the trusts between those domain are set up.

Connecting to a network share itself can be done with the New-PSDrive cmdlet.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

Thanks luc .i m working on it.

Reply
0 Kudos