Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:13:26+00:00 2026-06-10T22:13:26+00:00

I have difficulties troubleshooting scriptblock used in start-job. Basically I wanted to get WMI

  • 0

I have difficulties troubleshooting scriptblock used in start-job.

Basically I wanted to get WMI properties for servers. If I issue the following command from Powershell, it works.

c:/>$wmi=Get-WmiObject -class Win32_OperatingSystem -computer servername

However, if I run the command in scriptblock of start-job, the job runs forever.

c:/> start-job -argumentList servername -scriptblock {$wmi=Get-wmiobject 
-class win32_operatingsystem -computer $args[0]}

C:/> get-job
Id   Name    State     HasMoreData   Location    Command
--   ----    -----     -----------   --------    -------
169  Job169  Running   True          localhost   $wmi=Get-WmiObject -cl...

Any help or suggestions is much appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:13:28+00:00Added an answer on June 10, 2026 at 10:13 pm

    Is this on Windows XP? There is a known issue with WMI on Windows XP and Start-Job. Read this thread: WMI Query Script as a Job

    This could be due to corrupt WMI repository. Try rebuilding it once.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some difficulties with understanding BindingSource's behaviour. Let's look at following example: Creating
I have difficulties to understand how the following template definition and template specialization definition
I have the following regex in a C# program, and have difficulties understanding it:
i have some difficulties changing tab bar controllers. Basically I have UITabBarController with 3
I have difficulties developing 4x1 widget for Android. This is the appprovider <?xml version=1.0
I know this question had been asked a hundred times, but I have difficulties
I am reading the book: Intel Threading Building Blocks. I often have difficulties understanding
I have some difficulties in my project. I got the RGB values from a
I have some difficulties for using Ruby block, passing in a method. As in
I'm have some difficulties here, I am unable to successfully call a method which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.