Powered By Blogger

Sunday, 19 April 2015

Windows Deployment Services

Step 1: Click Start.
Step 2: Click Administrative Tools.
Step 3: Then, Click Server Manager.
Step 4: Add Roles, located in the Roles Summary pane.
Step 5: Click Next.
Step 6: Then, Select Windows Deployment Services.
Step 7: Click Next.
Step 8: Make sure that the Development Server and Transport Server is checked.
Step 9: Click Next.
Step 10: Click Install. Wait for few minutes to finish installation.
Step 11: Then, Click Close.

Steps to configure Windows Deployment Services.

Step 1: Click Start.
Step 2: Click Administrative Tools.
Step 3: Then, Click Windows Deployment Services.
Step 4: In the left pane of the Windows Deployment Services MMC, expand the list of server.
Step 5: Right-click the server.
Step 6: Click Configure Server.

Steps to create Boot Image.

Step 1: Click Start.
Step 2: Click Administrative Tools.
Step 3: Click Windows Deployment Services.
Step 4: In the left pane of the Windows Deployment Services MMC, expand the list of server.
Step 5: Right-click on the Boot Images.
Step 6: Select Add Boot Image.
Step 7: Click Browse
Step 8: Insert your original Windows 7 CD on your CDROM Drive, and then navigate through
the following file path. D:\sources\boot.wim.
Step 9: Click Open.
Step 10: Click Next.
Step 11: On Image Name box, type Install Image.
Step 12: On Image Description box, type Install Image.
Step 13: Click Next. Wait for few minutes to finish adding boot image.
Step 14: Click Finish.

Steps to create Capture Image.

Step 1: On the WDS MMC left pane, Navigate through Boot Images > Install Image.
Step 2: Right-click on Install Image.
Step 3: Select Create Capture Image.
Step 4: On the Image name box, type Capture Image.
Step 5: On the Image description box, type Capture Image.
Step 6: Click Browse. The capture image file will be created and save on the server.
Step 7: Navigate through c:\remoteinstall\.
Step 8: Type File name: CaptureImage.wim, then click Open.
Step 9: Click Next. Wait for few minutes to finish creating capture image.
Step 10: Check Add image to the Windows Deployment Server, then click Finish.
Step 11: Click Next, Click Next, Click Next.
Step 12: Click Finish.




windows shortcut commands

Run commands

Calc - Calculator 
Cfgwiz32 - ISDN Configuration Wizard 
Charmap - Character Map 
Chkdisk - Repair damaged files 
Cleanmgr - Cleans up hard drives 
Clipbrd - Windows Clipboard viewer 
Cmd - Opens a new Command Window (cmd.exe) 
Control - Displays Control Panel 
Dcomcnfg - DCOM user security 
Debug - Assembly language programming tool 
Defrag - Defragmentation tool 
Drwatson - Records programs crash & snapshots 
Dxdiag - DirectX Diagnostic Utility 
Explorer - Windows Explorer 
Fontview - Graphical font viewer 
Ftp - ftp.exe program 
Hostname - Returns Computer's name 
Ipconfig - Displays IP configuration for all network adapters 
Jview - Microsoft Command-line Loader for Java classes 
MMC - Microsoft Management Console 
Msconfig - Configuration to edit startup files 
Msinfo32 - Microsoft System Information Utility 
Nbtstat - Displays stats and current connections using NetBios over TCP/IP 
Netstat - Displays all active network connections 
Nslookup - Returns your local DNS server 
Odbcad32 - ODBC Data Source Administrator 
Ping - Sends data to a specified host/IP 
Regedit - registry Editor 
Regsvr32 - register/de-register DLL/OCX/ActiveX 
Regwiz - Reistration wizard 
Sfc /scannow - Sytem File Checker 
Sndrec32 - Sound Recorder
Sndvol32 - Volume control for soundcard 
Sysedit - Edit system startup files (config.sys, autoexec.bat, win.ini, etc.) 
Systeminfo - display various system information in text console 
Taskmgr - Task manager 
Telnet - Telnet program 
Taskkill - kill processes using command line interface 
Tskill - reduced version of Taskkill from Windows XP Home 
Tracert - Traces and displays all paths required to reach an internet host 
Winchat - simple chat program for Windows networks 
Winipcfg - Displays IP configuration 

