1
I have a remote computer which I can Enter-PSSession
successfully. When I execute:
New-PSDrive -Name "G" -PSProvider Filesystem -Root '\\fileserver\apps\etc'
I get the following error:
New-PSDrive : Drive root "\\fileserver\apps\etc" does not exist or it's not a folder.
+ CategoryInfo : ReadError: (G:PSDriveInfo) [New-PSDrive], IOException
+ FullyQualifiedErrorId : DriveRootError,Microsoft.PowerShell.Commands.NewPSDriveCommand
Now, the location does exist because its mounted on my local computer and remote computer too. Before trying to mount the network drive through Powershell, I typed Get-PSDrive
to see if it was mounted before - nothing just the normal.
Is there a way to mount a network drive when you are in PSSession?
I will take a look at this and get back with you. Thank you for posting this. – K2Chris1983 – 2014-11-12T13:50:05.313