Month: August 2021

How to pause GIF on Windows, Linux, Mac OS

GIF animation can be used as a visual demonstration of anything: the operation of programs, physical processes, the sequence of actions during repairs or exercise – anything.

GIF animation is like a small looped video without sound. This way of presenting changing data and schemas is very popular because when inserted into the HTML of the page, the GIF is treated like any other image. Yes, modern HTML and modern web browsers also make it easy to embed real videos on web pages, but GIF animation is still popular.

What is inconvenient with GIF images is that the animation cannot be paused (for example, to look at something in fast-changing data), nor rewound (to find a point of interest, and not watch the animation many times in the hope of catching the right moment).

You can save the GIF to your computer and open it with almost any image viewer or web browser: the animation will play fine, but you still cannot pause or rewind it to a certain place.

Program for frame-by-frame GIF animation

In fact, GIF frames are of little use – you can open the animation in the GIMP image editor and you will be shown the individual frames, but thanks to optimization, each frame contains only the difference of the images. In short, GIMP won't help.

But video players will help! For example, Windows users can open GIFs in Windows Media Player.

And in this video player, you can pause the GIF and use the scroll bar to find a specific location.

But there is a more versatile method that works on Windows, Linux, and Mac OS. This is SMPlayer.

SMPlayer is a free media player for Windows, Linux and Mac OS with built-in codecs, which can also play Youtube videos, search and download subtitles, and includes other features like a thumbnail generator and audio and video filters.

You can find the version for Window and macOS on this page: https://www.smplayer.info/en/downloads

On Linux, install SMPlayer from your distribution's standard repositories.

On Debian derivatives (Linux Mint, Ubuntu, Kali Linux), use the command:

sudo apt install smplayer

On Arch Linux derivatives (Manjaro, BlackArch), use the command:

sudo pacman -S smplayer

Save the GIF you want to pause to your computer.

Open SMPlayer and drag your GIF animation file there.

Now you can pause GIF video, jump to any GIF frame.

In the lower right corner, you will see the total duration of the GIF animation.

This method with SMPlayer is cross-platform, you can stop GIF animation in Windows, Linux and Mac OS.

How to block access to my site from a specific bux site or any other site with negative traffic

There are situations when negative traffic comes from certain sites, for example, from bux sites or simply from sites that you don't like. In some cases, such traffic can be dealt with, but not always.

Quite often, there are tasks like “go to a search engine, enter such and such a query, go to such and such a site” in bux sites – this is unlikely to be combated, since this request is difficult to distinguish from ordinary traffic.

But if the request is made directly from the bux site, or is shown in an iframe, then this can be dealt with.

Also, if your site has been added to an aggregator or a link is placed on a site that you do not like, then this method will also work.

For example, a bad site is https://site.click/. To block traffic from this site, you can use the following:

RewriteCond %{HTTP_REFERER} https://site.click/ [NC]
RewriteRule .* - [R=404]

These lines need to be written to the .htaccess file. These are the rules for the mod_rewrite module, which is usually enabled in Apache.

In this case, everyone who came from the site https://site.click/ will be shown the message “404 page not found”. If desired, you can put any other response code instead of 404, for example, 403 (access denied), 500 (internal server error) or any other.

If you want to block access from multiple sites, use the [OR] flag, for example:

RewriteCond %{HTTP_REFERER} https://site.click/ [NC,OR]
RewriteCond %{HTTP_REFERER} anotherdomain\.com [NC,OR]
RewriteCond %{HTTP_REFERER} andanotherdomain\.com [NC,OR]
RewriteCond %{HTTP_REFERER} onemoredomain\.com [NC]
RewriteRule .* - [R=404]

Note that the [OR] flag does not need to be specified on the last line.

Instead of displaying an error, you can redirect to any page of your site, for example, in the following case, all users who come from the site https://site.click/ will be sent to the error.html page of your site:

RewriteCond %{HTTP_REFERER} https://site.click/ [NC]
RewriteRule .* error.html [R]

And the following rules set everyone who came from the site https://site.click/ to redirect to https://natribu.org/ru/:

RewriteCond %{HTTP_REFERER} https://site.click/ [NC]
RewriteRule .* https://natribu.org/ru/ [R]

How to protect my website from bots

