Hello, I currently have many vb scripts that issue application (TSM - Tivioli Storage Manager) commands against its activity log. The command contains the program name, ID, password, parms, and the location to write the data. For instance:
objshell.run "dsmadmc -id=abc -pass=xyz -displaymode=list -tab q act begint=-1 msg=" & message_number & " > d:\dailyfolders\last-hour-error-messages\error-messages-in-the-last-hour-" & whole_message_number & ".txt",0,true
message_number and whole_message_number are variables it pulls from an input file.
It then interrogates the created file and sends an email depending on what it does or does not find.
Can this be done using powershell? As I'm brand spanking new to powershell, if this can be done, can you give some pointers to get me started.
Thank you!