Skip to content

Gene Laisné

Azure and PowerShell goodness!

RSS

  • RSS - Posts
  • RSS - Comments
  • HOME
  • About
Main Menu

PowerShell

PowerShell

A better logging method

June 17, 2013February 21, 2021 - by Gene - Leave a Comment

Recently, I was asked to make some changes to lots of users in Active Directory. For output, they wanted a log of everything that was changed and a log of …

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
A better logging method Read More
PowerShell

PowerShell: get group membership using .NET

August 1, 2012February 21, 2021 - by Gene - Leave a Comment

Hi All, So recently I needed to get all the members of a group and all the members of the groups that a members of each of those groups… right …

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
PowerShell: get group membership using .NET Read More
PowerShell

Sort PowerShell output by property name

May 24, 2012February 21, 2021 - by Gene - Leave a Comment

Using the exchange command ‘get-mailbox’ or the single-line version… –Gene

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
Sort PowerShell output by property name Read More
Exchange 2007 / Exchange 2010 / PowerShell

Exchange 2010 New-MoveRequest and the dumpster

February 27, 2012February 21, 2021 - by Gene - Leave a Comment

So, you’re migrating from Exchange 200* to Exchange 2010 and you’re using the new fangled “New-MoveRequest.” You might have some questions about the dumpster. You know that thing that if …

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
Exchange 2010 New-MoveRequest and the dumpster Read More
Exchange 2010 / PowerShell

Simplify creating a remote PowerShell connection (part 1)

February 17, 2012February 21, 2021 - by Gene - Leave a Comment

For this example, I’ll be establishing a connection to Exchange 2010. My problem is that I’m lazy and that’s why I always script things out. the function is no different. …

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
Simplify creating a remote PowerShell connection (part 1) Read More
Exchange 2010 / PowerShell

RBAC Helper #4 Who What Where for Role Groups

January 26, 2012February 21, 2021 - by Gene - Leave a Comment

So, This is a drill down of information from a RoleGroup. With this script, you will be able to see Who is a member of the RoleGroup, What Commands The …

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
RBAC Helper #4 Who What Where for Role Groups Read More
Exchange 2007 / Exchange 2010 / PowerShell

Get a count of mailboxes by Exchange 2010 database

January 18, 2012February 21, 2021 - by Gene - Leave a Comment

Results:

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
Get a count of mailboxes by Exchange 2010 database Read More
Exchange 2010 / PowerShell

RBAC Helper #2

December 23, 2011February 21, 2021 - by Gene - 1 Comment

So, we got the role entries for the management role, let’s now find out what management roles have a specific role entry. Basically, this is the revers of RBAC Helper …

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
RBAC Helper #2 Read More
Exchange 2007 / Exchange 2010 / PowerShell

Get 1 user from each database on an Exchange 07 server

December 1, 2011February 21, 2021 - by Gene - Leave a Comment

Needed to test searching in some databases so I needed one user from all the databases on one server…

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
Get 1 user from each database on an Exchange 07 server Read More
Exchange 2010 / PowerShell

RBAC helper

August 11, 2011February 19, 2021 - by Gene - 3 Comments.

Quick way to get all the Management Role Entries in a Management Role. Think of it as getting a list of what a Management Role is capable of.

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Tumblr (Opens in new window) Tumblr

Like this:

Like Loading...
RBAC helper Read More

Posts pagination

Previous 1 2 3 Next
  • Popular
  • Comments
  • Tags

Rename a distribution group in Exchange with Powershell

April 24, 2014February 19, 2021

Viewing reports in Windows Server 2012 WSUS

December 4, 2012February 21, 2021

Advanced Automation Using Windows PowerShell 2.0

June 21, 2011February 21, 2021

RBAC helper

August 11, 2011February 19, 2021

10 tips for better PowerShell functions… (James O’Neill)

June 22, 2011February 21, 2021

CSU Scott - Rename a distribution group in Exchange with Powershell

This was probably written in the Powershell V2 era. Confirm is now provided by default and could be removed? param(…

JonRey - Rename a distribution group in Exchange with Powershell

Just to confirm (pun intended?), I am getting the same error. No matter what I do (even trying get-help rename-distributiongroup),…

Shahab Q - connecting disabled mailbox works… mostly.

Gene, many thanks for this command! This helped me out with a mailbox move did that did not finish properly…

Tim - Viewing reports in Windows Server 2012 WSUS

Thanks a lot! Had the same struggle.

Marc Vanderstraeten - Rename a distribution group in Exchange with Powershell

Found solution :-) Replace $Confirm with $MyConfirm everywhere and run ;-) PS: Probably because of the reserved word in PS

ASCII art Distribution Groups Exchange 2010 Fun PowerShell

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Search

Copyright © 2025 Gene Laisné.
Powered by WordPress and HitMag.
%d