Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using wildcards with Get-SCPItem #539

Open
thortonSAC opened this issue Aug 11, 2023 · 0 comments
Open

Using wildcards with Get-SCPItem #539

thortonSAC opened this issue Aug 11, 2023 · 0 comments

Comments

@thortonSAC
Copy link

Hello,

Apologies if this is answered somewhere, but I searched and could not find it. We are trying to automate some windows to linux and back tasks, and on the linux side the files are named with timestamps, so they are always different. Normally I would just use:

Get-SCPItem -ComputerName "linuxname" -Credential $credential -Path /path/to/file*.txt ...

But obviously this is not working, giving an illegal character in path error. Is there a way for me to use a wildcard in this context, or am I going to have to find an alternate way to find the exact file name on the powershell side and pass it through?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant