Office 365 activation issue

run cmd as admin

cd C:\program files\Microsoft office\office16 (or program files (x86), whatever’s relevant)

type in: cscript ospp.vbs /dstatus

this generates a list of all the license keys install on your pc. You want to look at the last line of each paragraph: “Last 5 characters of installed product key: *

type in: cscript ospp.vbs /unpkey:* (whatever those 5 chars where). repeat this for every license key installed.

Once they’ve all been removed. Open an office program, sign back in and you’re done

10 Things that require zero talent

  1. Being on Time
  2. Work Ethic
  3. Effort
  4. Body Language
  5. Energy
  6. Attitude
  7. Passion
  8. Being Coach-able
  9. Doing Extra
  10. Being Prepared

Convert AD synced office 365, to cloud only

install “Microsoft Online Services Sign in Assistant for IT Professionals”
Open Powershell (Admin)

Enter the following commands…

Install-Module MSOnline
Install-Module AzureAD
Import-Module AzureAD
Connect-MsolService
Get-msoluser (to test connection. Should list users)

NOTE:- Disable the Microsoft ADSync service!!

Enter the following commands…

Set-MsolDirSyncEnabled –EnableDirSync $false

get-msolcompanyinformation (to check if the sync is really gone ,it will say the sync status)

Clean up the users and groups (sbs etc)

Match a New AD user to an existing 365 user

To match a new AD user to an existing 365 user.

  1. match UPN and smtp Alias
    2 install “Microsoft Online Services Sign in Assistant for IT Professionals
    3 Open Powershell (Admin): Install-Module -Name AzureAD
    4 connect to AD: Connect-MsolService
    5 Return the immutable ID: Get-MsolUser -UserPrincipalName john@cesarhara.com | select ImmutableID ::(should look like this qxZB3Nrxi0+OQHswuBLgrg==)
    6 Convert to HEX:
    7 Stop ADSYNC (open it to pause sync)
    8 insert the Hex string into Local AD on the required user, attributes tab, look for mS-DS-ConsistencyGuid.
    9 Add the account into a synched OU and enable sync to test.

Remove Spam Email from Virtualmin

just run

/etc/webmin/virtual-server/spamclear.pl –debug

Make sure policy is set in Mailbox Cleanup

Send Mikrotik config via email

This script will export the config from your mikrotik router and email it to your email address. The scheduled time between exports and email sending can be decided by you. The exported file will take the name of your system identity ending in the extension .rsc

/export file="$[/system identity get name]"
/tool e-mail send to="router_configs@youremailaddress.com" subject="$[/system identity get name] export" \
body="$[/system clock get date] $[/system identity get name] configuration file" file="$[/system identity get name].rsc"

Set physical port speed on Mikrotik

(more…)

Difficulty setting up a new 365 account manual migration (Autodiscover issue)

(more…)

Tick Fonts

(more…)

Depression

(more…)