Running a poweshell script on a remote server.
up vote
-2
down vote
favorite
I’m trying to use powershell to run a .ps1 on a server at a bank we do IT support for. Is it possible to use powershell to run a ps1 on their domain controller over a vpn connection? If so, I need to start a test.ps1 that’s located on the devices desktop. Thanks!
powershell
add a comment |
up vote
-2
down vote
favorite
I’m trying to use powershell to run a .ps1 on a server at a bank we do IT support for. Is it possible to use powershell to run a ps1 on their domain controller over a vpn connection? If so, I need to start a test.ps1 that’s located on the devices desktop. Thanks!
powershell
You're looking forInvoke-Command
.
– Ansgar Wiechers
Nov 9 at 16:22
Ok, I’m trying that but it’s not finding the file when I use start-process. Is that becuase I’m not getting a connection to that machine or am I typing the file path wrong. It’s located on the desktop, and I’m using the path in properties labeled “folder path”. Thanks man.
– Frank Costa
Nov 9 at 16:29
Maybe you could show us your code so we can see what you're trying to do?
– TobyU
Nov 9 at 17:01
May I direct your attention to example 1?
– Ansgar Wiechers
Nov 9 at 18:42
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I’m trying to use powershell to run a .ps1 on a server at a bank we do IT support for. Is it possible to use powershell to run a ps1 on their domain controller over a vpn connection? If so, I need to start a test.ps1 that’s located on the devices desktop. Thanks!
powershell
I’m trying to use powershell to run a .ps1 on a server at a bank we do IT support for. Is it possible to use powershell to run a ps1 on their domain controller over a vpn connection? If so, I need to start a test.ps1 that’s located on the devices desktop. Thanks!
powershell
powershell
asked Nov 9 at 16:12
Frank Costa
1
1
You're looking forInvoke-Command
.
– Ansgar Wiechers
Nov 9 at 16:22
Ok, I’m trying that but it’s not finding the file when I use start-process. Is that becuase I’m not getting a connection to that machine or am I typing the file path wrong. It’s located on the desktop, and I’m using the path in properties labeled “folder path”. Thanks man.
– Frank Costa
Nov 9 at 16:29
Maybe you could show us your code so we can see what you're trying to do?
– TobyU
Nov 9 at 17:01
May I direct your attention to example 1?
– Ansgar Wiechers
Nov 9 at 18:42
add a comment |
You're looking forInvoke-Command
.
– Ansgar Wiechers
Nov 9 at 16:22
Ok, I’m trying that but it’s not finding the file when I use start-process. Is that becuase I’m not getting a connection to that machine or am I typing the file path wrong. It’s located on the desktop, and I’m using the path in properties labeled “folder path”. Thanks man.
– Frank Costa
Nov 9 at 16:29
Maybe you could show us your code so we can see what you're trying to do?
– TobyU
Nov 9 at 17:01
May I direct your attention to example 1?
– Ansgar Wiechers
Nov 9 at 18:42
You're looking for
Invoke-Command
.– Ansgar Wiechers
Nov 9 at 16:22
You're looking for
Invoke-Command
.– Ansgar Wiechers
Nov 9 at 16:22
Ok, I’m trying that but it’s not finding the file when I use start-process. Is that becuase I’m not getting a connection to that machine or am I typing the file path wrong. It’s located on the desktop, and I’m using the path in properties labeled “folder path”. Thanks man.
– Frank Costa
Nov 9 at 16:29
Ok, I’m trying that but it’s not finding the file when I use start-process. Is that becuase I’m not getting a connection to that machine or am I typing the file path wrong. It’s located on the desktop, and I’m using the path in properties labeled “folder path”. Thanks man.
– Frank Costa
Nov 9 at 16:29
Maybe you could show us your code so we can see what you're trying to do?
– TobyU
Nov 9 at 17:01
Maybe you could show us your code so we can see what you're trying to do?
– TobyU
Nov 9 at 17:01
May I direct your attention to example 1?
– Ansgar Wiechers
Nov 9 at 18:42
May I direct your attention to example 1?
– Ansgar Wiechers
Nov 9 at 18:42
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2fstackoverflow.com%2fquestions%2f53229405%2frunning-a-poweshell-script-on-a-remote-server%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
You're looking for
Invoke-Command
.– Ansgar Wiechers
Nov 9 at 16:22
Ok, I’m trying that but it’s not finding the file when I use start-process. Is that becuase I’m not getting a connection to that machine or am I typing the file path wrong. It’s located on the desktop, and I’m using the path in properties labeled “folder path”. Thanks man.
– Frank Costa
Nov 9 at 16:29
Maybe you could show us your code so we can see what you're trying to do?
– TobyU
Nov 9 at 17:01
May I direct your attention to example 1?
– Ansgar Wiechers
Nov 9 at 18:42