December 8, 2009 in Windows Scripts, Windows Tools by MLK
Description/Problem:
I suppose that every administrator is very familiar with scripted system configuration gathering tool called Microsoft Product Support Reports (MPSR). We are using this tool in our daily life for creating the reports which we can use for deep analysis of critical system issues or attached as part of software calls managed by Microsoft Premier Support.
Download:
Microsoft.com
Tags: reports, software calls, support, windows
October 27, 2009 in Windows Events, Windows Scripts by MLK
Description/Problem:
Some weeks ago we used the HP Insight Server Migration Pack (HP ProLiant Server) for migration of server from old to new hardware. Migration process finished successfully and everything seems fine. After standard system checks and tests we identify small problem related to execution of some EXE files. Each try to execute EXE file failed with error message: Application error: The instruction at “0×10015026″ referenced memory at “0×00000000″. The memory could not be “read”.
Solution:
Based on our investigation we identify that problem is related to the Windows Management Instrumentation (WMI). We resolved the issue by running below script.
@echo on
cd /d c:\temp
if not exist %windir%\system32\wbem goto TryInstall
cd /d %windir%\system32\wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End
:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer
:SkipSrv
goto End
:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End
Tags: hp insight, issue, migration, windows
February 20, 2009 in Windows Scripts, Windows Tools by MLK
Description/Problem:
The NC_Net is well-known as Windows monitoring agent for Nagios. Performs both Passive and active checks, as well as WMI checks, and external script running. Full local or remote configuration. Core of this utility is based on .Net Framework 2.0. I found the article which help me to solve problem with hanging NC_Net agent after the Windows system start-up.
Solution:
Ubergeek Technical Howtos’ & SourceForge.Net
Tags: monitoring, nc_net, windows, wmi
December 12, 2008 in Windows Scripts, Windows Security by MLK
Description/Problem:
This article related to the Extended Change Access Control List tool (Xcacls) describes how to use the Xcacls.vbs script to modify and to view NTFS file system permissions for files or for folders. You can use Xcacls from the command line to set all the file system security options which are available in standard GUI.
Solution:
KB825751
Tags: file system permission, Security, windows
June 2, 2008 in Windows Scripts by MLK
- Create/open new CMD or BAT file (ex. Script.cmd or Script.bat)
- Include this code into the file:
- @ECHO OFF
- rd “%userprofile%\local settings\temporary internet files\content.ie5″ /s/q
- rd “%userprofile%\local settings\history\history.ie5″ /s/q
- del “%userprofile%\cookies\*.*” /s/q/f
- EXIT
- Save this batch file
- Open Group Policy Editor
- Add this batch file as Logoff script:
- Local Computer Policy – User Configuration – Windows Settings – Scripts (Logon/Logoff)
Tags: cookies, internet explorer, windows
January 29, 2007 in Windows Scripts by MLK
The Script Your Documentation Instantly (SYDI) is a collection of scripts to help people get started with the documentation process. What it can do is to collect information from a Windows Server (SYDI-Server) or a MS SQL Server (SYDI-SQL) or an Microsoft Exchange Organization (SYDI-Exchange) and present its findings in a MS Word document or an XML document.
Download: Simplifying Network Documentation
January 29, 2007 in Windows Scripts by MLK
The WMI Code Creator tool allows you to generate VBScript, C#, and VB .NET code that uses WMI to complete a management task such as querying for management data, executing a method from a WMI class, or receiving event notifications using WMI.
Download: WMI Code Creator
January 29, 2007 in Windows Scripts by MLK
The Win32 Scripting is excellent web site where network administrators can find everything what they need to get up and running. There are presented and available for free download several hundred scripts created in Windows Scripting Host, Perl, Python, Vbscript, Jscript, KiX, REXX, ADSI, … .
Download:Â Win32 Scripting