Tag: windows

WintelAdmin.com in Top Microsoft Windows Blogs list!

Thanks to all our readers, WintelAdmin.com has made it to this Top Microsoft Windows Blogs list! prepared by Feedspot.com This is the most comprehensive list of best Microsoft Windows blogs on the internet and I am honored. Thanks once again to all my readers.

Special Thanks to Feedspot.com.

Microsoft Windows Blogs

Filed under: x Updates (Wintel Admin)Tagged with: , , , , ,

Convert a snapshot file to memory dump.

A very recently one of our Windows 2012 servers was getting hung, and we were not able to collect dump file. Fortunately, this was a VM and we had an option to convert VM snapshot to a memory dump that can be used for the RCA.

Well, in order to  get this file converted we needed a separate tool named vmss2core

This can be downloaded from Fling link

Once you have downloaded, extract the file named vmss2core.exe.

Open command prompt and change the current working directory to the location where you have the file.

Run the vmss2core tool with the option to create a memory dump.

vmss2core -W virtual_machine_name.vmss virtual_machine_name.vmem

Note: If you are using Microsoft Windows 8/8.1 or Windows Server 2012, run this command:

vmss2core -W8 virtual_machine_name.vmss virutal_machine_name.vmem

This will create a new dump file in same location with an extension of *.dmp, which can be used for dump analysis.

 

Thanks,

WintelAdmin

Filed under: VMware (ESX / vSphere), Windows(2003/2008/2012)Tagged with: , , , , , , ,

Command to open folder in explorer from same location.

Trick to open a GUI folder from command prompt.

In order to to open a GUI folder from command prompt and list all its content you may just enter the command start followed by a period as shown below:

start.

VICE-VERSA: Similarly, if you wish to open a command prompt from a GUI folder, you can shift-right-click on a desired folder and select “Open command window here”. This should take you to the command prompt.

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , ,

Non-compliant with MS Patches using SCCM

Non-compliant with MS Patches

Found few servers to be non-compliant from the patching team. When checked, found that the patches were getting failed when deployed using SCCM. This issues was fixed by renaming the folder named “SoftwareDistribution” located in C:\Windows\. Further to this found that the service named “Windows Modules Installer” was disabled. Changed it to manual. Now the SCCM pop-up and view updates in Control Panel were populated.

Thanks,
WintelAdmin

Filed under: SCCM (Image/Deployment), Windows(2003/2008/2012)Tagged with: , , , , , ,

Generate list of hotfixes and patches installed.

Was in need to get the list of hotfix and patches installed on windows server including installation date, user, etc. Finally, got to know about the command that can fetch the required details and in a very neat format.

wmic qfe list full /format:htable > hotfixes.html

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , ,

Please wait for the Windows Modules Installer.

One of my windows 2008 didn’t come after reboot. Upon checking the console, saw a message stating “Please wait for the Windows Modules Installer.”. Had to bring up the server at the earliest. It took about an hour, tried reset but server was getting back on to same page. Application team was eagerly waiting for it to come back. Started looking for alternative methods to bring it up.

When checking server was pinging and able to shared folders. Hence, connected to the server from services.msc using the option “Connect to another computer..”

Disabled “Windows Module Installer” service and restarted the server.

Bang, server was back on its home page.

Thanks,

WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , ,

PowerShell for Administrators – Coming Soon

PowerShell essentials for administrators coming soon on WintelAdmin to help with your daily operations.

Stay Tuned…..

WintelAdmin.com

Filed under: Powershell (Tutorial)Tagged with: , , , , , , , , , , , , , , , , ,

IBM DB2 error SQL5005C during server startup.

Upon windows server hosting DB2 reboot you will get an error message “SQL5005C”. This actually refers to “The operation failed because the database manager failed to access either the database manager configuration file or the database configuration file.” This is due to DB2 database utility (such as db2start, db2icrt, restore, or many others) requires that the database manager write to or read from either the database manager configuration file or the database configuration file, and the database manager was unable to access the configuration file.

This is fixed by performing the below steps:

1. Log in to the machine as system administrator.
2. Remove the db2systray by performing the following steps:
a. Windows Start –> All Programs –> IBM DB2 –> Command Line Tools –> Command Window Administrator.
b. db2systray -clean
3. Log off and log in to the machine.

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , , , , , ,

Ping multiple server and display IP with status.

This script will ping multiple server available in servers.txt and display IP with status.
Copy below contents and save as filename.vbs and create a servers.txt will all server names one per line.

************************************************************************************************************

Const ForReading = 1
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Set objShell = CreateObject(“WScript.Shell”)
If not objFSO.FileExists(“servers.txt”) THEN
wscript.echo “Please create a file named ‘servers.txt’ with one PC name to be pinged per line,”&_
vbcrlf&”with a hard return at the end of each line.”
wscript.quit
end if
tempobj=”temp.txt”

Set objTextFile = objFSO.OpenTextFile(“servers.txt”, ForReading)
logfile=”results.csv”
Set ofile=objFSO.CreateTextFile(logfile,True)
strText = objTextFile.ReadAll
objTextFile.Close
wscript.echo “Ping batch starting, please be patient. This could take some time to”&_
vbcrlf&”finish, depending on the number of hosts to check. You “_
&”will be “&vbcrlf&”notified upon the completion of this script.”
ofile.WriteLine “,”&”Ping Report — Date: ” & Now() & vbCrLf
arrComputers = Split(strText, vbCrLF)
for each item in arrcomputers
objShell.Run “cmd /c ping -n 1 -w 1000 ” & item & ” >temp.txt”, 0, True
Set tempfile = objFSO.OpenTextFile(tempobj,ForReading)
Do Until tempfile.AtEndOfStream
temp=tempfile.readall
striploc = InStr(temp,”[“)
If striploc=0 Then
strip=””
Else
strip=Mid(temp,striploc,16)
strip=Replace(strip,”[“,””)
strip=Replace(strip,”]”,””)
strip=Replace(strip,”w”,” “)
strip=Replace(strip,” “,””)
End If

If InStr(temp, “Reply from”) Then
ofile.writeline item & “,”&strip&”,”&”Online.”
ElseIf InStr(temp, “Request timed out.”) Then
ofile.writeline item &”,”&strip&”,”&”No response (Offline).”
ELSEIf InStr(temp, “try again”) Then
ofile.writeline item & “,”&strip&”,”&”Unknown host (no DNS entry).”

End If
Loop
Next
tempfile.close
objfso.deletefile(tempobj)
ofile.writeline
ofile.writeline “,”&”Ping batch complete “&now()
wscript.echo “Ping batch completed. The results will now be displayed.”
objShell.Run(“””C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office\excel.exe “””&logfile)

************************************************************************************************************

Thanks,
WintelAdmin

Filed under: Scripting (Automation)Tagged with: , , , , , ,