Powered by Blogger.

Access command prompt of another PC via IP

Saturday, May 23, 2015

1. Download and extract PsTools to "C:\Windows\System32" in both source and target PCs (In my case both are Windows 8).

2. Open command prompt and type:
"reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f"

Following was the output:
The operation completed successfully.

3. Let us access "ipconfig" remotely as an example. Type the following in the command prompt of the source computer.

psexec \\destination_ip_address -u destination_username -p destination_password ipconfig

If you get the following error, please try the code given below in the remote PC.

Couldn't access
The network path was not found.

Make sure that the default admin$ share is enabled on

Code to try:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\AutoShareServer Change the AutoShareServer key to 1

1. http://stackoverflow.com/questions/18388381/make-sure-that-the-default-admin-share-is-enable-on-servername
2. serverfault.com/questions/422078/psexec-unknown-user-name-or-bad-password-in-workgroup

No comments: