Author Archive

IPconfig is blank (Windows IP Configuration)

Recently I found that a server lost it’s IP configuration, or so it looked like.

When runnin the ipconfig command the only output is this line:
Windows IP Configuration

All info about IP adresses, netmask, gateways, dns servers and all other info are gone.

I fixed this problem by restarting the TCP/IP Netbios Helper service.

In other blogs I have found that the same problem can be fixed by runnin the command:
netsh int ip reset
This command had no effect on mye problem, but might help others.

Since this problem where reoccuring on my server I created a scheduled task for restarting the service once pr day. This completly mends this problem (at least so far).

Windows: New files temporarly not visibel for 3rd party applications

When new files are created on a Windows server some third party apps will not se the new file for a few seconds. This may cause unwanted delays. The reason is that the 3rd party applications uses the Directory Cache to poll for new files. This cache are updated every 10 seconds. To resolve this problem change the Registry string HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanworkstation\Parameters\DirectoryCacheLifetime (DWORD) to a value of 0. This will disable the cache and resolve the file doesn’t exist issue.

PS: always back up the registry before doing updates. If you do not… well…

Powershell: Exchange – Check database size

Here is a one liner to check the database size for exchange databases.

Start Exchange management shell. Then run the following command:

Get-MailboxDatabase | foreach-object {add-member -inputobject $_ -membertype noteproperty -name mailboxdbsizeinGB -value ([math]::Round(([int64](get-wmiobject cim_datafile -computername $_.server -filter (‘name=”’ + $_.edbfilepath.pathname.replace(“\”,”\\”) + ””)).filesize / 1GB),2)) -passthru} | Sort-Object mailboxdbsizeinGB -Descending | format-table identity,mailboxdbsizeinGB


Exchange 2010 – Export mailbox to pst

December 30, 2013 Leave a comment

Start Exchange Management Shell.
Give your self rights to do export and import
New-ManagementRoleAssignment –Role “Mailbox Import Export” –User Administrator

Then close Exchange Management Shell and restart it.

Now export mailbox using this command:
New-MailboxExportRequest -mailbox -FilePath \\localhost\temp$\user.pst

The export command needs a UNC path for the filepath. I have just created a hidden temp share. Remember to delete temps after job is completed 🙂

Legacy Microsoft Office Download locations

October 10, 2013 Leave a comment

Microsoft Office 2010 Download Locations

A. Full Retail (FPP):

B. Product Key Card (PKC):

Microsoft Office 2007 Download Locations

A. Full Retail (FPP):

B. Medialess Licensing Kit (MLK):

Show hidden files in Mac OSX

Show hidden files
Start a Terminal windows
Type followinf commands:
defaults write AppleShowAllFiles TRUE
killall Finder

Hide hidden files
Start a Terminal windows
Type followinf commands:
defaults write AppleShowAllFiles FALSE
killall Finder

%d bloggers like this: