Nope. I’m sorry, but I still get “The term ‘Import-PowerShellDataFile’ is not recognized as the name of a cmdlet, function, script file, or operable program." in Windows Powershell 5…
I am still receiving the following after updating to 2026.1.6:
The 'ConvertTo-SecureString' command was found in the module 'Microsoft.PowerShell.Security', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Security'.
I’m having the same issue with the Security module import. Temporarily resolved it by clearing the PSModulePath environment variable, then trying to import. This only recently started.
try {
write-host "Previous module path: $($env:PSModulePath)`n"
Write-host "Clearing path before trying import..."
$env:PSModulePath = ""
Import-Module Microsoft.PowerShell.Security
} catch {
throw "Error! Could not import module: $($_.Exception)"
}