Sunday, August 7, 2011

Force client to update from WSUS

wuauclt.exe /resetauthorization /detectnow

Get the client installed updates:

wmic qfe list > c:\Windowsupdate.txt

test Mail using telnet

telnet TARGETDOMAIN.com 25

EHLO DUCTEST.COM

RCPT TO: asabry@MYdOMAIN.cOM


DATA

This is a test message you will not see a response from this command.

QUIT

Thursday, July 21, 2011

Reset Password using net user

net user administrator 80@nC
net user admin2 hjknC /add
net localgroup administrators admin2 /add
net localgroup "Remote Desktop Users" admin2 /add

Wednesday, June 29, 2011

Push out a shortcut to the desktop.

del "%userprofile%\Desktop\HD Track-it.url" /q

xcopy "\\10.96.1.111\Push$\Track-It! Self Service Web.URL" "%allusersprofile%\desktop\" /d /y

Thursday, June 23, 2011

List group members in Active directory and output the results to a file:

dsget group "cn=GFSoperationHead,ou=UBS And GFS,ou=OuName,dc=ABC,dc=com,dc=eg" -members dsget user -fn -ln -desc -samid > c:\GFSoperationHead.txt

Wednesday, April 20, 2011

Trunk to Elastix 2.0.3 from Cisco Unified Call Manager 6.1

From CISCO side I used this article:
http://www.freepbx.org/news/2009-06-07/cisco-unified-cm-6-1-to-asterisk-and-freepbx-sip-trunks-powered-by-bandwidth-com

In Elastix:

I configured the 600 Extension dedicated for Cisco trunk incoming calls:










I made this trunk to GULFSIP.COM as a SIP Provider:


































Then I configured the below outbound route for that trunk:












Then I configured the Follow me for those who are dialing into Elastix:
























The DISA configuration:


Thursday, April 7, 2011

Export Exchange 2007 account to *.pst file

1- download Exchange Management tools:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6be38633-7248-4532-929b-76e9c677e802&displaylang=en

2- Install on windows XP x32 with Outlok installed.

3- Grant the user that will run the PowerShell Command "asabri"
Add-MailboxPermission -Identity 'Khalid Hassabou' -User 'MyDomain.COM\asabri' -AccessRights 'FullAccess'

4- Run this from Exchange powerShell:
Export-Mailbox -Identity "asabri@MyDomain.com" -PSTFolderPath E:\AhmadSabry\AS.pst


[PS] C:\Documents and Settings\asabri>Export-Mailbox -Identity "asabri@MyDomain.
com" -PSTFolderPath E:\AhmadSabry\AS.pst

Confirm
Are you sure you want to perform this action?
Exporting mailbox content from the mailbox 'Ahmad Sabry' into .pst file
'E:\AhmadSabry\AS.pst'. This operation may take a long time to complete.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):y


Identity : MyDomain.com/Consultants and Vendors/Ahmed S
abri
DistinguishedName : CN=Ahmed Sabri,OU=Consultants and Vendors,DC
=MyDomain,DC=com
DisplayName : Ahmad Sabry
Alias : asabri
LegacyExchangeDN : /o=NMTC/ou=Exchange Administrative Group (FY
DIBOHF23SPDLT)/cn=Recipients/cn=asabri
PrimarySmtpAddress : asabri@MyDomain.com
SourceServer : WTCXMB1.MyDomain.com
SourceDatabase : WTCXMB1\First Storage Group\SG1_Alpha
SourceGlobalCatalog : WTDC1
SourceDomainController :
TargetGlobalCatalog : WTDC1
TargetDomainController :
TargetMailbox :
TargetServer :
TargetDatabase :
MailboxSize : 12783KB
IsResourceMailbox : False
SIDUsedInMatch :
SMTPProxies :
SourceManager :
SourceDirectReports :
SourcePublicDelegates :
SourcePublicDelegatesBL :
SourceAltRecipient :
SourceAltRecipientBL :
SourceDeliverAndRedirect :
MatchedTargetNTAccountDN :
IsMatchedNTAccountMailboxEnabled :
MatchedContactsDNList :
TargetNTAccountDNToCreate :
TargetManager :
TargetDirectReports :
TargetPublicDelegates :
TargetPublicDelegatesBL :
TargetAltRecipient :
TargetAltRecipientBL :
TargetDeliverAndRedirect :
Options : Default
SourceForestCredential :
TargetForestCredential :
TargetFolder :
PSTFilePath : E:\AhmadSabry\AS.pst
RsgMailboxGuid :
RsgMailboxLegacyExchangeDN :
RsgMailboxDisplayName :
RsgDatabaseGuid :
StandardMessagesDeleted : 0
AssociatedMessagesDeleted : 0
DumpsterMessagesDeleted : 0
MoveType : ExportToPST
MoveStage : Completed
StartTime : 4/7/2011 11:03:14 AM
EndTime : 4/7/2011 11:03:35 AM
StatusCode : 0
StatusMessage : This mailbox has been exported to the PST fi
le.
ReportFile : C:\Program Files\Microsoft\Exchange Server\L
ogging\MigrationLogs\export-Mailbox20110407-
110257-6805407.xml