Get-ChildItem not working in Debugger

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 7 years and 3 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.
User avatar
davestiff
Posts: 5
Last visit: Wed Aug 29, 2018 6:24 am

Get-ChildItem not working in Debugger

Post by davestiff »

Product, version and build: PowerShell Studio 2016 5.3.131
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64
Operating system: Windows 8.1
32 or 64 bit OS: 64

Hello,

our DevOps Team is evaluating PowerShell Studio 2016 for our needs. So far it has been going well.

I have come across a problem debugging a script though. This line does not appear to be executing:

$FileList = Get-ChildItem -Path FileSystem::"$networkBinFolder\*" -Recurse -Include "*.dll","*.exe" -Exclude "*fakes*","*test*","*installer*"

$FileList is blank after the line executes. If I use "Run Selection in Console" it works correctly. ($networkBinFolder is a UNC share)

Any ideas on this?

Thanks!
Dave
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Get-ChildItem not working in Debugger

Post by Alexander Riedel »

Usually a permission issue. The console or ISE run elevated by default.
Make sure the user who runs the script has access to the share.
If a login happens in the profile, note that profiles are not executed when running a script from PowerShell Studio to avoid dependencies.
Does Powershell output a specific error message?
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 7 years and 3 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.