How to export all mailboxes to PST file on Exchange.

Hi this is my easy way to export all mailboxes to PST on the Exchange servers.

Step1: We have to give our user permission to EXPORT mailboxes.

New-ManagementRoleAssignment -role "Mailbox Import Export" -User OUR_USER

Step2: Please create folder where you want to save PST files.

Step3: Export user names.

Get-mailbox| Select-Object -ExpandProperty Name | Out-File -FilePath "c:\user_list.txt"

Step4: Run script bellow. Please remember to change path where you want save PST files. Very important it has to be UNC path.
foreach ($user in $content)
New-MailboxExportRequest -Mailbox $user -FilePath "\\MY-Server\PST\$user Mailbox.pst"

How to Cancel or Delete a Stuck Print Job in the Windows

Problem Stuck Job Print.

Probably everyone who has printer experienced problem with stuck documents in queue. This is my solution how to fix this problem.


  1. Open Services.
  2. Find and stop Service Print Spooler.
  3. Open RUN and past %windir%\System32\spool\PRINTERS
  4. Delete all files in this folder.
  5. Open Services and start Service Print Spooler.
  6. Enjoy your printing.


Also which I strongly recommended you can use simple script which can do it for you automatically.

  1. Open Notepad.
  2. Copy text bellow.
    @echo off
    echo Cleaning the the print spooler
    net stop spooler
    echo Removing documents in the print queue
    del /q /f /s "%systemroot%\system32\spool\PRINTERS\*.*"
    net start spooler
    echo All DONE!!
  3. Save the file and give good easy name like clean_printer_spooler.bat
  4. Right click on script and “Run as administrator”
  5. Save your script in save place and use always when you have a problem.