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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:13:33+00:00 2026-05-28T13:13:33+00:00

What is the cleanest way to unbind an orchestration using PowerShell? I’d like to

  • 0

What is the cleanest way to unbind an orchestration using PowerShell?

I’d like to have something that works on both 32bit and 64bit platform.

I know I can load and use the Microsoft.BizTalk.ExplorerOM assembly (forcing 32bit mode with something like “Start-Job -RunAs32”) and do something similar to what is explained here: http://msdn.microsoft.com/en-us/library/dd792703(v=bts.10).aspx

But I’d like to find something better.

  • 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-05-28T13:13:34+00:00Added an answer on May 28, 2026 at 1:13 pm

    I see the sample script you linked is loading this DLL from the GAC:

    [System.reflection.Assembly]::LoadWithPartialName("Microsoft.BizTalk.ExplorerOM")
    

    I’m not familiar with this assembly but if it’s pre-compiled to x86 in the GAC then you’ll need to load it with 32bit PowerShell (when on a 64bit Windows system). In your script you can do a check to see what PowerShell process bitness is:

    if ( [IntPtr]::Size -eq 4 ) { # x86 } else { # x64  }
    

    If your script is not running in the right bitness there’s three things I can think of:

    1. Start a 32 bit background job as you noted
    2. Re-launch your script using 32 bit PowerShell (doesn’t work well if your script has params):

      if (-not $correctBitness) { 
          Start-Process "C:\WINDOWS\syswow64\windowspowershell\v1.0\powershell.exe" -ArgumentList "-file", $Invocation.MyCommand.Path
          exit 
      } 
      
    3. Tell the user they need to re-launch the script using the 32 bit PowerShell and exit.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

which is the cleanest way to use something like a global variable? Normally, using
What would be the cleanest way of doing this that would work in both
What is the cleanest way to validate an email address that a user enters
What's the cleanest way, like 1 line of JavaScript code, to set one text
What would be the cleanest way to have a Save state for an application
What's the cleanest way to add a prefix to every URL in CakePHP, like
I would like to define globals in a programmatic way. Something similar to what
What's the cleanest way to extract third level elements from this structure provided that
I'm looking for the cleanest way to get all open windows and have access
What is the cleanest way to recursively search for files using C++ and MFC?

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.