Wednesday, August 31, 2011

Check HP Entries from Device Manager for Multiple Machines

Create a batch file HPDEV.bat having content,

@echo off
for /f %%C in (ServerName.txt) do (
echo %%C>> HPResult.txt
devcon -m:\\%%C findall * | find /i "hp">> HPResult.txt
devcon -m:\\%%C findall * | find /i "Compaq">> HPResult.txt
devcon -m:\\%%C findall * | find /i "NC7">> HPResult.txt
devcon -m:\\%%C findall * | find /i "Smart">> HPResult.txt
devcon -m:\\%%C findall * | find /i "Proliant">> HPResult.txt
devcon -m:\\%%C hwids *floppy*>> HPResult.txt
)

ServerName.txt contains the list of servers.

Wednesday, August 3, 2011

Stop and Disable HP Services

net stop "Windows Time"
net stop "HP Insight Foundation Agents"
net stop "HP Insight NIC Agent"
net stop "HP Insight Server Agents"
net stop "HP Insight Storage Agents"
net stop "HP Insight Event Notifier"
net stop "HP ProLiant Remote Monitor Service"
net stop "HP ProLiant System Shutdown Service"


sc config W32Time start= disabled
sc config CIMNotify start= disabled
sc config CqMgHost start= disabled
sc config CpqNicMgmt start= disabled
sc config CqMgServ start= disabled
sc config CqMgStor start= disabled
sc config CpqRcmc start= disabled
sc config sysdown start= disabled

Create User Account and Add migration account to administrators group

Create a file ServerName.txt which should contains list of all the server.
#Create User Account and Add migration account to administrators group
for /f %C in (ServerName.txt) do psexec \\%C net user /ADD
for /f %C in (ServerName.txt) do psexec \\%C net localgroup administrators /ADD


#ADD WINS
for /f %C in (ServerName.txt) do psexec \\%C netsh interface ip add wins "Local Area Connection" "X.X.X.X"
for /f %C in (ServerName.txt) do psexec \\%C netsh interface ip add wins "Local Area Connection" "Y.Y.Y.Y" index=2

#STOP and Disabled Windows Time Service

for /f %C in (ServerName.txt) do psexec \\%C net stop "Windows Time"
for /f %C in (ServerName.txt) do psexec \\%C sc config W32Time start= disabled

# Collect IPCONFIG and WINMSD
for /f %C in (ServerName.txt) do psexec \\%C ipconfig /all >>E:\SUBHAG\WINMSD\28JULY2011\%C_ipconfig.txt
for /f %C in (ServerName.txt) do msinfo32 /computer %C /report E:\SUBHAG\WINMSD\28JULY2011\%C_WINMSD.txt

Thanks and Regards,
Subhag Ghosh

How to check windows system uptime?

1. Open cmd, systeminfo,

System Boot Time: 7/22/2011, 10:09:23 AM

2. Check for the following system events in eventvwr,

a) Event ID: 1074 for Shutdown Event

b) Event ID: 6013 for uptime

c) Event ID: 6005 , for system start time

d) Event ID: 6006, for system stop time

Thanks and Regards,
Subhag Ghosh

Tuesday, August 2, 2011

How to find status of HP related services from a Server List

1. Create a file ServerList.txt contaning server names.

2. Create a batch file name scq.bat with the follwing content,

@echo off
for /f %%C in (ServerName.txt) do (
echo %%C
sc \\%%C query type= service state= all | find "hp" /I
)

3. Open Command Prompt, type SCQ.bat > HPServiceStatus.txt

4. The file HPServiceStatus.txt will contain the list of HP services.

Sample O/P:

ServerName
DISPLAY_NAME: HP Insight Event Notifier
DISPLAY_NAME: HP Insight NIC Agents
DISPLAY_NAME: HP Version Control Agent
DISPLAY_NAME: HP Insight Foundation Agents
DISPLAY_NAME: HP Insight Server Agents
DISPLAY_NAME: HP Insight Storage Agents
DISPLAY_NAME: HP ServiceEmulation

Thanks and Regards,
Subhag Ghosh

Monday, July 5, 2010

NTBACKUP not working, Error returned while creating the volume shadow copy:0x8004231f.



ERROR:
Backup Status
Operation: Backup
Active backup destination: File
Media name: "test.bkf created 7/4/2010 at 11:46"

Volume shadow copy creation: Attempt 1.

Error returned while creating the volume shadow copy:0x8004231f.

Error returned while creating the volume shadow copy:8004231f
Aborting Backup.

----------------------

The operation did not successfully complete.

----------------------

SOLUTION:

1. STOP "Windows Management Instrumentation" Service.

2. c:\windows\system32\wbem
rename repository folder

3. START "Windows Management Instrumentation" Service.

4. check the repository folder is created or not.

5. if not created

my computer , rught click , wmi control , properties , check system name is showing or not.

6. run ntbackup, if not working c:\properties\ shadow copies-> enable

7. Check NTBACKUP is working or Not.

Wednesday, June 23, 2010

A non-delivery report with a status code of 5.7.1 was generated for recipient


ERROR:
Event Type: Information
Event Source: MSExchangeTransport
Event Category: NDR
Event ID: 3027
Date: 6/23/2010
Time: 4:55:22 PM
User: N/A
Computer: XXXXX
Description:
A non-delivery report with a status code of 5.7.1 was generated for recipient rfc822;test@corusmiddleeast.com (Message-ID ).
Causes: This message indicates that the sender was denied access or general access was denied.
Solution: Check system privileges and attributes for the contact and retry sending the message.
For more information, click http://www.microsoft.com/contentredirect.asp.
Data:
0000: 46 05 04 80 F..€

Solution:
5.7.1 status code is that the text may indicate that the client was not authenticated. When you receive this particular message, it indicates that the sending mail server must be authenticated with the receiving mail system before delivery can take place. However, this type of nondelivery report can also be generated if you attempt to accept anonymous SMTP mail from the Internet via a hub transport server. Hub transport service can be configured to accept Internet mail, but by default, Microsoft assumes that you're going to be using an edge transport server for this purpose.

Open AD Users and Computers-> Search User -> Go to Exchange General ->
Delivery Restrictions -> From Authenticate should be deselected under accept message under message restriction.