Management Consoles

certmgr.msc - Certificate Manager 
ciadv.msc - Indexing Service 
compmgmt.msc - Computer management 
devmgmt.msc - Device Manager 
dfrg.msc - Defragment 
diskmgmt.msc - Disk Management 
fsmgmt.msc - Folder Sharing Management 
eventvwr.msc - Event Viewer 
gpedit.msc - Group Policy -XP Pro only 
iis.msc - Internet Information Services 
lusrmgr.msc - Local Users and Groups 
mscorcfg.msc - Net configurations 
ntmsmgr.msc - Removable Storage 
perfmon.msc - Performance Manager 
secpol.msc - Local Security Policy 
services.msc - System Services 
wmimgmt.msc - Windows Management 

Shortcuts

access.cpl - Accessibility Options 
hdwwiz.cpl - Add New Hardware Wizard 
appwiz.cpl - dd/Remove Programs 
timedate.cpl - Date and Time Properties 
desk.cpl - Display Properties 
inetcpl.cpl - Internet Properties 
joy.cpl - Joystick Properties 
main.cpl keboard - Keyboard Properties 
main.cpl - Mouse Properties 
ncpa.cpl - Network Connections 
ncpl.cpl - Network Properties 
telephon.cpl - Phone and Modem options 
powercfg.cpl - Power Management 
intl.cpl - Regional settings 
mmsys.cpl sounds - Sound Properties 
mmsys.cpl - Sounds and Audio Device Properties 
sysdm.cpl - System Properties 
nusrmgr.cpl - User settings 
firewall.cpl - Firewall Settings (sp2) 
wscui.cpl - Security Center (sp2)

Windows Environment Commands

%ALLUSERSPROFILE% - Open the All User's Profile 
%HomeDrive% - Opens your home drive e.g. C:\ 
%UserProfile% - Opens you User's Profile 
%temp% Opens - temporary file Folder 
%systemroot% - Opens Windows folder 

Wupdmgr - Takes you to Microsoft Windows Update 

General keyboard shortcuts

CTRL+C(Copy)
CTRL+X (Cut)
CTRL+Z (Undo)
DELETE (Delete) 
SHIFT+DELETE (Delete the selected item permanently without placing the item in the Recycle Bin) 
CTRL while dragging an item (Copy the selected item) 
CTRL+SHIFT while dragging an item (Create a shortcut to the selected item)
F2 key (Rename the selected item)
CTRL+RIGHT ARROW (Move the insertion point to the beginning of the next word) 
CTRL+LEFT ARROW (Move the insertion point to the beginning of the previous word) 
CTRL+DOWN ARROW (Move the insertion point to the beginning of the next paragraph) 
CTRL+SHIFT with any of the arrow keys (Highlight a block of text) 
CTRL+UP ARROW (Move the insertion point to the beginning of the previous paragraph)
SHIFT with any of the arrow keys (Select more than one item in a window or on the desktop, or select text in a document) 
CTRL+A (Select all) 
F3 key (Search for a file or a folder) 
ALT+ENTER (View the properties for the selected item) 
ALT+F4 (Close the active item, or quit the active program) 
ALT+ENTER (Display the properties of the selected object) 
ALT+SPACEBAR (Open the shortcut menu for the active window) 
CTRL+F4 (Close the active document in programs that enable you to have multiple documents open simultaneously)
ALT+TAB (Switch between the open items) 
ALT+ESC (Cycle through items in the order that they had been opened) 
F6 key (Cycle through the screen elements in a window or on the desktop) 
F4 key (Display the Address bar list in My Computer or Windows Explorer) 
SHIFT+F10 (Display the shortcut menu for the selected item) 
ALT+SPACEBAR (Display the System menu for the active window) 
CTRL+ESC (Display the Start menu) 
ALT+Underlined letter in a menu name (Display the corresponding menu)
Underlined letter in a command name on an open menu (Perform the corresponding command)
F10 key (Activate the menu bar in the active program)
RIGHT ARROW (Open the next menu to the right, or open a submenu)
LEFT ARROW (Open the next menu to the left, or close a submenu)
F5 key (Update the active window)
BACKSPACE (View the folder one level up in My Computer or Windows Explorer) 
ESC (Cancel the current task)
SHIFT when you insert a CD-ROM into the CD-ROM drive (Prevent the CD-ROM from automatically playing)
CTRL+SHIFT+ESC (Open Task Manager) Dialog box keyboard shortcuts

