Syntax for a Powershell command


i in "c:\windows\system32>"

i have ran "cmd.exe" producing:

microsoft windows [version 6.1.7601] copyright (c) 2009 microsoft corporation.  rights reserved.

i want run not know syntax:

 dism/online/get-features
  



hi phil,

in order use dism, need run cmd (or powershell) administrator (rightklick > run administrator).

then type in ...

dism /online /get-features

... list of locally installed features.
if want save output file, can 1 of these methods, depending on whether use cmd or powershell.

cmd:
dism /online /get-features >> "c:\temp\dism.txt"

powershell:
dism /online /get-features | out-file "c:\temp\dism.txt"

both examples assume have folder named "temp" on c: partition.

cheers,
fred


there's no place 127.0.0.1



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...