Month: October 2018

Halloween scary PowerShell

Ok, so not sure if it’s all that scary, but interesting what you can do from a security audit stand point. If you Get-Member of a file, you’ll notice something interesting: You can ‘set’ the ‘Last Access Time’ of a file! That can seem scary, especially if do an audit on someone’s last accessed file

How to create consistent signatures and send them from other mailboxes

A while ago, I created a description process on how to create signatures for Outlook, how to deploy them to many people at once, and for those users to be able to send from another mailbox. The article is now posted on the Exchange Team Blog Site with the actual link here. Sometimes the information we PFE’s build

Opening multiple files in ISE

Q: Is there a way to open a bunch of files in ISE quickly? A: Yes. Get-ChildItem -Path C:\MyWork -Filter My*.ps1 | ForEach-Object {ise $_.FullName} In this case, any files that start with ‘My’, under the ‘c:\MyWork’ folder, will run through the foreach-object loop and open those files. You can change the path or change the filter options to

cmdlet: Remove-DistributionGroupMember

Q: Is there a way to remove a user from a distribution group? A: Yes, there is the built in Remove-DistributionGroupMember cmdlet available, both for an on premises Exchange Server environment and Exchange online tenants. Remove-DistributionGroupMember -Identity GroupName -Member UserName  

To archive or not to archive…

This article is about choice and how ‘it depends’ for different environments. The philosophical question of how a roll of toilet paper should be placed on the roller; have the paper dispense over the top of the roll, or from below. Every version of Exchange introduces new paradigms and options that can have impact on

PowerShell: Invoke-RestMethod vs Invoke-WebRequest

Was talking with some engineers the other day and the question came up of the differences between Invoke-RestMethod vs Invoke-WebRequest and which cmdlet to use when. Some detailed information from Billy York, but the short answer is: REST for well-formed objects, WebRequest for html. Specifically Rest-Method is intended for REST endpoints (JSON, XLM, etc.) and can

cmdlet: Add-DistributionGroupMember

Q: Is there a way to add users to a distribution group? A: Yes, there is the built in Add-DistributionGroupMember cmdlet available, both for an on premises Exchange Server environment and Exchange online tenants. Add-DistributionGroupMember -Identity GroupName -Member UserName  

DAG DB’s flipping all the time randomly for no apparent reason

I have run into this issue several times in my travels and want people to be aware of this problem. In a DAG (Database Availability Group), if your databases are randomly mounting or flipping from one server to another, including across datacenters, you may be allowing your Network Interface Card (NIC) to go to sleep.

New Snipping tool

Just got my notification that Windows 10 is implementing a new snipping tool. The snipping tool was introduced in Windows Vista and is now being updated with the ‘Snip & Sketch’. You can download the toolset from here: https://www.microsoft.com/en-us/p/snip-sketch/9mz95kl8mr0l#activetab=pivot:overviewtab

cmdlet: Get-DistributionGroupMember

Q: Is there a way to list or get members in a distribution group? A: Yes, there is the built in Get-DistributionGroupMember cmdlet available, both for an on premises Exchange Server environment and Exchange online tenants. Get-DistributionGroupMember -Identity GroupName -Member UserName