How to reset iDRAC (Dell)

Sometimes happens that iDrac doesn’t response. We can reset it from command line.
racadm racreset soft
It can takes few good minutes.

We can also restart iDRAC remotely however we have to install DRAC tools.

racadm -r -u -p
racreset soft

We can also reset iDRAC to factory settings

racadm racresetcfg

Remote
racadm -r -u -p
racresetcfg

That’s folks.

How to disable Exchange cached mode in Outlook on the Terminal Server.

Hi,

Today I will show you how to disable Exchange Cached Mode in Outlook on Terminal Server. Unfortunately we can’t do it using GPO because “Use Cached Exchange Mode for new and existing Outlook profile” only exists in the User tree.

Open regedit

Go to: HKLM – > Software -> Policies -> Microsoft -> Office -> 15.0 -> Outlook -> OST and create dword NoOST -> give value 2.

HKEY_LOCAL_MACHINE/SOFTWARE/Policies/Microsoft/Office/14.0/Outlook/OST

For outlook 2010 change 15.0 to 14.0.

Disable OST on Terminal Server

How to remove PUBLIC FODER using ADSIEdit

Most of our clients are moving to Office 365. I found out that sometimes is really difficult to remove Public Folders.

This is easy way to solve it is use ADSI-Edit.

Exchange 2010

  1. Open ADSI-Edit and got to configuration
  2. Navigate to this path:
  3. CN=Configuration,DC=DOMAIN,DC=LOCAL
  4. CN=Services
  5. CN=Microsoft Exchange
  6. CN=EXCHANGE_ORG
  7. CN=Administrative Groups
  8. CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
  9. CN=Databases
  10. CN=PUBLIC_FOLDER_DATABASE
  11. Now you can delete the PF-Database you want to get rid off.

Exchange 2007

  1. Open ADSI-Edit and got to configuration
  2. Navigate to this path:
  3. CN=Configuration,DC=DOMAIN,DC=LOCAL
  4. CN=Services
  5. CN=Microsoft Exchange
  6. CN=EXCHANGE_ORG
  7. CN=Administrative Groups
  8. CN=Exchange Administrative Group (FYDIBOHF23SPDLT)
  9. CN=Servers
  10. CN=SERVERNAME
  11. CN=InformationStore
  12. CN=STORAGE_GROUP
  13. CN=PUBLIC_FOLDER_DATABASE
  14. Now you can delete the PF-Database you want to get rid off.

Exchange 2003

  1. Open ADSI-Edit and got to configuration
  2. Navigate to this path:
  3. CN=Configuration,DC=DOMAIN,DC=LOCAL
  4. CN=Services
  5. CN=Microsoft Exchange
  6. CN=EXCHANGE_ORG
  7. CN=Administrative Groups
  8. CN=First administrative Group
  9. CN=Servers
  10. CN=SERVERNAME
  11. CN=InformationStore
  12. CN=STORAGE_GROUP
  13. CN=PUBLIC_FOLDER_DATABASE

ADSIEDIT_Public_Folder_Remove

How to fix problem when your hard drive became RAW.

Few days ago my boss asked me to check one hard drive. I was able to get everything. However next time when we connected this hard drive windows asked us to format it (RAW ).

This is how I fixed it.

  1. Go to Disk Management .
  2. Right click on problematic partition and chose option Change Drive Letter and Paths.
  3. Click add if partition is not mounted.
  4. Change letter for example X.
  5. Go to RUN.
  6. Type CMD.
  7. Type chkdsk X: /f
  8. Chkdsk should report some issues and fix them 🙂

That’s all folks.

How to create report of user mailbox size for Exchange in Powershell.(DisplayName, PrimarySmtpAddress, TotallItemSize).

This is one of my favorite Powershell scripts. Easy way to show how big are Exchange mailboxes and make your boss happy 🙂

This is the result:

Exchange Users, Mialbox Report

Copy and past 🙂

$Report=@()
$mailbox=Get-mailbox –resultsize unlimited
$mailbox| foreach-object{
$DisplayName=$_.DisplayName
$SmtpAddress=$_.PrimarySmtpAddress
$TotalItemSize=(get-mailboxstatistics –identity $DisplayName ).TotalITemSize
$obj=new-object System.Object
$obj|add-member -membertype NoteProperty -name "DisplayName" -value $DisplayName
$obj|add-member -membertype NoteProperty -name "PrimarySmtpAddress" -value $SmtpAddress
$obj|add-member -membertype NoteProperty -name "TotalItemSize" -value $TotalItemSize
$Report+=$obj
}
$path_s=[Environment]::GetFolderPath("Desktop")
$Report|Sort "TotalItemSize" -Descending | export-csv $path_s\report.csv -notype

QNAP: File System is not clean

If you use QNAP which is not connected to UPS you probably see error   “File System is not clean”  very often.  This is my way how to check and clean files system fast on QNAP.

Step 1: You have to connect to QNAP via SSH.
Step 2: Copy and past every line separately.

/etc/init.d/services.sh stop
/etc/init.d/opentftp.sh stop
/etc/init.d/Qthttpd.sh stop
umount /dev/md0
e2fsck -f -v -C 0 /dev/md0
reboot

How to Activate/Deactivate Windows from command line.

Sometimes Windows has problem with activation. We can  easy solve this problem from command line.

Activation Windows from Command Line:

Find CMD and “Run as administrator”

Type:  slmgr -ipk your-mak-key-here

If everything went well you will see this windows

Windows Activation Success

Type:  slmgr -ato

Activation Windows

 

Deactivation Windows from Command Line:

Find CMD and “Run as administrator”.

Type: slmgr -upk

If everything went well you will see this window.

Unninstalled product key

Now your Windows installation is fully genuine.

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.

Solution1:

  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.

Solution2:

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!!
    pause
  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.