Wednesday, December 21, 2011

Deploy Google Chrome via GPO

Google Chrome Download from this site

then deploy this msi file to GPO

Prevent Multiple Logins via Group Policy in Server 2008

The below loing.bat file is given to userlogin script GPMC


If Exist \\server\logons\%username%.txt Goto notlogon
Echo %username% logged in from %computername% > \\server\logons\%username%.txt
Echo %username% logged in from %computername% > \\server\logons\%computername%.txt
Goto end

The below logout.bat file is given to user logout script GPMC

Listing 2: Logout.bat

If Not Exist \\rafetpc\logons\%computername%.txt goto notlogon
Del \\server\logons\%username%.txt
Del \\server\logons\%computername%.txt
Goto end

Tuesday, December 20, 2011

Limit Login script for Windows Server 2008

net use Y: \\newton\%username%$
if errorlevel 1 goto logoff
goto continue
net send localhost "You are logged in elsewhere. Please log off a the other terminal before trying again."
setx homedrive "Y:"
setx homepath "\"

save the above lines to bat file use GPO login script file.

updated script if Y drive already exists

if exist Y:\ goto continue
net send localhost "You are logged in elsewhere. Please log off a the other terminal before trying again."
setx homedrive "Y:"
setx homepath "\"

Friday, December 9, 2011

How to assign local admin rights to domain user

To use Group Policy to grant local administrative privileges to a domain account, complete the following steps:

  1. On the domain controller, go to Administrative Tools > Active Directory Users and Computers (you must be running with Domain Administrator privileges).
  2. Right-click on the Organizational Unit (OU) upon which you want to apply the Group Policy. Click Properties.
  3. The Group Policy Properties panel is displayed. Select the Group Policy tab and click New to create a new Group Policy.
  4. Designate a name for the new Group Policy. Select the new Group Policy and click Edit.
  5. The Group Policy Object Editor panel is displayed. Go to New Group Policy Object > Computer Configuration > Windows Settings > Security Settings > Restricted Groups. Right-click on Restricted Groups. Click Add Group.
  6. For example, name the new group "Administrators." Under "Properties", add the user "Administrator","Domain Admin" and the domain accounts or groups upon which you want the Group Policy in effect for. For example, you can add "yourdomain\Local Administrator group". Click OK.
  7. Add these user rights to the domain account:
    • Act as part of the operating system
    • Log on as a service
    In the Group Policy Object Editor, go to New Group Policy Object > Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignments. In the right pane, select "Log on as a service" and double-click. Add the domain user for whom you are granting the user right for and click OK. Repeat this step for "Act as part of the operating system."
  8. The group policy is now enforced for the Organizational Unit to include the domain accounts and groups specified under the local Administrators group on each computer in the Organizational Unit. In addition, the domain user has been granted the necessary rights. To verify this, log into a domain computer and open the Computer Management console. Select Groups, double-click on the Administrators group, and verify the membership of the domain users.

Thursday, November 24, 2011

Add computer to Domain - Delegate control user rights

1. Click Start, click Run, type dsa.msc, and then click OK.
2. In the task pane, expand the domain node.
3. Locate and right-click the OU that you want to modify, and then click
Delegate Control.
4. In the Delegation of Control Wizard, click Next.
5. Click Add to add a specific user (that user must be a member of Account operator group)or a specific group to the Selected users
and groups list, and then click Next.
6. In the Tasks to Delegate page, click Create a custom task to delegate,
and then click Next.
7. Click Only the following objects in the folder, and then from the list,
click to select the following check boxes: . Computer objects
. Create selected objects in this folder
. Delete selected objects in this folder

8. Click Next.
9. In the Permissions list, click to select the following check boxes:. Reset
. Validated write to DNS host name
. Read and write Account Restrictions
. Validated write to service principal name

10. Click Next, and then click Finish.
11. Close the "Active Directory Users and Computers" MMC snap-in.

How to delete an Organizational Unit (OU) in Windows Server 2008 Active Directory?

Windows Server 2008 active directory has accidental deletion protections feature that would not allow you as an Administrator to delete Active Directory Object by right clicking and deleting. If you leave the “Protect object from accidental deletion” check box checked when you create the object, you will have to disable that feature before you can delete the object.

To disable accidental deletion protection feature, follow this step:

1. Open up Active Directory Users and Computers through the Server Manger or Administrative Tools.

2. In the Active Directory Users & Computers console. Click on View from the menu bar and then click on Advanced Features.

3. Right click the object to delete and click on Properties.

4. In the object properties console, click on the Object tab.

5. Uncheck the “Protect object from accidental deletion” and click ok.

6. You can now delete the object by right clicking and clicking on delete.

Sunday, November 20, 2011

Run turbo C in Dosbox full screen

Open the config file

prog.files ----> dosbox----> options----->dosbox optons

full screen values


# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount c c:\
cd tc\bin

Desktop Shortcut value: "C:\Program Files\DOSBox-0.74\DOSBox.exe" -conf "C:\Program Files\DOSBox-0.74\dosbox.conf"


dosbox.conf file contain

# This is the configurationfile for DOSBox 0.74. (Please use the latest version of DOSBox)
# Lines starting with a # are commentlines and are ignored by DOSBox.
# They are used to (briefly) document the effect of each option.

#       fullscreen: Start dosbox directly in fullscreen. (Press ALT-Enter to go back)
#       fulldouble: Use double buffering in fullscreen. It can reduce screen flickering, but it can also result in a slow DOSBox.
#   fullresolution: What resolution to use for fullscreen: original or fixed size (e.g. 1024x768).
#                     Using your monitor's native resolution with aspect=true might give the best results.
#                     If you end up with small window on a large screen, try an output different from surface.
# windowresolution: Scale the window to this size IF the output device supports hardware scaling.
#                     (output=surface does not!)
#           output: What video system to use for output.
#                   Possible values: surface, overlay, opengl, openglnb, ddraw.
#         autolock: Mouse will automatically lock, if you click on the screen. (Press CTRL-F10 to unlock)
#      sensitivity: Mouse sensitivity.
#      waitonerror: Wait before closing the console if dosbox has an error.
#         priority: Priority levels for dosbox. Second entry behind the comma is for when dosbox is not focused/minimized.
#                     pause is only valid for the second entry.
#                   Possible values: lowest, lower, normal, higher, highest, pause.
#       mapperfile: File used to load/save the key/event mappings from. Resetmapper only works with the defaul value.
#     usescancodes: Avoid usage of symkeys, might not work on all operating systems.


# language: Select another language file.
#  machine: The type of machine tries to emulate.
#           Possible values: hercules, cga, tandy, pcjr, ega, vgaonly, svga_s3, svga_et3000, svga_et4000, svga_paradise, vesa_nolfb, vesa_oldvbe.
# captures: Directory where things like wave, midi, screenshot get captured.
#  memsize: Amount of memory DOSBox has in megabytes.
#             This value is best left at its default to avoid problems with some games,
#             though few games might require a higher value.
#             There is generally no speed advantage when raising this value.


# frameskip: How many frames DOSBox skips before drawing one.
#    aspect: Do aspect correction, if your output method doesn't support scaling this can slow things down!.
#    scaler: Scaler used to enlarge/enhance low resolution modes.
#              If 'forced' is appended, then the scaler will be used even if the result might not be desired.
#            Possible values: none, normal2x, normal3x, advmame2x, advmame3x, advinterp2x, advinterp3x, hq2x, hq3x, 2xsai, super2xsai, supereagle, tv2x, tv3x, rgb2x, rgb3x, scan2x, scan3x.


