Office 365: Use Content Search to delete unwanted Emails from Organization As an admin you can use the Content search located under Security & Compliance to search for and delete email message from select or all mailbox in your organization. This is particularly useful to remove high-risk emails such as: Message that contains sensitive data […]
Tag: PowerShell
Here are some quick steps to installing PowerCLI onto your computer to get you started. I performed the steps listed below on a Windows 10 Computer. Overview VMware PowerCLI is a command-line and scripting tool built on Windows PowerShell, and provides more than 600 cmdlets for managing and automating vSphere, vCloud, vRealize Operations Manager, […]
In this short write up I will go over steps to demote a Server 2012 domain controller. If you have worked in Active Directory and Windows Domain Administration over the years you may recall that in previous version of Windows Server that you would use the command line tool of ‘DCPROMO’ to promote or demote […]
Use: Listing account lockouts in Active Directory Unlocking locked out accounts # Open PowerShell or PowerShell ISE with an account with rights to unlock accounts # Import the Actice Directory Module to PowerShell # Import-Module ActiveDirectory # # Run the Search-ADAccount command to search for accounts that are locked out # Accounts locked out […]
The following simple script will iterate though your vCenter environment and remove the floppy disk from VMware guest machines that are in a powered off state. Script text: I used Windows PowerShell ISE Set-ExecutionPolicy RemoteSigned #may require running as administrator Import-Module VMware.VimAutomation.Core Connect-VIServer -Server ‘your.server.here’ $off = Get-VM | where {$_.powerstate -eq “PoweredOff”} $floppy = […]
And… its time to purge those 365 deleted users. Although we can wait for the retention policy to do it for us. I wanted to do this “now”. I had wrote the following steps in the past and thought I would share here. [Press Start] To delete the account for one or more users Sign […]