Category: Windows

Articles related to Microsoft Windows

Connectivity for WMI

Windows Management Instrumentation (WMI) is Microsoft’s implementation of Web-Based Enterprise Management (WBEM). It’s now part of Microsoft’s Windows Management Infrastructure (MI). WBEM is  set of standards developed to unify the management of distributed computing environments. WBEM is maintained by the DMTF (Distributed Management Task Force). Microsoft uses WMI to provide management data to the Windows
Read More »

HOW-TO: Import PST files to Office365

Personal Storage Table (.pst) files are Microsoft Outlook data files that store copies of messages, calendar events and other items. When migrating email service from On-premise to Office 365, users’ PSTs might have to be imported into Office 365. Importing PSTs Into Office 365 Two methods available: Network Upload Drive Shipping (USD 2.00 per GB
Read More »

Install Telnet client on Windows Server 2008 R2 / 2012

For whatever reason, Microsoft stopped enabling the useful “Telnet Client” by default in its Operating Systems since Windows Server 2008 R2. So, on such OSes, the Telnet Client has to be enabled as a “Feature”. After my first brush with Windows Server 2012, I realized that I must have shortcuts and commands handy to prevent
Read More »

Windows Server 2003 RDC Exception

Earlier today, an application owner wanted his Windows Server 2003 SP2 VM restarted. So, I opened a Remote Desktop Connection (RDC) session to the VM and restarted it. After the VM started, I received the following exception when I tried to open an RDC session to the VM:   Since I could no longer login
Read More »

How to create multiple groups in AD with a batch script

Assuming you have a text file (e.g. C:\ADGroups.txt) containing multiple Active Directory (AD) Groups with one AD group per line, you may use an MS-DOS script similar to the following to create all those AD Groups in your Active Directory domain. for /F "tokens=* delims= " %%G in (C:\ADGroups.txt) do ( dsadd group CN="%%G",OU="Human Resources",OU="IT",DC=MYAD,DC=CYBERGAV,DC=IN
Read More »

Working with Files and Directories in PowerShell

Given below are some tips from my scratchpad on working with files and directories in PowerShell. These are just basic tips and by no means exhaustive. Check out the book “Windows PowerShell in Action” by Bruce Payette, an excellent book on PowerShell authored by the lead developer of the language.

How to determine your PowerShell version

One method of determining your PowerShell version is to check the Windows Registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine. Given below are other(recommended) methods of obtaining version information for your PowerShell:

Automate Requests for New Certificates

Recently, all Windows XP workstation users within a corporate domain were required to request and install a certificate from the Enterprise Certificate Authority (CA). Typically, the Certificate Manager Management console Snap-in Control (certmgr.msc) is used to request new certificates, as in the screenshot shown below. So, I was required to automate this process using a
Read More »

How to send emails using blat

Blat is a handy Win32 console utility that enables you to send emails via the command line, on Windows machines. This is especially useful within batch scripts. Given below are some how-tos on basic uses of blat. Refer the blat syntax page for more options with blat. The commands below have been tested on Windows
Read More »