Posted Wednesday, 14 November 2007 by Michael Khanin
All Network Administrators at least once thought about how to install a program on remote computer without ever touching it. Hopefully, today we have a lot of ways to achieve this goal. The very interesting part of it all is, when ever I provide a consulting services to companies, I hear the same question, “Michael, do you know any FREE solutions to distribute programs, patches or run anything on remote computers?”
I’d like to show you the solution, I’ve created for myself. Let’s call it “Free Deployment System :)”...
|
|
Posted Sunday, 20 April 2008 by Michael Khanin The default management for Windows Server 2008 Core is the command line. Yes, the main powerful of Windows Server Core becomes available when using such an approach, but sometimes it's not so user friendly. This is why I've been asking so many times if exist anything more graphic :). Yes, one of the first recommendations to work and manage Windows 2008 Server Core is to use MMC from a remote machine, but MMC cannot do everything. Of course to allow work with remote tools this tool should be allowed passage through the firewall packages Server Core. In addition, this is for many more difficult than editing the registry. :) Therefore, I would like to have a simple graphical tool for configuring local system. The task of developing such an interface is complicated by that the Server Core has a limited set of graphics API, this is a reason why so beautiful MMC doesn't work on it.
So, if Microsoft has not established such utilities anybody else did this. Look at the utility CoreConfigurator developed by Guy Teverovsky, MVP from Israel.
This is what it can:
- Product Activation Product Activation
- Configuration of display resolution Configuration of display resolution
- Clock and time zone configuration Clock and time zone configuration
- Remote Desktop configuration Remote Desktop configuration
- Management of local user accounts (creation, deletion, group membership, passwords) Management of local user accounts (creation, deletion, group membership, passwords)
- Firewall configuration Firewall configuration
- WinRM configuration WinRM configuration
- IP configuration IP configuration
- Computer name and domain/workgroup membership Computer name and domain / workgroup membership
- Installation of Server Core features/roles Installation of Server Core features / roles
|
|
Posted Wednesday, 09 April 2008 by Michael Khanin Time to time I get the need to have some temp files of varying sizes. In Linux environment it's not a problem to do. And, in Windows environment it's not a problem anymore :).
I've used a "dd for windows". "dd for windows" could be downloded from official web site. I've created a very simple script, mkef.bat. Here is a syntax for using mkef.bat:
mkef.bat <filename> <size>
And now the content of mkef.bat:
@echo off
if {%1}=={} @Echo Please use the following syntax: mkef.bat filename size &goto :EOF
if {%2}=={} @Echo Please use the following syntax: mkef.bat filename size &goto :EOF
dd if=/dev/zero of=%1 bs=1024 count=%2
|
|
Posted Friday, 23 November 2007 by Michael Khanin
I’ve a client that runs special program on about 100 servers. This program writes a log on central server every 3 minutes. So, when I checked main server, I found a directory Logs (C:\Logs). Log’s directory contains many log files (each log for each server). On this server installed and runs a web server, Apache ;). So, I’d like to show a small AppsRuns.php file, which stored on web server. If we go to the http://server1/AppsRuns.php we will see a content of each log file on one web page. This web page refreshing every 10 sec. Here is a content of AppsRuns.php file:
<?php
$refresh_time = 10; // seconds
$path = "C:\LOGS";
header("Content-Type: text/plain");
header("Refresh: $refresh_time");
if($handle = opendir($path)) {
while (false !== ($file = readdir($handle))) {
$pi = pathinfo($path . '/' . $file);
if($pi['extension'] === 'txt') {
include($path . '/' . $file);
}
}
}
?>
|
|
Posted Friday, 16 November 2007 by Michael Khanin
For me and my clients I create many scripts to simplify daily Administration tasks. Many of this script should be running from a command line
( cmd. exe). It’s very easy to run any script and to get a result of it
to the log file. But, if you would like to run script and watch the
result on the screen and in same time you need a hard copied log, you
can use a MTEE command line utility. Mtee
is a commandline utility that sends any data it receives to the console
and to any number of files. Useful if you want to watch and record the
output from a batch file or program.
Mtee is an 11kb standalone executable. There is no installation procedure, just run it.
Mtee is simple to use and only has several options. To list them, type mtee/?
You can download Mtee from offisial web site by following to the http://www.commandline.co.uk/mtee/index.html
|
|
Posted Monday, 21 January 2008 by Michael Khanin The SQL Server 2005 Best Practices Analyzer (BPA) gathers data from Microsoft Windows and SQL Server configuration settings. BPA uses a predefined list of SQL Server 2005 recommendations and best practices to determine if there are potential issues in the database environment.
|
|
|