How to find the default host


hi,

 

is there way know if output of command been logged log file or on host window?

 

based on info can decide print info on log , on window.

 

regards,

harsha

not sure if understand requirement answer depends. depends on cmdlet use.

get-command -verb out list out output related commands. example, out-host sends output command line , out-file sends same file.

similarly, get-command -verb write.

let me know if isn't looking for.


ravikanth
http://www.ravichaganti.com/blog
twitter: @ravikanth
powershell 2.0 remoting - ebook


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Cannot access Anywhere Access using domain name?

server manager error: ADAM.events.xml could not be enumerated.

send messages to users