Jump to content

Acces client via CMD?

Rotterdams

Hi guys,

 

Is there a way that I can acces my client pc trough CMD/Powershell? I know the IP adres(or pc name) and im admin. Both pc's are on the same network.

 

What I want to acomplish is being able to see desktop documents so I can adjust these trough CMD/Powershell. Without using remote tools which are utterly slow.

 

I know that trough CMD I can use cd... dir etc. to browse trough the pc. I want to be able to do this on a client :) I am guessing there is somekind of command to be able to enter the client but i dont know what. I tried to google but sadly I get very different results.

Link to comment
Share on other sites

Link to post
Share on other sites

You need a remote connection of some sort.

 

If you want to use windows command line remotely, I don't even know if there's a possibility for that.

 

Remote desktop connection is what I would go for in this case, or if you need multiple connections at once, maybe VNC or something.

Might try even NetOP, though that's old and clunky.

 

These are all protocols to get you to the desktop of the windows machine. From there you can always open cmd if you really need to type in your commands...

Link to comment
Share on other sites

Link to post
Share on other sites

the type of access you are looking for is like Telnet or SSH, but Powershell also can be used remotely. Powershell is probably the one you want to use, if that doesn't work out for you you can try SSH. I do not recommend using telnet at all because it is unencrypted.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Use PStools RCMD - big business use it for daily operation. It's fast and easy to use.

 

Link to comment
Share on other sites

Link to post
Share on other sites

7 hours ago, brwainer said:

the type of access you are looking for is like Telnet or SSH, but Powershell also can be used remotely. Powershell is probably the one you want to use, if that doesn't work out for you you can try SSH. I do not recommend using telnet at all because it is unencrypted.

How can I do this via Powershell? I dont know the commands.

Link to comment
Share on other sites

Link to post
Share on other sites

19 hours ago, U.Ho said:

You need a remote connection of some sort.

 

If you want to use windows command line remotely, I don't even know if there's a possibility for that.

 

Remote desktop connection is what I would go for in this case, or if you need multiple connections at once, maybe VNC or something.

Might try even NetOP, though that's old and clunky.

 

These are all protocols to get you to the desktop of the windows machine. From there you can always open cmd if you really need to type in your commands...

If its possible trough powershell i would like to know the commands. 

I prefer no remote connection. 

 

I was using CMD and was like "hey why cant i do this for my clients?" thats why i started this thread :D

Link to comment
Share on other sites

Link to post
Share on other sites

6 hours ago, icey said:

Use PStools RCMD - big business use it for daily operation. It's fast and easy to use.

 

I dont want to use any kind of software or program.

 

I want to use cmd / powershell. Something which is already built in Windows.

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, Rotterdams said:

I dont want to use any kind of software or program.

 

I want to use cmd / powershell. Something which is already built in Windows.

https://www.google.com/amp/www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/amp/?client=safari

 

this was the first result for "remote powershell". If you want more results, please see Google.

 

EDIT: Make sure to read the section of that article for Workgroup Setupif your target and client aren't in the same AD domain. (Or if there aren't any AD domains)

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
Share on other sites

Link to post
Share on other sites

32 minutes ago, brwainer said:

https://www.google.com/amp/www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/amp/?client=safari

 

this was the first result for "remote powershell". If you want more results, please see Google.

 

EDIT: Make sure to read the section of that article for Workgroup Setupif your target and client aren't in the same AD domain. (Or if there aren't any AD domains)

Google only gives me basic stuff and different results.

 

The link still doesnt provide me with info how I can achive this.

Link to comment
Share on other sites

Link to post
Share on other sites

31 minutes ago, Rotterdams said:

Google only gives me basic stuff and different results.

 

The link still doesnt provide me with info how I can achive this.

I'm not sure what you mean... I use the commands in the link to run remote powerhsell commands on a daily basis. Once you've entered the PSSession, you are running commands on the remote computer. 

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
Share on other sites

Link to post
Share on other sites

32 minutes ago, brwainer said:

I'm not sure what you mean... I use the commands in the link to run remote powerhsell commands on a daily basis. Once you've entered the PSSession, you are running commands on the remote computer. 

When I use the pssession command I get the following error:

 

Enter-PSSession : Connecting to remote server failed with the following error m
essage : Aanmeldingsfout: onbekende gebruikersnaam of ongeldig wachtwoord. For
more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:16
+ enter-pssession <<<< -computername NL001 -credential user
+ CategoryInfo : InvalidArgument: (NL001:String) [Enter-
PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

What I do is start powershell as admin and use the following command:

 

Enter-PSSession -ComputerName NameOfPc -credential UserLogon

 

as user login I tried clients login name and password...mine and even the administrator but doesnt work.

I also tried to put domein name infront of the loginname.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Rotterdams said:

What I do is start powershell as admin and use the following command:

 


Enter-PSSession -ComputerName NameOfPc -credential UserLogon

 

as user login I tried clients login name and password...mine and even the administrator but doesnt work.

I also tried to put domein name infront of the loginname.

The error you pasted is complaining about the NameOfPC (NL001), not the login username. Make sure that the name resolves in DNS, and use the FQDN if possible.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 12/28/2016 at 9:57 PM, Rotterdams said:

I dont want to use any kind of software or program.

 

I want to use cmd / powershell. Something which is already built in Windows.

If it were that simple you would already have the answer. 

Link to comment
Share on other sites

Link to post
Share on other sites

Can you event do a remote session with the client? Try test  test-wsman -Computername "{computername}" 

 

If that doesn't work execute this on the remote computer wimrm quickconfig  

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×