TechShizz | All posts tagged 'Disk Management'

How to free up space used by Data De-Duplication in Server 2012

If Data De-Duplication is disabled, the system files will remain and actually occupy a lot of space. Here is how to clear it:

The unoptimise command:

start-dedupjob -Volume <VolumeLetter> -Type Unoptimization

 

Check the status:

get-dedupjob

 

Clean up the Garbage:

start-dedupjob -Volume <VolumeLetter> -Type GarbageCollection


Enabling Disk Performance Counters in Windows Server 2012 R2 Task Manager

In Windows Server 2012 in the task manager, the performance tab does not show the disk performance by default like it does in Windows 8 / 10.

To enable disk performance counters, run this command from and elevated command prompt:

diskperf -Y

diskperf

The -Y switch is used to make the change permanent after a reboot. If this is missed of the counters will be gone after reboot.

Enabling Disk Performance Counters

Disable Short Filename Creation

Widows Best Practises Analyser sometimes says that a host needs to "disable short file name creation". To do this type this at an elevated command prompt.

 

fsutil.exe behavior set disable8dot3 1

Useful Commands

Kill a process on a remote computer

taskkill /s {hostname} /f /im winword.exe

See a list of processes on a remote computer

Tasklist /s {hostname} | sort


Cd \program files\microsoft\office14\       >       Outlook /clearviews  /safe

 

Resets all network adapters

netsh int reset all


Repair and applicaion via CLI - (MSI required)

Repair from CLI:  <path>\<exe/msifile> /q REINSTALL=ALL REINSTALLMODE=secum REBOOT=R

 

Install a driver via CLI

Install driver/App: msiexec /I "c:\%MSI%" /quiet /promptrestart /l* C:\installlog.txt

 


Windows Services

Query services

Sc query


Stop & start the spooler

Sc spooler stop

Sc spooler start


If you get operating system errors, run system file checker to try to repair critical OS files

System File Checker: SFC /Scannow

 

Show free disc space

fsutil volume diskfree c

 

Clean Disk  -   c:\windows\cleanmgr.exe /d c: