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

Printing RSJob properties #203

Open
kevin-james-sp opened this issue Sep 20, 2019 · 1 comment
Open

Printing RSJob properties #203

kevin-james-sp opened this issue Sep 20, 2019 · 1 comment

Comments

@kevin-james-sp
Copy link

This may just be my lack of PowerShell knowledge, but why is it when I do something like this:
PS >$job=Get-Job
PS >$job.Name
Name-Of-My-Job
PS >echo "job Name=$job.Name"
job Name=RSJob.Name

Basically, when I try to access any property of a RSJob object inside a quoted string it prints RSJob. instead of the property value?

@copdips
Copy link
Contributor

copdips commented Sep 20, 2019

$($job.Name)

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

2 participants