Networkdrives missing in Control set: Textbox browse for folder

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
DeKade
Posts: 18
Last visit: Fri Mar 04, 2022 2:16 am

Networkdrives missing in Control set: Textbox browse for folder

Post by DeKade »

Product, version and build:
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64bit
Operating system: Windows 10 Pro
32 or 64 bit OS: 64
PowerShell Version: 5.1.14393.953

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

All my networkdrives are not visible in the folderbrowserdialog, I only see my local drives.
Can I enable this somehow?
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: Networkdrives missing in Control set: Textbox browse for folder

Post by DevinL »

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
DevinL
SAPIEN Technologies, Inc.
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: Networkdrives missing in Control set: Textbox browse for folder

Post by DevinL »

This is more of a generic GUI question as opposed to a product specific issue.

Do you happen to run PowerShell Studio as a different user than the one that's used for your network drives?
DevinL
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Networkdrives missing in Control set: Textbox browse for folder

Post by davidc »

Try swapping out the FolderBrowserDialog with a FolderBrowserModernDialog and see if that makes a difference.
David
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Networkdrives missing in Control set: Textbox browse for folder

Post by jvierra »

IF you map drives from n elevated prompt they will not be visible from a normal session. Run your script elevated and you will see the drives.
This topic is 6 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked