Wednesday, July 27, 2011

Windows Shortcuts

Windows Commands

Control Panel

CONTROL: opens the control panel window
CONTROL ADMINTOOLS: opens the administrative tools
CONTROL KEYBOARD: opens keyboard properties
CONTROL COLOUR: opens display properties.Appearance tab
CONTROL FOLDERS: opens folder options
CONTROL FONTS: opens font policy management
CONTROL INTERNATIONAL or INTL.CPL: opens Regional and Language option
CONTROL MOUSE or MAIN.CPL: opens mouse properties
CONTROL USERPASSWORDS: opens User Accounts editor
CONTROL USERPASSWORDS2 or NETPLWIZ: User account access restrictions
CONTROL PRINTERS: opens faxes and printers available
APPWIZ.CPL: opens Add or Remove programs utility tool
OPTIONALFEATURES: opens Add or Remove Windows component utility
DESK.CPL: opens display properties. Themes tab
HDWWIZ.CPL: opens add hardware wizard
IRPROPS.CPL: infrared utility tool
JOY.CP: opens game controllers settings
MMSYS.CPL: opens Sound and Audio device Properties. Volume tab
SYSDM.CPL: opens System properties
TELEPHON.CPL: Opens phone and Modem options
TIMEDATE.CPL: Date and Time properties
WSCUI.CPL: opens Windows Security Center
ACCESS.CPL: opens Accessibility Options
WUAUCPL.CPL: opens Automatic Updates
POWERCFG.CPL: opens Power Options Properties
AZMAN.MSC: opens authorisation management utility tool
CERTMGR.MSC: opens certificate management tool
COMPMGMT.MSC: opens the Computer management tool
COMEXP.MSC or DCOMCNFG: opens the Computer Services management tool
DEVMGMT.MSC: opens Device Manager
EVENTVWR or EVENTVWR.MSC: opens Event Viewer
FSMGMT.MSC: opens Shared Folders
NAPCLCFG.MSC: NAP Client configuration utility tool
SERVICES.MSC: opens Service manager
TASKSCHD.MSC or CONTROL SCHEDTASKS: opens Schedule Tasks manager
GPEDIT.MSC: opens Group Policy utility tool
LUSRMGR.MSC: opens Local Users and Groups
SECPOL.MSC: opens local security settings
CIADV.MSC: opens indexing service
NTMSMGR.MSC: removable storage manager
NTMSOPRQ.MSC: removable storage operator requests
WMIMGMT.MSC: opens (WMI) Window Management Instrumentation
PERFMON or PERFMON.MSC: opens the Performance monitor
MMC: opens empty Console
MDSCHED: opens memory diagnostics tools
DXDIAG: opens DirectX diagnostics tools
ODBCAD32: opens ODBC Data source Administrator
REGEDIT or REGEDT32: opens Registry Editor
DRWTSN32: opens Dr. Watson
VERIFIER: opens Driver Verifier Manager
CLICONFG: opens SQL Server Client Network Utility
UTILMAN: opens Utility Manager
COLORCPL: opens color management
CREDWIZ: back up and recovery tool for user passwords
MOBSYNC: opens Synchronization center
MSCONFIG: opens System Configuration Utility
SYSEDIT: opens System Configuration Editor (careful while using this command)
SYSKEY: Windows Account Database Security management (careful while using this command)
Windows utility and applications

