Archive for the ‘Computers and Internet’ Category

Office 365 –Powershell command for email fowarding.

Connect to online power shell.

$O365Cred = Get-Credential

$O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri -Credential

$O365Cred -Authentication Basic -AllowRedirection Import-PSSession $O365Session -AllowClobber

Connect-MsolService –Credential $O365Cred

Set forwarding:

Set-Mailbox -Identity -DeliverToMailboxAndForward $true -ForwardingSMTPAddress

Disable forwarding:

Set-Mailbox  ‘Jitendra Kumar’ –ForwardingSmtpAddress –DeliverToMailboxAndForward $false


APN Names


BRAND / Profile Name
Reliance GSM SMART 2G & 3G RCOMNET   OR SMARTNET *99# Blank Blank
Airtel 2G & 3G *99# Blank Blank
Tata Docomo 2G tata.docomo.internet *99# Blank Blank
Tata Docom 3G Mobile SIM Card tata.docomo.internet *99# Blank Blank
Tata Docomo 3G Datacard SIM tatadocomo3g *99# Blank Blank
Vodafone 2G & 3G www *99# Blank Blank
Aircel 2G & 3G aircelgprs   or *99# Blank Blank
Videocon 2G & 3G vgprs   or vinternet *99# Blank Blank
Uninor 2G & 3G uninor *99# Blank Blank
BSNL 2G & 3G bsnlnet *99# Blank Blank
BSNL SOUTH 2G & 3G *99# Blank Blank
IDEA internet *99# Blank Blank
MTNL 2G & 3G gprsmtnlmum *99# mtnl mtnl123
MTNL MUMBAI 2G & 3G mmsmtnlmum *99# mtnl mtnl123

Outlook 2010 – “Send To > Mail Recipient” launches plain text

The command line in the shortcut will look like this:

“C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE” /c ipm.note /a

Look for the Sendto folder at:

Vista/Windows 7:


Windows XP:

C:\Documents and Settings\username\SendTo




Associates a path with a drive letter. Used without parameters, subst displays the names of the virtual drives in effect.


subst [drive1: [drive2:]Path]

subst drive1: /d



drive1: : Specifies the virtual drive to which you want to assign a path.

drive2: : Specifies the physical drive that contains the specified path (if different from the current drive).

Path : Specifies the path that you want to assign to a virtual drive.

/d : Deletes a virtual drive.

/? : Displays help at the command prompt.



The following commands do not work, or should not be used, on drives used in the subst command:

  • chkdsk
  • diskcomp
  • diskcopy
  • format
  • label
  • recover


The drive1   parameter must be within the range specified by the lastdrive command.   If not, substdisplays the following error message:Invalid parameter –   drive1:Examples

To create a virtual   drive Z for the path B:\User\Betty\Forms, type:

subst z:   b:\user\betty\forms

Now, instead of   typing the full path, you can reach this directory by typing the letter of   the virtual drive, followed by a colon, as follows:


Divide and power

Since oldest times   in Windows there is admirable feature to map some path with name of a virtual   drive using the SUBST command. This feature makes the simpler an access to   objects on a disk. It means a usage of name of a virtual drive instead of a   long path. For example, the following command is used to create virtual drive   Z for the path C:\Documents and Settings\All Users\Shared Documents:

subst Z: “C:\Documents and Settings\All Users\Shared Documents”

So to reach targets   in this folder it does not need to type the full path or go over a tree of   folders in the Explorer window. To select the Z: drive is enough.

Do we need it?

There is several   certain examples when this feature is needful:

Temporary stub when   the physical drive is missing;

Operational system   limitation for the size of filename (256 characters);

Working of some   application within own space;

Emulation of other   operational systems.

How does this work?

Create new virtual   drive:

subst Z: “C:\Documents and Settings\All Users\Shared Documents”

Delete virtual   drive:

subst Z: /D

Print a list of   existing drives:



Indefinite format