In the article “How to block by Referer, User Agent, URL, query string, IP and their combinations in mod_rewrite” I showed how to block requests to a site that match several parameters at once – on the one hand, it is effective against bots, on the other – practically eliminates false positives, that is, when a regular user who is not related to bots.

It is not difficult to block bots, it is difficult to find their patterns that expose the request from the bot. There should have been another part in that article, in which I showed exactly how I assembled these patterns. I wrote it, took screenshots, but ultimately didn't add it to the article. Not because I am greedy, but I just thought that this was at odds with the topic of an article that was not the easiest one, and, in fact, very few people are interested in it.

But the day before yesterday, bots started an attack on my other site, I decided to take action against the bot… I forgot how I was collecting data)))) In general, so as not to invent commands every time, now they will be stored here)) You might find this useful too.

How to know that a site has become a target for bots

The first sign is a sharp and unreasonable increase in traffic. This was the reason to go to Yandex.Metrica statistics and check “Reports” → “Standard reports” → “Sources” → “Sources, summary”:

Yes, there is a sharp surge in direct visits, and today there are even more of them than traffic from search engines.

Let's look at Webivisor:

Short sessions from mobile devices, strange User Agents (includes very old devices), specific nature of the region/ISP. Yes, these are bots.

Identifying of IP addresses of the bots

Let's look at the command:

cat site.ru/logs/access_log | grep '"-"' | grep -E -i 'android|iPhone' | grep -i -E -v 'google|yandex|petalbot' | awk '{ print $1 }' | sort | uniq -c

In it:

  • cat site.ru/logs/access_log — read the web server log file
  • grep '"-"' — we filter requests, leaving only with an empty referrer
  • grep -E -i 'android|iPhone' — filter requests, leaving only mobile ones
  • grep -i -E -v 'google|yandex|petalbot' — remove requests from specified web crawlers
  • awk '{ print $1 }' — leave only the IP address (first field)
  • sort | uniq -c — sort and leave unique ones, display the quantity

In my opinion, everything is pretty obvious, all requests come from the same subnet 185.176.24.0/24.

But now is morning, there is still little data, let's check the log of the web server for yesterday:

zcat site.ru/logs/access_log.1 | grep '"-"' | grep -E -i 'android|iPhone' | grep -i -E -v 'google|yandex|petalbot' | awk '{ print $1 }' | sort | uniq -c

Yes, all bots came from the 185.176.24.0/24 network.

Basically, you can just block this entire subnet and end up there. But it is better to continue collecting data, then I will explain why.

Let's see which pages the bots are requesting:

cat site.ru/logs/access_log | grep '"-"' | grep -E -i 'android|iPhone' | grep -i -E -v 'google|yandex|petalbot' | grep '185.176.24' | awk '{ print $7 }' | sort | uniq -c

zcat site.ru/logs/access_log.1 | grep '"-"' | grep -E -i 'android|iPhone' | grep -i -E -v 'google|yandex|petalbot' | grep '185.176.24' | awk '{ print $7 }' | sort | uniq -c

These commands have new parts:

  • grep '185.176.24' — filter for requests from the attacker's network
  • awk '{ print $7 }' — the requested page in my server logs is the seventh column

The bot requests exactly 30 pages.

We return to the article “How to block by Referer, User Agent, URL, query string, IP and their combinations in mod_rewrite” and block the bot.

But in my case, I can get by with blocking the subnet.

In Apache 2.4:

<RequireAll>
	Require all granted
	Require not ip 185.176.24
</RequireAll>

In Apache 2.2:

Deny from 185.176.24

Keep your finger on the pulse

This is not the first influx of bots that I've been fighting, and you need to remember that the owner of bots changes the bot settings after your actions. For example, the previous time it all started with the following pattern:

  • bots requested 5 specific pages
  • all bots were with Android user agent
  • came from a specific set of mobile operator networks
  • empty referrer

After I blocked on these grounds, the owner of bots changed the behavior of the bots:

  • added URL (now 8 pages)
  • iPhone added as User-Agent
  • the number of subnets increased, but bots still came only from mobile operators

I blocked them too. After that, the bot engine added desktops to the user agents, but all other patterns remained the same, so I successfully blocked it.

After that, the bot owner did not change the behavior of the bots, and after some time (a week or two) the bots stopped trying to enter the site, I deleted the blocking rules.

For further analysis

The command for filtering requests from the specified subnet (185.176.240/24), which have a response code of 200 (that is, not blocked) – useful in case bots change the User Agent:

cat site.ru/logs/access_log | grep '"-"' | grep -E -i 'android|iPhone' | grep -i -E -v 'google|yandex|petalbot' | grep '185.176.24' | grep ' 200 ' | tail -n 10

A variant of the command for compiling a list of IP addresses given at the beginning of this article, but only requests with a response code 200 are taken into account in the command (those that we have already blocked are filtered out):

cat site.ru/logs/access_log | grep '"-"' | grep -E -i 'android|iPhone' | grep -i -E -v 'google|yandex|petalbot' | grep ' 200 ' | awk '{ print $1 }' | sort | uniq -c

Command for monitoring the latest requests specific to bots:

cat site.ru/logs/access_log | grep '"-"' | grep -E -i 'android|iPhone' | grep -i -E -v 'google|yandex|petalbot' | tail -n 10

How the influx of bots affects the site

This time, I reacted pretty quickly – a day after the attack started. But the last time bots walked around my site for a couple of weeks before I got tired of it. This did not have any impact on the position of the site in the search results.

How to install Windows Server Core 2022

How to install Windows Server Core 2022

Let's consider installing a server without a graphical interface and its initial configuration.

Click on the “Next” button.

Click “Install now”.

If you want to install Windows Server 2022 in Server Core mode (no GUI), then you need to select “Windows Server 2022 Standard” or “Windows Server 2022 Datacenter”.

This section covers the installation of Windows Server 2022 Standard. Select “Windows Server 2022 Standard” and click “Next”.

We accept the terms of the license:

There are two installation options:

  • Upgrade: upgrade an existing OS. Available only if you already have a previous version of the server installed. Many people do not recommend this option, as it often brings stability problems.
  • Custom: Fresh OS installation. We will choose this option, since we are doing the installation on a blank disk.

Now you need to select the drive to install. If you have multiple disks or multiple partitions on the same disk, then you need to be careful and choose carefully so as not to accidentally erase a disk or partition that you did not plan to clean up.

In my case, there is only one blank disk, so I just click the “Next” button.

We are waiting for the completion of the installation process.

As with the desktop version, you need to set an administrator password:

Enter and remember the server administrator password twice. Use the Tab key to switch between lines:

When you enter your password and confirmation, press Enter.

The system reports that the password has been successfully changed.

The SConfig utility runs every time the server boots.

Through SConfig, you can configure the network and other properties of the system, but we will not dwell on this, since we will perform all these settings in a more convenient way. We will only change the name of the computer, from automatically generated to more informative.

To change the computer name, at the “Enter number to select an option:” prompt, enter number 2.

Enter the new computer name:

We are informed that the new name will be applied after restarting the computer. To restart your computer right now, type «Y» and press Enter.

Press Ctrl+Alt+Delete to unlock:

Enter admin password:

When you turn on the server, SConfig will start again, if you want to disable SConfig autoloading at login, select option “15) Exit to command line (PowerShell)” from the menu and run the command in the command line:

Set-SConfig -AutoLaunch $false

The next part will discuss how to configure servers. We will not dwell in more detail on configuring Windows Server without a graphical interface in the command line, since the configuration can be done in a convenient web interface.

If you are unable to connect to the server from another computer, then the configuration can be done using PowerShell – this will also be discussed in the next part.

See also: Active Directory comprehensive guide, from installation and configuration to security auditing

How to install Windows Server (Desktop Experience) 2022

How to install Windows Server (Desktop Experience) 2022

Click on the “Next” button.

Click “Install now”.

If you want to install Windows Server 2022 in Server Core mode (no GUI), then you need to select “Windows Server 2022 Standard” or “Windows Server 2022 Datacenter”.

This section covers the installation of Windows Server 2022 Standard (Desktop Experience). Select “Windows Server 2022 Standard (Desktop Experience)” and click “Next”.

We accept the terms of the license:

There are two installation options:

  • Upgrade: upgrade an existing OS. Available only if you already have a previous version of the server installed. Many people do not recommend this option, as it often brings stability problems.
  • Custom: Fresh OS installation. We will choose this option, since we are doing the installation on a blank disk.

Now you need to select the drive to install. If you have multiple disks or multiple partitions on the same disk, then you need to be careful and choose carefully so as not to accidentally erase a disk or partition that you did not plan to clean up.

