Virus like ‘Windows defender’ in Germany

Recently I met a new kind of screen locker while browsing. I could see it with Chrome and Edge in Windows 11. It opens a window which looks like a Windows defender and tells you to call to a number of the support. Of course, you will just pay too much for this call and that’s all. But it’s not easy to close this window. I will write how to do it.

(read more...)

Add the application as a service at Windows Server

You can add the service with PowerShell. New-Service and Get-service are available in PowerShell 5, for 'Remove-Service' PowerShell >= 6 required. Otherwise you can use 'sc.exe DELETE MyMegaServiceApplication'. You should execute it with as an administrator. Not any application you can start a service. As a .Net developer, I usually create .Net solutions, in this case you should create application based on 'worker service' template in VS 2022 or any other IDE.

(read more...)

Fix Gilab runner error: listen_address not defined, metrics & debug endpoints disabled builds=0

The error is:

Configuration loaded builds=0
listen_address not defined, metrics & debug endpoints disabled builds=0
[session_server].listen_address not defined, session endpoints disabled builds=0
In gitlab runners allor “Run untagged jobs: Indicates whether this runner can pick jobs without tags”, set the checkbox correspondingly.

(read more...)

Truncate log files with PowerShell

It is a very common task to truncate log files. You don't notice them and they reach the limit size always not in the appropriate time. And when this moment occurs, it's much better to have a quick solution to decrease the size of log files. But even much better to clean logs automatically on the schedule.

(read more...)

Select and move files by mask with Windows command line

Figure 2. The result of command Get-SPLogEvent

During previous 5 years I have downloaded files from FTP server. Those were texts and images, that had been downloaded from FTP resources. During these 5 years its quantity became enormous – over 150 000 items in each folder. It worked automatically, that's why I hadn't paid attention to disc size and quantity of files. But once the space decreased too much.

(read more...) Notes of web-specialist
Since 2009