PowerShell thought process
One important aspect of leveraging PowerShell is to adjust your mindset. Listed are some topics to consider: Automate: Create scripts, functions, and modules to automate manual tasks. If you function up routine tasks, you and others can quickly and easily complete work duties more efficiently. Delegate: Once the functions and modules are built and deployed,
PowerShell Core Support Lifecycle
Microsoft has updated the life cycle of software to the Modern Lifecycle Policy. The short answer is: faster, more frequent updates mean that version support is shorter. This makes sense in today’s agile software development environment. Instead of a three-year cycle for applications, and an additional 10+ years of support, the new agile process of
cmdlet: Remove-InboxRule
Q: Is there a way to remove an Inbox rule for a mailbox? A: Yes. You can use the Remove-InboxRule cmdlet to remove an Inbox rule from a mailbox. Inbox rules process messages in an Inbox based on conditions specified and take actions. Removing an Inbox Rule can assist in troubleshooting end user’s mailboxes. Remove-InboxRule -Mailbox
cmdlet: Enable-InboxRule
Q: Is there a way to enable an Inbox rule for a mailbox? A: Yes. You can use the Enable-InboxRule cmdlet to enable an Inbox rule. Inbox rules process messages in an Inbox based on conditions specified and take actions. The enable/disable InboxRule cmdelts, assist in troubleshooting end user’s mailboxes. Enable-InboxRule "Move To Junk Mail" -Mailbox
cmdlet: Disable-InboxRule
Q: Is there a way to disable an Inbox rule for a mailbox? A: Yes. You can use the Disable-InboxRule cmdlet to enable an Inbox rule. Inbox rules process messages in an Inbox based on conditions specified and take actions. The enable/disable InboxRule cmdelts, assist in troubleshooting end user’s mailboxes. Disable-InboxRule -Identity "MoveAnnouncements" -Mailbox "Joe@Contoso.com" This example
cmdlet: Set-InboxRule
Q: Is there a way to change or set an Inbox rule on an end user’s mailbox? A: Yes. The Set-InboxRule cmdlet allows you to modify, enable, disable, or even create a rule with this cmdlet. Other than the Get-InboxRule cmdlet, one could argue, the Set-InboxRule is the only other cmdlet you need to know
cmdlet: New-InboxRule
Q: Is there a way to create a new Inbox rule for a mailbox? A: Yes. The New-InboxRule cmdlet creates an Inbox rule to process messages and perform tasks for an Exchange mailbox. This cmdlet works both for on premises and online versions of Exchange. Actions can be taken such as move, copy, or even
Protect OU’s from accidental deletion
Here is a quick and easy one line PowerShell script to set all of the Organizational Units (OU's) in your Active Directory (AD) to protect from accidental deletion. I know others have posted similar information, but it never hurts to raise awareness of this setting. And also, since I run into many customers that do
cmdlet: Get-InboxRule
Q: Is there a way to get a list of Inbox rules from a mailbox? A: Yes. The Get-InboxRule is available both on premises and online versions of Exchange. This cmdlet allows you to review all or specific Inbox rules on an end user’s mailbox. Get-InboxRule -Mailbox Joe@Contoso.com This example retrieves all Inbox rules for the
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