Skip to content
  • About’n’Search
  • Datenschutzerklärung // Privacy Declaration

bytes and bones

stuff that matters

Category: command line

Written by #xxaxxelxxJanuary 20, 2023

Saving and restoring printer settings on windows.

Restoring:

Written by #xxaxxelxxSeptember 27, 2022

windows terminal server | remote desktop session to different collection members without getting load balanced

Build a batch file like direct_access_tsmember01.cmd: start “” mstsc /admin /v:tsmember01 /w:2200 /h:1100

Written by #xxaxxelxxSeptember 27, 2022

windows | run program in cmd und close terminal window

start “” myprog.exe

Written by #xxaxxelxxFebruary 22, 2017

Convert files Unix to DOS

sed -e ‘s/$/\r/’

Written by #xxaxxelxxJune 29, 2016

WINDOWS | Console | Create scheduled task running at login with highest privileges

schtasks /create /tn “LOGON_AUTORUN” /tr C:\PATH\AUTORUN.CMD /sc ONLOGON /ru %AUTORUN_USER% /rp %AUTORUN_PASS% /rl highest /IT https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357

Written by #xxaxxelxxJune 29, 2016June 29, 2016

WINDOWS | Console | Command line | Batch | Change directory to current directory

PUSHD %~dp0 https://technet.microsoft.com/en-us/library/bb490909.aspx

Written by #xxaxxelxxJune 29, 2016June 29, 2016

WINDOWS | Console | Create scheduled task running at system start with highest privileges

schtasks /create /tn “TASK NAME” /tr C:\PATH\BATCH.CMD /sc ONSTART /ru system /rl highest https://msdn.microsoft.com/en-us/library/windows/desktop/bb736357

Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • bytes and bones
    • Join 93 other followers
    • Already have a WordPress.com account? Log in now.
    • bytes and bones
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar