 Rank: Guest Joined: 12/20/2018(UTC) Posts: 1  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!
|
|
|
|
 Rank: Advanced Member Medals:  Joined: 2/6/2014(UTC) Posts: 316   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
|
 1 user thanked shawnkhall for this useful post.
|
|
|
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.