There is strong   agreement about a correct typing of the substituted path:

a path should not be   trailed by a backslash;

the root path should   be ended by a backslash.

For example, these   are correct

subst Z: “C:\Documents and Settings\All Users\Shared Documents”
subst Z: C:\

But these are   incorrect:

subst Z: “C:\Documents and Settings\All Users\Shared Documents\”
subst Z: C:


However restart of a   system destroys a virtual disk. What to do? A disk can be created after   startup. But what to do, when a disk is needed on early steps of a startup?   For example, to run services? There is system feature to start a virtual disk   from the system registry:


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session   Manager\DOS Devices]
“Z:”=”\\??\\C:\\Documents   and Settings\\All Users\\Shared Documents

It is enough to   create a text file with the extension .REG and run it. When the next starting   up of a system, the virtual disk will be exist at logon. It needs to define a   name of disk and path. Note that each backslash in the path is doubled.

Auto-Login Your Windows 7 User Account


We found that whether or not that checkbox shows will depend on the setting of the value of the

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon value in the registry.

It was set to 0 so it did not show. we set it to 1, and now it shows.

Once it showed up, it was already unchecked, and when we hit OK it did not asks for a username and password.

We then checked it, hit OK, then opened it again and unchecked it, and hit OK.

The dialog for me to enter the username and password then appeared and worked as documented in this post.

If the Check box is not coming then follow up the following….

The Checkbox was not there for me either. So you could just follow the same procedure Microsoft had for windows xp.

1. Press the Windows key + R on your keyboard to launch the “Run” dialog box. 

2. Type regedit and hit enter to open the Registry Editor 

3. Then browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\

4. Set AutoAdminLogon  = 1 (create it if doesn’t exist its a string variable)

5. Set DefaultUserName = your username (create it if doesn’t exist its a string variable)

6. Set DefaultPassword = your password (create it if doesn’t exist its a string variable)

Disable Windows hot keys

To enable windows hot keys
Windows Registry Editor Version 5.00
To disable windows hot keys

Hide/remove/disable address bar in IE8

  • Hide/remove/disable address bar
  • To remove/hide the address bar the following registry change must be made:

    HKEY_Current_USER\software\policies\microsoft\internet explorer\toolbars\restrictions
    Value name: NoNavBar
    Type: DWORD
    Value: 1 (on)
    Hide/remove/disable favourites and the command bar

    • Hide/remove/disable favourites and the command bar

    To remove/hide the command bar (includes favourites), this registry change must be made:

    HKEY_Current_USER\software\policies\microsoft\internet explorer\toolbars\restrictions
    Value name: NoCommandBar
    Type: DWORD
    Value: 1 (on)


    create a new notepad text file/or open notepad and copy+past the following (without the line)
    class user

    category IESettings

    policy "disable/hide IE command bar"
    keyname "software\policies\microsoft\internet explorer\toolbars\restrictions"
    explain "here is the explaination"
    valuename "NoCommandBar"
    valueon numeric 1
    valueoff numeric 0
    end policy

    policy "disable/hide IE nav bar"
    keyname "Software\Policies\Microsoft\Internet Explorer\Toolbars\Restrictions"
    explain "here is the explaination"
    valuename "NoNavBar"
    valueon numeric 1
    valueoff numeric 0
    end policy

    end category

    Make sure to add this blank space at the bottom of the file (don’t ask why but the gpo editor won’t accept it otherwise)

    Save it as NAME.adm (remove the .txt) where NAME is what you would like to name it i.e removeaddressbar.adm (doesn’t make any difference)

    Now to add the file to gpo editor user the instructions at the bottom of THIS POST.

    Once that is done you will see it under IESettings, enable the nessary objects for you and replicate the changes (Go to Start>Run>cmd and type "gpupdate /force" to speed things up)

    This works for me but as we know with different environments and settings so let me know if you have problems!

    Enjoy and good luck!

    P.S. If you would like to leave the back, forward and refresh buttons follow