#      core: CPU Core used in emulation. auto will switch to dynamic if available and appropriate.
#            Possible values: auto, dynamic, normal, simple.
#   cputype: CPU Type used in emulation. auto is the fastest choice.
#            Possible values: auto, 386, 386_slow, 486_slow, pentium_slow, 386_prefetch.
#    cycles: Amount of instructions DOSBox tries to emulate each millisecond.
#            Setting this value too high results in sound dropouts and lags.
#            Cycles can be set in 3 ways:
#              'auto'          tries to guess what a game needs.
#                              It usually works, but can fail for certain games.
#              'fixed #number' will set a fixed amount of cycles. This is what you usually need if 'auto' fails.
#                              (Example: fixed 4000).
#              'max'           will allocate as much cycles as your computer is able to handle.
#            Possible values: auto, fixed, max.
#   cycleup: Amount of cycles to decrease/increase with keycombo.(CTRL-F11/CTRL-F12)
# cycledown: Setting it lower than 100 will be a percentage.


#   nosound: Enable silent mode, sound is still emulated though.
#      rate: Mixer sample rate, setting any device's rate higher than this will probably lower their sound quality.
#            Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
# blocksize: Mixer block size, larger blocks might help sound stuttering but sound will also be more lagged.
#            Possible values: 1024, 2048, 4096, 8192, 512, 256.
# prebuffer: How many milliseconds of data to keep on top of the blocksize.


#     mpu401: Type of MPU-401 to emulate.
#             Possible values: intelligent, uart, none.
# mididevice: Device that will receive the MIDI data from MPU-401.
#             Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.
# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.
#               See the README/Manual for more details.


#  sbtype: Type of Soundblaster to emulate. gb is Gameblaster.
#          Possible values: sb1, sb2, sbpro1, sbpro2, sb16, gb, none.
#  sbbase: The IO address of the soundblaster.
#          Possible values: 220, 240, 260, 280, 2a0, 2c0, 2e0, 300.
#     irq: The IRQ number of the soundblaster.
#          Possible values: 7, 5, 3, 9, 10, 11, 12.
#     dma: The DMA number of the soundblaster.
#          Possible values: 1, 5, 0, 3, 6, 7.
#    hdma: The High DMA number of the soundblaster.
#          Possible values: 1, 5, 0, 3, 6, 7.
# sbmixer: Allow the soundblaster mixer to modify the DOSBox mixer.
# oplmode: Type of OPL emulation. On 'auto' the mode is determined by sblaster type. All OPL modes are Adlib-compatible, except for 'cms'.
#          Possible values: auto, cms, opl2, dualopl2, opl3, none.
#  oplemu: Provider for the OPL emulation. compat might provide better quality (see oplrate as well).
#          Possible values: default, compat, fast.
# oplrate: Sample rate of OPL music emulation. Use 49716 for highest quality (set the mixer rate accordingly).
#          Possible values: 44100, 49716, 48000, 32000, 22050, 16000, 11025, 8000.


#      gus: Enable the Gravis Ultrasound emulation.
#  gusrate: Sample rate of Ultrasound emulation.
#           Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
#  gusbase: The IO base address of the Gravis Ultrasound.
#           Possible values: 240, 220, 260, 280, 2a0, 2c0, 2e0, 300.
#   gusirq: The IRQ number of the Gravis Ultrasound.
#           Possible values: 5, 3, 7, 9, 10, 11, 12.
#   gusdma: The DMA channel of the Gravis Ultrasound.
#           Possible values: 3, 0, 1, 5, 6, 7.
# ultradir: Path to Ultrasound directory. In this directory
#           there should be a MIDI directory that contains
#           the patch files for GUS playback. Patch sets used
#           with Timidity should work fine.


