My OpenMediaVault machine (based on Debian Oldstable) uses OpenSSH 8.4p1, so it’s old enough not to have the bug
My OpenMediaVault machine (based on Debian Oldstable) uses OpenSSH 8.4p1, so it’s old enough not to have the bug
You could use it for Windows 98/XP retro gaming if you add a graphics gard, but for anything else it’s far too inefficient to be useful
Then the snippet won’t work because it only ever renames/copies the file '_2023 Summary Page.docx'
. What are the actual names of the files you want to rename?
Just use Copy-Item instead of Rename-Item if you want multiple identical files with different names
That will crash if there is more than one line in individuals.txt, because by the second iteration ‘.\_2023 Summary Page.docx’ has been renamed.
I have no idea why this wouldn’t work on your machine - I’ve tested it on mine and it works fine. So maybe you have overlooked some small things:
If there are any other PDFs in the directory that you don’t want to rename, then the list of files is longer than the list of names.
If the PS window closes completely, you might have typed it into the terminal instead of running it as a script - then the problem might just be that you closed the if block too early, so PS immediately executes the exit
command.
If your list of new names contains a column label like in a one-column CSV, then it has one more line than there are files.
If the CSV file contains both the current names and the new names, this should work if you use the first line for column labels (I’m using OldName and NewName in this example):
Import-CSV $pathToCSV | ForEach-Object { Rename-Item $_.OldName $_.NewName }
If you just have a list of new names as a text file where the first line of the file is the new name for the first file (by name, sorted alphabetically), this should work:
$files = Get-ChildItem -File *.pdf | Sort-Object -Property Name #I think the output of Get-ChildItem is already sorted by name, but I'm not sure
$newNames = Get-Content $pathToTXT
if ($files.Count -ne $newNames.Count) {
Write-Error "The number of PDF files to be renamed does not match the number of new names"
exit
}
0..($files.Count - 1) | ForEach-Object { Rename-Item $files[$_] $newNames[$_] }
According to ark.intel.com, the N100 only supports 16GB. It probably still works with 32GB, but if it doesn’t you’re on your own.
Not quite - even in PowerShell 7 there are some features that only work on Windows and Windows only comes with PowerShell 5.1 by default.
Adapter cards for one PCIe M.2 SSD are completely passive and work on every motherboard with PCIe. If the card has multiple M.2 slots, you need either a PCIe switch on the card or a motherboard that supports PCIe bifurcation.
I upgraded an old machine that doesn’t have PCIe 3.0 or M.2 slots with a Samsung 950 Pro in an adapter card and I haven’t noticed any issues - the SSD only runs at PCIe 2.0 speeds, but that’s fast enough for me.
Sometimes plugging a PCIe card into one slot will cause fewer or no lanes to be allocated to another slot, so you should check your motherboard’s manual before buying a new card.
I can’t see the picture, but if the Mac Mini is from late 2018 or newer, the iGPU should be able to transcode 4k video.
Searching for “MOVfuscator” results in this: https://github.com/Battelle/movfuscator