Use-Module

I have made another PowerShell function available publicly on GitHub under the GNU General Public License (GPL) v3. This function is very useful when additional modules are needed in PowerShell. Use-Module will check if they are installed, if not it will attempt to install and import them. If the module is already installed, it will… Read More »

Write-ToLog

I have made a function “Write-ToLog” available publicly on GitHub under the GNU General Public License (GPL) v3. This function is useful for making easy, consistent writes to a log file. You can add this function to your PowerShell scripts to help with your logging. You can find more information on this functions usage on… Read More »

Invoke-StartService

I have made the script “Invoke-StartService.ps1” available publicly on GitHub under the GNU General Public License (GPL) v3. This script is very useful for ensuring critical services are running on servers. You can add a scheduled task to run this script periodically as needed, to ensure your required service is started. You could also use… Read More »

Setup Samba share on Linux

Samba is an open source tool that allows sharing of files and printers to Windows based computers on the same network. It needs to be installed on the Linux server that hosts the files to be shared. The steps shown in this article were performed on a Debian 10 install, your distribution may require a… Read More »

Start-Service

When a particular service keeps stopping and you haven’t yet found why, you can use the following script to check the service and start it if stopped. Just run the service with the Service Name (not the Service Display Name) in quotes as the argument. Usage: Note: As this script needs to interact with system… Read More »

Microsoft Office 365 offline install

I have just updated a batch script I wrote a while back which can be put on a thumb drive (or just run from a folder) along with the office deployment tool setup file. Using it you can download the sources and install Office while offline (some of the companies we work with still have… Read More »

Batch operators and symbols

The following tables list the batch operators and other useful batch symbols. Arithmetic Operators Operator Description Example + Addition of two operands 1 + 2 = 3 – Subtracts second operand from the first 2 – 1 = 1 * Multiplication of both operands 2 * 2 = 4 / Division of the numerator by… Read More »

Get Users Security Identifier (SID)

To find the SID for a user on the system, Open Command Prompt and type: To find the SID for a user group on the system, type: To get the username from the SID:

Outlook Anywhere MSSTD URL keeps resetting

If Microsoft Outlook MSSTD URL keeps resetting to a different URL than intended, check the URL being set by the Exchange Server by entering the following command into Exchange Management Shell: The current MSSTD URL will be shown under the CertPrincipalName column. Change the URL to in the intended URL by issuing the following command:… Read More »

SBS 2011 – Remove Autodiscover

One of the issues you will run into when migrating from an on premises Exchange 2010 server on SBS 2011 is that Outlook will not autodiscover the correct Office 365 server settings. To remove the autodiscover for on premises Exchange to allow the use of autodiscover for Office 365 open Exchange Management Shell as Administrator… Read More »