The username and password needs to be encoded and sent in BASE64So if using username as the username it would become dXNlcm5hbWU= in BASE64 and a password of password would become cGFzc3dvcmQ= in BASE64 You can use this handy BASE64 encoding tool to do the encoding for you.
Technical
# Average CPU Load Notification.# This will email you once when average CPU Load reaches the set CPU Threshold value.# When average CPU Load drops back below CPU Threshold the email notification is reset.# Set up the scheduler to run this at 1-5 second intervals (Sample Rate).# Original credit goes […]
The below can be used to add a local user to a Mikrotik using a script or at the CLI /user add name=setusername password=setpassword group=write Just change “setusername” to the desired name and “setpassword” to the desired password (be warned this is in plain text and care needs to be […]
The below can be used in a schedule or script to control rules, just change “enable” to “disable” to disable the rule and “BlockKids” is the comment so change to suit your needs. /ip firewall filter enable [find comment=”BlockKids”];
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: […]
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 […]
To match a new AD user to an existing 365 user. 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 […]
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 […]
In an elevated CMD type Net stop bit Net stop wuauserv Net stop cryptsvc Rename systemroot\softwaredistribution to softwaredistribution.old And systemroot\system32\catroot2 to catroot2.old Then Net start bit Net start wuauserv Net start cryptsvc And restart pc
In a terminal windows or via ssh, enter the below line ip firewall export file=firewallrules then find a file called “firewallrules.rsc” in your files folder.
After completing the BMR process don’t restart. Select Command Prompt. regedt32<CR> Highlight HKEY_LOCAL_MACHINE, File>Load Hive>[restored volume]:\Windows\System32\Config\SYSTEM>Open>Key Name = Restored_HKLM>OK. Expand Restored_HKLM\ControlSet001\services and ensure the following are set: If restored to a (VMWare) VM then ensure intelide>Start = 0 and LSI_SAS>Start = 0; msahci>Start = 3 and pciide>Start = 3 NB: […]