How To Set Session Timeout On A Cisco Router

Setting the session timeout parameter in a cisco router or switch is an easy task that will make your day to day work easy.

How to set the session timeout:

log on to the router and type:

router#configure t

router(config)#line vty 0 4

router(config-line)#session-timeout 10       —- 10 is the amount of minutes we want to configure before timeout.

router(config-line)#exec-timeout 0                    — this is when we log in exec mode ( 0 is never)

router(config-line)#end                                      –  exit the config line mode

router#copy run start

router#copy run start

Create New User \ Mailbox Script Using Exchange 2007 Shell

With Exchange 2007 we have the option to manage our Exchange Server using the Exchage Managment shell which done using commands (cmdlts).

This script is for creating a single user mailbox and an AD user using the shell.

The script called newuser.ps1

Just copy and save the file as newuser.ps1 and don’t forget to change the server and OU details.

$UPN=Read-Host “upn”                 -System.String
$Alias=Read-Host “Alias”              -asPlainText
$Name=Read-Host “Enter Name”   -asPlainText
$Password=Read-Host “Enter Password” -AsSecureString

new-mailbox -userPrincipalName $upn -alias $alias -name $name  -database “exchange server name\Mailbox Database name”  -OrganizationalUnit ‘yourdomain/your_ou_name’ -Password $Password


The script will ask you to provide a password,Alias,name and UPN (the email address).

How To Print Screen In RDP Session

In order to print screen a window in an RDP session we need to use a different keys than the ones we use on our local desktop.

To print screen in RDP session please use:

CTRL+ALT+MINUS (–) symbol on the numeric keypad.

How To restart WSUS Service

A few people have asked me where they can find the WSUS service in the Windows Server Services list in order to restart it.

You can also read:

The simple and best way to restart the WSUS service on a Windows server 2003, 2008, 2012 and 2016 is to open the cmd command line and  type the command below to stop the service:

net stop WSUSService


and and below command to start the service:

net start WSUSService


Related articles:

GPRESULT In Windows Server 2008

Microsoft have made a small change to the Windows Server 2003 GPRESULT command.

In windows 2003 we had to type GPRESULT only in the command line in order to view the Applied Group polices however in windows server 2008 we need to type the /R switch after the gpresult.

The windows Server 2008 the full GPRESULT command is:

gpresult /s

there are other switches to the command which are:

s <Computer> Specifies the name or IP address of a remote computer. Do not use backslashes. The default is the local computer.
/u [<Domain>\]<UserName> Runs the command with the credentials of the specified user. The default user is the user who is logged on to the computer that issues the command.
/p [<Password>] Specifies the password of the user account that is provided in the /u parameter. If /p is omitted, gpresult prompts for the password. /p cannot be used with /x or /h.
/user [<TargetDomain>\]<TargetUser> Specifies the remote user whose RSoP data is to be displayed.
/scope {user | computer} Displays RSoP data for either the user or the computer. If /scope is omitted, gpresult displays RSoP data for both the userand the computer.
[/x | /h] <FileName> Saves the report in either XML (/x) or HTML (/h) format at the location and with the file name specified by the FileName parameter. Cannot be used with /u, /p, /r, /v, or /z.
/f Forces gpresult to overwrite the file name specified in the /x or /h option.
/r Displays RSoP summary data.
/v Displays verbose policy information, including additional detailed settings that have been applied with a precedence of 1.
/z Displays all available information about Group Policy, including detailed settings that have been applied with a precedence of 1 and higher.
/? Displays help at the command prompt.

For more information see: