Windows 10: Powershell doubt

Discus and support Powershell doubt in Windows 10 Software and Apps to solve the problem; I have created a script in D:\Data\Lvg\gadgets\Laptops\Docs\powershell called myfirstfunction.ps1. I copied the same file as mysecfunc.ps1 in C:\. As... Discussion in 'Windows 10 Software and Apps' started by lvgandhi, Jul 15, 2018.

  1. lvgandhi Win User

    Powershell doubt


    I have created a script in D:\Data\Lvg\gadgets\Laptops\Docs\powershell called myfirstfunction.ps1. I copied the same file as mysecfunc.ps1 in C:\. As you can see in following pic, .ps1 in C:\ works when I run it. But myfirstfunction.ps1 does not run either from C:\ or D:\Data\Lvg\gadgets\Laptops\Docs\powershell .

    Powershell doubt [​IMG]

    Any reason?

    :)
     
    lvgandhi, Jul 15, 2018
    #1
  2. Kursah Win User

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Jul 15, 2018
    #2
  3. Mark Isi Win User
    PowerShell randomly poping-up in tool bar

    Hello,

    Just to verify, do you have any scheduled tasks that uses Powershell? Scheduled tasks makes Powershell window appear periodically on your computer, therefore we suggest that you check the Task Scheduler. Here are the steps:

    • Click on Start.
    • In the search bar, type Task Scheduler and click on

      Task Scheduler
      in the results.
    • Under Active Tasks, check for any tasks that use Powershell and the scheduled time.

    If the issue still persist, we suggest that you run a Windows Defender scan to see if it will pick up any malware that the first scan missed.

    Let us know the outcome.
     
    Mark Isi, Jul 15, 2018
    #3
  4. Powershell doubt

    Windows Powershell auto opens when booting up

    Hi Victor,

    To stop Windows Powershell to start whenever you boot up your laptop, we suggest you to follow the steps listed below for selecting the services you want to run at startup:

    • Search System Configurationfrom the taskbar.
    • Select the top result, System Configuration desktop app.
    • Go to the Startup tab on the System Configuration main window.
    • Uncheck the box next to Windows Powershell program.
    • Click OK.
    • Click Restart to restart your computer.

    Let us know how it goes.

    Regards.
     
    Angela Pun, Jul 15, 2018
    #4
Thema:

Powershell doubt

Loading...
  1. Powershell doubt - Similar Threads - Powershell doubt

  2. Trouble with WSL powershell

    in Windows 10 Gaming
    Trouble with WSL powershell: Whenever i enter: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all/norestart it gives me: cmdlet enalbe-WindowsOptionalFeature at commands pipeline position 1 supply values for the following parameters: FeatureName[0]...
  3. Trouble with WSL powershell

    in Windows 10 Software and Apps
    Trouble with WSL powershell: Whenever i enter: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all/norestart it gives me: cmdlet enalbe-WindowsOptionalFeature at commands pipeline position 1 supply values for the following parameters: FeatureName[0]...
  4. Trouble with WSL powershell

    in Windows 10 BSOD Crashes and Debugging
    Trouble with WSL powershell: Whenever i enter: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all/norestart it gives me: cmdlet enalbe-WindowsOptionalFeature at commands pipeline position 1 supply values for the following parameters: FeatureName[0]...
  5. Preview Voice for Microsoft Helena not working after installing via PowerShell Script

    in Windows 10 Gaming
    Preview Voice for Microsoft Helena not working after installing via PowerShell Script: Hi,I am working with a machine that has Windows 10 Enterprise 2016 LTSB with OS Version 1607. I had to install the Spanish Language Pack and the Microsoft Helena Text to Speech voice via offline Meaning that I had no access to internet. I was able to install the Spanish...
  6. Preview Voice for Microsoft Helena not working after installing via PowerShell Script

    in Windows 10 Software and Apps
    Preview Voice for Microsoft Helena not working after installing via PowerShell Script: Hi,I am working with a machine that has Windows 10 Enterprise 2016 LTSB with OS Version 1607. I had to install the Spanish Language Pack and the Microsoft Helena Text to Speech voice via offline Meaning that I had no access to internet. I was able to install the Spanish...
  7. Powershell file closes instantly

    in Windows 10 Gaming
    Powershell file closes instantly: Hello, I have a problem. If I carry out a PowerShell file, PowerShell closes instantly. I already set the Execution Policy to unrestricted. How do I solve this problem. Please help.Thank youFelix...
  8. Powershell file closes instantly

    in Windows 10 Software and Apps
    Powershell file closes instantly: Hello, I have a problem. If I carry out a PowerShell file, PowerShell closes instantly. I already set the Execution Policy to unrestricted. How do I solve this problem. Please help.Thank youFelix...
  9. Powershell file closes instantly

    in Windows 10 Network and Sharing
    Powershell file closes instantly: Hello, I have a problem. If I carry out a PowerShell file, PowerShell closes instantly. I already set the Execution Policy to unrestricted. How do I solve this problem. Please help.Thank youFelix...
  10. UWP app creation doubts about adding some parameters using Windows 10 Powershell command prompt

    in Microsoft Windows 10 Store
    UWP app creation doubts about adding some parameters using Windows 10 Powershell command prompt: Hi, I am using windows 10 powershell (admin prvg) command prompt to create UWP app. Everything fine. Now, I would like to add some parameters using this same via powershell command prompt. ===================== 1. Add Internet (Client) and Private Networks (Client...