![]() This is only an issue using the powershell specific cmdlet to map the drive. In fact, if it were this, restarting Explorer would have no affect.Īlso this is an issue whether -persistent $true is used or not.įinally, if I just simply use native Windows cmd prompt command "Net Use" to map the drive, even within the Powershell console, everything works as expected. Plug a USB drive into the laptop - fails to show in Explorer. It occurs in both Powershell 7 as well as Windows Powershell 5.1.ĭoes anyone have a clue as to what is happening here?įWIW I know that drives mapped in the standard UAC user context are not visible to admin contexts and vice versa. a) Map the drive again in the ViceVersa profile settings, so that the drive is remapped by ViceVersa each time the profile runs. I'm at a complete loss as to why this is an issue. Solution 1: Forcing windows to make the network drives available to standard and administrator acounts: 1 - run regedit 2 - locate HKEYLOCALMACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem 3 - create a new DWORD entry with the name EnableLinkedConnections and value 1. Well now I'm doing some more testing, now no matter what I do, when using New-SMBMapping in any way, Explorer refuses to see the drive (even new mappings) while the system does see the correct drives via cmdline. ![]() If I end process for Explorer.exe and re-run it, then it would show and use the new mappings. ps1 script file, the drive mappings would change (as verified by NET USE from the command line), Explorer continued to show and use the old drive mappings. While it was working there was a strange bug where it would only work if I pasted the code directly into powershell. Mapped network drive not showing when opening or saving file in PowerMill, PowerInspect Able to view in Explorer window. I'm using Remove-SMBMapping and New-SMBMapping. Using File Explorer there is only c: drive, mapped drives are not visible. Could be related to certain programs, like Teams or OneNote. After initial joining of domain, mapped drives which have been applied by GPO using 'update' have appeared in file explorer. net use z: \\share-computer -> System error 85 has occurred. ![]() More help is available by typing NET HELPMSG 2250. In elevated command prompt: net use z: /delete -> The network connection could not be found. There is no delete option on the context menu. I'm writing a script to remap drives to new paths (file server migration), and I had everything working. Explorer will not show the mappings until restart. Right-click on the drive, select disconnect -> This network connection does not exist.
0 Comments
Leave a Reply. |