If you press SHIFT+F8 in extended selection list boxes, you enable extended selection mode. In this mode, you can use an arrow key to move a cursor without changing the selection. You can press CTRL+SPACEBAR or SHIFT+SPACEBAR to adjust the selection. To cancel extended selection mode, press SHIFT+F8 again. Extended selection mode cancels itself when you move the focus to another control.

CTRL+TAB (Move forward through the tabs)
CTRL+SHIFT+TAB (Move backward through the tabs)
TAB (Move forward through the options)
SHIFT+TAB (Move backward through the options)
ALT+Underlined letter (Perform the corresponding command or select the corresponding option)
ENTER (Perform the command for the active option or button)
SPACEBAR (Select or clear the check box if the active option is a check box)
Arrow keys (Select a button if the active option is a group of option buttons)
F1 key (Display Help)
F4 key (Display the items in the active list)
BACKSPACE (Open a folder one level up if a folder is selected in the Save As or Opendialog box) 

Microsoft natural keyboard shortcuts

Windows Logo+BREAK (Display the System Properties dialog box)
Windows Logo+D (Display the desktop)
Windows Logo+M (Minimize all of the windows)
Windows Logo+SHIFT+M (Restore the minimized windows)
Windows Logo+E (Open My Computer)
Windows Logo+F (Search for a file or a folder)
CTRL+Windows Logo+F (Search for computers)
Windows Logo+F1 (Display Windows Help)
Windows Logo+ L (Lock the keyboard)
Windows Logo+R (Open the Run dialog box)
Windows Logo+U (Open Utility Manager) 

Accessibility keyboard shortcuts

Right SHIFT for eight seconds (Switch FilterKeys either on or off)
Left ALT+left SHIFT+PRINT SCREEN (Switch High Contrast either on or off)
Left ALT+left SHIFT+NUM LOCK (Switch the MouseKeys either on or off)
SHIFT five times (Switch the StickyKeys either on or off)
NUM LOCK for five seconds (Switch the ToggleKeys either on or off)
Windows Logo +U (Open Utility Manager)

Windows Explorer keyboard shortcuts

END (Display the bottom of the active window)
HOME (Display the top of the active window)
NUM LOCK+Asterisk sign (*) (Display all of the subfolders that are under the selected folder)
NUM LOCK+Plus sign (+) (Display the contents of the selected folder)
NUM LOCK+Minus sign (-) (Collapse the selected folder)
LEFT ARROW (Collapse the current selection if it is expanded, or select the parent folder)
RIGHT ARROW (Display the current selection if it is collapsed, or select the first subfolder)

Shortcut keys for Character Map

After you double-click a character on the grid of characters, you can move through the grid by using the keyboard shortcuts
RIGHT ARROW (Move to the right or to the beginning of the next line)
LEFT ARROW (Move to the left or to the end of the previous line)
UP ARROW (Move up one row)
DOWN ARROW (Move down one row) 
PAGE UP (Move up one screen at a time)
PAGE DOWN (Move down one screen at a time)
HOME (Move to the beginning of the line)
END (Move to the end of the line)
CTRL+HOME (Move to the first character)
CTRL+END (Move to the last character) 
SPACEBAR (Switch between Enlarged and Normal mode when a character is selected)

