Remko Weijnen's Blog (Remko's Blog)

About Terminal Server, Citrix, Delphi and other stuff


1,249 views

imageIn a Comment on my Article “Installing Dell Wireless 5530 HSPA Mini PCI“, Florian asked how to Install Dell’s R298998 driver on non authorized system and card combinations.

I decided to have a look and downloaded this driver. The structure isn’t much different from the R251153 driver I described in my earlier post.

When installing it on a non authorized card/laptop combination the error is similar:

Authentification failed. The Dell Wireless HSPA Mobile Broadband Mini-Card cannot be installed on this computer. Please contact the Dell support for further information.

When the error message appeared I looked into the temp folder and I noticed that just like before 2 folders were created (with a GUID as name). One of these folders contained the file driver_auth.exe which, as I already knew, performs the actual validation.

Read the rest of this entry »

  • 3 Comments
  • Filed under: General
  • 603 views

    imageToday one of my collegues asked me to write a script that performs two actions for all users of a certain Organizational Unit:

    1. Ensure that each user has modify permissions on their homefolder
    2. Make each user visible in the Exchange Address List.

    Sounds like a PowerShell job right?

    I reused my function to set NTFS Permissions by SID:

    Read the rest of this entry »

    297 views

    imageFor a script I needed to create an AQS (Advanced Query Syntax) Query that contained a date range.

    An example of such is a range is: date:11/05/04..11/10/04

    However we need to account for regional settings where for example the data seperator and the order of day and month may be different.

    In my example I wanted to match any data that is 30 days or older so let’s do this in PowerShell:

    Read the rest of this entry »

    691 views

    imageYesterday I needed to set a few registry keys remotely from a 32 bit windows machine to a 64 bit machine.

    I used reg.exe to set the key but even though it returned success the key wasn’t altered.

    As I suspected the key was written to the Wow6432Node. In the help I couldn’t find any switch to force reg.exe to use the 64-bit view.

    On a 64 bit machine this is not a problem since both 32- and 64 bit versions of reg.exe exists. The 32 bit version of reg.exe defaults to the 32 bit view and the 64 bit version defaults to the 64 bit view.

    But luckily reg.exe has a switch (that is not listed in the help) to force the View:

    853 views

    SNAGHTML1aaf7885In Windows 7 and 2008 R2 all IP Addresses are by default registered in DNS.

    If you don’t want certain IP addresses to appear in DNS you can alter this behavior with Netsh using the skipassource flag.

    Use the following syntax to add an additional IP Address with skipassource flag:

    Read the rest of this entry »

    655 views

    I came across an interesting tool today called Binwalk.
    Binwalk is a firmware analysis tool that scans a given binary file for embedded files and executable code.

     

    Binwalk requires a Linux machine, I used the Backtrack VM I used from my article about WEP keys.

    Note there is no binary distribution of Binwalk so you will need to compile it but this is a breeze.

    Read the rest of this entry »

  • 0 Comments
  • Filed under: Embedded
  • 355 views

    imageAnother interesting Move Mailbox error and in this case I am really unsure how this would be possible!

    Let’s look at the Move Mailbox log:

    1-10-2011 11:49:18 [The Exchange Server] A corrupted item was encountered during the move operation. The item wasn‘t copied to the destination mailbox.
    <baditem id="0000000088B41EB2A774E14BA3B29759527EBBD007007A08E4E185746A45BF5C6EF2A17E8D5500000590285800007A08E4E185746A45BF5C6EF2A17E8D550000059028720000" flags="0×00000000" errorcode="0×80004005" errortype="MapiExceptionMaxSubmissionExceeded">
      <folder id="0000000088B41EB2A774E14BA3B29759527EBBD001007A08E4E185746A45BF5C6EF2A17E8D550000059028580000">Top of Information Store</folder>
      <sender>John Doe</sender>
      <recipient></recipient>
      <subject>archive.pst</subject>
      <messageclass>IPM.Document.PSTFile</messageclass>
      <size>38621879</size>
      <datesent>01/19/2006 14:30:57</datesent>
      <datereceived>01/19/2006 14:30:19</datereceived>
      <errormessage>Message (size 36.83 MB (38,621,879 bytes)) exceeds the maximum allowed size for submission to the target mailbox. You can increase this limit by using the Set-Mailbox cmdlet in the Exchange Management Shell.
    Error details: MapiExceptionMaxSubmissionExceeded: IExchangeFastTransferEx.TransferBuffer failed (hr=0×80004005, ec=1242)</errormessage></baditem>

    This error occurs because of a size constraint just like the one in the previous part.

    imageBut the strange part is that it seems to be a PST file (type IPM.Document.PSTFile) located in the Root folder of the Exchange mailbox (which is not possible AFAIK).

     

    Read the rest of this entry »

  • 0 Comments
  • Filed under: Exchange
  • 490 views

    The previous part (part 3) addressed Mailbox Size but did you know that even Message Size (or rather Item size) can prevent a successful move as well?

    Here’s an example move mailbox log:

    2-10-2011 3:18:58 [The Exchange Server] A corrupted item was encountered during the move operation. The item wasn‘t copied to the destination mailbox.
    <baditem id="00000000469F68BB3AD7E745B2B8A041FC1B688C07007A08E4E185746A45BF5C6EF2A17E8D55000001537A9D00007A08E4E185746A45BF5C6EF2A17E8D55000001540FF30000" flags="0×00000000" errortype="MapiExceptionMaxSubmissionExceeded" errorcode="0×80004005">
      <folder id="00000000469F68BB3AD7E745B2B8A041FC1B688C01007A08E4E185746A45BF5C6EF2A17E8D55000001537A9D0000">verzonden nov 2004-aug 2005</folder>
      <sender>Jane Doe
      <recipient></recipient>
      <subject>Foto’
    s afscheid John Doe 10 februari jl.&lt;/subject&gt;
      &lt;messageclass&gt;IPM.Note&lt;/messageclass&gt;
      &lt;size&gt;76121694&lt;/size&gt;
      &lt;datesent&gt;02/15/2005 15:28:06&lt;/datesent&gt;
      &lt;datereceived&gt;02/15/2005 15:28:06&lt;/datereceived&gt;
      &lt;errormessage&gt;Message (size 72.6 MB (76,121,694 bytes)) exceeds the maximum allowed size for submission to the target mailbox. You can increase this limit by using the Set-Mailbox cmdlet in the Exchange Management Shell.
    Error details: MapiExceptionMaxSubmissionExceeded: IExchangeFastTransferEx.TransferBuffer failed (hr=0×80004005, ec=1242)
    Diagnostic context:

    As you can see in the log this mailbox there is one item with a size of 72 MegaBytes.

    Let’s see this in Outlook:

    image

    It gets even worse when we open the Message:

    image

    It was addresses to several internal recipients and as you know Exchange 2010 no longer supports Single Instance Storage.

  • 1 Comment
  • Filed under: Exchange
  • 381 views

    In Part 2 I showed some details about Mailbox Rule corruptions that can disturb Mailbox Moves.

    For this part the topic is Mailbox size, which can be an important factor in deciding which mailboxes you want to move first.

    In my case the mailbox size was important because we agreed to move smaller mailboxes during the day but larger mailboxes only outside working hours.

    For Exchange 2010 mailboxes it’s very easy to obtain the size using PowerShell.

    Example:

    Get-Mailbox "rweijnen" | Get-MailboxStatistics | select DisplayName, ItemCount, TotalItemSize
    DisplayNameItemCountTotalItemSize
    Remko Weijnen31334.87 MB (36,564,183 bytes

    But how can we get the Mailbox Size for Exchange 2003 mailboxes?

     

    Read the rest of this entry »

    638 views

    imageSometimes I want to process a list of “things” easily in PowerShell where the list is not in an external file but in the script itself.

    Ideally this list would not be separated by e.g. a comma so it can be easily copy/pasted from external data sources.

    Something like this:

    $List = @("
    John Doe
    Jane Doe
    James Bond
    And so the list goes on
    "
    )

    Read the rest of this entry »

    Profile

    Recent Tweets

    Views