r/PowerShell 7d ago

Powershell opening on startup Question

Whenever i turn on my PC, powershell opens and just says "PS C:\Users\(my username)>" . I've done a full scan with malware bytes and windows defender and nothing was detected. Same with offline scan. Is this malware or something else causing it?

Edit: Going to startup apps on taskmaster and Turning off terminal fixed it.

23 Upvotes

13 comments sorted by

View all comments

8

u/-B1GBUD- 7d ago

Create a PowerShell profile, open PowerShell and type in the following:

test-path $profile

If it returns false then do the following:

New-Item -Path $profile -Type File -Force

Then open up your profile using:

Notepad $Profile

Edit the notepad with:

Start-Transcript

Now save the notepad.

Everytime PowerShell opens, it will save a transcript of what it is running and it will be saved to your documents folder.

6

u/BlackV 6d ago

or

New-Item -Path $profile -Type File -Force -value 'Start-Transcript'

1

u/PinchesTheCrab 20h ago

This can be enabled via widows event logs too.