Microsoft Management Console (MMC) main window keyboard shortcuts 

• CTRL+O (Open a saved console)
CTRL+N (Open a new console)
CTRL+S (Save the open console)
CTRL+M (Add or remove a console item)
CTRL+W (Open a new window) 
F5 key (Update the content of all console windows) 
ALT+SPACEBAR (Display the MMC window menu) 
ALT+F4 (Close the console) • ALT+A (Display the Action menu) 
ALT+V (Display the View menu) 
ALT+F (Display the File menu) 
ALT+O (Display the Favorites menu)

MMC console window keyboard shortcuts

CTRL+P (Print the current page or active pane) 
ALT+Minus sign (-) (Display the window menu for the active console window) 
SHIFT+F10 (Display the Action shortcut menu for the selected item) 
F1 key (Open the Help topic, if any, for the selected item) 
F5 key (Update the content of all console windows) 
CTRL+F10 (Maximize the active console window) 
CTRL+F5 (Restore the active console window) 
ALT+ENTER (Display the Properties dialog box, if any, for the selected item) 
F2 key (Rename the selected item) 
CTRL+F4 (Close the active console window. When a console has only one console window, this shortcut closes the console)

Remote desktop connection navigation

CTRL+ALT+END (Open the Microsoft Windows NT Security dialog box) 
ALT+PAGE UP (Switch between programs from left to right) 
ALT+PAGE DOWN (Switch between programs from right to left)
ALT+INSERT (Cycle through the programs in most recently used order) 
ALT+HOME (Display the Start menu) 
CTRL+ALT+BREAK (Switch the client computer between a window and a full screen) 
ALT+DELETE (Display the Windows menu) 
CTRL+ALT+Minus sign (-) (Place a snapshot of the entire client window area on the Terminal server clipboard and provide the same functionality as pressing ALT+PRINT SCREEN on a local computer.) 
CTRL+ALT+Plus sign (+) (Place a snapshot of the active window in the client on the Terminal server clipboard and provide the same functionality as pressing PRINT SCREEN on a local computer.)

Microsoft Internet Explorer navigation

CTRL+B (Open the Organize Favorites dialog box) 
CTRL+E (Open the Search bar)
CTRL+F (Start the Find utility)
CTRL+H (Open the History bar)
CTRL+I (Open the Favorites bar)
CTRL+L (Open the Open dialog box)
CTRL+N (Start another instance of the browser with the same Web address)
CTRL+O (Open the Open dialog box, the same as CTRL+L)
CTRL+R (Update the current Web page)
CTRL+ CTRL+P (Open the Print dialog box)
W (Close the current window)

Note Some keyboard shortcuts may not work if StickyKeys is turned on in Accessibility Options, Some of the Terminal Services client shortcuts that are similar to the shortcuts in Remote Desktop Sharing are not available when you use Remote Assistance in Windows XP Home Edition.
Thanks to The New Tech for the original forum posting.
Microsoft Office run commands
If the Microsoft Office is installed you can use following run commands to run its components:

winword – Microsoft Word
excel – Microsoft Excel
powerpnt – Microsoft PowerPoint
msaccess – Microsoft Access
outlook – Microsoft Outlook
ois – Microsoft Picture Manager

Installation of sarg report.

1. apt-get install sarg
2. backup of sarg.conf file.
3. open sarg.conf
4. insert below mentions parameters

# sarg.conf

# TAG: access_log file
access_log /var/log/squid/access.log

# TAG: graphs yes|no
graphs yes
graph_days_bytes_bar_color orange

# TAG: title
title "Squid User Access Reports"

# TAG: font_face
font_face Tahoma,Verdana,Arial

# TAG: header_color
header_color darkblue

# TAG: header_bgcolor
header_bgcolor blanchedalmond

# TAG: font_size
font_size 9px