# pcspeaker: Enable PC-Speaker emulation.
#    pcrate: Sample rate of the PC-Speaker sound generation.
#            Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
#     tandy: Enable Tandy Sound System emulation. For 'auto', emulation is present only if machine is set to 'tandy'.
#            Possible values: auto, on, off.
# tandyrate: Sample rate of the Tandy 3-Voice generation.
#            Possible values: 44100, 48000, 32000, 22050, 16000, 11025, 8000, 49716.
#    disney: Enable Disney Sound Source emulation. (Covox Voice Master and Speech Thing compatible).


# joysticktype: Type of joystick to emulate: auto (default), none,
#               2axis (supports two joysticks),
#               4axis (supports one joystick, first joystick used),
#               4axis_2 (supports one joystick, second joystick used),
#               fcs (Thrustmaster), ch (CH Flightstick).
#               none disables joystick emulation.
#               auto chooses emulation depending on real joystick(s).
#               (Remember to reset dosbox's mapperfile if you saved it earlier)
#               Possible values: auto, 2axis, 4axis, 4axis_2, fcs, ch, none.
#        timed: enable timed intervals for axis. Experiment with this option, if your joystick drifts (away).
#     autofire: continuously fires as long as you keep the button pressed.
#       swap34: swap the 3rd and the 4th axis. can be useful for certain joysticks.
#   buttonwrap: enable button wrapping at the number of emulated buttons.


# serial1: set type of device connected to com port.
#          Can be disabled, dummy, modem, nullmodem, directserial.
#          Additional parameters must be in the same line in the form of
#          parameter:value. Parameter for all types is irq (optional).
#          for directserial: realport (required), rxdelay (optional).
#                           (realport:COM1 realport:ttyS0).
#          for modem: listenport (optional).
#          for nullmodem: server, rxdelay, txdelay, telnet, usedtr,
#                         transparent, port, inhsocket (all optional).
#          Example: serial1=modem listenport:5000
#          Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial2: see serial1
#          Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial3: see serial1
#          Possible values: dummy, disabled, modem, nullmodem, directserial.
# serial4: see serial1
#          Possible values: dummy, disabled, modem, nullmodem, directserial.


#            xms: Enable XMS support.
#            ems: Enable EMS support.
#            umb: Enable UMB support.
# keyboardlayout: Language code of the keyboard layout (or none).


# ipx: Enable ipx over UDP/IP emulation.


# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount c c:\
mount y Y:\
set path=c:\TC\bin

User name creation Windows Server 2008

set xfold=F:\Labs\Firstyearlab
set xname=%1

net user %xname% new@123 /add
md %xfold%\%xname%

rmtshare \\servername\%xname%$=%xfold%\%xname% /USERS:1 /GRANT Administrator:F /GRANT %xname%:C

echo Y |cacls %xfold%\%xname% /E /R Everyone /P Administrator:F %xname%:C

save the above line to create a bat file "netuser.bat"

repeated user creation use the following line
for %%i in (1 2 3 4 5 6 7 8 9 ) do netuser ebinet0%%i
for %%i in (10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60) do netuser ebinet%%i

Wednesday, October 12, 2011

Error 403 Forbidden with phpmyadmin and WAMP Server

Error 403
You do not have permission to access / on this server.

Edit the Apache configuration file httpd.conf and find the lines
"# onlineoffline tag - don't remove"

Order deny, allow
Deny from all
Allow from

by these lines to change

Order allow, deny
Allow from all

Tuesday, March 15, 2011

how to save flash files from websites

1.Download firefox and install it
2.Install addon for flasgot and restart the firebox browser.
3. Just go to your download flash website right click and select flashgot and save the concerned flash files.

Wednesday, February 23, 2011

Your version of the Siebel High Interactivity Framework for IE, required for use of this Siebel application, may not be current. In order to download.

While opening Siebel Client, keep pressing "Ctrl" button on the keyboard and observe the difference. This time I didn't get the prompt message and automatically it prompt with the message of installing the SHIF and I clicked on Install and everything worked fine after that..... no issues.

Thursday, February 17, 2011

How to Disable WinHTTP Web Proxy Auto-Discovery

