Batch Script: Install SCOM Agent on Non-Domain Servers


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

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

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