Correctly Renaming a Domain Controller

Source: Correctly Renaming A Domain Controller For A Seamless Easy Migration (theictguy.co.uk)

Step 1: Getting ready.

Open a command prompt. (Windows key+r (run) + cmd)

Step 2: Adding an alternate computer name.

SYNTAX : netdom computername <currentDC FQDN> /add:<newDCName FQDN>

2021 11 08 14 07 22 Correctly Renaming A Domain Controller For A Seamless Easy Migration and 1 more
renaming a domain controller

In the command prompt, type (minus quotes) “netdom computername wrongname.domain.local /add:server.domain.local

This should return with “Added (NAME) as an alternate name for the computer. The command completed successfully.

2021 11 08 14 08 56 Correctly Renaming A Domain Controller For A Seamless Easy Migration and 1 more

To check the name has applied correctly run “netdom computername server.domain.local /enumerate” you should then see there are two names listed.

2021 11 08 14 09 27 Correctly Renaming A Domain Controller For A Seamless Easy Migration and 1 more
renaming a domain controller

Step 3: Make the new name the primary.

SYNTAX: netdom computername <currentDC FQDN> /makeprimary:<newDCName FQDN>

Type netdom computername wrongname.domain.local /makeprimary:server.domain.local

IMPORTANT: This command will return successful, and warn you that you need to reboot immediately, as it may not authenticate logons (very important if only DC in forest)

2021 11 08 14 11 15 Correctly Renaming A Domain Controller For A Seamless Easy Migration and 1 more
netdom computername wrongname.domain.local /makeprimary:server.domain.local

If the command is successful you will get the below message.

2021 11 08 14 11 37 Correctly Renaming A Domain Controller For A Seamless Easy Migration and 1 more

Step 4: Reboot the server.

Pick your poison. I like “shutdown /r /t 0” in the cmd.

2021 11 08 14 12 32 Correctly Renaming A Domain Controller For A Seamless Easy Migration and 1 more
shutdown /r /t 0

Step 5: Check new server name.

Go to system properties and confirm new computer name. Or run “netdom computername server.domain.local /enumerate” to see both active names.

2021 11 08 14 13 48 Correctly Renaming A Domain Controller For A Seamless Easy Migration and 1 more
netdom computername server.domain.local /enumerate

Step 6: Remove old hostname.

SYNTAX: netdom computername <newDCName FQDN> /remove:<oldDCName FQDN>

(remember, in a command prompt)

Type “netdom computername server.domain.local /remove:wrongname.domain.local

2021 11 08 14 13 19 Correctly Renaming A Domain Controller For A Seamless Easy Migration and 1 more
netdom computername server.domain.local /remove:wrongname.domain.local

Step 7: Paranoia.

in cmd, run a “dcdiag” to make sure everything is AOK.

Step 8: Clean up.

If you use logon scripts, remember to update the UNC paths with the new server name.

WordPress Preloader Animation with LiteSpeed Cache Solution

I decided to use the Preloader Plus WordPress plugin for this.

I’m writing this because I was trying to add a preloader animation when I realized my caching plugin, LiteSpeed Cache, decided it wanted to do it’s magic which broke the correct lineup of when the CSS file was supposed to make the animation play first. To solve this, we need to stop this CSS file from being cached. Here I’ll demonstrate how to hide this in LiteSpeed Cache.


Below insert your website where you see WEBSITE and enter your admin folder for WP-ADMIN. You may have left your admin folder default in which case it will be wp-admin.


https://WEBSITE/WP-ADMIN/admin.php?page=litespeed-page_optm#settings_tuning

This should land you at your respective Tuning tab within the Page Optimization section of the LiteSpeed Cache plugin on your WordPress, add the following to the CSS Exclusions

preloader-plus.min.css

After you save and purge the cache you should have a fully functional preloader animation!

Congratulations!

EDIT: Then I opened Firefox -_- The loader actually just keeps going and only on one of the websites out of 3 I tested so it must be a setting within LiteSpeed Cache. I will check and see if I can’t fix this then report back. If that doesn’t work then I’ll look into this.

How to Setup WebM for Adobe Premiere or Adobe Media Encoder

WebM

History

For those who don’t know WebM is the open movie format created by Google and is an audiovisual media file format. It is primarily intended to offer a royalty-free alternative to use in the HTML5 video and the HTML5 audio elements. It has a sister project, WebP, for images.

Performance

WebM format provides excellent quality for video files. In addition to that, the playback of this video format is effortless, so the videos in this format can be easily played even on machines with low technical characteristics. This format is perfect for online streaming, and it’s free! Files are

After researching it seems Adobe refused to put this plugin into their Premiere and Media Encoder products, at least up to Adobe Media Encoder 2020 which is the version I tested with.

The solution is to either download a file from this third party company called fnord1. This plugin does not appear to have been updated since 2017 as of the time I’m writing this article so I feel confident in providing the file myself just in case something were to happen to that website there will always be another copy here that is still – up-to-date – hah.

Download WebM Plugin for
Adobe Media Encoder or Premiere

PHP request takes too long to process and is timed out by WordPress

PHP Error

What do you need to do first?

You need to modify the .htaccess file in the main root of your WordPress directory.

# START LiteSpeed Timeout Solution
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 300
php_value max_input_vars 3000
php_value memory_limit 256M

<IfModule Litespeed>
SetEnv noabort 1
SetEnv noconntimeout 1
</IfModule>

set_time_limit(1500)
# END LiteSpeed Timeout Solution

Once completed make sure you refresh your page so it uses the new rules from .htaccess

Your issue should now be resolved!

How to Solve PHP 8.0 Critical Error with cPanel?

Computer Error

PHP 8.0 Causing Critical Error on cPanel Site

Ever seen this critical error before?

Critical Error Message for WordPress
Critical Error Message for WordPress

There are a number of reasons this message can show up. One of the main reasons when switching to PHP 8.0 is due to an extension not being enabled. We can fix that!

  1. login to your control panel
  2. goto Php Selector option
  3. enable nd_mysqli
PHP 8.0 Required Extension to Fix Critical Error - Solution
  1. Once nd_mysqli is enabled your website will start working

Congratulations