Monthly Archives: March 2016

Admin Admin Podcast #039 Show Notes – SPF and DKIM

A Table which compares Raid:


Al Has been:

  • replaced a disk in RAID 10 array
  • Been looking at AD acounts locks out using this software
  • Ways to find out who has logon on to what PC, BATCH or Powershell

Jerry Went to Ansiblefest in London and learnt:

Andy been

Dealing with other tradesman
Trouble with customers not paying ISP bill
Play with the SC command

Sender Policy Framework

A example SPF Records: IN TXT “v=spf1 ip4: ip4: a -all”

DomainKeys Identified Mail

How it works

The new podcast Al has found Root Access Podcast and the Belkin Stride360° Messenger Bag he mention 



Admin Admin Podcast #038 Show Notes – WOW Scripts are cools!

  • Al been playing with powershell to automate things and he loving it!
  • Andy has been playing with Linux on old hardware and listen this episode of Linux Luddites about ReactOS
  • Jerry has been looking at rolling out Ansible to manage his servers at work

Al Script to create AD accounts

How to Connect to office365 via powershell

Scripts to assign a license office 365

Google dig tool

Al used “netstats – a” to find what IP address was listening on port 25

Allow external reply in Exchange 2010

profwiz  Tool to migrate local user profiles to a Domain Profile


Links to Promise Guide to Raid

The Expanse – SCI-FI Show Jerry Was talking about


PowerShell Script to Create new users in Active Directory

This scripts create users in active directory by look for the details listed in a CSV file which can be download here, and add a proxy email address, add to AD Groups and place them in a OU called temp OU.

You will need to change a number of values to match you environment:

  • OU=TempOU,DC=domain,DC=local
  • Name of the groups you would like them to be added to

If I had more time I would add in variable so you can easily change the value (may be in the future)

$csv_info = import-csv "C:\PSScripts\newusers.csv"
foreach ($line in $csv_info) 
    $name = $line.GivenName + " " + $line.Surname
    $samaccountname = $line.GivenName + "." + $Line.surname
    $emailaddress1 = $samaccountname + ""
    $emailaddress = $emailaddress1.ToLower()
    $GROUP1 = $line.GROUP1
    $GROUP2 = $line.GROUP2
    write-host $name
    write-host $samaccountname
    write-host $emailaddress
    New-ADUser -GivenName $line.GivenName -Surname $line.Surname -Name $name -DisplayName $Name -UserPrincipalName $emailaddress -SamAccountName $SamAccountName -EmailAddress $emailaddress -Enabled $True -AccountPassword (ConvertTo-SecureString $line.Password -AsPlainText -force) -path 'OU=TempOU,DC=domain,DC=local'
    Set-ADUser $samaccountname -add @{ProxyAddresses="SMTP:$emailaddress"}
  If($GROUP1 -eq "YES")
   Add-ADGroupMember -Identity "GROUP1" -Member $samaccountname
   write-host "Added to GROUP1"

 If($GROUP2 -eq "YES")
   Add-ADGroupMember -Identity "GROUP2" -Member $samaccountname
   write-host "Added to GROUP2"

PowerShell Script to Assign License in Office365

Use the following script to Assign License in Office365

First connect to Office 365 via PowerShell


This list the current license available in Office 365.

Set-MsolUser -UserPrincipalName -UsageLocation UK

You first need to set the users to their local location in my case UK

Set-MsolUserLicense -UserPrincipalName –AddLicenses “OFFICE365DOMAIN:O365_BUSINESS_ESSENTIALS”

This command assigns the licesnes you will need