EXLORER: Opens windows Explorer
IEXPLORER: Opens Internet explorer
WAB: opens Contacts
CHARMAP: opens Character Map
WRITE: opens WordPad
NOTEPAD: opens Notepad
CALC: opens Calculator
CLIPBRD: opens Clipbook Viewer
WINCHAT: opens Microsoft Chat Interface
SOUNDRECORDER: opens sound recording tool
DVDPLAY: run CD or DVD
WMPLAYER: opens Windows Media Player
MOVIEMK: Opens untitled Windows Movie Maker
OSK: opens on-screen Keyboard
MAGNIFY: opens Magnifier
WINCAL: opens Calendar
DIALER: opens phone Dialer
EUDCEDIT: opens Private Character Editor
NDVOL: opens the mixer volume
RSTRUI : opens Tool System Restore (For Vista only)
%WINDIR%\SYSTEM32\RESTORE\rstrui.exe: opens Tool System Restore (for XP only).
MSINFO32: Opens the System Information
MRT : launches the utility removal of malware.
Taskmgr : Opens the Windows Task Manager
CMD: opens a command prompt
MIGWIZ: Opens the tool for transferring files and settings from Windows (Vista only)
Migwiz.exe: Opens the tool for transferring files and settings from Windows (for XP only)
SIDEBAR: Open the Windows (Vista only)
Sigverif : Opens the tool for verification of signatures of files
Winver : Opens the window for your Windows version
FSQUIRT: Bluetooth Transfer Wizard
IExpress opens the wizard for creating self-extracting archives. Tutorial HERE
MBLCTR: opens the mobility center (Windows Vista only)
MSRA : Opens the Windows Remote Assistance
Mstsc : opens the tool connection Remote Desktop
MSDT: opens the diagnostic tools and support Microsoft
WERCON: opens the reporting tool and solutions to problems (for Vista only)
WINDOWSANYTIMEUPGRADE: Enables the upgrade of Windows Vista
WINWORD : opens Word (if installed)
PRINTBRMUI : Opens migration wizard printer (Vista only)
Disk management

DISKMGMT.MSC: opens disk management utility
CLEANMGR: opens disk drive clean up utility
DFRG.MSC: opens disk defragmenter
CHKDSK: complete analysis of disk partition
DISKPART: disk partitioning tool
Connection management

IPCONFIG: list the configuration of IP addresses on your PC (for more information type IPCONFIG/? in the CMD menu)
INETCPL.CPL: opens internet properties
FIREWALL.CPL: opens windows firewall
NETSETUP.CPL: opens network setup wizard
Miscellaneous commands

