Find Jobs
Hire Freelancers

PowerShell Script to restart a application

$10-30 AUD

Completed
Posted about 7 years ago

$10-30 AUD

Paid on delivery
The job is to write a PowerShell script to do the following 1. Query the local machine for the running "[login to view URL]" processes with Get-Process terminal | Select-Object Path, ID 2. find the terminal process that matches the path "C:\Program Files (x86)\MetaTrader 4\[login to view URL]" and get the process ID 3. close that application (no force) using the process ID, wait 30 seconds and start it again better ways or suggestions to do the same are welcome
Project ID: 13624039

About the project

17 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Dear Sir ! I hope we can work together regards g [login to view URL] #ps processmonitor $process_name="terminal" $process_path="C:\Program Files (x86)\MetaTrader 4\[login to view URL]" $sleep_timer =30 #script variable $log_file ="[login to view URL]" $result ="" $result1 ="" $result_tmp =0 $ErrorActionPreference = "SilentlyContinue" function write_log($msgs) { $current_time = Get-Date -format G Add-Content $log_file "$current_time $msgs" } function sleep_process() { $ii = $sleep_timer while($ii -ge 0) { Write-Host -NoNewline "`rSleeping $ii sec ..." $ii-- Start-Sleep -Seconds 1 } Write-Host "done" } while ($true) { write_log "Start session" $result="" $result_tmp = 0 $result = get-process $process_name if ($result ) { foreach($one_process in $result) { if ($[login to view URL] -eq $process_path) { $result_tmp = 1 break } } } if ($result_tmp -eq 1 ) { write_log "Process found pid:$($[login to view URL]) path:$($[login to view URL]) killing" $result1 = stop-process -id $[login to view URL] } else { & $process_path write_log "Process not found:starting ..$process_path" } write_log "End session" sleep_process }
$20 AUD in 1 day
5.0 (10 reviews)
3.5
3.5
17 freelancers are bidding on average $27 AUD for this job
User Avatar
Bid Summary Hi, I have experience in scripting with Powershell, I can do this job. Please see my work history for relevant feedback.
$35 AUD in 1 day
5.0 (38 reviews)
5.3
5.3
User Avatar
Hello, I'm a PowerShell expert with great experience. I also created a test script that should suit your needs. Let me know if you are interested and I'm ready to provide it for you or further adjust it for your requirements. Regards, Tony
$25 AUD in 1 day
5.0 (29 reviews)
4.3
4.3
User Avatar
Bid Summary Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve.
$50 AUD in 1 day
4.5 (9 reviews)
4.5
4.5
User Avatar
Hi, what is the purpose of the work that you want to be done​ ? only then I can suggest better ways to do it. Regards, Tarandeep
$25 AUD in 0 day
4.9 (14 reviews)
4.0
4.0
User Avatar
Hello Mr. I'm a powershell and Automation Expert. I can help you with this and provide your the better solution to handle this. Contact me by chat to get more information. Best Regards
$30 AUD in 1 day
5.0 (15 reviews)
4.1
4.1
User Avatar
This is a straight forward powershell script and I can build this for you to run on local machines or remotely across a domain. This can be working quickly and then we can go over any improvements that will be good with this script. Thanks
$25 AUD in 1 day
5.0 (8 reviews)
2.9
2.9
User Avatar
Hi, I have 13+ years of experience on Windows and Linux servers especially built on VMware and Microsoft Hyper-V environments. I have working knowledge on various cloud services such as AWS, Azure and OpenStack. I am specialized on system administration, design, deployment and troubleshooting. I believe I would be an ideal candidate for this job. Regards, Shafiul
$30 AUD in 0 day
4.6 (3 reviews)
2.6
2.6
User Avatar
Hi there, Already working on writing the script, should be done shortly! .
$40 AUD in 1 day
5.0 (1 review)
2.0
2.0
User Avatar
Hi, I'm a french software engineer, and I worked for 10 years for compagnies. Now I'm a freelancer. For your project, I am available from now, and for the time you want. It's a simple project, so I can do it quickly. If you have any questions do not hesitate to contact me. Best Regards.
$25 AUD in 2 days
4.8 (1 review)
0.7
0.7
User Avatar
Because I think i can finish this project, and I want some programming experience from freelance. I already wrote the script and I think it can do what this project want.
$25 AUD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Have an Experience on Linux for more than 8 Years, Have Worked on Digital Ocean, AWS, Microsoft Azure, OVH, Hetzner Etc. Have worked with Dedicated Servers also, Have Experienced on HAProxy and Pen and Pound as Load Balancing Software or Tools, Have Experienced on Handling and Configuring Various Mail Servers Also. Can work with Any Web Server, Any Database Except Oracle. Have Worked with Various Frameworks also Like Wordpress, Zoomla, Drupal Specially Magento. Have experienced with Various Project Management Tools Like Redmine, JIRA, OSTicket and SIP Server also Like Asterisk, Opensips etc. Have Experience on Various Frameworks as well like Wordpress, Zoomla, Drupal, Prestashop etc... Have worked with Various DNS Management Tools like Route 53 in Amazon Web Service (AWS) , Cloudflare etc...Have Worked with Bitcoin and Configured Various types of Pools for Bitcoin Like P2Pool, CKPool,etc...Have worked with CPANEL, PLEX, WHM etc..., Have worked with Xen Servers and VMWares and Virtual box Servers also.
$20 AUD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Bid Summary I have several years of experience in PowerShell, from what you explained I believe I can do it in less than a day if all go as planned.
$10 AUD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of SWITZERLAND
Wimmis, Switzerland
5.0
23
Payment method verified
Member since Apr 28, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.