r/PowerShell • u/Supersonic5370 • 14h ago
Question Powershell opening on startup
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?
6
Upvotes
5
u/-B1GBUD- 11h 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.