Our IT journal

Shutting down or rebooting Dell SCV3020

For shutting down or rebooting the appliance, launch Dell Storage Manager. Select the Actions icon: Then go to Actions -> System Select the second option      

Configuring an Edge Router for L2TP IPSec VPN using AD authentication via Radius

set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret <yourpresharedkey> set vpn l2tp remote-access authentication radius-server key 82LButmnybLpXr%[email protected]@7Tu%IjqIdSUpq set vpn l2tp remote-access authentication radius-server port 1812 set vpn l2tp remote-access authentication mode radius set vpn l2tp remote-access client-ip-pool start set vpn l2tp remote-access client-ip-pool stop set vpn l2tp remote-access dns-servers … Read More

Powershell mass update UPN in AD

Import-Module ActiveDirectory $oldSuffix = “myolddomain.local” $newSuffix = “” $ou = “DC=yourdomain,DC=local” $server = “Hostname” Get-ADUser -SearchBase $ou -filter * | ForEach-Object { $newUpn = $_.UserPrincipalName.Replace($oldSuffix,$newSuffix) $_ | Set-ADUser -server $server -UserPrincipalName $newUpn }  

Can’t Create an Office 365 group

I was getting ready to create an Office 365 group for a client, using a global administrator account. However, this user had no license, and it was just to manage users. No matter what, I couldn’t create an Office 365 group from the group section.   Once you assign a temporary license to the user and log back in, it … Read More

Enabling DKIM on Office 365 for spoofing protection

DKIM (Domain Key Identified Mail) is used to detect email spoofing. The recipient validates the signature against the public key registered on the DNS for the sender. To enable DKIM on Office 365, access your portal and go to the exchange admin center. On the main screen, select “dkim”, and then select the domain you want to work on. On the … Read More

Extend the SBS grace time period

Sometimes we may need a bit more than the 21 day warning that SBS gives. The following method breaches the EULA with Microsoft and should only be used for lab environments. We will start receiving messages like “The server was shut down because it did not comply with the EULA. For more information, contact Microsoft.” This means that either the … Read More

Install the vSphere client on a Domain Controller

Sometimes, we may be in the need of installing the vSphere Client on a domain controller. You may have received a “vSphere Client cannot be installed on a Domain Controller” error by the installer. To be able to do this, you just need to open up an administrator command prompt and type the following in the same folder than the … Read More

Pressing ALT + F1 on a remote ESXi console doesn’t bring up the console prompt

Rarely when trying to access a server console via ALT + F1, the server may appear nonresponsive, however, sometimes this is just a false alarm. This is more likely happening when using a KVM device as it may send incorrect characters over. As the VMware documentation mentions:   Connect to the console of the VMware ESX host. At the VMware … Read More

Use PowerShell to post to a Slack channel with extra args

You need to create an application in Slack with incoming webhooks. Enable the application and confirm your identity. Copy that webhook. Invoke the script with system variables to post extra content for alerts, automation, escalations, etc. $message = “`n” + $args Set-StrictMode -Version Latest $payload = @{ “channel” = “#alerts”; “icon_emoji” = “:inbox_tray:”; “text” = $(Write-output “$message”); “username” = “User”; … Read More

Keep-alive script for Windows VPN connections

$ServerName = “” ##### Script Starts Here ###### foreach ($Server in $ServerName) { if (test-Connection -ComputerName $Server -Count 2 -Quiet ) { write-Host “$Server is alive and Pinging ” -ForegroundColor Green } else { Write-Host “$Server is down.” Write-Host “Disconnecting…” rasdial.exe “Woodside” /DISCONNECT Write-Host “Connecting…” rasdial.exe “Woodside” user vpnpassword } }