Tuesday, May 31, 2016

list all shell variables

( set -o posix ; set ) | less

From :

https://askubuntu.com/questions/275965/how-to-list-all-variables-names-and-their-current-values/356973

Thursday, May 26, 2016

Disable rdp printer mapping

HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

RegDWORD  fDisableCpm   1

From
https://blogs.technet.microsoft.com/rmilne/2014/06/02/how-to-disable-remote-desktop-printer-mapping/

List logged in users on Windows

query user /server:$SERVER

From

http://stackoverflow.com/q/23219718/4611335