Browse by Tags

Tagged Content List
  • Blog Post: Where or where has my Where-Object gone?

    If you have done any remote runspace creation against Exchange 2010 you have undoubtly run into this error message: "Script block literals are not allowed in restricted language mode or a Data section" or "The term 'Where-Object' is not recoginized as the name of a cmdlet, function, script file...
  • Blog Post: Local Runspaces are not supported in Exchange 2010

    First, let's define what a Local Runspace is and how that differs from the one you would use for Exchange 2010. A Local Runspace is a runspace configured to load the local Exchange Powershell snapin via the RunspaceConfiguration object. This was the standard type of Runspace created when automating Powershell...
  • Blog Post: How to use Windows Authentication with the PSCredential class

    Since posting the Remote Powershell sample I have had many people ask me how to make a connection to a remote endpoint using Windows Authentication instead of suppling a username and password as my sample demonstrates. I have changed the sample so that it looks for the presence of a username and password...
  • Blog Post: Remote Powershell Sample Explained...

    This is a continuation of my previous post . I wanted to take a moment and discuss the intent of the sample, how to get it working, and some caveats when you attempt to take the sample and turn it into production ready code. Purpose The purpose of the sample is to demonstrate how to use Remote...
  • Blog Post: How to call Exchange 2010 cmdlet's using Remote Powershell in code

    I have seen this question posed a lot so I decided that I would post a quick code sample here and the complete sample on my samples site. In my sample I created a managed client and a native client which both call into a managed DLL that runs the Get-ExchangeServer cmdlet using Remote Powershell....
Page 1 of 1 (5 items)