Windows 10: How to have a command run when opening PowerShell?

Discus and support How to have a command run when opening PowerShell? in Windows 10 Software and Apps to solve the problem; Hi there everyone. I did a quick search of the forums but didn't see anything covering this. I recently found this program called winfetch that... Discussion in 'Windows 10 Software and Apps' started by RebornJumpman, Feb 23, 2021 at 3:42 PM.

  1. How to have a command run when opening PowerShell?


    Hi there everyone. I did a quick search of the forums but didn't see anything covering this. I recently found this program called winfetch that displays the Windows logo in ASCII along with system info. It's a single command to run, and I was wanting to configure PS 7 to run it automatically when first opened. In Linux and WSL you can do this by editing the bashrc file in the home directory, but I'm new to PowerShell and am not sure of how to get this to work. Any help would be greatly appreciated!

    :)
     
    RebornJumpman, Feb 23, 2021 at 3:42 PM
    #1
Thema:

How to have a command run when opening PowerShell?

Loading...
  1. How to have a command run when opening PowerShell? - Similar Threads - command run opening

  2. error in powershell command

    in Windows 10 Customization
    error in powershell command: error in powershell command Getting Hardware Hash Script Command Install-Script -Name Get-WindowsAutoPilotInfo https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409...
  3. Command Prompt, Powershell and run command not opening from search function in Start.

    in Windows 10 Ask Insider
    Command Prompt, Powershell and run command not opening from search function in Start.: So, Today when I was trying to open command prompt to check battery report. It didn't open. At first-class I thought this was due to booting lag. But even after some time it didn't work. I googled and tried some fixes- 1. Changed environment variables(C:\Windows\SysWow64) 2....
  4. Error while running PIP command on powershell

    in Windows 10 Customization
    Error while running PIP command on powershell: Please assist me to sort out the issue on the below screenshot. The command is 100% correct because I ran it on another computer it is working. [ATTACH] I am wondering if i can post powershell issues here or there is another website specific for powershell problems...
  5. Open Cmd via PowerShell, command?

    in Windows 10 BSOD Crashes and Debugging
    Open Cmd via PowerShell, command?: Please i need to open cmd win + r and so i know i need to know how to open it via powershell pls (.bat and so i know it needs to be opened via powershell. Pls PowerShell command to open cmd? Cmd über PowerShell öffnen, Befehl?
  6. run a powershell command like a batch file

    in Windows 10 Installation and Upgrade
    run a powershell command like a batch file: I am working as a temp on a Windows 7 to Windows 10 migration team. We've encountered a problem with some software, and a solution has been found that requires us to execute a a single command with PowerShell. However, the command is extremely long and complex, and very...
  7. Powershell with CMD/c to run external command with Parameters

    in Windows 10 Customization
    Powershell with CMD/c to run external command with Parameters: Greeting, I have an old command line application call Commandline.exe. it run with a parameter to check then show the result. but it need extra "Enter" to confirm like: commandline.exe -s 4567890 So I preparing the an answer file which is on an "Enter" crlf...
  8. Run Multiple Commands In Powershell?

    in Windows 10 Performance & Maintenance
    Run Multiple Commands In Powershell?: Hi, I have three drives in my PC. Two of them are SSD's and the third one is a mechanical HDD. I like to optimize them using Powershell. However, as it stands now. I'm running the commands separately for each of my drive, i.e. 1.) Optimize-Volume -DriveLetter C -ReTrim...
  9. Can't run command in PowerShell but OK in Cmd

    in Windows 10 Support
    Can't run command in PowerShell but OK in Cmd: [img] [img] The screen shots show results of running Code: "C:\Program Files\AVAST Software\Avast\ashCmd.exe" /@=Quick[/quote] in both PS and Cmd. The problem is I have made a task in Task Scheduler to run this command daily and, apparently, Task Scheduler insists on...
  10. Run Multiple Commands In Powershell?

    in Windows 10 Performance & Maintenance
    Run Multiple Commands In Powershell?: Good job, @lx07. Of course, you had the benefit of knowing the OP wanted to run the same command on 3 targets. Had I been armed with that same information, I might have made that same suggestion, too. That's why we're better working together than working individually. --Ed--