Relative Content

Technical

Migrate Windows DHCP server

A few weeks ago at work, I was tasked with the project of decommissioning one of our older Windows Server 2008 machines and upgrading it to Windows 2012. I was initially a little worried, seeing as this server ran a lot of key roles, such as DHCP, DNS, was a Domain Controller, and also acted […]

Set AD Attributes

You can also view and set these values with PowerShell, provided you have the ActiveDirectory module installed. View: Get-ADUser <username> -Properties extensionattribute1 Set: Set-ADUser <username> -Add @{“extensionattribute1″=”Your Value Here”} Clear: Set-ADUser <username> -Clear extensionattribute1

Mikrotik VPN place rule before dummy rule

/ip firewall filter add chain=forward dst-address=”remoterange” src-address=”localrange” place-before=0 /ip firewall filter add chain=forward dst-address=”localrange”¬†src-address=”remoterange” place-before=0

Adding a USB backup drive to SBS backup

Add a new disk to the backup schedule by running the wbadmin command from an elevated command prompt. Run the following command from an elevated command prompt to determine the Disk Identifier of the new disk: wbadmin get disks Based on the output, locate the disk that will be added to the scheduled backup. Make […]

Change Centos IP address

In common situation, “system ip address” is the ETH0 address. So edit /etc/sysconfig/network-scripts/ifcfg-eth0 with your favourite text editor and run service network restart ps don’t forget to change default gw also, it’s located in /etc/sysconfig/network.

Routerboard SNTP Client

How to set the NTP client on a Mikrotik router using the Terminal /system ntp client set enabled=yes primary-ntp=###.###.###.### secondary-ntp=###.###.###.### Change the ### for IP address’s Once done use the below to check if the settings has been applied /system ntp client print Below are two IP addresess for NTP servers that I use, they […]

What version of Centos is my server running?

This post shows how to find out what version of Centos you are running from the command line. tail /etc/redhat-release This will output the version in a simple format: Centos release 5.10 (Final)  

Remove a folder in Linux

This is the command to remove a folder/directory including its contents, use with caution as you wont get an “are you sure” prompt rm -rf example In the above example it would delete a folder/directory called example. Just change that to your folder/directory name. The below code will do the same as above, but you […]