In my case, there is only one blank disk, so I just click the “Next” button.

We are waiting for the completion of the installation process.

Enter and remember the server administrator password:

Windows Server boot always stops at the lock screen.

To enter the server, press “Ctrl+Alt+Delete” and enter the administrator password.

Select whether you want this computer to be discovered by other computers. It is recommended that you answer “Yes” on your home and work network, and “No” on the public network.

Windows Server 2022 installation is complete.

See also: Active Directory comprehensive guide, from installation and configuration to security auditing

What is Windows Admin Center and do regular users need it?

What is Windows Admin Center

Windows Admin Center is an interface for managing Windows servers and Windows workstations. Microsoft is currently actively promoting this tool as an assistant to system administrators for configuring Windows servers and workstations.

Through Windows Admin Center, you can manage and configure both a local computer and a remote one.

In Windows Admin Center computers are presented in the form of a list; connection to a remote computer takes place in one click.

You can configure all the basic parameters of a computer: network, users, groups, editing the registry, local storages, network folders, firewall, devices, scheduled tasks, processes, and more.

While the Windows Admin Center platform supports many common scenarios, it is not a complete replacement for all traditional Microsoft Management Console (MMC) tools.

Windows Admin Center can be installed on Windows 10 (version 1709 or later) running in desktop mode. Windows Admin Center can also be installed on a server running Windows Server 2016 and later in gateway mode, and then accessed through a web browser from a Windows 10 computer.

Windows Admin Center uses PowerShell at the system level, you can take a look at the scripts it uses. Showscript was added in Windows Admin Center Evaluation 1806 and is now part of the public channel.

Official page of the program: https://aka.ms/WindowsAdminCenter

How to install Windows Admin Center

You can download the stable version from the direct link: https://aka.ms/wacdownload

Download the file and run it with a double click.

Windows Admin Center sends diagnostic data anyway, here you can choose how much information you want to send: the first option is less, the second is more.

This window is informational and tells us about usage scenarios: https://aka.ms/WindowsAdminCenter-install

Select the desired settings (I added creating a shortcut on the desktop):

We are warned that the first time we start, we will definitely need to select the certificate used to encrypt connections.

How to use Windows Admin Center

Start Windows Admin Center:

A web browser window will open with the address https://localhost:6516/

If there are updates for components, the program will install them. You may need to restart Windows Admin Center after updates.

You will see a list of computers available for connection. By default, only the local computer is available. Click on this connection.

You will see a tab with an overview of this computer.

To manage your local computer, go to the appropriate tab on the left side.

The following sections are available:

  • Overview
  • Apps & features
  • Azure Monitor
  • Azure Security Center
  • Certificates
  • Devices
  • Events
  • Files & file sharing
  • Firewall
  • Local users & groups
  • Networks
  • Performance Monitor
  • Processes
  • Registry
  • Scheduled tasks
  • Services
  • Storage

Firewall:

Local user and group management tab:

Setting up shared access to a network folder:

Pay attention to the “View PowerShell Scripts” button (this is the Showscript function mentioned earlier):

When you press it, you can select the function of this section that interests you and the code used to perform actions will be shown. This can help you get started learning PowerShell and become familiar with specific command examples for in-demand Windows System Administration steps in PowerShell.

To shut down or restart your computer in Windows Admin Center, go to the Overview tab and click Restart or Shutdown.

How to connect to a Remote Computer in Windows Admin Center

Setting up a local computer is not the main advantage of Windows Admin Center. The key function is to connect and control a remote computer.

In the previous part, we installed Windows Server without a GUI. We did not configure the server, we limited ourselves to changing the computer name. The server may need to set a static IP address, perform system updates, assign a role, and perform other tasks. Let's take a look at how to do all this in Windows Admin Center.

Note that although this example uses a server without a graphical desktop, you can connect to Windows Admin Center and a server with a graphical desktop if Windows Admin Center is more comfortable for you than the standard server interface.

So, in Windows Admin Center, go to the “All connections” section (home page) and click the “Add” button:

You can choose from several options, for example:

  • Servers
  • Windows PCs
  • Server clusters
  • Azure VMs

I am connecting to the server, so I select the appropriate option.

I enter the server name “test-server” and wait for it to be found:

