cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Former Member
Not applicable
Report Inappropriate Content
Message 1 of 3

PUBLIC Stack Overflow Tags Users FIND A JOB Jobs Companies TEAMS What’s this?

I'm looking for help to run commands on remote computers regarding a line with mcafee agent to get it command run remotely.

$Machines = Get-Content -Path "C:\server_list.txt"
foreach ($computer in $Machines){
  Write-host "Executing Events on $computer" -b "yellow" -foregroundcolor "red"
  $command = Start-Process -NoNewWindow -FilePath "C:\Program Files\McAfee\Agent\cmdagent.exe" -ArgumentList "/e /l C:\temp"
  Invoke-Command -ComputerName $computer -ScriptBlock {$command}
}

When I executed this command run locally but not remotely.

I'm looking for help here I have not full experience but I'm started automating some task on my job.

Please suggest some tips

I really appreciate it

Thanks

 

________________________________________________________________________________________________________________

Pizza Hut Survey

2 Replies
Former Member
Not applicable
Report Inappropriate Content
Message 2 of 3

Re: PUBLIC Stack Overflow Tags Users FIND A JOB Jobs Companies TEAMS What’s this?

Did you solve this problem? It is actual for me now and I will be thankful for sharing

Former Member
Not applicable
Report Inappropriate Content
Message 3 of 3

Re: PUBLIC Stack Overflow Tags Users FIND A JOB Jobs Companies TEAMS What’s this?

Do people really use stackoverflow that much for job searching/hunting? I thought that websites like jooble are more popular now among people who are in search of a job, even when it comes to IT. Well, linkedin also is a thing but only if you are really good at what you are doing. Or I just misunderstood you?

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community