# TAG: background_color
background_color white

# TAG: text_color
text_color #000000

# TAG: text_bgcolor
text_bgcolor lavender

# TAG: title_color
title_color green

# TAG: temporary_dir
temporary_dir /tmp

# TAG: output_dir
#output_dir /var/www/html/squid-reports
output_dir /var/www/sarg

# TAG: resolve_ip yes/no
resolve_ip

# TAG: user_ip yes/no
user_ip no

# TAG: topuser_sort_field field normal/reverse
topuser_sort_field BYTES reverse

# TAG: user_sort_field field normal/reverse
user_sort_field BYTES reverse

# TAG: exclude_users file
exclude_users /etc/squid3/sarg.users

# TAG: exclude_hosts file
exclude_hosts /etc/squid/sarg.hosts

# TAG: date_format
date_format u

# TAG: lastlog n
lastlog 0

# TAG: remove_temp_files yes
remove_temp_files yes

# TAG: index yes|no|only
index yes

# TAG: index_tree date|file
index_tree file

# TAG: overwrite_report yes|no
overwrite_report yes

# TAG: records_without_userid ignore|ip|everybody
records_without_userid ip

# TAG: use_comma no|yes
use_comma yes

# TAG: mail_utility mail|mailx
mail_utility mailx

# TAG: topsites_num n
topsites_num 100

# TAG: topsites_sort_order CONNECT|BYTES A|D
topsites_sort_order CONNECT D

# TAG: index_sort_order A/D
index_sort_order D

# TAG: exclude_codes file
exclude_codes /etc/squid/sarg.exclude_codes

# TAG: max_elapsed milliseconds
max_elapsed 28800000

# TAG: report_type type
#report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date downloads
report_type topusers topsites sites_users users_sites date_time denied auth_failures site_user_time_date downloads

# TAG: usertab filename
usertab /etc/squid/sarg.usertab

# TAG: long_url yes|no
long_url no

# TAG: date_time_by bytes|elap
date_time_by bytes

# TAG: charset name
charset Latin1

# TAG: show_successful_message yes|no
show_successful_message yes

# TAG: show_read_statistics yes|no
show_read_statistics yes

# TAG: topuser_fields
topuser_fields NUM DATE_TIME USERID CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE

# TAG: user_report_fields
user_report_fields CONNECT BYTES %BYTES IN-CACHE-OUT USED_TIME MILISEC %TIME TOTAL AVERAGE

# TAG: topuser_num n
topuser_num 0

# TAG: site_user_time_date_type list|table

site_user_time_date_type table

# TAG: external_css_file path
download_suffix "zip,arj,bzip,gz,ace,doc,iso,adt,bin,cab,com,dot,drv$,lha,lzh,mdb,mso,ppt,rtf,src,shs,sys,exe,dll,mp3,avi,mpg,mpeg"


save & exit.

5. make new 3 files for exclude host/users.

exclude_codes, exclude_hosts, exclude_users

6. make new execute script for daily basis report generate.
7. vim /usr/sbin/sarg-daily-report     ### insert below mentioned parameters.

TODAY=$(date +%d/%m/%Y)
YESTERDAY=$(date --date "1 day ago" +%d/%m/%Y)
sarg /var/log/squid/access.log -o /var/www/squid-reports/daily -z -d $YESTERDAY-$TODAY
/usr/sbin/squid -k rotate
exit 0

save & exit

8. vim /usr/sbin/sarg-weekly-report     ### insert below mentioned parameters.

TODAY=$(date +%d/%m/%Y)
YESTERDAY=$(date --date "1 week ago" +%d/%m/%Y)
sarg /var/log/squid/access.log -o /var/www/squid-reports/weekly -z -d $YESTERDAY-$TODAY
/usr/sbin/squid -k rotate
exit 0

save & exit

9.  vim /usr/sbin/sarg-monthly-report ### insert below mentioned parameters.

