Archive for March, 2016

How to clear values via PowerShell in Active Directory

March 23, 2016 Leave a comment


$user = domainuser

set-aduser $user –clear manager

This also works for multiple values, like phonenumber, address etc. just add a coma after values.



Zabbix Action to Start a Windows Service

March 21, 2016 Leave a comment

Using zabbix to restrart a service, when it unexpectedly stopped running

  1. Create a template for the custom service.
  2. Use the trigger to monitor the service and report the problem
  3. In the Zabbix Agent config allow remote commands
  4. Create an action to start the service

Create an action to start the service:

  • Click on Configuration > Actions > click Create action (top right corner) > Enter Action name and leave rest as default
  • Click on Conditions tab > Leave condition label (A) > remove any other conditions 
  • Conditions tab > add a new Trigger condition (Like so: Trigger = select the trigger created for the service (by clicking select)) > click Add to add the new condition
  • Click on Operations tab > Change Operation type to “Remote command” > Enter new Target as current host > Type equals ‘Custom script’ > Execute equals ‘Zabbix agent’ >  enter Command “sc \\{HOST.NAME} start ServiceName” > click Add to add the new reactive action and save the configuration
    To test this, turn of the service and wait for a few seconds to see if it has been started.


Windows Time config for Active Directory

March 20, 2016 Leave a comment

Small list of quick windows time service commands

  • w32tm /query /peers
  • net stop w32time
  • net start w32time
  • w32tm /config /manualpeerlist:",0x1,0x1,0x1,0x1" /syncfromflags:manual /update /reliable:yes

Here’s a full article how Windows Time Service works – Link

Windows Server 64-bit recommended page file size

March 19, 2016 Leave a comment

I picked this up a while back when I was doing research for my RDS cluster.

Recommended page file sizes:

  • Windows Server 2008 R2:
    Minimum page file size: 1x RAM
    Maximum page file size: 3 x RAM or 4 GB, whichever is larger
  • Windows Server 2012 and R2:
    Minimum page file size: Depends on crash dump setting*
    Maximum page file size: 3 x RAM or 4 GB, whichever is larger

    More Info: Technet

I found this from a forum on the internet:

For WS 2008/R2, C drive 66 GB irrespective of OS version and platform. C drive should have 6GB page file.

Aforementioned are basic requirements.

As best practice, you need to set page file 1.5 Times the RAM available on any Windows Servers.

For instance,

Say, you have 16 GB RAM on a server, 1.5 times the RAM 16 GB = 24 GB;  you need to set 24 GB Page file on the Server.

Now, how would you ditribute the page file ?

Here is the way, You need create a separate Drive and split the Page file (other than the preset page file on C drive)

For WS 2008/2, C drive already has 6 GB, now on a newly created drive set 18 GB page file (i.e. 24 -6=18 GB), make sure you have at least 23 – 25 GB Drive to accomodate 18GB page file.

I use the above settings on my RDS servers.


How to configure Putty for Cisco Catalyst Serial Cable

March 18, 2016 Leave a comment

Settings for Putty

  • 9600 baud
  • 8 data bits
  • 2 stop bits
  • No parity
  • None (flow control)
Categories: Cisco Tags: ,

DNS zone was not found

March 17, 2016 Leave a comment


The Active Directory integrated DNS zone was not found.


  • Create a zone called ""
  • Make it Active Directory integrated and allow only secure updates. Click Finish.
  • Go into the zone properties,change the replication scope to "All DCs in the Forest"
  • Delete the _msdcs folder under
  • Run an ipconfig /registerdns
  • net stop netlogon && net start netlogon

    This should populate the zone shortly

Source: Technet forums

– Eric

Printer Spooler Error on Windows 7/8.x/10

March 16, 2016 1 comment

In this I received the Printer Spooler Error on Windows 8.1:

"windows cannot connect to the printer. the local print spooler service is not running. please restart the spooler or restart the machine."


This can be fixed in 2 ways.

  1. Go to Control Panel > Administrative Tools and open Services. Find the printer spooler service and check the status of it. If its Started, then Restart the service.
  2. Right Click on Windows button and select Command Prompt (Admin). Type in the following command: net stop spooler && net start spooler
    TIP! – This will also work on Windows 7/10