How to stop Exchange 2013 from auto-mapping mailboxes in Outlook

I have access to many shared mailboxes for admin purposes, but I don’t want them all to show up in outlook.

To stop them from auto-mapping, simply run the following command on the  Powershell Exchange Management Shell.

Add-MailboxPermission -Identity <shared mailbox alias> -User <your mailbox alias> -AccessRights FullAccess -InheritanceType All -Automapping $false

How to create a bootable USB flash drive

1. Insert a USB flash drive into a running computer.
2. Open a Command Prompt window as an administrator.
3. Type diskpart.
4. In the new command line window that opens, to determine the USB flash drive number or drive letter, at the command prompt, type list disk, and then click ENTER. The list disk command displays all the disks on the computer. Note the drive number or drive letter of the USB flash drive.
5. At the command prompt, type select disk <X>, where X is the drive number or drive letter of the USB flash drive, and then click ENTER.
6. Type clean, and the click ENTER. This command deletes all data from the USB flash drive.
7. To create a new primary partition on the USB flash drive, type create part pri, and then click ENTER.
8. To select the partition that you just created, type select part 1, and then click ENTER.
9. To format the partition, type format fs=ntfs quick, and then click ENTER.
10. Type active, and then click ENTER.
11. Type exit, and then click ENTER.

How to fix mapped drives disappearing during the day on Windows 8

I had WIndows 8.1 users reporting that their mapped network drives would disappear before their eyes in Windows Explorer, then reconnect one by one. This problem was not occurring for Windows 7 users. The drives were mapped by group policy, and this is where the problem occurs. Periodically, Windows 8.1 will do a group policy update, and if the group policy Action for the mapped drive is set to “replace” , it will disconnect and remap each drive.

The solution to this is to set the action in the mapped drive policy to “update”  and you won’t have this problem any more.

NOTE: if the action box is greyed out, you need to click on “common”  tab and then  untick the box that says “Remove this item when it is no longer applied”

How to see the last logon for a user in Windows

I wanted to see the last time a user had connected to a server that was not on the domain. Use the command below to see the login time, replacing USERNAME with the actual username. This will also work on a domain, but if you have more than one DC you will need to run it on each DC.

net user USERNAME | findstr /B /C:”Last logon”

On a domain joined PC use the command below to find out the last time it logged on to the domain . DO NOT REPLACE THE WORD “DOMAIN” WITH YOUR DOMAIN NAME THOUGH!!

net user USERNAME /DOMAIN| findstr /B /C:”Last logon”

How to fix ” Last error: 8457 (0x2109): The destination server is currently rejecting replication requests.”replication issue with Windows 2012 domain controllers

I had a DC that wouldn’t replicate with other domain controllers and was causing issues.

I ran repadmin /showrepl  form a Powershell prompt and saw the following error being returned on the screen

Last error: 8457 (0x2109): The destination server is currently rejecting replication requests.

 

To fix this , run the following commands and replace the <DC NAME> with the name of your DC. Replication should begin again soon.

repadmin /options <DC NAME> -disable_inbound_repl
repadmin /options <DC NAME> -disable_outbound_repl