Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM Display text file in shell
- type config.json
- REM Show running processes
- tasklist
- REM Kill process bei PID
- taskkill /pid 1060
- REM Get Command Line and PID of one process
- wmic process where caption="test.exe" get commandline,processid
- REM Kill process by Command Line
- wmic process Where "CommandLine Like '%-jar selenium-server.jar%'" Call Terminate
- REM Open RDP session with username + password
- cmdkey /generic:"hostnameXY" /user:"peter" /pass:"123"
- mstsc /v:hostnameXY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement