blob: a7d1ef40a84fbc874e0bda3843b260b42ba1d07d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
To use PsExec on a Windows 10 remote machine we need to apply a registry patch:
1. Open RegEdit on your remote server
2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
3. Add a new DWORD value called LocalAccountTokenFilterPolicy
4. Set its value to 1
Example Usage:
-> User Name
-> Password
-> HostName
-> Absolute/relative file path.
-> '-d' means don't wait for the process to exit. (Not sure it is working)
-> '-accepteula' means suppress the license dialog.
psexec -u panel-pc -p Aa123456 -i \\panel-pc "\\Twine01\data\Roy BACKUP\Debug\PanelTest.exe" -d -accepteula
|