I wrote a script to install the scom agent on some DMZ servers. Those servers are not in domain, so I have to request certificates from a stand alone server for them. SCOM-01 is both the SCOM server and the stand alone server. 32 bits: install32.bat @ECHO OFF REM SCOM INSTALLATION SCRIPT FOR /F "tokens=1-3" … Continue reading Batch Script: Install SCOM Agent on Non-Domain Servers
Category: Scripting
Bash: UT-Citrix
I developed the Ubuntu version Citrix thin client. To follow the same naming convention as TC-Citrix, I name it UT-Citrix. Here are the key scripts: checkip #!/bin/bash #wait for the DHCP ready while ! ifconfig eth0 | grep 'inet addr' >/dev/null 2>&1 do echo sleep 2 done sysprep #!/bin/bash #rename the computer echo HOSTNAME=UT-`ifconfig | … Continue reading Bash: UT-Citrix
AWstats Configuration Example
AWstats is an open source log analyzer. I built up one on a Windows 2003 server to analyze the intranet (IIS server) usage. Here is my step by step how to: The software version I use in my example: 1) Install Apache, this is where I want to publish my log analysis. You also can … Continue reading AWstats Configuration Example
PowerShell: Graphic User Interface
This is just for fun – I built a Toolbox for myself which includes some useful PowerShell scripts I wrote before. It looks simple but very handy, just a simple click on the script name and it will run. An example, I am checking the hosts info in the DHCP server. # my_toolbox.ps1 source codes … Continue reading PowerShell: Graphic User Interface
PowerShell: Text to Speech
PowerShell is able to utilize the ‘Text to Speech’ function in the Windows operating system. You can check the voice settings in ‘Control Panel\All Control Panel Items\Speech Recognition’ $results = Get-Content C:\results.txtAdd-Type -AssemblyName System.Speech$synthesizer = New-Object -TypeName System.Speech.Synthesis.SpeechSynthesizer # This line converts the text to speech$synthesizer.Speak($results) # This line lists the installed voice information$synthesizer.GetInstalledVoices() | … Continue reading PowerShell: Text to Speech