RayRedSox
2009-10-21 17:50:32 UTC
I have a batch file that runs a WMI command to do an IIS Reset on a
remote machine. When it's doing it, I want it to log the date/time that
the reset is done, but I'm having trouble getting it to work. Probably
an issue with my syntax. Here is my code:
wmic /node:"sup24app01" process call create "cmd /k date /t >
c:\maintenance\iis_reset_log.txt
wmic /node:"sup24app01" process call create "cmd /k iisreset
I'm not sure what I'm doing wrong, but the file doesn't get created
and, all I want is to append the date/time stamp within the contencts of
the file.
Any ideas would be much appreciated.
Thank you.
remote machine. When it's doing it, I want it to log the date/time that
the reset is done, but I'm having trouble getting it to work. Probably
an issue with my syntax. Here is my code:
wmic /node:"sup24app01" process call create "cmd /k date /t >
c:\maintenance\iis_reset_log.txt
wmic /node:"sup24app01" process call create "cmd /k iisreset
I'm not sure what I'm doing wrong, but the file doesn't get created
and, all I want is to append the date/time stamp within the contencts of
the file.
Any ideas would be much appreciated.
Thank you.
--
RayRedSox
------------------------------------------------------------------------
RayRedSox's Profile: http://forums.techarena.in/members/146555.htm
View this thread: http://forums.techarena.in/server-scripting/1261234.htm
http://forums.techarena.in
RayRedSox
------------------------------------------------------------------------
RayRedSox's Profile: http://forums.techarena.in/members/146555.htm
View this thread: http://forums.techarena.in/server-scripting/1261234.htm
http://forums.techarena.in