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 7788005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:51:15+00:00 2026-06-01T20:51:15+00:00

I saw a lot of topics about powershell + waiting for process ending, but

  • 0

I saw a lot of topics about powershell + waiting for process ending, but somehow its not working for me. I have this:

Add-PsSnapin Microsoft.SharePoint.Powershell

Add-SPSolution sol.wsp

Install-SPSolution -identity $sol -GACDeployment

Install-SPFeature "feature"

What Im trying to do is to add a new Sharepoint (2010) solution, then Im trying to install a solution and finally Im trying to install feature.

The last one is failing, because the installation of the solution takes somehow longer but he is already trying to install the feature. I get the error Install-SPFeature : Failed to find the XML file at location if I start the script again the feature can be installed. How could I change my script to handle this problem? Ok sure I could use Start-Sleep -s 2 or something, but thats not the best way. | Out-Null or -Wait isnt working too. I think thats because the process or whatever it is already done, but windows takes some seconds to realize that the solution is installed. Any ideas? Thank you

  • 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-01T20:51:16+00:00Added an answer on June 1, 2026 at 8:51 pm

    Did you try to use Start-Job?

    $sb = { Install-SPSolution -identity $sol -GACDeployment }
    $job = start-job -scriptblock $sb
    Wait-Job $job  | Out-Null
    $retMsg = Receive-Job $job
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw some topics about this, but the problem is that the solutions required
I saw a lot of examples of CopyStream implementation but I have question about
I saw a lot of posts about this pattern, but still don't understand why
I have saw a lot of them, but all they look not accelerated and
I have read a lot about soft deletes and archive and saw all the
I saw many threads with this tittle, but no one really speak about reuse
I saw some other similar questions on this topic here but they were not
I saw a lot of topics, but no normal solution to my problem. I
I saw that there are a lot of topics on simplehtmldom, but no one's
I saw a lot of different information on this theme but nothing helped me.

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.