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. Assigning a Manager with PowerShell Graph – Manager Not Found

    in Windows 10 Gaming
    Assigning a Manager with PowerShell Graph – Manager Not Found: Hi everyone,We are currently refactoring our PowerShell scripts to align with Microsoft's recommended standards. In our script that creates new users in Azure Active Directory AAD via Microsoft Graph, we’re having trouble assigning a manager to a new user.Whether we try using...
  3. Assigning a Manager with PowerShell Graph – Manager Not Found

    in Windows 10 Software and Apps
    Assigning a Manager with PowerShell Graph – Manager Not Found: Hi everyone,We are currently refactoring our PowerShell scripts to align with Microsoft's recommended standards. In our script that creates new users in Azure Active Directory AAD via Microsoft Graph, we’re having trouble assigning a manager to a new user.Whether we try using...
  4. Was mache ich wenn in der PowerShell Befehle fehlen?

    in Windows 10 Gaming
    Was mache ich wenn in der PowerShell Befehle fehlen?: Hallöchen,meine PowerShell verweigert den Dienst. Computerverwaltung Lokal Admin:Timeout bei der Namensauflösung für den Namen t-ring-fdv2.msedge.net, nachdem keiner der konfigurierten DNS-Server geantwortet hat. Ereignis-ID:1024Ok habe bei Microsoft:...
  5. Was mache ich wenn in der PowerShell Befehle fehlen?

    in Windows 10 Software and Apps
    Was mache ich wenn in der PowerShell Befehle fehlen?: Hallöchen,meine PowerShell verweigert den Dienst. Computerverwaltung Lokal Admin:Timeout bei der Namensauflösung für den Namen t-ring-fdv2.msedge.net, nachdem keiner der konfigurierten DNS-Server geantwortet hat. Ereignis-ID:1024Ok habe bei Microsoft:...
  6. Windows PowerShell Error 80070002

    in Windows 10 Gaming
    Windows PowerShell Error 80070002: I am once again back for some Microsoft wisdom!I am trying to push out updates to my users and have a small few that are showing the error "Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 80070002."Additionally when I remote into the...
  7. Windows PowerShell Error 80070002

    in Windows 10 Software and Apps
    Windows PowerShell Error 80070002: I am once again back for some Microsoft wisdom!I am trying to push out updates to my users and have a small few that are showing the error "Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 80070002."Additionally when I remote into the...
  8. Powershell command execution in the background

    in Windows 10 Gaming
    Powershell command execution in the background: Hi,We can see powershell transcript generated however how can we find what process triggered that execution? It seems to be generated hourly. What can be seen in the transcript is that it is running "PS>Get-Process Select-Object -Property ProcessName"The transcript output as...
  9. Powershell command execution in the background

    in Windows 10 Software and Apps
    Powershell command execution in the background: Hi,We can see powershell transcript generated however how can we find what process triggered that execution? It seems to be generated hourly. What can be seen in the transcript is that it is running "PS>Get-Process Select-Object -Property ProcessName"The transcript output as...
  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...