kohya-ss / sd-scripts

Apache License 2.0
4.48k stars 756 forks source link

PowerShell Problem! Please help! #296

Open CrazyKitty0 opened 1 year ago

CrazyKitty0 commented 1 year ago

I've been trying to copy the Windows installation through Powershell. But It just give me a problem that I haven't seen before.

cd : The 'Set-Location' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At line:2 char:1

Split-Path : The 'Split-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:170 char:17

Get-Item : The 'Get-Item' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:171 char:16

You cannot call a method on a null-valued expression. At D:\AI\Kohya\venv\Scripts\Activate.ps1:185 char:5

Join-Path : The 'Join-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:138 char:25

Split-Path : The 'Split-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:206 char:55

Split-Path : The 'Split-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:207 char:19

Test-Path : The 'Test-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:77 char:9

Test-Path : The 'Test-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:83 char:9

Test-Path : The 'Test-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:89 char:9

Test-Path : The 'Test-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:95 char:9

Test-Path : The 'Test-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:100 char:9

Copy-Item : The 'Copy-Item' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:229 char:5

Test-Path : The 'Test-Path' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:240 char:5

Copy-Item : The 'Copy-Item' command was found in the module 'Microsoft.PowerShell.Management', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Management'. At D:\AI\Kohya\venv\Scripts\Activate.ps1:246 char:1

I'm a bit lost at the moment. Is there something missing that I haven't looked?

RGTails commented 1 year ago

Try this. https://media.discordapp.net/attachments/1060954734338510941/1081375127305982062/image.png

CrazyKitty0 commented 1 year ago

Try this. https://media.discordapp.net/attachments/1060954734338510941/1081375127305982062/image.png

PS C:\Users\User> REG DELETE "HKCU\Software\Microsoft\Command Processor" Permanently delete the registry key HKEY_CURRENT_USER\Software\Microsoft\Command Processor (Yes/No)? Yes ERROR: The system was unable to find the specified registry key or value.

It is really trying to make this hard for me?