Sign in with
Sign up | Sign in
Your question

Windows 7 powershell

Last response: in Windows 7
January 21, 2010 5:02:16 PM

what is windows 7 powershell used for?

More about : windows powershell

a b $ Windows 7
January 21, 2010 5:39:24 PM

It's a more advanced command line processor (like opening a command window on steroids). Download the documentation if you're interested.

Best solution

a c 209 $ Windows 7
January 21, 2010 7:21:58 PM

Here's an example. Let's say you wanted to change the modification date of a file. There's no way to do this with the tools that come with Windows except for Powershell (or VBScript). To do it, you'd open up a PowerShell window and type in the following:

set-location D:\MyFolder
sets the current folder to D:\MyFolder. Replace with the path that holds your file

(get-item Myfile.Dat).LastWriteTime = "2010-01-21"
changes the modification date for file MyFile.Dat to Jan 21 2010

Statements like these can be put into a file and executed automatically if needed. PowerShell is based on an object pipeline and can also use traditional procedural statements that let you automate pretty much any kind of task you can think of.
January 28, 2010 1:13:56 AM

Best answer selected by steadfast1984.