Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

What on earth am I doing wrong(What I thought was a very simple powershell task)

$
0
0

So I’m trying to enable psremoting remotely via script, however, using psexec, I CANNOT run what I’m seeing on countless sites. For example

PSEXEC hostname -s -h -d powershell.exe “enable-psremoting” -force

if I leave before hostname, it brings up the dialogue as if i just typed psexec and nothing else. If I take it out, it says logon failure: unknown user name or bad password. I’ve also tried creating a .txt file with server names to accomplish this as well, but same result, just acts as if i typed psexec and gives me a list of commands and their switches. I’m really lost as how i’m seeing multiple sites and how to’s recommends using psexec hostname and yet I cannot get it to work. What kind of boneheaded thing am I missing?

submitted by /u/hurlcarl
[link] [comments]

The post What on earth am I doing wrong(What I thought was a very simple powershell task) appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles