How can i make chrome the default browser using psexec and the command line

is there a way to make chrome the default browser using psexec and command line
I tried
psexec @listofcomputers.txt -u username -p password -h "c:\program files\google\chrome\application\chrome.exe" --make-default-browser

Open in new window

and it does not work with windows 7.
can someone help me out please? need to make it the default on over 100 computers.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

FibertronTechnical ConsultantCommented:
Group Policy is going to be a better solution if it is available to you.  That way when you upgrade to windows 8 and up it will continue to work as the command argument --make-default-browser doesn't work past Windows 7.

Do you have admin privileges on the remote machine with the account that you are using to run the psexec command?  Can you run another psexec command to test?
bbimisAuthor Commented:
i have admin access to the machines and can run another psexec command to test. can you provide me with what i need and I will test it? thanks for your time
FibertronTechnical ConsultantCommented:
Open a cmd window as administrator, change directory to where the psexec executable is, for instance "C:\PSTools\psexec64.exe".  Run the following command, psexec64.exe \\"Remote PC Name" ipconfig and see if it gives you output for the IP information of the remote PC.
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

bbimisAuthor Commented:
it does
FibertronTechnical ConsultantCommented:
Here is the latest EE solution for making Chrome the default with Group Policy:
bbimisAuthor Commented:
ok so again, is there a way to do it through the command prompt with psexec? I don't wanna have to touch each computer if i don't have to. thanks!
FibertronTechnical ConsultantCommented:
I'm attempting the command with psexec in a test environment and I will report back shortly.
bbimisAuthor Commented:
Thanks let me know what you come up with.
bbimisAuthor Commented:
Any update on this ? Thanks!
FibertronTechnical ConsultantCommented:
Sorry my day job has been fairly consuming lately.  I am able to change the setting for specific users via psexec but I am still working on a solution to change the setting for all users of the remote computers.  Here is what I have so far...

So you will need to create a .bat file, a .txt file and have the psexec executable all in one directory. eg. C:\PSTools\

The .bat file will need the following lines:
@echo off
cd C:\Program Files (x86)\Google\Chrome\Application
chrome.exe open -a "Google Chrome" --args --make-default-browser

The .txt file will need the following lines:

The command to run on your workstation from the folder that contains all three files is:

psexec.exe @"NameofComputerFile" -u "UserName" -c C:\"BatFileName.bat"

You will need to enter the account password at the prompt and then the command should finish with a line like this

"BatFileName.bat" exited on "RemotePCName" with error code 0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bbimisAuthor Commented:
Thanks for the help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.