Archive

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

Source:
http://blogs.technet.com/b/gary/archive/2009/08/11/get-exchange-mailbox-database-size-one-liner-version-2.aspx

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
Command:
New-ManagementRoleAssignment –Role “Mailbox Import Export” –User Administrator

Then close Exchange Management Shell and restart it.

Now export mailbox using this command:
Command:
New-MailboxExportRequest -mailbox user@domain.no -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): http://office.microsoft.com/en-us/products/microsoft-office-2010-backup-FX101853122.aspx

B. Product Key Card (PKC): http://office.microsoft.com/en-us/buy/using-the-product-key-card-FX101853163.aspx

Microsoft Office 2007 Download Locations

A. Full Retail (FPP): http://www.microsoft.com/office/downloads/

B. Medialess Licensing Kit (MLK): http://www.microsoft.com/office/backup/en-us/default.mspx

Show hidden files in Mac OSX


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

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

%d bloggers like this: