I am pretty sure I have done this before, but I seem to be missing something this time. I am mapping a drive letter and I am not able to see it in Windows explorer. Here is what I did and can see:
New-PSDrive-Name K -Root'\\server.dom.com\C$'-Persist-PSProvider FileSystem -Credential$Zcreds
PS C:\> $PSVersionTable
Name Value
---------
PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.18444
BuildVersion 6.3.9600.16406
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2
PS C:\> net use K:
Local name K:
Remote name \\server.dom.com\C$
Resource type Disk
Status OK
# Opens 0
# Connections 1
The command completed successfully.
PS C:\> Get-WmiObject Win32_NetworkConnection
LocalName RemoteName ConnectionState Status
----------------------------------------
K: \\server.dom.com\C$ Connected OK
Z: \\server10.dom.com\profiles Connected OK
PS C:\> Get-WmiObject Win32_LogicalDisk | Format-Table-Property DeviceID
DeviceID
--------
C:
D:
E:
K:
Z:
PS C:\> $PSVersionTable
Name Value
---------
PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.18444
BuildVersion 6.3.9600.16406
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2
PS C:\> net use K:
Local name K:
Remote name \\server.dom.com\C$
Resource type Disk
Status OK
# Opens 0
# Connections 1
The command completed successfully.
PS C:\> Get-WmiObject Win32_NetworkConnection
LocalName RemoteName ConnectionState Status
----------------------------------------
K: \\server.dom.com\C$ Connected OK
Z: \\server10.dom.com\profiles Connected OK
PS C:\> Get-WmiObject Win32_LogicalDisk | Format-Table-Property DeviceID
DeviceID
--------
C:
D:
E:
K:
Z: