Posts Tagged ‘delete’

A couple of days ago I had a problem with an Exchange Server running out of space. I controlled database and logfile partitions and could not detect anything suspicious.

After some researches I figured out Volume Shadow Copies require much space because a backup job didn’t finish succesful and leave the VSS data on disk.

In my case vssadmin deleteshadows didn’t work, too. After some investigation I found a way to delete the Shadow Copies with the command line for WMI – WMIC

http://technet.microsoft.com/en-us/library/cc787035%28v=ws.10%29.aspx

In summary you have to do the following

  • Start an elevated commandline window
  • Type in wmic and press enter
  • wmic:root\cli is shown
  • Type in shadowcopy which will list the current shadow copies
  • Type in shadowcopy delete and confirm to delete the copies one after the other
  • To leave the WMI commandline type exit

Cheers,

Chris

Today I cleaned up my PC and wanted to delete unnecessary OS files.
After reading the deployment guide for Windows 7 / 2008R2 I figured out the following command, which will delete those files permanent. You have to launch an administrative command line:

DISM.exe /Online /Cleanup-Image /spsuperseded

Cheers,

Chris

In Exchange’s default the retention time for a deleted mailbox is set to 30 days. If you have to force purging a mailbox you have to set retention time to 0 days.

Set retention to 0 days:

Set-MailboxDatabase -Identity “MBX-DB001” -MailboxRetention 00.00:00:00

Cleanup Mailbox Database:

Clean-MailboxDatabase -identity “MBX-DB001

Set retention back to 30 days:

Set-MailboxDatabase -Identity “MBX-DB001” -MailboxRetention 30.00:00:00

Make sure to change the mailbox databases name to your environment.

Cheers,

Chris

In some cases you are forced to hard-remove public folders from Exchange. You can use ADSI Edit to delete these folders.

Exchange 2010

Open ADSI-Edit and got to configuration

Navigate to this path:

CN=Configuration,DC=DOMAIN,DC=LOCAL
CN=Services
CN=Microsoft Exchange
CN=EXCHANGE_ORG
CN=Administrative Groups
CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
CN=Databases
CN=PUBLIC_FOLDER_DATABASE

Now you can delete the PF-Database you want to get rid off.

Exchange 2007

Open ADSI-Edit and got to configuration

Navigate to this path:

CN=Configuration,DC=DOMAIN,DC=LOCAL
CN=Services
CN=Microsoft Exchange
CN=EXCHANGE_ORG
CN=Administrative Groups
CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
CN=Servers
CN=SERVERNAME
CN=InformationStore
CN=STORAGE_GROUP
CN=PUBLIC_FOLDER_DATABASE

Now you can delete the PF-Database you want to get rid off.

Exchange 2003

Open ADSI-Edit and got to configuration

Navigate to this path:

CN=Configuration,DC=DOMAIN,DC=LOCAL
CN=Services
CN=Microsoft Exchange
CN=EXCHANGE_ORG
CN=Administrative Groups
CN=First administrative Group
CN=Servers
CN=SERVERNAME
CN=InformationStore
CN=STORAGE_GROUP
CN=PUBLIC_FOLDER_DATABASE

Now you can delete the PF-Database you want to get rid off.

Cheers,

Chris