got confused ...
here is code .. if can't get to server using username/passsword , how do i skip excuting "ts.writeline objItem.Name
" ?
Set env = CreateObject("Microsoft.SMS.TSEnvironment")
Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator")
Set...
Don't know about "env" , it was there in one of posting so i copy and pasted in my script. Quick question How do i skip rest of "FOR each ... next " loop if one of experssion encounter error ? I also came accross few servers which use different user name and password , how do i accomate that ?
Got it fixed. Used following ..
Set env = CreateObject("Microsoft.SMS.TSEnvironment")
Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = SWBemlocator.ConnectServer(strComputer,"root\CIMV2",strUser,strpass)
Thank you geates for your help.
Hi
geates
Now i am able to read log entry. Now following code is not working to get local drive information from each server ..
Set objWMIService = GetObject ("winmgmts:\\" & strComputer & "\root\cimv2",username,password)
Set colItems = objWMIService.ExecQuery ("Select * from...
I have to connect hundreds of servers ... maping then removing mapping is good idea ? Can i use SWBemlocator ? i need just 12 lines from each servers log. By the way how to remove mapping ?
Hi
Geates
Looks like following needs user name and password ...
strRemoteLog = "\\" & strComputer & "\e$\program files\tivoli\tsm\baclient\dsmsched.log"
'
How do i provide these ?
How do i read file from other computer ?
Looks like following code is not correct ...
Set ReadText=FsoObject.OpenTextFile("e:\program files\tivoli\tsm\baclient\dsmsched.log", 1, "True")
How do i tell script to open on other computer and read last 12 lines ?
Hi
VB guru .....I have a list of server to connect to them. Then get their local drives names and also read log file ( e:\program files\tivoli\tsm\baclient\dsmsched.log) ,last 12 lines. Once got these two information, write them to a output file in local computer.
Don't know what is wrong ?
my...
Hi
I am new to this forum. Looks like this is notes forum. I have to capture one colummon from view , is there way to capture and export in text format ? I am notes user not developer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.