Excel VBA execute file in remote computer without remote assistance

malveiro

New Member
Joined
May 13, 2015
Messages
32
Hello

I have a button in a userform, and i want to do the following : When i clicked , reads the computername in a textbox ( in this case Textbox20 ) , and executes a file in a specific location ( \\servername\folder\file.vbs ) in background
All The computernames are in the same domain

When i access via RDP assistance to the compuername , i can run the \\servername\folder and execute the file , but want to try to execute without accessing via assistance
Is it possible to make or is it impossible ?

Thanks in advance

Best regards
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Your request sounds nefarious in nature ... even though you may possibly have the best of intentions in your request. I find it doubful you'll receive any useful
assistance to your request as it has the same 'flavor' as someone asking how to break a passcode to a workbook.

My $.02 cents ...
 
Upvote 0
Your request sounds nefarious in nature ... even though you may possibly have the best of intentions in your request. I find it doubful you'll receive any useful
assistance to your request as it has the same 'flavor' as someone asking how to break a passcode to a workbook.

My $.02 cents ...
Logit , i know it's sounds strange , but it's the best of intentions .

I will explain , the company has strict policie , and every time a user makes logon in a computer , it starts run a network script , to map the printers , network drives , etc
Bu sometimes , a printer isn't map by some reason . To solve this , and the users don't how to do it , we have to access remotely to the computer and execute the script again , to see if the printer is mapped again

Since i have an excel VBA to monitor all the network printers ( check toner , see if they are online , etc ) , i was trying to add this button , to simple execute the network vbs without accessing remotely to the user's computer.

Best regards
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top