Tag: Powershell

Hi All, A quick powershell script, that if you update the path (either a network machine/server or local) and specifiy location to copy items, it will copy with a date range, current default is 01/01/2017 – 01/01/2019. Please feel free to copy and update to use accordingly. ################################## # )___/( # # {(@)v(@)} # # […]

Read more

Prerequisites prior to installing Exchange 2016 Ensure all patching is completed and the CU level has met the requirements (See Requirements for Exchange 2016 if unsure) If you have the media extracted to a location,  lunch Command prompt with Admin rights, and run the following from the Exchange Setup folder location. Setup /PrepareAD /IacceptExchangeServerLicenseterms – […]

Read more

List all Local Accounts on a Server Copy the following Below into text pad and save as a .ps1, run script accordingly. Update network path if required. Echo “Input computer name: ” $Computer = Read-Host $Credential = Get-Credential Get-WmiObject -Class Win32_UserAccount -Filter  “LocalAccount=’True’” | Select PSComputername, Name, Status, Disabled, AccountType, Lockout, PasswordRequired, PasswordChangeable, SID | […]

Read more

Very small and basic script that pulls last logon times. Copy the code and save as a .ps1 “Get-ADUser -Filter * -Properties * | Select-Object Name, @{Name=”Last Successful Logon”;Expression={[datetime]::FromFileTime($_.’lastLogonTimeStamp’)}} | Sort-Object “Last Successful Logon””  

Read more
Inserting and registering product key for Microsoft Exchange 2013/2016 using PowerShell

In the past, I have had issues where Exchange 2013/2016 will not take the license key in the Exchange Control Panel. Luckily it’s easy to do it with Exchange powershell, do the following: Run Exchange Powershell as Administrator, Run the following command, replace ServerName with your server and your insert your key. Set-ExchangeServer ServerName -ProductKey Key […]

Read more

Hi All, A short guide here on how to move Resource mailboxes with ease using PowerShell, this also can be done with any mailbox user. Pretty much follow the commands like so, ensure you know the Alias of the Mailbox you are moving, your Server FQDN and your Target Domain in Office 365. $LiveCredential = […]

Read more