Running a program from network location on Windows 7 from cmd
I have to run a configuration script on a number of computers that is stored on a network location. I run CMD as administrator and then run the command which looks something like this:
\serversoftware......config.exe
This works perfectly well on Windows Vista and Windows 8 computers with or without UAC activated but doesn't work on any of my Windows 7 computers (with and without UAC activated). I get "Access denied" when I try to run the command.
Why is this so and how can I run the command on Windows 7?
windows-7 command-line
add a comment |
I have to run a configuration script on a number of computers that is stored on a network location. I run CMD as administrator and then run the command which looks something like this:
\serversoftware......config.exe
This works perfectly well on Windows Vista and Windows 8 computers with or without UAC activated but doesn't work on any of my Windows 7 computers (with and without UAC activated). I get "Access denied" when I try to run the command.
Why is this so and how can I run the command on Windows 7?
windows-7 command-line
If you copy the config file locally to the machine does it work?
– snowdude
Feb 14 '13 at 9:59
It is a whole environment, not just one file. If it was a single file I would have copied it locally and executed it. The file has to be run from its location on the server with a bunch of arguments.
– RegedUser00x
Feb 14 '13 at 10:23
Are you logging in as Administrator or a user which also has admin privileges. Win 7 has something called a 'Filtered Token' which can cause problems.
– snowdude
Feb 14 '13 at 16:52
I log in as a user with administrator privileges.
– RegedUser00x
Feb 15 '13 at 8:44
add a comment |
I have to run a configuration script on a number of computers that is stored on a network location. I run CMD as administrator and then run the command which looks something like this:
\serversoftware......config.exe
This works perfectly well on Windows Vista and Windows 8 computers with or without UAC activated but doesn't work on any of my Windows 7 computers (with and without UAC activated). I get "Access denied" when I try to run the command.
Why is this so and how can I run the command on Windows 7?
windows-7 command-line
I have to run a configuration script on a number of computers that is stored on a network location. I run CMD as administrator and then run the command which looks something like this:
\serversoftware......config.exe
This works perfectly well on Windows Vista and Windows 8 computers with or without UAC activated but doesn't work on any of my Windows 7 computers (with and without UAC activated). I get "Access denied" when I try to run the command.
Why is this so and how can I run the command on Windows 7?
windows-7 command-line
windows-7 command-line
asked Feb 14 '13 at 8:36
RegedUser00xRegedUser00x
2311517
2311517
If you copy the config file locally to the machine does it work?
– snowdude
Feb 14 '13 at 9:59
It is a whole environment, not just one file. If it was a single file I would have copied it locally and executed it. The file has to be run from its location on the server with a bunch of arguments.
– RegedUser00x
Feb 14 '13 at 10:23
Are you logging in as Administrator or a user which also has admin privileges. Win 7 has something called a 'Filtered Token' which can cause problems.
– snowdude
Feb 14 '13 at 16:52
I log in as a user with administrator privileges.
– RegedUser00x
Feb 15 '13 at 8:44
add a comment |
If you copy the config file locally to the machine does it work?
– snowdude
Feb 14 '13 at 9:59
It is a whole environment, not just one file. If it was a single file I would have copied it locally and executed it. The file has to be run from its location on the server with a bunch of arguments.
– RegedUser00x
Feb 14 '13 at 10:23
Are you logging in as Administrator or a user which also has admin privileges. Win 7 has something called a 'Filtered Token' which can cause problems.
– snowdude
Feb 14 '13 at 16:52
I log in as a user with administrator privileges.
– RegedUser00x
Feb 15 '13 at 8:44
If you copy the config file locally to the machine does it work?
– snowdude
Feb 14 '13 at 9:59
If you copy the config file locally to the machine does it work?
– snowdude
Feb 14 '13 at 9:59
It is a whole environment, not just one file. If it was a single file I would have copied it locally and executed it. The file has to be run from its location on the server with a bunch of arguments.
– RegedUser00x
Feb 14 '13 at 10:23
It is a whole environment, not just one file. If it was a single file I would have copied it locally and executed it. The file has to be run from its location on the server with a bunch of arguments.
– RegedUser00x
Feb 14 '13 at 10:23
Are you logging in as Administrator or a user which also has admin privileges. Win 7 has something called a 'Filtered Token' which can cause problems.
– snowdude
Feb 14 '13 at 16:52
Are you logging in as Administrator or a user which also has admin privileges. Win 7 has something called a 'Filtered Token' which can cause problems.
– snowdude
Feb 14 '13 at 16:52
I log in as a user with administrator privileges.
– RegedUser00x
Feb 15 '13 at 8:44
I log in as a user with administrator privileges.
– RegedUser00x
Feb 15 '13 at 8:44
add a comment |
1 Answer
1
active
oldest
votes
You can create a map network drive using net use command and then execute your program from the mapped network drive
e.g.,
c:> net use z: \serversoftware
c:> cd /d z:......
z:......> config.exe
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f551975%2frunning-a-program-from-network-location-on-windows-7-from-cmd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can create a map network drive using net use command and then execute your program from the mapped network drive
e.g.,
c:> net use z: \serversoftware
c:> cd /d z:......
z:......> config.exe
add a comment |
You can create a map network drive using net use command and then execute your program from the mapped network drive
e.g.,
c:> net use z: \serversoftware
c:> cd /d z:......
z:......> config.exe
add a comment |
You can create a map network drive using net use command and then execute your program from the mapped network drive
e.g.,
c:> net use z: \serversoftware
c:> cd /d z:......
z:......> config.exe
You can create a map network drive using net use command and then execute your program from the mapped network drive
e.g.,
c:> net use z: \serversoftware
c:> cd /d z:......
z:......> config.exe
edited Aug 1 '17 at 8:06
Seth
6,16811128
6,16811128
answered Aug 1 '17 at 7:26
Reza IranpourReza Iranpour
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f551975%2frunning-a-program-from-network-location-on-windows-7-from-cmd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you copy the config file locally to the machine does it work?
– snowdude
Feb 14 '13 at 9:59
It is a whole environment, not just one file. If it was a single file I would have copied it locally and executed it. The file has to be run from its location on the server with a bunch of arguments.
– RegedUser00x
Feb 14 '13 at 10:23
Are you logging in as Administrator or a user which also has admin privileges. Win 7 has something called a 'Filtered Token' which can cause problems.
– snowdude
Feb 14 '13 at 16:52
I log in as a user with administrator privileges.
– RegedUser00x
Feb 15 '13 at 8:44