PowerShell Scripting Techniques and Gems - Part 1

Windows PowerShell has become the most favorable shell language that a windows admin can not go without in the modern onprem and cloud world. As it has been developed and enhanced or in a better word evolved into today’s version 5.1 of windows PowerShell and PowerShell 6.2, I will be creating a  multi part blog post to look back at…

PS Script update: Connect-Exchangeservice function updated

This week I release the new and Improved “Connect-ExchangeService” function with complete rework of the auto resolve functionality. You can find the script in the TechNet gallery or under the script section of this site. The full explanation of this function can be found on the release page here: http://www.tech-savvy.nl/2017/01/26/ps-script-connect-to-one-or-multiple-exchange-server-powershell-sessions-from-any-computer/ Version Changes: Date: (dd-MM-YYYY) Version: Changed By Info: 25-01-2017 V1.0 Martijn…

PS Script update: Get-Ldapobject function updated

I am releasing version 1.2 of the powershell code function “Get-ldapobject” in a series of script updates that I will be releasing over the next few weeks. You can find the script in the TechNet gallery or under the script section of this site. The full explanation of this function can be found on the release page here: http://www.tech-savvy.nl/2016/12/19/ps-script-search-for-a-object-in-ad-or-ldap-fast-or-from-a-non-domain-joined-pc-with-support-for-workflows-part-1/ Version Changes:…

PS Script Update V1.3: Find a working domain controller from any domain even on non domain joined PC`s

Today i release a update on the script function “get-dc”. Sinds the first release I have received some feature requests and i have improved the codes error handling. The full list of changes: V1: Fixed a issue with the credentials when querying from a domain joined PC. V1.1: Updated “Site” param to “ADsite” and try to resolve default AD site…

PS Script: Connect to one or multiple Exchange server PowerShell sessions from any computer.

In my previous posts I showed some functions for finding an AD DC and run LDAP query’s against those DC`s. The following function “Connect-Exchangeservice” builds on top of the Get-LDAPobject function. This new function will connect you to the PowerShell management session of an exchange server. This way you do not have to install the exchange management tools to manage exchange via PowerShell. The big…

PS Script: Find a working domain controller from any domain even on non domain joined PC`s

An update has been applied do to some issues with the credentials support. Version 1.0 has been released Today i release the first of many scripts to support exchange and active directory PowerShell commands from any pc and support for workflows. The first script is about locating a domain controller that is up and running by validating its response on port 389 and have a…

In Exchange 2013 CU11, we introduced a change to the way Remote PowerShell (RPS) functioned. Prior to CU11, Exchange 2013 routed Remote PowerShell requests by finding a random mailbox that is either higher than the ExchClientVer that is specified in the URL, or if the ExchClientVer is not specified, by using the current CAS version in which the client connected….