The bottom line is that you need to choose one of two options:

  • Use the credentials of this computer on the remote server (if the username and password match)
  • Specify the server administrator username and password for connection

Please note that depending on the server language, the administrator name is different, for example:

  • Administrator
  • Administrateur
  • Администратор
  • Etc

When the server is found, select the option

  • Add with credentials – that is, the connection to this server will be saved along with the username and password
  • Add – connection to this server will be saved without username and password

Now, to connect to the server, just click on its name:

Please note that the set of sections is different for the server and for the workstation:

  • Overview
  • Azure hybrid center
  • Azure Kubernetes Service
  • Active Directory
  • Azure Backup
  • Azure File Sync
  • Azure Monitor
  • Azure Security Center
  • Certificates
  • Devices
  • Events
  • Files & file sharing
  • Firewall
  • Installed apps
  • Local users & groups
  • Networks
  • Performance Monitor
  • PowerShell
  • Processes
  • Registry
  • Remote Desktop
  • Roles & features
  • Scheduled tasks
  • Services
  • Storage
  • Storage Migration Service
  • Storage Replica
  • System Insights
  • Updates

Items in bold are server-specific. In turn, the section “Apps & features” is additionally available for the workstation.

On the “Updates” tab, you can view and select to install a server updates:

On the “Networks” tab, you can view the properties of network adapters and configure them. For example, here you can set a static IP address for a server without a GUI.

If you want to change the server name, workgroup or domain, then go to the “Overview” tab → “Edit computer ID”:

In the “Registry” section, you can edit the registry of the remote computer:

For our purposes (remember, we are deploying Active Directory), the “Roles and Features” tab is especially important. Here we can set the server roles. We will return to this tab in the next part of this guide.

Conclusion

So, the Windows Admin Center utility is lightweight, works in modern browsers, it makes it easier to connect to remote computers and allows you to manage servers and workstations in the web interface.

See also: Active Directory comprehensive guide, from installation and configuration to security auditing

How to change the language of Google services

Google services are available in all languages supported by Google. You can change your account language at any time.

What does the change of language affect?

If you change your preferred language, you will be shown different content on the Internet. Google may use information about your chosen languages to display more relevant content on apps and services. To change your preferred language for mobile apps, go to the language settings on your device.

That is, first of all, changes in the language in Google services affect:

  1. The interface language, for example, in GMail.
  2. Suggested search results, they will be targeted to the selected language
  3. Advertising. The language you choose is one of the factors in which ads are shown to you.

How to change Google search language

To ensure that you are less likely to see sites in your current language and prioritize sites in your chosen language, change the language of Google services.

However, this does not mean that you will no longer be shown results in search results in languages other than the selected one. The fact is that search results are generated based on many factors, for example, the language of your web browser and the language of previously viewed websites.

If you do not want to change the language of all Google services, but want to change only the preferred language of the search results, then go to the website https://www.google.com/, search and click on the gear located to the right of the search bar.

In the menu that appears, select the “Language” item.

Select the desired search language and save your changes.

How to change the interface language of Google services

1. Sign in to your Google account.

2. Go to https://myaccount.google.com/language

3. Click the “Add another language” button or if the language you need is present in the “Added by Google” section, that is, added automatically, then click the “Save” button.

4. Select the language and dialect of the language and click the “Save” button.

5. Press the up arrow to prioritize the selected language.

You may need to restart your web browser for the changes to take effect.

If you want to return your language settings or select a different language, go back to https://myaccount.google.com/language and select your preferred language by clicking the up arrow next to it.

Demote Domain Controllers in Windows Server in PowerShell and GUI

This article shows you how to demote a domain controller in Windows Server. This method is applicable for Windows Server 2012 and later, up to Windows Server 2019 and Windows Server 2022.

You can undo a promotion to a domain controller in PowerShell as well as using the GUI configuration tools.

This article explains step by step how to uninstall AD DS using Server Manager or Windows PowerShell.

Error “The Active Directory domain controller needs to be demoted before the AD DS role can be removed”

You may need to cancel the addition of the Domain Controller role if you want to remove Active Directory components.

For example, when deleting Active Directory, you may encounter the following error:

Error
A prerequisite check for the AD-Domain-Services feature failed. 1. The Active Directory domain controller needs to be demoted before the AD DS role can be removed

To fix it, you need to start by turning off the domain controller on the server, below is shown how to do it.

