windows powershell displaying processes in taskbar and output file to csv file












0















I am searching for windows powershell command for displaying processes in taskbar and output file to csv file.



I need all data in a tabular form like CPU Memory data network and GPU. And need output of same to be available in a text or CSV format.










share|improve this question























  • Anyone can help me on this? or please suggest any other forum for a quicker response

    – manoj kumar
    Feb 8 at 4:17
















0















I am searching for windows powershell command for displaying processes in taskbar and output file to csv file.



I need all data in a tabular form like CPU Memory data network and GPU. And need output of same to be available in a text or CSV format.










share|improve this question























  • Anyone can help me on this? or please suggest any other forum for a quicker response

    – manoj kumar
    Feb 8 at 4:17














0












0








0








I am searching for windows powershell command for displaying processes in taskbar and output file to csv file.



I need all data in a tabular form like CPU Memory data network and GPU. And need output of same to be available in a text or CSV format.










share|improve this question














I am searching for windows powershell command for displaying processes in taskbar and output file to csv file.



I need all data in a tabular form like CPU Memory data network and GPU. And need output of same to be available in a text or CSV format.







windows-10 powershell






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 6 at 6:56









manoj kumarmanoj kumar

41




41













  • Anyone can help me on this? or please suggest any other forum for a quicker response

    – manoj kumar
    Feb 8 at 4:17



















  • Anyone can help me on this? or please suggest any other forum for a quicker response

    – manoj kumar
    Feb 8 at 4:17

















Anyone can help me on this? or please suggest any other forum for a quicker response

– manoj kumar
Feb 8 at 4:17





Anyone can help me on this? or please suggest any other forum for a quicker response

– manoj kumar
Feb 8 at 4:17










1 Answer
1






active

oldest

votes


















1














Try this:



PS C:Documents and Settings > Get-Process -IncludeUserName YOURDOMAINYOURUSERNAME | 
where {$_.mainWindowTitle} |
Select-Object -Property ProcessName, TotalProcessorTime, VirtualMemorySize, WorkingSet, MainWindowTitle, Responding, UserName
| Export-Csv -Path .Output.csv


IncludeUserName YOURDOMAINYOURUSERNAME will filter processes running with the credentials of the user logged in.



| where {$_.mainWindowTitle} will further filter to show the processes with a GUI.



Or maybe only one of these, to match your needs.
Edit: splitting into many lines to avoid the scroll bar.






share|improve this answer





















  • 1





    Well done. Had to delete my sorry response. The 'IncludeUserName' parameter requires elevated user rights. Delete that part, and it runs in regular session.

    – Allen Jackson
    Feb 6 at 9:31











  • I am unable to run the command , getting below mentioned error. Get-Process : A positional parameter cannot be found that accepts argument 'and'. At line:1 char:1 + PS C:Documents and Settings > Get-Process -IncludeUserName ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-Process], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

    – manoj kumar
    Feb 7 at 1:48













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402545%2fwindows-powershell-displaying-processes-in-taskbar-and-output-file-to-csv-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Try this:



PS C:Documents and Settings > Get-Process -IncludeUserName YOURDOMAINYOURUSERNAME | 
where {$_.mainWindowTitle} |
Select-Object -Property ProcessName, TotalProcessorTime, VirtualMemorySize, WorkingSet, MainWindowTitle, Responding, UserName
| Export-Csv -Path .Output.csv


IncludeUserName YOURDOMAINYOURUSERNAME will filter processes running with the credentials of the user logged in.



| where {$_.mainWindowTitle} will further filter to show the processes with a GUI.



Or maybe only one of these, to match your needs.
Edit: splitting into many lines to avoid the scroll bar.






share|improve this answer





















  • 1





    Well done. Had to delete my sorry response. The 'IncludeUserName' parameter requires elevated user rights. Delete that part, and it runs in regular session.

    – Allen Jackson
    Feb 6 at 9:31











  • I am unable to run the command , getting below mentioned error. Get-Process : A positional parameter cannot be found that accepts argument 'and'. At line:1 char:1 + PS C:Documents and Settings > Get-Process -IncludeUserName ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-Process], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

    – manoj kumar
    Feb 7 at 1:48


















1














Try this:



PS C:Documents and Settings > Get-Process -IncludeUserName YOURDOMAINYOURUSERNAME | 
where {$_.mainWindowTitle} |
Select-Object -Property ProcessName, TotalProcessorTime, VirtualMemorySize, WorkingSet, MainWindowTitle, Responding, UserName
| Export-Csv -Path .Output.csv


