I’ve got a few sites where I’ve got PowerShell scripts scheduled to run on a regular basis. These have all been new things I’ve setup in the last week. Imagine my surprise when I find that the scripts are “still running” despite the fact they have done their job. It turns out that the commands you use to run a PowerShell script automatically can leave the … [Read more...]
How can I reset a computer accounts password with Active Directory?
Have you ever come across scenarios where the computer account password is out of sync with the Active Directory version of it? Or maybe you’ve done something silly like build two machines with the same name and added them to the domain one after the other? Either way – there’s a few ways to fix it but I recently discovered that Microsoft had provided an update to … [Read more...]
PowerShell commands for Windows Server 2012 R2 Essentials
Did you know that Windows Server 2012 R2 Essentials has a stack of PowerShell commands designed just for it? This means it becomes very easy to build scripts to help you deploy your WS2012R2 Essential servers even faster. The commands will allow you to do a host of tasks including Managing Office 365 User accounts Managing Hosted Email Accounts Configuring the … [Read more...]
Powershell gives “File cannot be loaded because the execution of scripts is disabled on this system”
You will get this on a server as standard error if you are trying to run scripts that you’ve created yourself. To get around the issue, you need to change the execution policy on the server to allow you to run unsigned scripts. Use the command below to do this. Set-ExecutionPolicy Unrestricted … [Read more...]
Useful Powershell commands for Exchange
Here’s a few useful commands I regularly use in Powershell for Exchange management. How can I list all users mailboxes on a given server? Get-Mailbox –servername SERVER1 How can I list a users mailbox size? Get-MailboxStatistics –identity “Wayne Small – SBSfaq.com” | select TotalItemSize How can I list all users mailbox size on a given server? This is a … [Read more...]