For vista it will be ipconfig | find /I "IPv4"
-----Original Message----- From: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] On Behalf Of Phil Murnane Sent: 20 March 2009 15:40 To: arslist@ARSLIST.ORG Subject: Re: Capture ComputerName and UserName (U) Folks: You can use "ipconfig | find "IP Address", which returns something like: IP Address. . . . . . . . . . . . : ###.###.42.1 IP Address. . . . . . . . . . . . : ###.###.133.1 IP Address. . . . . . . . . . . . : ###.###.145.46 IP Address. . . . . . . . . . . . : 0.0.0.0 Then a second action will have to remove everything up to and including the ": ", and you'll have to live with taking the first (or last?) address returned. FWIW, --Phil ----- Original Message ---- From: "Wallace, Kelvin" <wall...@doacs.state.fl.us> To: arslist@ARSLIST.ORG Sent: Friday, March 20, 2009 11:14:12 AM Subject: Re: Capture ComputerName and UserName (U) Try this: $PROCESS$ cmd /c "set USERNAME" $PROCESS$ cmd /c "set COMPUTERNAME" Other stuff: $PROCESS$ cmd /c "set USERPROFILE" $PROCESS$ cmd /c "set windir" $PROCESS$ cmd /c "set OS" $PROCESS$ cmd /c "set USERDOMAIN" $PROCESS$ cmd /c "set LOGONSERVER" If anyone knows an easy way to capture the IP address, please let me know. HTH, Kelvin -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] On Behalf Of Hennigan, Sandra H CTR OSD-CIO Sent: Thursday, March 19, 2009 2:23 PM To: arslist@ARSLIST.ORG Subject: Re: Capture ComputerName and UserName (U) UNCLASSIFIED The AL captures the computer name but not the Windows' user name. Sandra Hennigan Remedy Developer From: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] On Behalf Of Feliciano, Ferdinand, A (Rocky) Sent: Thursday, March 19, 2009 10:46 AM To: arslist@ARSLIST.ORG Subject: Re: Capture ComputerName and UserName ** Do an Active Link instead of Filters. Filters run on the server side. That's why you're getting the server's information. From: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] On Behalf Of Scott Illari Sent: Thursday, March 19, 2009 10:34 AM To: arslist@ARSLIST.ORG Subject: Re: Capture ComputerName and UserName ** Jason, You won't be able to gather the user's computer information thru a filter since they run on the server. You will need to run your $PROCESS$ command in an active link without using "@@". Since you are attempting to do this in a filter, I am assuming timing does not matter so you can capture it on window open, window loaded, display, submit, modify..............in the active link. Hope this helps. Scott Illari 908-601-8948 http://www.linkedin.com/in/scottillari <http://www.linkedin.com/in/scottillari> From: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] On Behalf Of Jason Tricky Sent: Thursday, March 19, 2009 10:27 AM To: arslist@ARSLIST.ORG Subject: Capture ComputerName and UserName ** I'm trying to capture the computername and windows username using a filter. I tried using Set Fields = $PROCESS$ %COMSPEC% /c echo %COMPUTERNAME% but I get and error -- ARERR [341] Cannot run the requested process Tried using $PROCESS$ c:\windows\system32\cmd.exe /c hostname and I get the Remedy Server information instead of the clients. Thanks, Jason __Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" html___ __Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" html___ ________________________________________________________________________ _______ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" ____________________________________________________________________________ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" ____________________________________________________________________________ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are" __________ Information from ESET NOD32 Antivirus, version of virus signature database 3951 (20090320) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: RMI Solutions ARSlist: "Where the Answers Are"