Skip to content
No results
  • Privacy Policy
  • Sample Page
We use cookies to ensure that we give you the best experience on our website.
Dan Sheehan's Blog
Dan Sheehan's Blog

Random thoughts from a Microsoft Customer Engineer

Twitter LinkedIn
Dan Sheehan's Blog
Dan Sheehan's Blog

Random thoughts from a Microsoft Customer Engineer

User Properties in AD showing Canonical Name

Leverage On-Premises AD OU/Domain Structures for EXO Administration
5 (1)

  • Exchange, PowerShell

Do you have an existing AD OU/domain structure that you use to group and/or delegate administrative access to on-premises Exchange resources? This includes examples such as Role Based Access Control (RBAC) delegations for de-centralized resource administration and also Dynamic Distribution…

  • Dan Sheehan
  • 04/20/2021

PowerShell: Taking Control of CTRL-C.
0 (0)

  • PowerShell

Have you ever been in the middle of running a PowerShell script and hit CTRL-C to stop it, and realize you just lost the tracking of all work performed and/or information gathered up to that point? It’s even worse when…

  • Dan Sheehan
  • 10/27/2018

Lingering/Orphaned In-Place Holds on mailboxes blocking cleanup/moves
5 (1)

  • Exchange

This blog post covers two different scenarios when an In-Place Hold is removed off an eDiscovery Mailbox Search, but that corresponding entry is not cleaned up properly on the mailboxes formerly targeted by that Mailbox Search. When this happens, you…

  • Dan Sheehan
  • 10/26/2018

Confirming/Validating PowerShell Get-Credential Input Before Use
5 (2)

  • PowerShell

Have you ever used Get-Credential to generate credentials in PowerShell, only to find out when you go to use those credentials that they were invalid? It’s even worse when you are doing this in a script where the script throws…

  • Dan Sheehan
  • 06/23/2018

Tracking and Controlling PowerShell Script Execution Progress via XML
5 (1)

  • PowerShell

Have you ever wanted to track the progress of one of your multi-step/stage PowerShell scripts on a computer, just in case during the middle of the steps the script (or PowerShell itself) terminates unexpectedly, or something randomly reboots the computer?…

  • Dan Sheehan
  • 06/10/2018

PowerShell code to wait for background process to finish and continue
0 (0)

  • Exchange, PowerShell

While this code was originally developed for an Exchange script, you can use it for any PowerShell script where you want to make sure some background process/service is finished before proceeding on with the rest of your script. I recently…

  • Dan Sheehan
  • 02/18/2018

PowerShell error “String was not recognized as a valid DateTime.”
0 (0)

  • PowerShell

In some of my scripts, such as Get-AutoDiscoverRecords.ps1, I convert the string output of another command (such as an LDAP query) into a Date and Time variable by using the type cast [DateTime]. For example the following will turn the…

  • Dan Sheehan
  • 09/24/2017

PowerShell determine first & last days of the current calendar quarter
0 (0)

  • PowerShell

Time for some fun with PowerShell. 🙂 Updated to include code Eric created to determine the last day of the quarter at the bottom of this entry My colleague Eric Powers has PowerShell script that queries a bunch of data…

  • Dan Sheehan
  • 09/21/2017

Leverage the PSVCP for Exchange Cumulative Update Distribution
0 (0)

  • Exchange, PowerShell

This is the second in a two-part blog post covering the topic of how to maintain version control over PowerShell scripts and Exchange 2016 deployment files in a large environment. The first blog post should be reviewed before continuing here…

  • Dan Sheehan
  • 07/29/2017

Maintaining Version Control Over Distributed PowerShell Scripts
0 (0)

  • PowerShell

This is the first in a two-part blog post covering the topic of how to maintain version control over PowerShell scripts and Exchange 2016 deployment files in a large distributed environment (the second post titled Leveraging the PowerShell Script Version…

  • Dan Sheehan
  • 07/27/2017
1 2
Next
No results

Recent Posts

  • Leverage On-Premises AD OU/Domain Structures for EXO Administration
  • PowerShell: Taking Control of CTRL-C.
  • Lingering/Orphaned In-Place Holds on mailboxes blocking cleanup/moves
  • Confirming/Validating PowerShell Get-Credential Input Before Use
  • Tracking and Controlling PowerShell Script Execution Progress via XML

Recent Comments

    Archives

    • April 2021 (1)
    • October 2018 (2)
    • June 2018 (2)
    • February 2018 (1)
    • September 2017 (2)
    • July 2017 (2)
    • April 2015 (1)

    Categories

    • Exchange (5)
    • PowerShell (9)

    DISCLAIMER: The views and opinions expressed here are that of the author and not of Microsoft Corporation unless specifically specified as such.

    Copyright © 2023 Dan Sheehan's Blog - Privacy Policy - Powered by CreativeThemes