0

Tips & Tricks : Disable Microsoft Compatibility Telemetry Service

-

In case Microsoft Compatibility Telemetry process takes a lot of your processor, you can easily remove it:

  1. Run Command Prompt as Administrator.
  2. Execute following commands in Command Prompt:
  • sc delete DiagTrack
  • sc delete dmwappushservice
  • echo “” > C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl
  • reg add “HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection” /v AllowTelemetry /t REG_DWORD /d 0 /f
0

Config snippets : useful Netdom command

-

Quick side note, not to forget for future.

Rename computer

Netdom renamecomputer %computername% /newname:Test-Server

Join computer to domain

Netdom join %computername% /domain:domain.com /UserD:Administrator /PasswordD:*
0

Tips & Tricks : BitLocker requires recovery key when USB device connected at startup

-

Sometimes when you start machine with BitLocker enabled and same time some storage device was connected to USB port, BitLocker might request Recovery Key. This happens because USB ports is listed on boot device search list. To avoid this type of event best idea is to remove USB from boot search list. However, changing list of boot devices might also trigger BitLocker.

How to deal with this type of situation? Follow steps below:

  1. Suspend BitLocker  – command: manage-bde -protectors -disable c:
  2. Reboot machine
  3. Go to BIOS and remove all USB devices from available boot devices list
  4. Boot up to Windows
  5. Resume BitLocker – command: manage-bde -protectors -enable c:
NOTE: All above commands have to be issues from Command Prompt with elevated privileges.

After that no more issues with BitLocker during startup when USB storage devices are connected.

0

Config snippets : Activating Windows Server 2012 Core

-

As there is no GUI in Windows Server 2012 Core, we have to use command line and script in order to acivate system.

slmgr.vbs is a VBscript which allows to set product key and activate operating system. Below most common use of slmgr.vbs.

Set product key

slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX

Activate Windows

slmgr.vbs /ato

Display information about licenses

slmgr.vbs /dli
slmgr.vbs /dlv
0

Code snippets : Enable remote administration on Windows Server 2012 Core

-

By default remote management on Windows Server 2012 Core can be blocked by firewall.

In order to enable this functionality, issue following command from Command Prompt window:


Netsh.exe firewall set service remoteadmin enable ALL

Once it’s done you should be able to manage server remotely.

0

Code snippets : Handy wmic commands

-

Some handy wmic commands which might be helpful when automating OS deployment:

wmic bios get serialnumber
wmic computersystem get manufacturer
wmic computersystem get model
Page 1 of 3123