TODAY=$(date +%d/%m/%Y)
YESTERDAY=$(date --date "1 month ago" +%d/%m/%Y)
sarg /var/log/squid/access.log -o /var/www/squid-reports/monthly -z -d $YESTERDAY-$TODAY
/usr/sbin/squid -k rotate
exit 0

save & exit

10. change permissions of sarg reporter. chmod o+x /usr/sbin/sarg*

11. test sarg reporter software. run "sarg" in terminal..

12. open browser and insert          http://server ip/sarg-report/daily

13. go to crontab -e

paste below mentioned lines.

00 00 * * * /usr/sbin/sarg-daily-report
00 01 * * 1 /usr/sbin/sarg-weekly-report
03 02 1 * * /usr/sbin/sarg-monthly-report

save & exit

check report on webbrowser

Installaion of squid with squidguard

1. apt-get update
2. apt-get install squid
3. open squid.conf for configuration
vi /etc/squid3/squid.conf

change the below mentioned lines..


http_port 3128 transparent
cache_mem 64 MB
maximum_object_size 11000 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 64 KB


cache_dir ufs /usr/spool/squid3 50000 16 256     #(50000 = 50GB cache storage)
cache_access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
visible_hostname proxy #(replace your proxy server name with proxy)

acl access_all src 192.168.1.0
http_access allow access_all
:wq #save file and exit


3. create cache folder
4. mkdir /usr/spool
5. mkdir /usr/spool/squid
6. change the permission of squid cache directory.
7. chown proxy:proxy /usr/spool/ -R
8. enable ipv4 packet forwording. go to /etc/sysctl.conf. uncomment the line no 26 #net.ipv4.ip_forward=1
9. reload the file

root# sysctl -p

now start the squid service

# /etc/init.d/squid start

check squid service process

# ps aux | grep squid


1.  apt-get install squidGuard
2.  copy blacklist.tgz in /opt folder
3.  extract the blacklist folder # tar -xvf blacklist.tgz
4.  go to blacklist directory.
5.  copy blacklist subfolder in /var/lib/squidguard/db/ forlder.
6.  cp -r * /var/lib/squidguard/db/
7.  go to /var/lib/squidguard/db/ folder
8.  chown proxy:proxy * -R
9.  squidGuard -C all   ### for create db files.
10. change ownership of the .db files.
    chown proxy:proxy * -R
11. add 2 lines in squid.conf

url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
url_rewrite_children 10

save and exit.

12. restart the squid service
13. check the status of squidGuard.
# ps aux | grep squid


proxy     2019  0.1  0.8  41320 17580 ?        Ss   11:19   0:00 /usr/sbin/squid -N -D
proxy     2063  0.6  0.2  13024  4432 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2064  0.6  0.2  13024  4436 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2065  0.6  0.2  13024  4436 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2066  0.6  0.2  13020  4428 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2067  0.6  0.2  13020  4436 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2068  0.6  0.2  13024  4436 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2069  0.6  0.2  13020  4428 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2070  0.6  0.2  13020  4428 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2071  0.3  0.2  13020  4428 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy     2072  0.3  0.2  13024  4432 ?        Ss   11:27   0:00 (squidGuard) -c /etc/squid/squidGuard.conf
root      2075  0.0  0.0   7624   928 pts/0    R+   11:27   0:00 grep --color=auto squid

Note: first add category role in squidguard.conf then create .db file.

configure iptables on startup Ubuntu Server

1. vim /etc/network/if-pre-up.d/iptablesload

#!/bin/sh
iptables-restore < /etc/iptables.rules
exit 0

save and exit

2. vim /etc/network/if-post-down.d/iptablessave

#!/bin/sh
iptables-save -c > /etc/iptables.rules
if [ -f /etc/iptables.downrules ]; then
   iptables-restore < /etc/iptables.downrules
fi
exit 0

save and exit

3. chmod +x /etc/network/if-post-down.d/iptablessave
4. chmod +x /etc/network/if-pre-up.d/iptablesload