psexec軟件的運用

  以下是PsExec的相關說明
PsExec 可在 Windows Vista、NT 4.0、Win2K、Windows XP 和 Server 2003(包括 64 位版本的 Windows)上運行。

PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

PsExec executes a program on a remote system, where remotely executed console
applications execute interactively.

Usage: psexec [\\computer[,computer2[,...] | @file][-u user [-p psswd]][-n s][-l
][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-<priority>][-a n,n,...
] cmd [arguments]
    -a       Separate processors on which the application can run with
            commas where 1 is the lowest numbered CPU. For example,
            to run the application on CPU 2 and CPU 4, enter:
            "-a 2,4"
    -c       Copy the specified program to the remote system for
            execution. If you omit this option the application
            must be in the system path on the remote system.
    -d       Don't wait for process to terminate (non-interactive).
    -e       Does not load the specified account's profile.
    -f       Copy the specified program even if the file already
            exists on the remote system.
    -i       Run the program so that it interacts with the desktop of the
            specified session on the remote system. If no session is
            specified the process runs in the console session.
    -l       Run process as limited user (strips the Administrators group
            and allows only privileges assigned to the Users group).
            On Windows Vista the process runs with Low Integrity.
    -n       Specifies timeout in seconds connecting to remote computers.
    -p       Specifies optional password for user name. If you omit this
            you will be prompted to enter a hidden password.
    -s       Run the remote process in the System account.
    -u       Specifies optional user name for login to remote
            computer.
    -v       Copy the specified file only if it has a higher version number
            or is newer on than the one on the remote system.
    -w       Set the working directory of the process (relative to
            remote computer).
    -x       Display the UI on the Winlogon secure desktop (local system
            only).
    -priority   Specifies -low, -belownormal, -abovenormal, -high or
            -realtime to run the process at a different priority. Use
            -background to run at low memory and I/O priority on Vista.
    computer Direct PsExec to run the application on the remote
            computer or computers specified. If you omit the computer
            name PsExec runs the application on the local system,
            and if you specify a wildcard (\\*), PsExec runs the
            command on all computers in the current domain.
    @file    PsExec will execute the command on each of the computers listed
            in the file.
    program Name of application to execute.
    arguments   Arguments to pass (note that file paths must be
            absolute paths on the target system).

You can enclose applications that have spaces in their name with
quotation marks e.g. psexec \\marklap "c:\long name app.exe".
Input is only passed to the remote system when you press the enter
key, and typing Ctrl-C terminates the remote process.

If you omit a user name the process will run in the context of your
account on the remote system, but will not have access to network
resources (because it is impersonating). Specify a valid user name
in the Domain\User syntax if the remote process requires access
to network resources or to run in a different account. Note that
the password is transmitted in clear text to the remote system.

Error codes returned by PsExec are specific to the applications you
execute, not PsExec.
中文釋義
computer:指示 PsExec 在指定的一臺或多臺計算機上運行應用程序。如果省略計算機名稱,則 PsExec 將在本地系統上運行應用程序;如果輸入計算機名稱“\\*”,則 PsExec 將在當前域中的所有計算機上運行應用程序。

@file:指示 PsExec 在指定的文本文件中列出的每臺計算機上運行命令。

-a:用逗號分隔可以運行應用程序的處理器,CPU 編號最小爲 1。例如,要在 CPU 2 和 CPU 4 上運行應用程序,請輸入:“-a 2,4”

-c:將指定的程序複製到遠程系統以便執行。如果省略此選項,則應用程序必須位於遠程系統上的系統路徑中。

-d:不等待應用程序終止。請只對非交互式應用程序使用此選項。

-e:不加載指定帳戶的配置文件。

-f:將指定的程序複製到遠程系統,即使遠程系統中已存在該文件。

-i:運行程序,以便它與遠程系統中指定會話的桌面進行交互。如果未指定會話,則進程將在控制檯會話中運行。

-l:以受限用戶身份(去除 Administrators 組的限,並且只允許使用分配給 Users 組的限)運行進程。在 Windows Vista 上,此進程將以“低完整性”運行。

-n:指定與遠程計算機連接的超時(秒)。

-p:指定用戶名的密碼(可選)。如果省略此選項,系統將示您輸入隱藏密碼。

-s:在系統帳戶中運行遠程進程。

-u:指定用於登錄遠程計算機的可選用戶名。

-v:僅在指定文件具有更高版本號或該文件比遠程系統上的文件新時複製該文件。

-w:設置進程的工作目錄(相對於遠程計算機)。

-x:在 Winlogon 桌面上顯示 UI(僅限於本地系統)。

-priority:指定 –low、-belownormal、-abovenormal、-high 或 -realtime 按不同優先級運行進程。

program:要執行的程序的名稱。

arguments:要傳遞的參數(請注意,文件路徑必須是目標系統中的絕對路徑)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章