Monday, March 1, 2010

How to Change Windows Local Administrator’s Password Remotely via CLI

In order to change a local user’s password in the computer being used, we can run this command:

           net user username newpassword

But to change a local user’s password in another computer, first of all you need to have a administrator privileges and then need to make connection to the IPC$ of the computer.

Use this command to establish a IPC connection:

           net use \\computer_name\ipc$ /user:administrator

Press Enter and then enter the administrator’s password when prompted.

For Example : To change the administrator’s password of the computer called vmcitrix04:

            net use \\vmcitrix04\ipc$ /user:administrator


Local name
Remote name \\vmcitrix04\ipc$
Resource type IPC
Status Disconnected
# Opens 0
# Connections 1

The command completed successfully.

But if we want to automate the service to change the local administrator’s password or to schedule the task for later, then we need to find out the time on the computer. So, we need the current time on the computer by using this command :

      net time \\vmcitrix04

Current time at \\vmcitrix04 is 3/1/2010 4:19 PM
The command completed successfully.

Finally, use the below cmd format to schedule the task at 4:22 using this command:

    at \\vmcitrix04 4:22 cmd /c net user administrator testing

Added a new job with job ID = 1

The job is scheduled to run on vmcitrix04 at 4:22 by changing the local administrator password to testing.

Thursday, February 11, 2010

How to Renew or Replace Self-Signed Certificate in Exchange Server 2007

Answer Available Here

Example, how i renewed our SSL in Exchnage 2007 environment when the Certificate expired

[PS] C:\Windows\System32>New-ExchangeCertificate -domainname "scatest01.com.au", "SCATEST01" -Services "SMTP

Confirm
Overwrite existing default SMTP certificate,
'E73B30FE933569AD8411D39ED9B70C27921C5DDA' (expires 11/02/2010 2:12:25 PM),
with certificate 'C674BA0B5A3478B8055E172CD87796CBC16EF411' (expires 12/02/2011
9:27:19 AM)?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):y

Thumbprint Services Subject
---------- -------- -------
C674BA0B5A3478B8055E172CD87796CBC16EF411 ..... CN=scatest01.com.au

[PS] C:\Windows\System32>Enable-ExchangeCertificate C674BA0B5A3478B8055E172CD877
96CBC16EF411 -services SMTP

Tuesday, February 9, 2010

Free Virtualization E-Learning Collection Available

Collection 6333: Exploring Microsoft Virtualization Technologies

Overview
This collection of two 2-hour online clinics and an 1-hour online clinic provides IT Professionals experienced in Windows 2000 Server or Windows Server 2003 with the knowledge and skills to implement and manage virtualization technologies.

Topics covered in the clinic within the collection include:
Introduction to Microsoft System Center Virtual Machine Manager 2008
Overview of Microsoft Application Virtualization
Overview of Terminal Services in Windows Server 2008
Overview of Hyper-V

Student Prerequisites:
Experience in planning, implementing, and supporting Windows Server–based networks, operating systems and platform infrastructure. This may include experience in Windows 2000 Server, Windows Server 2003, and Windows Server 2008.
Knowledge of server virtualization and Hyper-V.

How to Slipstream Updates for Office 2007

Answer Available Here

MS Office 2007 Customisation Install

To customise MS Office 2007 for deployment, copy all the content of MS Office to location where you can access it locally or on the network, in this example we will copy the content to a testpc's, local C drive under a folder called depleysw. Then follow the below steps:
1) cmd to the location where you saved the MS Office contents

2) Type setup.exe /admin

This Command Guide You For Create one Silent Install For MS Office 2007 , the guide generate a .MSP file, which can be used setup.exe /adminfile filename.msp.

If you require more help then you need to Type setup.exe /help for more info.

3) Create a Install batch file and save it to same location as MSP and the Setup.exe files.

eg:- \\testpc\c$\deploysw\office2007\setup.exe /adminfile install.msp

or
if you like to create a silent cd, then copy all files from cd for temp dir, create a .bat file, eg called "setup.bat" and add in the bat file "setup.exe /adminfile filename.msp", Edit autorun.ini to modify;

[autorun]
OPEN=SETUP.EXE
FOR
[autorun]
OPEN=SETUP.bat

Finally, burn all files onto a midia or create an .ISO file.

Using Group Policy to deploy software to select computers

Answer Available Here

How to Apply Patches (.msp) to Group Policy Deployed Software (.msi)

Answer Available Here

Wednesday, January 13, 2010

How to Create Local User Account on an ESX Server

1. Log into the ESX Server Service Console with root account.

2. Type useradd username at the command prompt.

3. Type passwd username to set an initial password.

4. Type the password twice.

5. Finally, open a new ssh session and test the user account and password to see if it works.

How to Rescan vmhba1 from a Service Console Command Line

1. Log on to a console session as a nonroot user.


2. Type su - and then click Enter.
3. Type the root password and then click Enter
4. Type esxcfg-rescan vmhba1 at the # prompt

How to Display a List of available LUNs with their associated Path, Device Names and UUIDs

1. Log on to a console session as a nonroot user.

2. Type su - and then click Enter.

3. Type the root password and then click Enter

4. Type esxcfg-vmhbadevs -m at the # prompt