...
Code Block | ||
---|---|---|
| ||
# Add credentials for a local user cmdkey /generic:test-targetrun_as_jobuser /user:JOBUSER /pass:PASSWORD # Add credentials for a domain user cmdkey /generic:test-targetrun_as_jobuser /user:JOBUSER@DOMAIN /pass:PASSWORD # Show a list of all credentials cmdkey /list |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<job order="yes" stop_on_error="no" credentials_key="run_as_userjobuser" load_user_profile="true"> <script language="shell"> <![CDATA[ @echo username %USERNAME% @echo userprofile %USERPROFILE% ]]> </script> <run_time /> </job> |
...