Downgrading and Removing an Active Directory domain controller role Using PowerShell

To disable the Domain Controller role, use the Uninstall-ADDSDomainController cmdlet. And you can remove Active Directory and DNS server using the Uninstall-WindowsFeature (Remove-WindowsFeature) cmdlet. Let's consider their options:

ADDSDeployment and ServerManager Cmdlets Arguments (Arguments in bold are required. Arguments in italics can be specified using Windows PowerShell or the AD DS Configuration Wizard.)
Uninstall-ADDSDomainController

-SkipPreChecks

-LocalAdministratorPassword

-Confirm

-Credential

-DemoteOperationMasterRole

-DNSDelegationRemovalCredential

-Force

-ForceRemoval

-IgnoreLastDCInDomainMismatch

-IgnoreLastDNSServerForZone

-LastDomainControllerInDomain

-Norebootoncompletion

-RemoveApplicationPartitions

-RemoveDNSDelegation

-RetainDCMetadata

Uninstall-WindowsFeature/Remove-WindowsFeature

-Name

-IncludeManagementTools

-Restart

-Remove

-Force

-ComputerName

-Credential

-LogPath

-Vhd

Note: The -credential argument is only required if you are not already logged in as a member of the Enterprise Admins group (whose DC you are downgrading) or the Domain Admins group (whose DC you are downgrading). The -includemanagementtools argument is required only if you want to remove all AD DS management utilities.

The following command will downgrade the server from a domain controller to a regular server:

Uninstall-ADDSDomainController -DemoteOperationMasterRole:$true -IgnoreLastDnsServerForZone:$true -LastDomainControllerInDomain:$true -RemoveDnsDelegation:$true -RemoveApplicationPartitions:$true -IgnoreLastDCInDomainMismatch:$true -Force:$true

At runtime, you will be prompted for a password for the local administrator, which, after removing the Domain Controller, will become the primary account and replace the domain administrator.

You can specify the password directly in the command using the following option:

  • -localadministratorpassword (convertto-securestring "Password1" -asplaintext -force)

After executing the command, the computer will automatically reboot.

Use the following commands to remove Active Directory and DNS server:

Uninstall-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
Uninstall-WindowsFeature -Name DNS -IncludeManagementTools

The components (roles) were successfully removed, but a server restart is required for the changes to take effect:

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    Yes            SuccessRest... {Active Directory Domain Services, Group P...
WARNING: You must restart this server to finish the removal process.

Now let's look at removing roles and features through Server Manager.

Removing a Domain Controller in Server Manager

Press the “Windows” key on your keyboard and type “Server Manager” to search for the application, open it.

Click “Manage” → “Remove Roles and Features”.

Click “Next”.

Select a server and click “Next”.

Find the item “Active Directory Domain Services” and uncheck the checkbox, then click “Next”.

In the window that opens, click “Remove Feature”.

Since this server is a Domain Controller, it is not possible to uninstall Active Directory Domain Services until the promotion to Domain Controller is canceled. Therefore, an error occurs:

Validation Results
The validation process found problems on the server from which you want to remove features. The selected features cannot be removed from the selected server. Click OK to select different features.

Validation Results, Server
The Active Directory domain controller needs to be demoted before the AD DS role can be removed.

To start the process of removing the Domain Controller, click on “Demote this domain controller”.

Check the “Proceed with removal” checkbox and click “Next”.

Check the “Last domain controller in the domain” checkbox and click “Next”.

Check the boxes “Remove this DNS zone (this is the last DNS server that hosts the zone”, “Remove application partitions”, “Remove DNS delegation” and click “Next”.

Enter the password of the local administrator, under whose account you will be logged in after removing the domain controller and click “Next”.

Check the summarized information and click the “Demote” button.

Wait for the domain controller demotion process to complete.

The computer will then automatically restart.

After rebooting the server, go to Server Manager again. In it, click “Manage” → “Remove Roles and Features”.

Click “Next”.

Select a server and click “Next”.

Find the item “Active Directory Domain Services” and uncheck the checkbox, then click “Next”. In the window that opens, click “Remove Feature”.

Then find the item “DNS Server” and uncheck the checkbox, then click “Next”. In the window that opens, click “Remove Feature”.

After removing all more unnecessary features and roles, click “Next”.

On the next window, the check-boxes corresponding to the auxiliary functions and snap-in to be removed will already be cleared, click “Next”.

On the confirmation page, click “Remove”.

Now you can close the wizard window.

What a Thai-European child looks like

Perhaps someone is wondering what the European-Thai half-caste looks like.

Luuk^-krue:ng^ (luuk^ – child, krue:ng^ – half) literally translates as “half-caste”. In some languages there are negative connotations in this word, but in Thai it is just a word, without an emotional connotation. In the video below, you can hear a mother calling her baby luuk-krue:ng.

She also calls him “uan” (อ้วน, “fat”) – you definitely shouldn't call other people that.))))

Baby's first steps

The first two videos are especially noteworthy in that they capture the very, very first steps. Up to this point, the child was able to crawl, was able to stand up, was able to walk with the help of a walker, was able to climb stairs /beds/chairs, but could not walk.

 

I started filming because he got to his feet and, looking at his feet, tried to move one leg – the video shows what happened immediately after that, that is, the very first steps. In the video, the child is 11 months old.

Inquisitive child on a walk

Four videos from one walk.

 

If you are interested in skin tone, then in this video a Thai woman approaches the child – you can compare.

Child in a shopping cart

Small video from Big C.

In this video he “says”, my wife asked me, “what does he say, maybe something in Russian?”, My mother asked me “what does he say in Thai?”. In fact, it’s just baby talk, in no language.

 

The photo was taken on the eve of the video with the first steps – that is, he still cannot walk, but already wants to help his father work.

On this one he is 6 months old.

The cover photo is also a photo on the eve of the first steps.

Analogue of Add-Computer in PowerShell 7

Add a computer to a domain or workgroup in PowerShell

The Add-Computer cmdlet joins a computer to a Windows Domain or to a Workgroup. The Add-Computer cmdlet adds the local computer or remote computers to a domain or workgroup, or moves them from one domain to another. It also creates a domain account if the computer is added to the domain without an account. You can use the parameters of this cmdlet to specify an organizational unit (OU) and domain controller or to perform an unsecure join.

An example of a command that adds the local computer to the domain and restarts the computer:

Add-Computer -DomainName Domain01 -LocalCredential Domain01\Administrator -Restart

The following command adds the local computer to the workgroup, or renames the workgroup (if the computer is already in a workgroup with a different name):

Add-Computer -WorkgroupName WORKGROUP-A

These commands work fine in PowerShell 5, which is built in by default in all versions of Windows up to Windows 11 and all server versions up to Windows Server 2022.

See also: How to check PowerShell version in Windows 11

Error “Add-Computer: The term 'Add-Computer' is not recognized as a name of a cmdlet, function, script file, or executable program.”

But in PowerShell 7, this command is missing:

Add-Computer
Add-Computer: The term 'Add-Computer' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Suggestion [4,General]: The most similar commands are: Add-Computer, Stop-Computer, Get-ADComputer, New-ADComputer, Set-ADComputer, Add-Content, Rename-Computer, Add-Member.

You can verify that the command named Add-Computer is indeed present in PowerShell 5, where it is placed in the Microsoft.PowerShell.Management module:

powershell
Get-Command -Module Microsoft.PowerShell.Management -Name *Computer* | Select Name

But Add-Computer is missing from PowerShell 7:

pwsh
Get-Command -Module Microsoft.PowerShell.Management -Name *Computer* | Select Name

You can count exactly how many commands are removed from the Management module when moving from PowerShell 5 to PowerShell 7:

powershell
Get-Command -Module Microsoft.PowerShell.Management | Measure-Object | select Count

pwsh
Get-Command -Module Microsoft.PowerShell.Management | Measure-Object | select Count

There were 89 command, 61 commands remained.

How to replace Add-Computer in PowerShell 7

One of the suggested alternatives seems to be the New-ADComputer cmdlet, but the documentation explicitly says that “This cmdlet does not join a computer to a domain”.

There is no information about where the Add-Computer cmdlet or what its alternative is in PowerShell.

One working solution, if you've already installed PowerShell 7, is to run the join Domain or Workgroup command in PowerShell 5. To do this, run the following sequence of commands:

powershell
Add-Computer -DomainName Domain01 -LocalCredential Domain01\Administrator -Restart

See also: How to install the latest PowerShell on Windows 11

Loading...
X