How to compact your email to regain storage

Compact email

Before you do this, make sure you delete any emails you don’t need and empty out deleted items, otherwise, you will not regain storage space. Outlook creates an Offline Outlook Data File (.ost), which caches data of your emails, default location is system drive:\Users\YourUserName\AppData\Local\Microsoft\Outlook

Also, if you have created an Archive of your email, then you will have Outlook Data File (.pst), which also needs to do compact if you are cleaning up and trying to regain storage space, otherwise it just grows larger. The default location for .PST is the Documents\Outlook Files folder

To compact .OST, open Outlook

Click Menu>Info>Account Settings

Info>Account Settings

Next click on Data Files>Select your email or account.ost file extension

Then click on Settings …

Account Settings>Data Files

Select the Advanced tab, then click on Outlook Data File Settings …

Advanced>Outlook Data File Settings

Click on Compact Now to start compacting

Compact email

Note, if you have not done this before, it will take some time, next time you do this it will be quick, the storage space regained will depend on how much you have deleted your old emails. You can do the same thing for your.PST file

Note: make sure to empty your Deleted folder



The trust relationship between this workstation and the primary domain failed

AD trust failed

it’s not common, but once in a while you will come across an error like this “The trust relationship between this workstation and the primary domain failed“, causes of this are very, it’s a very easy to fix it too, here are some list of reasons:

  • Admin deleted Computer object in AD
  • System restored, which is a different machine account password than AD
  • Machine imaged and restored
  • object corruption in AD
  • AD policy disables a computer after x number of days

You will get a message like this:

If you are logged into computer local user, you can test by running the PowerShell command

command: Test-ComputerSecureChannel -Server NameOfDomainController

In this example, it’s showing true, but if you are having an issue you would get false

To fix it:

You can reset it by running a PowerShell command:

Command: Reset-ComputerMachinePassword -Credential YourDomainName\YourDomainAdmin

or you can rest from Domain Controller

Another way is to disjoin from domain and re-join it, that’s it



How to open Task Manager in Windows

The task manager shows the system processes, performance, and many more details of your system, many users do not know how to open Task Manager, here are some ways to open it, you can use whichever you like. Each tab has more details about the system, like Performance, which has more details about CPU, Memory, Disk, etc.

Keyboard keys: CTR+ALT+Delete, then choose Task manager

Keyboard keys: CTR+Shift+esc

Keyboard keys: Windows+R

Then type in: taskmgr

Then click ok or Enter

Star Menu: start typing Task Manager, then click on Task Manager to open

Using Mouse right-click on the bottom taskbar, then click Task Manager

Hope this helped you to open task manager in Windows 7/10/11



Solution for Outlook error: This is not a valid file name

Outlook client giving error when replying or forwarding email chain, with or without attachment and getting an error: “This is not a valid file name”. The issue could be local outlook setting, plugin as well links, or images broken. The best way to check via Web outlook is to test your issue, if the web works then look at the settings of outlook. Here are some options that may help fix your issues.

Error messages:

This is not a valid file name
Cannot send this item

Look at the body of the email:

Look at all links and empty areas of the body to see if there are any hidden links, Like the example below

Once removed any broken links, your issue should be fixed

Also, you can try converting the HTML to Plain Text, which will remove all formatting and links

Convert HTML to Plain Text or Rich Text

Check outlook in Safe mode:

Click Start > Run.

Type Outlook /safe, and choose OK

Take a look at the Plugin of outlook:

You can get to it by going to File>Options>Add-ins

Just uncheck to disable whichever you don’t use or causing the issue

Add-ins

That’s it, hope it helps some people



How to map a network drive via Group Policy

Map network drive via GP

Map a network drive via group policy is a much easier and faster process than manually or logon scripts. user does not have to wait for the logon script to load or if the network path changes it automatically updates. It makes admin and user’s life much better and makes changes to the network without having to update each user. It should plan out the process, users, or groups it’s going to apply this network drive.

This is my process for this post

  1. File server: FileServ1
  2. Share Name: Accounting
  3. Drive Letter: S
  4. Group that’s applying to: Accounting
  5. how-to-delete-policy

Create a new GPO

Start>Windows Administrative Tools>Group Policy Management

or from Server Manager: Tools>Group Policy Management

Right-click on your OU (Organization Unit) where you want to create and link your Group Policy

Select Create a GPO in this domain, and Link it here …

You will see New GPO, name it whatever you want, something that makes sense, I am going to call it Accounting Network Drive

Configure GPO

Right-click on the Group Policy Object and select Edit

Expand User Configuration>Preferences>Windows Settings
Then right-click on Drive Maps and select New>Mapped Drive

Filling the details

You can see there are many options to select from

Based on select above you will see other options

How to Delete policy

First unlink from OU that’s linked

Then Delete from Group Policy Objects:

If you try to delete while still linked GPO, you will get this message, which also works fine too

That’s it, hope this help others