Archive for October, 2010

OCS 2007 R2 info: Preparing Active Directory

October 21, 2010 Leave a comment

Short description about preparing AD before the OCS 2007 installation:

  • Preparing Active Directory schema
    Extend AD Schema with classes and attributes for OCS 2007
  • Preparing Active Directory forest
    Create AD Global Settings and Objects
    Create required AD Universal Groups
  • Preparing Active Directory domain
    Adds ACEs to Universal Groups
    Adds ACEs to domain root and three default containers(Users, Computers, Domain Controllers)
Categories: OCS 2007 / Lync 2010

OCS 2007 R2 info: Authentication method for external users

October 17, 2010 Leave a comment

OCS 2007 supports two integrated Windows authentication methods for AD authenticated users: NT LAN Manager (NTLM) or kerberos. For remote users, only NTLM is supported because Kerberos required that the client have a direct connection to Active Directory. Which is not the case for users that are connected outside the corporate network.

Categories: OCS 2007 / Lync 2010


October 17, 2010 2 comments

I prefer to use PsShutdown instead of the shudown command for remote shutdown/reboot tasks because the syntax is easier and it’s more advanced. You can easily shutdown multiple computers with the PsShutdown tool. PsShutdown is a free command-line tool from Sysinternals that works on local and remote systems. You don’t need to install software on any remote systems against which you want to run the tool.

Download link:

PsShutdown examples:

Remote lock: psshutdown \\pcname -l
Remote log-off: psshutdown \\pcname -o
Remote reboot: psshutdown \\pcname -r
Remote shutdown: psshutdown \\pcname -k

A more advanced example:
Schedule a shutdown of multiple workstations at a specific time with a message.

Message at the client side:

As you can see it’s very easy to use!

Remote command prompt via PsExec

October 17, 2010 1 comment

PsExec is a free command-line tool that lets you execute processes on remote systems. The PsExec is of the SysInternals tools which provides a way to open a remote command window without needing to install anything on the remote computer.

You can freely download the tool on the following site:

Place the PsExec.exe in C:\WINDOWS\system32 folder to avoid browsing always to folder were you downloaded the PStools.

With psExec installed you can open a remote command prompt by calling it as follows:

Now you can execute commands like you are working locally on the computer. Very handy tool!

How to find serial number remotely

October 1, 2010 5 comments

Servers, workstations purchased from manufactures like DELL, Lenovo, etc comes with a serial number(or service tag) and a model name. If you are not able to read the serialnumber, then you can retrieve your serial number via command prompt. You need to use the Windows Management Instrumentation Command, the WMI command-line (WMIC) utility provides a command-line interface for WMI. WMIC is compatible with existing shells and utility commands.

To retrieve serial number of the computer run the following command:

wmic bios get serialnumber

To retrieve model name of the computer run the following command:

wmic csproduct get name