windows

Using Windows PowerShell to list domain controllers in each of the domains within an ADS forest

Using Windows PowerShell to list domain controllers in each of the domains with an ADS forest

If ever you need to get the list all of the domain controllers within a forest you can use powershell to do it for you and write it to a file.

Note, of course your computer must Windows Powershell installed for this to work!

Here is how:

Create a new file with the following code on your computers file system. I am calling mine getDC.ps1 and i am saving it under c:\scripts

Import a list of Windows computer names into a text file

Import Network Windows Hosts into a text file

2r4cksg78d

If you wish to import all of the computers in a domain or workgroup displayed under the Windows Network into a text file there isn't always an obvious way of doing it. However with a simple cmd prompt command you can get a listing of the machines registered in the domain.

In my example I am going to output the computer names into a file called hostnames.txt

Obtain the listing

Open a command prompt

Start->Run->cmd

Type

net view > hostnames.txt

Using a Windows Batch / cmd file to copy perform multiple copy operation across multiple Windows XP workstations

Automatically copy a file to multiple remote Windows XP clients

The following example shows you how to copy a file to multiple Windows computers using a simple batch file and taking advantage of the built in c$ share that Windows computers have.

In my example I will attempt to copy the file called myexample.file to the root of the c: directory on the following Windows XP computers pc01, pc02, pc03, pc04. The script will use to do it I will name remotecopy.cmd

Enable SSL for LDAP on your Windows 2003 Active Directory Service

Introduction

Windows 2003 ADS is as you probably already know is based upon LDAP. Often you will need to query this ldap directory for authentication and other purposes. By default these queries are carried out unencrypted and can be snooped by eavesdroppers. To remedy this you can enable ldap over SSL to allow LDAP queries to be done over encrypted channel.

This guide tells you how to do this. For the purposes of the guide we only have one domain controller called "mypdc" which runs the ADS called "mytest.domain.com". Of course this will change according to your own setup.

Creating an NFS share on a Windows 2008 Server

Creating an NFS share on a Windows 2008 server for unix / linux clients

Windows 2008 has the ability to "share" file resources using NFS. This guide will guide you through doing this. In this scenario we will have two machines named "WIN-NFS" which will be our Windows 2008 Server and "redcloud" which will be our Red Hat linux client.

This can also be done on Windows 2003 check here for details Setup Windows 2003 NFS

Syndicate content
Powered by Drupal, an open source content management system