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
Get-ChildItem not working in Debugger
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.
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.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: Get-ChildItem not working in Debugger
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?
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.
SAPIEN Technologies, Inc.