More XP Notes
Yes, more XP Notes
Contents
- Boot.ini
- Commands
- Programs
- Add\Remove Programs
- Simple File Sharing
- Program Versions
- Compatibility Mode
- Show Desktop
- Show Windows Version
- Emergency Shutdown
- Setup Manager
- Special Identities
- Default Permissions
- Copy vs Move
- Network Diagnostics
- Shutdown
- MSC Commands
- CPL Commands
- Control Commands
- Installing Programs
- Installing Hardware
- Memory
- Task Manager
- Start
- Startup Locations
- Power-Saving
- Indexing Service
- Encrypting File System
- Data Recovery Agents
- Clear Pagefile at Shutdown
Boot.ini
Top Bottomenter a value of -1 to change menu to notimeout
use: /sos switch to see drivers load
/noguiboot to remove splash screen
install the command console using the XP CD
Commands
Top BottomGraphical Help on Commands: “%systemroot%\pchealth\helpctr\binaries\helpctr /url ms-its:%systemroot%\Help\ntcmds.chm::/ntcmds.htm”
- net (user | localgroups)
- driverquery /v /fo csv > drvlist.csv (produces list of drivers)
- command (switch to 16-bit console)
- osk (on screen keyboard)
- schtasks – allows you to configure scheduled tasks on local and remote computers (you can also schedule tasks on remote machines via network neighbourhood)
Programs
Top Bottom- msconfig.exe
- msinfo32.exe
Add\Remove Programs
Top Bottomedit sysoc.inf to see all programs that can be added\removed
Simple File Sharing
Top Bottomturn this off using “folder options...view
Program Versions
Top BottomIf properties displays a version tab, then its 32-bit
Compatibility Mode
Top Bottomthe properties tab of an executable contains a compatibility mode option
Show Desktop
Top Bottomcreate the file desktop.scf with the following then drop it where you need it :
[Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop
Show Windows Version
Top Bottomhkcu\controlpanel\dektop\paintdesktopversion = 1
Emergency Shutdown
Top BottomCtrl+Alt_Del, then hold the control key as you click shutdown
Setup Manager
Top Bottomsetupmgr.exe available from the support tools on the XP CD
Special Identities
Top BottomEveryone – Eveyone but anonymous logins
Creator Owner – Creator or owner
Authenticated User – Anyone who logs on with username and password except Guest
Interactive User – Any one who logs on locally including remote desktop connections
Network – Any user that logs on over the network
Default Permissions
Top BottomSee Q244600
Copy vs Move
Top BottomCopying (same drive) – file inherits permissions from destination, you become owner
Move (same drive) – file keeps its permissions, you become owner
Move (different drive) – same as copy
Network Diagnostics
Top Bottomuse network diagnostics from tools menu in msinfo32.exe
Shutdown
Top Bottom-i display gui
-l logoff
-s shutdown
-r restart
-a abort
-m \\computername
-t xx timeout
-c “comment”
-f force
MSC Commands
Top Bottom- lusrmgr.msc
- devmgmt.msc
- compmgmt.msc
- secpol.msc (security policy)
- gpedit.msc (local computer/group policy)
- certmgr.msc (certificates)
- ciadv.msc (indexing service)
- dfrg.msc
- diskmgmt.msc
- eventvwr.msc
- fsmgmt.msc (shared folders)
- ntmsmgr.msc (removable storage)
- ntmsoprq.msc (removable storage operator requests)
- perfmon.msc
- rsop.msc (resultant set of policy)
- services.msc
- wmimgmt
CPL Commands
Top Bottom- odbccp32.cpl (try odbcad32.exe instead)
- ncpa.cpl
- access.cpl (accessibility)
- hdwwiz.cpl (add/detect hardware wiz)
- appwiz.cpl (add remove software)
- sysdm.cpl (system properties)
- timedate.cpl (date and time properties)
- desk.cpl (display properties)
- rundll32.exe shell32.dll,Options_RunDLL 1 (taskbar and start menu)
- joy.cpl (configure joystick)
- inetcpl.cpl (configure ie properties)
- mmsys.cpl (multimedia properties)
- main.cpl (mouse properties)
- intl.cpl (internationalisation)
- telephon.cpl (phone and modem options)
- powercfg.cpl (power options)
- irprops.cpl (wireless connections)
- nusrmgr.cpl (user accounts)
Control Commands
Top Bottom- control printers (open printers folder)
- control scannercamera (scanners and cameras)
- control schedtasks
- control netconnections (try ncpa.cpl instead)
- control speech (speech properties)
- control main.cpl,@1,1 (keyboard properties)
- control admintools (administrative tools folder)
- control folders (folder options)
- control fonts (open fonts folder)
- control (userpasswords | userpasswords2)
Installing Programs
Top BottomLimited Users will only be able to install if the program:
- copies files to the users profile
- updates entries in HKCU
- installs shortcuts to current users logon
Right-click a programs icon to set compatibility mode.
The hardware tab in sysdm.cpl allows you to alter unsigned driver prompts
Most Win2K drivers will work on XP
Installing Hardware
Top BottomInstall driver software before plugging in hardware – driver files and inf files get copied to your system, and XP will then install hardware when its plugged in
Memory
Top BottomCommit-Charge: (total) total of physical and virtual memory in use
(limit) total the OS makes available to applications
Physical Memory (total) amount of RAM installed
(available) total RAM windows makes available to apps before swapping
(system cache) total amount of RAM used to cache recently accessed data and programs
Kernel Memory (total) amount of RAM used by kernel
(paged) amount of kernel mapped to pages
(non-paged) amount of kernel that must remain in RAM
If (Total Commit Charge) > (Total Physical Memory) Then (Paging Occurs)
If (Peak Commit Charge) > (Total Physical Memory) then (Paging Will Have Been Occurring)
If you have excessive amounts of physical memory, windows caches recently accessed data for faster performance
Task Manager
Top BottomEnd task on the Programs Tab, is the same as close a program via its menus: End Task on the Process Tab will immeadiately try to zap the program.
Monitoring IO Read/Writes can tell you which programs are causing disk thrashing
Start
Top BottomChange default priority of a program at startup:
Start (/low | /normal | /high | /realtime | /abovenormal | /belownormal) “programname”
Startup Locations
Top Bottom- Startup folders
- Run Key ( HKCU & HKLM\Software\Microsoft\Windows\CurrentVersion\Run, RunOnce, RunOnceEx)
- Schedtasks
- Win.ini (Load= and Run= )
- Group Policy (admin templates system\logon and windows settings\scripts for both computer and user)
Power-Saving
Top BottomStandy – suspends to memory – draws some power to retain memory image.
Hibernation – suspends to disk – no power consumption required
Indexing Service
Top BottomTurned on and off via search companion
Tune performance via ciadv.msc
Encrypting File System
Top BottomDisable EFS using a DWORD value of 1 at HKLM\Software\WindowsNT\CurrentVersion\EFS or via group policies.
You can't encrypt compressed files – windows will uncompress them if you choose to encrypt
You can't encrypt files with the system attribute, in a roaming profile or files in %SYTEMROOT%. Encrypted files can still be deleted by oter users. Copying an encrypted file to a volume that does not support EFS (eg NT4 or a FAT partition) will cause the file to lose its encryption. Backups do not remove encryption.
EFS using your public key to create a file encryption key (FEK). Encrypted files can only be decrypted using your personal encryption certificate (PEC) and private key (PK), which is only available on your login. If you copy encrypted files to another computer, you'll need to copy your PEC and PK also. PEC and PK are stored in your roaming profile. These should be backed up! Best to encrypt folders – this way new files in folder are automatically encrypted. To allow others to access the file, right-click, properties, advanced. You'll only be able to select users who already have an EFS key installed on that computer.
Data Recovery Agents
Top BottomCipher is the command-line encryption tool. Type “cipher /r:filename” to create a data recovery agent certificate. The generated .pfx and .cer files allow anyone to become a data recovery agent. Logon as the account you want to be the data recovery agent and using certmgr.msc import the certificate, typing the password that was used to protect the files. In secpol.msc, choose local security settings\public key policies\EFS, then choose add data recovery agent and browse to the .cer file. To prevent this user from decrypting the files, export and remove the private key using certmgr.msc. The recovery agent will then need the private key to view encrypted files. All users should backup their PEC using internet explorer, and Administrators should backup the recovery agent certificate using secpol.
Clear Pagefile at Shutdown
Top Bottomhklm\system\currentcontrolset\control\session manager\memory management\clearpagefileatshutdown = 1
Offline files Next.....
