logo

The ConnectWise Control forum has moved to ConnectWise University! This forum has been locked and is in read-only mode. Click here for instructions on how to access the new forum.

Welcome Guest! You can not login or register.

Notification

Icon
Error

Options
Go to last post Go to first unread
JeremyC  
#1 Posted : Thursday, December 20, 2018 2:37:42 PM(UTC)
JeremyC


Rank: Guest

Joined: 12/20/2018(UTC)
Posts: 1
United States
Location: Missouri

Hello,
I am looking to see how I could run a command and install software from a server share. The command needs to be run with admin permissions. I have this but it is not working:

#!cmd
\\server\share\O365\setup.exe /configure \\server\share\O365\config-pilot-SAC.xml

I would also like to run this whether the user is logged in or not. The user does not have admin permissions either.

Any help would be greatly appreciated.
Thanks!

shawnkhall  
#2 Posted : Saturday, December 22, 2018 9:36:32 PM(UTC)
shawnkhall


Rank: Advanced Member

Medals: Level 1: Random Act of Kindness! Received One Thanks!

Joined: 2/6/2014(UTC)
Posts: 316
Man
United States

Thanks: 6 times
Was thanked: 33 time(s) in 29 post(s)
Network shares don't default to existing in both user and elevated context. You'll need to map or connect to it first in order to be able to access the share from the Commands feature since it's running in an elevated context.

net use x: \\server\share /user:bob "bobspassword"
x:\O365\setup.exe /configure x:\O365\config-pilot-SAC.xml
net use x: /delete

thanks 1 user thanked shawnkhall for this useful post.
ebell on 12/28/2018(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.