Showing posts with label get-command. Show all posts
Showing posts with label get-command. Show all posts

Sunday, January 18, 2009

save as XPS image file

to send the data to an image file

PS> Get-command get-command
| out-printer -name "Microsoft Office Document Image Writer"

Saturday, January 17, 2009

get-command

to search for log file (.log) in a directory

PS> get-command -name *.log

get the total number of cmdlets

It is interesting to know each v1.0 for XP, Server 2003/2008, Vista has different total number of CmdLets:

PS> (get-command -CommandType cmdlet).count

Vista Simplified Chinese KB928439 v1.0 has 130; XP English KB926139 v1.0 has 129; WS2008 Std Ed SP1 v1.0 has 129; English SQLPS v1.0 has 130; XP English V2CTP2 has 180; and, XP English v2CTP3 has 235.