MyComputingArt

Articles about computing. What are you interested in?

Current filter: »command-line« (Click tag to exclude it or click a conjunction to switch them.)

.htaccess, android, apache, bloxsom, bluetooth, broadcast, case, chat, client-server, command-line, configuration, cool'n'quiet, cooling, cpu, disk suspension, dsl, error, fan, fan controller, file management, firefox, firewall, freeware, google, google earth, gpg, gps, grub, hardware, heatsink, howto, images, internet, jabber, lapping, linux, measurement, messaging, motherboard, mp3, mysql, network, password, pda, perl, phone, programming, programming , qemu, rdp, regex, router, screen recording, script, security, shell, silencing, software, spreadsheet, spyware, system recover, tools, ubuntu, virtualization, visual basic, VMWare, vnc, vpn, web, windows, wireless, xen, xmpp, xp



How to associate username and SID

To know which is the username associated with a known SID (Security Identifier), open the registry (regedit.exe) at this location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.

Registry editor with SID keys (62k)

Each SID key has a ProfileImagePath string whose value is the user path which contains the username.
To know which is the SID associated with a known username, select the ProfileList key and search the username.

There is also a SysInternals command-line utility which shows the SID associated with a known username:

C:\>psgetsid Z24

PsGetSid v1.43 - Translates SIDs to names and vice versa
Copyright (C) 1999-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

SID for WAM2\Z24:
S-1-5-21-1993962763-2139871995-725345543-1003
or the username associated with a known SID:
C:\>psgetsid S-1-5-21-1993962763-2139871995-725345543-1003

PsGetSid v1.43 - Translates SIDs to names and vice versa
Copyright (C) 1999-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

Account for WAM2\S-1-5-21-1993962763-2139871995-725345543-1003:
User: WAM2\Z24


   PDF

Posted by: Z24 | Thu, Aug 21 2008 | Category: /windows | Permanent link | home
Tagged as: , , ,



How to mount an image file and access image content

To get access to the content of a virtual machine image or a ISO file, follow these steps:



   PDF

Posted by: Z24 | Thu, Jul 10 2008 | Category: /linux | Permanent link | home
Tagged as: , ,



Launching control panel dialogs from command line

It is possible to directly open the control panel configuration dialogs writing commands in the Run dialog or in a dos prompt window:

control command in Run dialog (10k)
control admintools: open Administrative Tools
control date/time: open the Date and Time properties
control desktop: open the Display properties
control color: open the Display properties and go to Appearance tab
control folders: open Folder Options
control fonts: open the Fonts properties
control infrared: open the Infrared properties
control keyboard: open the Keyboard properties
control mouse: open the Mouse properties
control netconnections: open Network Connections
control telephony: open Phone and Modem Options
control printers: open the Printers properties
control international: open the Regional Settings
control schedtasks: open the Scheduled tasks
control userpasswords: open the User Accounts properties
control userpasswords2: open the Advanced User Accounts properties
control: open the control panel

If the "Safely Remove Hardware" icon disappears, the control command can help:
control hotplug.dll: open the "Safely Remove Hardware" window

Every *.cpl file in the Windows directory can be opened with the control cplfile command:
control vp7dec_settings.cpl: open the On2 VP7 Decompressor Settings, if VP7 codec is installed.

Moreover, some cpl files accept two arguments:
control cplfile[,[@first][,second]]: the first argument indicates the function (if a cpl file controls multiple functions), the second argument indicates the tab of the window to display.
control main.cpl,@0,2: show the 3rd tab of the mouse properties (main.cpl controls mouse and keyboard, @0 is for mouse properties, 2 is the 3rd tab)
control main.cpl,@1,0: show the 1st tab of the keyboard properties (@1 is for kbd properties, 0 is the 1st tab)



   PDF

Posted by: Z24 | Fri, Sep 21 2007 | Category: /windows | Permanent link | home
Tagged as: , ,



Execute a command at shutdown

To dismount TrueCrypt volumes at shutdown and reboot time, I created a script, put it in/etc/init.d/ and symlinked it into the needed /etc/rc?.d/ directories using update-rc.d.
Here is the detail:

See full post ...



   PDF

Posted by: Z24 | Sun, Aug 27 2006 | Category: /linux | Permanent link | home
Tagged as: , , , ,



Pausing a command

How to pause / suspend / sleep a running command in a terminal?
Press Ctrl+S
How to resume the paused command?
Press Ctrl+Q

   PDF

Posted by: Z24 | Sun, Aug 27 2006 | Category: /linux | Permanent link | home
Tagged as: , ,



How to rename multiple files from bash

Rename all *html files to *test:

for x in `ls *html`; do mv $x `echo $x | sed -e "s/html/test/"`; done

Bash for:
for var in some-list ; do command ; done


   PDF

Posted by: Z24 | Sun, Aug 27 2006 | Category: /linux | Permanent link | home
Tagged as: , , , ,


About
About
RSS
rss
Donate
Did I save you time or trouble?

Thanks ;-)
Skin
Categories
Archives
Search
Search MyComputingArt

word word = any word
+word +word = all the words
regexp pattern


Search hardware reviews

Visitors

since August 2006

free counters
since September 2009


Powered by Blosxom
FlagCounter Locations of mycomputingart.com visitors Map

Valid HTML 4.01 Strict    Valid CSS!

http://www.mycomputingart.com/

To contact the webmaster and author write to: info<at>mycomputingart<dot>com
© mycomputingart.com, year(today()).