Tag: PowerShell

ImageMagick error on Windows: “magick: unable to open image ”test’: No such file or directory @ error/blob.c/OpenBlob/3565. magick: no decode delegate for this image format `’ @ error/constitute.c/ReadImage/741.” (SOLVED)

If in Windows 11 open CMD: cmd And then run the command: magick '.\Для теста.jpg' test.png An error will be received that there is no such file or directory: magick: unable to open image ''.\╨Ф╨╗╤П': No such file or directory @ error/blob.c/OpenBlob/3565. magick: no decode delegate for this image format `' @ error/constitute.c/ReadImage/741. You can see that non-Latin characters are...

Error “The ‘<‘ operator is reserved for future use.” (SOLVED)

Analog “<” for PowerShell On Linux, you can use the following construct: COMMAND1 < FILE1 In this case, COMMAND1 will be executed with FILE1 as the input source instead of the keyboard, which is the normal standard input source. The “<” operator corresponds to the use of “|” to be passed to standard input. For example, the following commands are...

mysqldump in PowerShell corrupts non-Latin characters when exporting database (SOLVED)

mysqldump is a MySQL utility for creating database and table backups. Unlike phpMyAdmin, which, although it offers a web interface, is a slower tool due to the limitations of intermediates such as PHP and Apache, mysqldump is a much more efficient tool without limitations for backing up very large data. But on Windows, mysqldump has some nuances. Due to the...

Output encoding issues in PowerShell and third-party utilities running in PowerShell (SOLVED)

What encoding is used in PowerShell by default. How to change the default output encoding to UTF-8 in PowerShell If you run the following command in PowerShell 5: "Testing" > test.file And check the encoding in the newly created test.file, it turns out that it is UTF-16LE. If you run the following command in PowerShell 7: "Testing" > test.file And...

Analogue of Add-Computer in PowerShell 7

=========================================================== UPDATE: Testing with PowerShell 7.3.0-preview.5 shows that Add-Computer is back! Command Get-Command -module Microsoft.PowerShell.Management outputs the following: CommandType Name Version Source ----------- ---- ------- ------ Function Add-Computer 1.0 Microsoft.PowerShell.Management …………………. …………………. That is, Add-Computer is present, it is a function (not a cmdlet), the version is indicated as 1.0. The status of Add-Computer is not completely clear: is it...

Basics of launching and using command line utilities in Windows

Are the command line and command line utilities relevant today? Windows users are accustomed to using programs (applications) with a graphical user interface, in which actions are performed using mouse clicks or keyboard input. At the same time, even in Windows there are and can be installed many utilities, programs without a graphical interface, with very useful functionality. As a...

How to install the Active Directory PowerShell module on Windows Server, Windows 11 and Windows 10

The Active Directory Module for Windows PowerShell is one of the main tools for domain administration, managing objects in Active Directory, and getting various information about AD computers, users, groups, etc. Any Windows administrator should know how to use AD as a graphical snap-in (usually These are ADUC – Active Directory Users & Computers) and RSAT-AD-PowerShell cmdlets for performing day-to-day...

PowerShell with administrator rights: how to run and verify

How to run PowerShell as an administrator Some commands and cmdlets require elevated privileges. Examples of actions that require administrator rights are service management (install, start, stop, uninstall) and package management (add and remove package providers, install and remove packages). For example, the following cmdlet tries to add a new package provider: Install-PackageProvider chocolatey It will throw the following error:...

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...

How to check PowerShell version in Windows 11

Finding your version of PowerShell will help you find out which PowerShell features you have access to. The PowerShell command lets you specify a version number, and we'll show you how. How to find out the installed version of PowerShell There is a PowerShell utility to find the version number, which is what we are going to use. First, press...
Loading...
X