JAVAWS: View the cover of JAVA software (if installed)
AC3FILTER.CPL: Opens the properties AC3 Filter (if installed)
FIREFOX: Mozilla launches Firefox (if installed)
NETPROJ: allow or not connecting to a network projector (For Vista only)
LOGOFF: closes the current session
SHUTDOWN: shut down Windows
SHUTDOWN-A: to interrupt Windows shutdown
%WINDIR% or %SYSTEMROOT%: opens the Windows installation
%PROGRAMFILES%: Opens the folder where you installed other programs (Program Files)
%USERPROFILE%: opens the profile of the user currently logged
%HOMEDRIVE%: opens the browser on the partition or the operating system is installed
%HOMEPATH%: opens the currently logged user C: \ Documents and Settings \ [username]
%TEMP%: opens the temporary folder
VSP1CLN: deletes the cache for installation of the service pack 1 for Vista
System File Checker (Requires Windows CD if the cache is not available):
SFC / scannow: immediately scans all system files and repairs damaged files
SFC / VERIFYONLY: scans only those files system
SFC / Scanfil = "name and file path": scans the specified file, and repaired if damaged
SFC / VERIFYFILE = "name and file path": Scans only the file specified
SFC / scanonce: scans the system files on the next restart
SFC / REVERT: return the initial configuration (For more information, type SFC /? In the command prompt CMD.

Windows Server 2003 Commands

Most admin tools in Windows Server 2003 are MMC consoles you can access from the Start menu. But you can also open this console from the command line if you know their .msc filenames. This can be especially useful if you log on to your admin workstation using a limited privilege account and use Runes to perform admin tasks. For reference, here's a list of admin tools with their associated .msc files. You can print this out and tape it on the wall beside your workstation until you memorize the ones you use most commonly.

AD Domains and Trusts
domain.msc

Active Directory Management
admgmt.msc

AD Sites and Services
dssite.msc

AD Users and Computers
dsa.msc

ADSI Edit
adsiedit.msc

Authorization manager
azman.msc

Certification Authority Management
certsrv.msc

Certificate Templates
certtmpl.msc

Cluster Administrator
cluadmin.exe

Computer Management
compmgmt.msc

Component Services
comexp.msc

Configure Your Server
cys.exe

Device Manager
devmgmt.msc

DHCP Management
dhcpmgmt.msc

Disk Defragmenter
dfrg.msc

Disk Manager
diskmgmt.msc

Distributed File System
dfsgui.msc

DNS Management
dnsmgmt.msc

Event Viewer
eventvwr.msc

Indexing Service Management
ciadv.msc

IP Address Manage
ipaddrmgmt.msc

Licensing Manager
llsmgr.exe

Local Certificates Management
certmgr.msc

Local Group Policy Editor
gpedit.msc

Local Security Settings Manager
secpol.msc

Local Users and Groups Manager
lusrmgr.msc

Network Load balancing
nlbmgr.exe

Performance Monitor
perfmon.msc

PKI Viewer
pkiview.msc

Public Key Management
pkmgmt.msc

QS Control Management
acssnap.msc

Remote Desktops
tsmmc.msc

Remote Storage Administration
rsadmin.msc

Removable Storage
ntmsmgr.msc

Removable Storage Operator Requests
ntmsoprq.msc

Routing and Remote Access Manager
rrasmgmt.msc

Resultant Set of Policy
rsop.msc


Schema management
schmmgmt.msc

Services Management
services.msc

Shared Folders
fsmgmt.msc

SID Security Migration
sidwalk.msc

Telephony Management
tapimgmt.msc

Terminal Server Configuration
tscc.msc

Terminal Server Licensing
licmgr.exe

Terminal Server Manager
tsadmin.exe

UDDI Services Management
uddi.msc

Windows Management Instrumentation
wmimgmt.msc

WINS Server manager
winsmgmt.msc


PC Troubleshooting, Problems and Solutions

1. PC slow problems:

1. Check system configuration.

2. Check RAM.

3. Check RAM or CPU usage.

4. Open task manager Ctrl + Alt + Delete.

5. Go to Processes tab.

6. Check which services is using more CPU or Mem Usage.

7. Select those Service and then Right Click and click End Processes Tree.

8. Go to Performance tab.

9. Check PF Usage (PF Usage is not to be more than your PC RAM or Equal, If the PF Usage is equal or more than RAM so please close some applications who is using more RAM).

10. Check Antivirus (If antivirus is on processes for background scanning please restart your PC once).

11. If PC speed is not increased so please Restart your PC once.

12. Check Firefox (Firefox is using more RAM; please uninstall some un-necessary Add-ons from your browser).

13. Clear browser History, Temp Files and Cookies.

14. Clear system Temp Files.

15. Open My Computer, Right Click on C Drive and go to its Properties.

16. Click Disk Cleanup.

17. Check all the Check Boxes and the click Ok.

18. Delete the entire un-necessary file from C Drive (check C Drive Free Space If it is not enough then delete or move some files from C Drive to other please).

2. Outlook Problem mails not sending, receiving, not open etc:

1. Open task manager Ctrl + Alt + Delete.

2. Go to Processes tab.

3. End process all the Outlook.exe processes and open Outlook again (most of the outlook problem will be automatically solved).

4. Check internet is working or not.

5. Check Outlook Account Settings.

6. Check Outbox mail size if it is more then 1 or 2 MB it will take time to send.

3. Skype Problem Skype is not open or giving don’t send error:

1. Open My Computer.

2. Go to C Drive à Documents and Settings à Current User Account à Application Data à Skype (Current User Account means Your Windows user account which is you are using).

3. Copy and paste Skype ID folder to other place which is employee is using.

4. Open Add/Remove program from Control Panel.

5. Remove Skype.

6. Restart PC

7. Search Skype in C Drive or Delete all the searched files.

8. Install Skype again.

9. Copy and paste Skype ID folder from other place to Skype folder.

10. Start Skype.

4. Mozilla Firefox Problem Firefox is not open or giving don’t send error, Firefox Crash:

1. Open My Computer.

2. Go to C Drive à Documents and Settings à Current User Account à Application Data à Mozilla àFirefox à Profiles à Default Profile (Current User Account means Your Windows user account which is you are using).

3. Copy and paste Bookmarks backup folder and Bookmarks.html file to other place.

4. Open Add/Remove program from Control Panel.

5. Remove Mozilla Firefox.

6. Restart PC

7. Search Firefox or Mozilla in C Drive or Delete all the searched files.

8. Open Run Command and type regedit then click Ok.

9. Go to HKEY_LOCAL_MACHINE à SOFTWARE

10. Delete Mozilla, Mozilla.org, Mozilla Plugins.

11. Install Mozilla Firefox again.

12. Copy and paste Bookmarks backup folder and Bookmarks.html file from other place to Mozilla folder.

13. Start Firefox.

Monday, July 25, 2011

registry editing disabled by administrator

Registry Editing has been disabled by your administrator


Registry Editing has been disabled by your administrator, if you get this error message. The registry editor has been disabled by your system admin through group policy.


We can remove the restriction through a command in standalone machine.

1. Go to Command Prompt. Type the below command

2. REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v
DisableRegistryTools /t REG_DWORD /d 0 /f

Scripts for Coping folder

Script to copy a folder

Scripting language is very handy tool for system admins, if u learned the scripting. we can finish the work as fast.

Today , here i would like to write a script about how to copy a folder. Copy the below code to notepad and save it as .vbs extension. And edit the source and destination in the script.
__________________________________________________________________________________

sFolder = "c:\testfolder"
dFolder = "\\remoteservername\sharename"
Set objFSO = CreateObject ("scripting.fileSystemObject")
objFSO.CopyFolder sFolder, dFolder


Script to create a folder

A simple VB script can create a folder on a system. Folder creation is very simple all are known, but why I write this script, because if we want create a folder on all system, we can use this on logon script through group policy.
1) Open your notepad, copy the below code.


Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.CreateFolder("c:\Serveradmin")
msgbox “Successful created”
And save as .vbs extension and execute it, now you check the “C” drive, the folder is created.

