Tuesday, August 27, 2013
Tuesday, July 2, 2013
Write output file
Create a filesystem Object
Set objFSO = CreateObject("Scripting.FileSystemObject")
Create a output file’s path
Set outFile = objFSO.CreateTextFile("i:\ASQ\import.bat", True)
Input the Value that you would like to input
outFile.WriteLine "Here you are writing it in the file"
Sunday, June 23, 2013
Thursday, April 25, 2013
Read Registry from Local or remote Machine
'to read HKEY Local Machine registry
const HKEY_LOCAL_MACHINE = &H80000002
'prompt for the machine name to input for scanning, the in front part is the prompt and behind one is for Title
strComputer = ""
Set oReg=GetObject( _
"winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
'registry path
strKeyPath = "software\citi\agent"
'registry Value Name
strValueName = "redirect"
'value that it is going to read
oReg.getstringvalue _
HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
'show with msgbox for the result
MsgBox (strComputer &" CITI agent Status is " & strValue)