ChrisTitusTech / powershell-profile

Pretty PowerShell that looks good and functions almost as good as Linux terminal
513 stars 303 forks source link

Installation broke #44

Open MEGA-Dawg68 opened 4 months ago

MEGA-Dawg68 commented 4 months ago

image it starts spewing errors out and lags my computer to kingdom come I ran the link in the README and it was saying something about execution policy and it continued and now that is happening

randomBullets commented 4 months ago

I can confirm this exactly my experience. not sure how to fix it

randomBullets commented 4 months ago

i just keep getting this but way way more. It goes on for ever.

I tried removing the profile, and putting a direct copy in and still doesn't work at all

`Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does
not exist.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1
+ Remove-Item  "$env:temp/Microsoft.PowerShell_profile.ps1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile
updates
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:24 char:9
+         . $PROFILE
+         ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1

Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does
not exist.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1
+ Remove-Item  "$env:temp/Microsoft.PowerShell_profile.ps1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile
updates
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:24 char:9
+         . $PROFILE
+         ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1

Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does
not exist.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1
+ Remove-Item  "$env:temp/Microsoft.PowerShell_profile.ps1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile
updates
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:24 char:9
+         . $PROFILE
+         ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1

Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does
not exist.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1
+ Remove-Item  "$env:temp/Microsoft.PowerShell_profile.ps1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile
updates
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:24 char:9
+         . $PROFILE
+         ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1

Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does
not exist.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1
+ Remove-Item  "$env:temp/Microsoft.PowerShell_profile.ps1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile
updates
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:24 char:9
+         . $PROFILE
+         ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1

Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does
not exist.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1
+ Remove-Item  "$env:temp/Microsoft.PowerShell_profile.ps1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile
updates
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:24 char:9
+         . $PROFILE
+         ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1

Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does
not exist.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1
+ Remove-Item  "$env:temp/Microsoft.PowerShell_profile.ps1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile
updates
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:24 char:9
+         . $PROFILE
+         ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1

Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Item : Cannot find path 'C:\Users\earle\AppData\Local\Temp\Microsoft.PowerShell_profile.ps1' because it does
not exist.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:32 char:1
+ Remove-Item  "$env:temp/Microsoft.PowerShell_profile.ps1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\earle\...ell_profile.ps1:String) [Remove-Item], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 : unable to check for $profile
updates
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:24 char:9
+         . $PROFILE
+         ~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell_profile.ps1

Remove-Variable : Cannot find a variable with the name 'newhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (newhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'oldhash'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (oldhash:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Remove-Variable : Cannot find a variable with the name 'url'.
At C:\Users\earle\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:31 char:1
+ Remove-Variable @("newhash", "oldhash", "url")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (url:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

`
MEGA-Dawg68 commented 4 months ago

Found out in the documents folder there is a folder for powershell. delete that and the issue fixes

JussiRoos commented 3 months ago

I get the same behavior. Installing manually or with the script. Any way to get it working and just not deleting it?

MEGA-Dawg68 commented 3 months ago

I get the same behavior. Installing manually or with the script. Any way to get it working and just not deleting it?

I couldn't find a fix and I can't look for one now because I swapped to Linux

ShadowElixir commented 1 month ago

Use Powershell Core