Category: Windows

  • Send e-mail via telnet

    telnet smtp.domain.com 25 helo (press enter) mail from:sender@domain.com (press enter) rcpt to:recipient@domain.com (press enter) data (press enter) write your massage (press enter) . (press enter) quit

  • Path to all users desktop and start menu in Windows 7

    All users desktop: C:\Users\Public\Desktop\ All users start menu: C:\ProgramData\Microsoft\Windows\Start Menu\

  • Modify Exchange database size limit & event id: 9688

    Event ID: 9688 Source: MSExchangeIS Mailbox Store Exchange store ‘<storage group name>\<database name>’: The logical size of this database (the logical size equals the physical size of the .edb file minus the logical free space) is 94 GB. This database size is approaching the size limit of 100 GB. If the logical database size exceeds […]

  • Connecting to server console via remote desktop

    > mstsc /v:ServerName /admin

  • Removing disconnected mailboxes in Exchange 2007

    In Exchange Management Console you can’t purge disconnected mailboxes. To delete a disconnected mailbox in Exchange 2007 do the following: 1. List all disconnected mailboxes in Exchange Management Shell. > Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid 2. Remove a mailbox > Remove-Mailbox -Database <database name> -StoreMailboxIdentity <mailbox guid> -confirm:$false Example: […]

  • Allowing PowerShell executing scripts

    By default PowerShell is restricted to not allow script execution. To allow script execution do the following Open PowerShell in elevated mode (run as administrator) and run the following command: Set-ExecutionPolicy unrestricted To verifiy how if script execution is allowed or not run the following command in PoweShell: Get-ExecutionPolicy

  • Display mailbox size in Exchange 2007

    To display mailbox size in Exchange 2007 run this command in Exchange Management Shell. get-mailboxstatistics | fl displayname, totalitemsize To pipe the output into a text file. get-mailboxstatistics | fl displayname, totalitemsize > c:\mailboxsize.txt veiwing mailbox sizes in exchange 2007

  • A disabled user account stil receives e-mail

    When you have a user account disabled in Active Directory the users mailbox still receives e-mail. To end this behavior you need to delete the user account in Active Directory (this also deletes the mailbox) or disabling the mailbox in Exchange Management Console. Disabling the mailbox in EMC actually deletes the mailbox.

  • Enable autologon in Windows Server 2008

    To make the option “Users must enter a user name and password to use this computer” visible on a domain joined Windows Server 2008 do the following: 1. Run the following comand in cmd: reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d “1” /f 2. Click start, run. Write: control userpasswords2 and click ok […]

  • Access denied when adding TCP/IP printer port in Windows 2008

    You get the following error when adding a printer using a TCP/IP port: The problem is that you need to “elevate to administrator privileges” (run as administrator) to add a TCP/IP port. I have’nt found any way to do that when adding a printer. The solutions is to logon as administrator in the console and […]