task manager disabled by administrator xp

Task manager disabled by administrators

Click Start, Run and type Regedit.exe

Navigate to the following branch:
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies\ System

In the right-pane, delete the value named DisableTaskMgr

Close Regedit.exe and reboot the pc


Using Group Policy Editor - for Windows XP Professional

Click Start, Run, type gpedit.msc and click OK.
Navigate to this branch:
User Configuration / Administrative Templates / System / Ctrl+Alt+Delete Options / Remove Task Manager

Double-click the Remove Task Manager option.
Set the policy to Not Configured.

Sunday, July 24, 2011

Disable Writing to USB Drives in registry

Disable Writing to USB Drives

A common security concern at organizations is allowing users to plug in a usb flash drive, because they could so easily copy corporate data.

Since Windows XP SP2, you can disable writing to USB devices altogether using a simple registry hack. Here it is:

Disable

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
“WriteProtect”=dword:00000001

Enable

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
“WriteProtect”=dword:00000000

You can also just download one of the following registry tweaks to enable or disable writing to USB drives.

Active Directory Users logon and logoff report

Active Directory Users logon and logoff report


For Active directory user’s logon and logoff reports, it needs the third party tools. But in windows have that capability. Most of the IT professionals are not learned DOS commands in-depth. The DOS command does this process. All are heard about echo command; this command can do the report for our need.

For Example:-
Go to your command prompt, type the below following command.
c:\windows> Echo %username% is logged on to %computername% at %time%
The above command gives the output like his name, computer name and login time. 




Our need is to generate report for all users, so here we need to create a logon batch file script. 

Before creating the batch file, we need to create a central repository for storing the log files. 

Create a hidden share for logon, logoff and give the permission to users.

Batch file for logon script Copy the below code edit the systemname, sharename and paste into the notepad, then save it as batch (.bat) file.

Echo %username% is logged on to %computername% at %time% >> \\systemname\Sharename$\%username%_logon.csv

The batch file needs to put on the logon script in the group policy. All log files will be save in separate for each users. 



For Log off report use the below command for batch file

Echo %username% is logged on to %computername% at %time% >> \\systemname\Sharename$\%username%_logoff.csv

Copy the above code and create a batch file, apply on the logoff script in the group policy.