IncludeUserName YOURDOMAINYOURUSERNAME will filter processes running with the credentials of the user logged in.



| where {$_.mainWindowTitle} will further filter to show the processes with a GUI.



Or maybe only one of these, to match your needs.
Edit: splitting into many lines to avoid the scroll bar.






share|improve this answer





















  • 1





    Well done. Had to delete my sorry response. The 'IncludeUserName' parameter requires elevated user rights. Delete that part, and it runs in regular session.

    – Allen Jackson
    Feb 6 at 9:31











  • I am unable to run the command , getting below mentioned error. Get-Process : A positional parameter cannot be found that accepts argument 'and'. At line:1 char:1 + PS C:Documents and Settings > Get-Process -IncludeUserName ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-Process], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

    – manoj kumar
    Feb 7 at 1:48
















1












1








1







Try this:



PS C:Documents and Settings > Get-Process -IncludeUserName YOURDOMAINYOURUSERNAME | 
where {$_.mainWindowTitle} |
Select-Object -Property ProcessName, TotalProcessorTime, VirtualMemorySize, WorkingSet, MainWindowTitle, Responding, UserName
| Export-Csv -Path .Output.csv


IncludeUserName YOURDOMAINYOURUSERNAME will filter processes running with the credentials of the user logged in.



| where {$_.mainWindowTitle} will further filter to show the processes with a GUI.



Or maybe only one of these, to match your needs.
Edit: splitting into many lines to avoid the scroll bar.






share|improve this answer















Try this:



PS C:Documents and Settings > Get-Process -IncludeUserName YOURDOMAINYOURUSERNAME | 
where {$_.mainWindowTitle} |
Select-Object -Property ProcessName, TotalProcessorTime, VirtualMemorySize, WorkingSet, MainWindowTitle, Responding, UserName
| Export-Csv -Path .Output.csv


IncludeUserName YOURDOMAINYOURUSERNAME will filter processes running with the credentials of the user logged in.



| where {$_.mainWindowTitle} will further filter to show the processes with a GUI.



Or maybe only one of these, to match your needs.
Edit: splitting into many lines to avoid the scroll bar.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 7 at 8:45

























answered Feb 6 at 9:13









Kavera_user714152Kavera_user714152

112




112








  • 1





    Well done. Had to delete my sorry response. The 'IncludeUserName' parameter requires elevated user rights. Delete that part, and it runs in regular session.

    – Allen Jackson
    Feb 6 at 9:31











  • I am unable to run the command , getting below mentioned error. Get-Process : A positional parameter cannot be found that accepts argument 'and'. At line:1 char:1 + PS C:Documents and Settings > Get-Process -IncludeUserName ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-Process], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

    – manoj kumar
    Feb 7 at 1:48
















  • 1





    Well done. Had to delete my sorry response. The 'IncludeUserName' parameter requires elevated user rights. Delete that part, and it runs in regular session.

    – Allen Jackson
    Feb 6 at 9:31











  • I am unable to run the command , getting below mentioned error. Get-Process : A positional parameter cannot be found that accepts argument 'and'. At line:1 char:1 + PS C:Documents and Settings > Get-Process -IncludeUserName ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-Process], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

    – manoj kumar
    Feb 7 at 1:48










1




1





Well done. Had to delete my sorry response. The 'IncludeUserName' parameter requires elevated user rights. Delete that part, and it runs in regular session.

– Allen Jackson
Feb 6 at 9:31





Well done. Had to delete my sorry response. The 'IncludeUserName' parameter requires elevated user rights. Delete that part, and it runs in regular session.

– Allen Jackson
Feb 6 at 9:31













I am unable to run the command , getting below mentioned error. Get-Process : A positional parameter cannot be found that accepts argument 'and'. At line:1 char:1 + PS C:Documents and Settings > Get-Process -IncludeUserName ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-Process], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

– manoj kumar
Feb 7 at 1:48







I am unable to run the command , getting below mentioned error. Get-Process : A positional parameter cannot be found that accepts argument 'and'. At line:1 char:1 + PS C:Documents and Settings > Get-Process -IncludeUserName ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-Process], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand

– manoj kumar
Feb 7 at 1:48




















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402545%2fwindows-powershell-displaying-processes-in-taskbar-and-output-file-to-csv-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

is 'sed' thread safe

How to make a Squid Proxy server?