Type services.msc in run command

Locate "WinHTTP Web Proxy Auto-Discovery Service" in the list in the center window. The list includes the services available on the local computer and is in alphabetical order.

Right-click on "WinHTTP Web Proxy Auto-Discovery Service," and select "Properties" from the pop-up menu. This opens the service's Properties window.

Go to the "General" tab, and under "Service Status," click on the "Stop" button. Click on "Apply." This stops the service within the current Windows session.

Click on the "Startup Type" combo box, select "Disabled," and click on "OK" to keep the service from starting automatically when you start Windows.

Wednesday, February 16, 2011

How to setup network in toshiba estudio

In order to set IP address, make sure printer kit/NIC is installed. Plugged network cable, Press Program button--> Initial Setup-->Network-->TCP/IP to configure IP address. Once finish, back to Network-->Complete to save the settings.

Sunday, January 23, 2011

Windows installer cannot be accessed

Reinstall the Windows Installer
To reinstall the Windows Installer, rename the damaged Windows Installer files, and then reinstall the Windows Installer. To do this, follow these steps:

1. Click Start, click Run, type cmd in the Open text box, and then click OK.
2. Type cd %windir%\system32, and then press ENTER.
3. Type attrib -r -s -h dllcache, and then press ENTER.
4. Type ren msi.dll msi.old, and then press ENTER.
5. Type ren msiexec.exe msiexec.old, and then press ENTER.
6. Type ren msihnd.dll msihnd.old, and then press ENTER.
7. Type exit, and then press ENTER.
8. At the command prompt, type exit, and then press ENTER.
9. Click Start, and then click Turn off computer or Shut Down.
10. Select the Restart option, and then click OK, or click Restart.
11. Log on to the computer.
12. Download and install the latest version of the Windows Installer. For more information about

how to obtain the Windows Installer, click the following article number to view the article in the Microsoft Knowledge Base:
893803 ( ) Windows Installer 3.1 v2 (3.1.4000.2435) is available
13. Click Start, and then click Turn off computer or Shut Down.
14. Select the Restart option, and then click OK, or click Restart.

Log on to the computer.
Click Start, click Run, type msiexec /regserver in the Open text box, and then click OK.

Thanks Microsoft

Tuesday, January 4, 2011

Ms office 2003 sp3 slipstreaming

1. Insert the Office System (2003) CD into your drive, from the "Start" button select "Run" and type

d:\setup.exe /a

This is going to start the install process of Office 2003. You'll be presented with the option of where you want the files to go (I chose "C:\Office2003"), and you'll be asked to enter your CD key.

After entering the CD key, you'll be presented with the End User License Agreement. Accept it then continue.

It's going to appear to be installing, but in fact your files are being copied over to your hard drive.

The completion window will pop up and the entire Office 2003 CD is now copied to your hard drive.

2. Extract the Service Pack files

office2003SP3-KB923618-FullFile-ENU.exe /t:c:\Office2003SP3 /c

All the office2003Sp3 files are copied to c:\office2003sp3 folder


Start the "Run" command from your "Start" menu again. Enter the following command:

msiexec /p c:\Office2003SP3\MAINSP3.msp /a c:\Office2003\PRO11.MSI shortfilenames=true /qb

office sp3 is updated to folder c:\office2003.

office 2007 compatibility pack Deploying via Group Policy

First, download fileformatconverters.exe from Microsoft Website

create one blank directory name temp
then extract using the command

fileformatconverters.exe /extract:c:\temp\

Copy the files O12Conv.CAB and O12Conv.MSI to a shared folder on your server.

then goto the desired deploying ou and select group policy create new group policy.

Expand out the Computers Configuration and select the Software Settings > Software Installation.
Right-click in the right hand pane and select New > Package.
Browse to the package on the file share you are going to use and select the O12Conv.MSI

Once you have pressed OK you will find the package in your GPO.