Windows 10: Old PowerShell 5.1 scripts won't run on new laptop

Discus and support Old PowerShell 5.1 scripts won't run on new laptop in Windows 10 Gaming to solve the problem; When I got a new laptop all my settings, programs, and files were transferred over to it from and old Windows 10 desktop pc.When I try and run scripts... Discussion in 'Windows 10 Gaming' started by Ryan Burton, May 29, 2024.

  1. Old PowerShell 5.1 scripts won't run on new laptop


    When I got a new laptop all my settings, programs, and files were transferred over to it from and old Windows 10 desktop pc.When I try and run scripts that I have written previously they won't run and I get an errorOld PowerShell 5.1 scripts won't run on new laptop :pS C:\WINDOWS\system32> bb : The term 'b' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that t

    :)
     
    Ryan Burton, May 29, 2024
    #1
  2. IoanaOrian, May 29, 2024
    #2
  3. Studynxx Win User
    Powershell / Batch scripts do NOT run!

    Please help me. I have written some powershell and batch scripts, yet when I run those files, they don't run. At most the powershell script just does step #1 but not all the other steps (lines of code / instructions). The batch script .bat file doesn't do anything. Both just pop up for like 2 seconds and then they disappear, Task Manager says nothing's being done.
     
    Studynxx, May 29, 2024
    #3
  4. EckiS Win User

    Old PowerShell 5.1 scripts won't run on new laptop

    PowerShell script run - Cmdlets

    As SQL-IP and Cosmos are still internal to Microsoft, I wonder why you are not simply contacting the person who provided you with the scripts.

    For point 1: see PowerShell: Bypass ExecutionPolicy to run downloaded scripts

    For point2: this is specific to the script: "Cosmos.Document" is probably in a module which is not found.
     
    EckiS, May 29, 2024
    #4
Thema:

Old PowerShell 5.1 scripts won't run on new laptop

Loading...
  1. Old PowerShell 5.1 scripts won't run on new laptop - Similar Threads - Old PowerShell scripts

  2. Powershell runs in the background for a 1 second with 5 seconds interval

    in Windows 10 Gaming
    Powershell runs in the background for a 1 second with 5 seconds interval: I restarted my laptop today after realising that my CPU utilisation was high while I was not using it. Video link: Recording 2024-11-13 195121.mp4In Event Viewer, Powershell is running this commandpowershell -Command New-SelfSignedCertificate -Type CodeSigning -Subject...
  3. Powershell runs in the background for a 1 second with 5 seconds interval

    in Windows 10 Software and Apps
    Powershell runs in the background for a 1 second with 5 seconds interval: I restarted my laptop today after realising that my CPU utilisation was high while I was not using it. Video link: Recording 2024-11-13 195121.mp4In Event Viewer, Powershell is running this commandpowershell -Command New-SelfSignedCertificate -Type CodeSigning -Subject...
  4. Old PowerShell 5.1 scripts won't run on new laptop

    in Windows 10 Software and Apps
    Old PowerShell 5.1 scripts won't run on new laptop: When I got a new laptop all my settings, programs, and files were transferred over to it from and old Windows 10 desktop pc.When I try and run scripts that I have written previously they won't run and I get an error:PS C:\WINDOWS\system32> bb : The term 'b' is not recognized...
  5. Run desktop script in PowerShell

    in Windows 10 Network and Sharing
    Run desktop script in PowerShell: I have a script on my desktop that I need to run in PowerShell; how do I do that? https://answers.microsoft.com/en-us/windows/forum/all/run-desktop-script-in-powershell/666a7726-8cbd-42c7-ac2c-419229432252
  6. Run desktop script in PowerShell

    in Windows 10 Gaming
    Run desktop script in PowerShell: I have a script on my desktop that I need to run in PowerShell; how do I do that? https://answers.microsoft.com/en-us/windows/forum/all/run-desktop-script-in-powershell/666a7726-8cbd-42c7-ac2c-419229432252
  7. Run desktop script in PowerShell

    in Windows 10 Software and Apps
    Run desktop script in PowerShell: I have a script on my desktop that I need to run in PowerShell; how do I do that? https://answers.microsoft.com/en-us/windows/forum/all/run-desktop-script-in-powershell/666a7726-8cbd-42c7-ac2c-419229432252
  8. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...
  9. Run PowerShell Script As An Administrator

    in Windows 10 Support
    Run PowerShell Script As An Administrator: Hi. So I've been searching online on a way to do this yet I cannot find a way to do it. _______________________________________ I need this in specific: I want to double click a PowerShell script file (which will run as an administrator) from Windows Explorer that has...
  10. PowerShell Scripting - Run a Script from Shortcut

    in Windows 10 Tutorials
    PowerShell Scripting - Run a Script from Shortcut: How to: PowerShell Scripting - Run a Script from Shortcut [img] Information One of many PowerShell security features is that you can't run a script simply by double clicking it's icon on desktop or in a folder. Doing so will by default open script in Notepad for editing...