How To Disable \ Enable Journaling Agent In Exchange 2007

How To Disable \ Enable Journaling Agent In Exchange 2007.

In order to to disable \ enable journaling agent in Exchange 2007 we need to use the Exchange shell.

Step 1: Check if the agent is enable or disable.

Open Exchange shell
Type ->    Get-TransportAgent  to check if the egent is enable or diable.

1

Step 2: Disable agent

In the Exchange shell type disable-transportagent and when asked for a value type journaling agent.

2

Step 3: disabled on the mailbox database.

We also need to make sure that journaling is disabled on the mailbox database by:

Right click the mailbox database on the Exchange server you want to disable journaling, and click Properties and make sure Journal Recipient is Unchecked.

3

How to Upgrade Cisco ASDM

In order to upgrade CISCO ASDM software we need to follow the following steps:

1.Download the software from Cisco Website (you need a cisco username)
2.Load the software to the device (ASA)
3.Cofigure the ASA (device to use the new version image file)

Step 1:
Downkload link:
http://www.cisco.com/en/US/products/ps6121/index.html

Step 2:
To load the new version we use the ASDM manger with the following 3 options:
1.
Tools -> Upgrade software from Local computer
2.
Tools -> File Management
3.
Tools -> Upgrade Software from Cisco.com

We can also upload the software using a TFTP server and the copy tftp flash command:
firewall#copy tftp flash

Step 3:
Once image uploaded to the Firewall we need to configure the ASA to point to the new ASDM software and use it (there is no need to reboot router after configuration)

To configure ASA to use new ASDM version:

In ASDM go to:
Device Management – > System Image\configuration -> Boot Image/configuration
Int the ASDM file path click browse and select the new ASDM image.

You can also change the ASDM boot image from the CLI command line using the following command:

firewall(config)#asdm image flash:asdm-613.bin

Step 4:
Save config, close ASDM and go to router page https://ip_address and start the ASDM.

How To Create Users and Login in Cisco Router Or Switch

How To:

This Guide will show you how to create a new user account on your Cisco Router\switch.
By doing this you can grant access to other administrators and monitor changes made on the device.

Solution:

In order to make this work we need to follow two steps:
1.    Create a new account
2.    Configure the device (router or switch to authenticate  users from the local users db).

1.Create Users

Create a new user with the right privilege level.

Router# service password-encryption
Router(config)# username admin priv 15 pass password

2.Authenticate

Router(config)# line vty 0 5
Router(config)# login local

Router(config)# line con 0
Router(config)# login local

Router(config)# line aux 0
Router(config)# login local

Save configuration and try to log on.

You do not have sufficient privileges to delete OU, or this object is protected from accidental deletion

Windows Server 2008 has a new feature to protect OU from accidental deletion.

if you try to delete an OU which was marked with the special protection option you will get the following error message when trying to delete the object:

“You do not have sufficient privileges to delete OUNAME, or this object is protected from accidental deletion”

Fix:

In order to disable the object protection and delete the object we need to follow the steps below:

enable Advanced Features in Active Directory Users and Computers (go to view and tick advanced feature)

Then Right click on the Object and go to the security tab.

Un tick the explicit Deny permission set for Everyone.

Delete object

 

How To Setup Banner display On A Cisco Router \ Switch

How To:
On Cisco Routers and Switches we have the option to set up a banner display when people log in to the device.

Solution:
To setup welcome banner on a cisco device we need to use the banner command:

Banner Command:

switch(config)#banner ?
LINE            c banner-text c, where ‘c’ is a delimiting character
config-save     Set message for saving configuration
exec            Set EXEC process creation banner
incoming        Set incoming terminal line banner
login           Set login banner
motd            Set Message of the Day banner
prompt-timeout  Set Message for login authentication timeout
slip-ppp        Set Message for SLIP/PPP

Example on how to set up a login banner:

switch#config t
Enter configuration commands, one per line.  End with CNTL/Z.
VSW2(config)#banner login Z ########### MY SWITCH ########## Z

Connect To A Remote Server Console When All Session Are Used

Sometimes when a few administrators logs on the the same server the server is maxed out all sessions.

When this happens we need to log off the idle sessions, however we can also just connect to the server console session and log of the inactive sessions.

to do so, go to start -> Run and type the following command:
MSTSC /v:MyServer /f /console

How To Set Group Policy To log Off Remote Desktop Session

In order to make the servers log of idle RDP session automaticity using group policy we need edit the group policy that the servers are using.

Under the Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Sessions folder, the following settings can be made:

• Set time limit for disconnected sessions
• Set time limit for active sessions
• Set time limit for idle sessions
• Terminate session when time limits are reached

Once you edit the settings refresh the group policy, using the following command:
Gpupdate /force

Check and Auto Refresh Exchange Server Mail Queue Using Exchange Shell

Ever since I started using Exchange Shell I wanted to write a script that check the Exchange server mail queue using Exchange shell and auto refresh theresult

So today I manged to get it done.

All you need to do is run it from your PC.

Save the script as .ps1 and change the server name to your Exchange server.

You can change the sleep time if you like.
$i =1
while ($i -le 2)  {Get-Queue -Server SERVER_NAME | ft;
sleep 4 ;
write-output “————“
;clear-host
write-output “Microsoft Exchange Server Email queue”
write-output “————“
Write-Host `n

}

How To Assign Mailbox Permission In Exchange 2007 Using The Shell

In order to grant a user read access permission to other user mailbox we need to use the:

Add-mailboxpermission cmdlet in Exchange 2007 Shell

In this example I’ll give User A, a read access permission to User B mailbox.

[PS] C:\>Add-MailboxPermission -Identity “UserA” -AccessRights

readpermission –user “UserB”

We can also assign the following permission with the –AccessRight :

-AccessRights <MailboxRights[]>

* FullAccess

* SendAs

* ExternalAccount

* DeleteItem

* ReadPermission

* ChangePermission

* ChangeOwner

Microsoft PowerShell Command Guide – Part 1

As PowerShell become more and more important tool in our day to day administration I have put up most of the basic commands that are being used by administrators and engineers.

Part 1 will give cover the basic commands and what they are doing.

Part 1

Terms

Cmdlets – command built into PowerShell

Get command – this command show us information about an item

Set command – this is the modifying command

; – semicolon commands

>> – append to existing file

Alias – create shortcut to a command

Basic Commands

Cd – open dir

Dir – show working directory

Md – make \ create a directory

Pwd – show path

Rmdir – remove directory

Mkdir – create directory

Display command

Format-table

Format-list

Format-wide

Get – command

Get-process – show running process

Get-process processname – check specific process name

Get-process name* – will search for a process start with the name

Stop-process -id number – stop a process

Whatif – tell you what heppan before you run a cmdlet

Sample Stop-process -id number – whatif – stop a process

-confirm – ask for conformation before executing a command

Get-help – help command

Get-eventlog – show event log

Samples and Commands

Ipconfig \all > ipconfig.txt – Pipe result to text file

Notepad ipconfig.text – Launch file to screen

Piping a few commands

ipconfig /all > test.txt ; route print >> test.txt

Help Commands

Get-help get-help – help command

Get-help get* – will show all the get commands

Get-help set* – will show all the set commands

Get-help * – show all commands

Get-help get-psdrive –example – show you the syntax

Get-commands – display all the get commands

Alias

Get-alias – show all alias in use

Set-alias – create an alias

Get-alias |sort – sort all alias names

Set Alias

Set-alias gh get-help – set gh as an alias to get-help