In this article I’ll show a super simple example of an MS Powershell script that you can use to check for the existence of a File or Folder on your local system, and then to create a text file with a Date stamp of the current time.
Windows PowerShell gives you a powerful interface when working with your computer. A basic task when working with PowerShell is escalating your permissions so that scripts you run have enough access to do the tasks you want them to do. By default your permission level in PowerShell is quite restricted and you will need to escalate this in order to be able to run any meaningful scripts.
First things first: you will need to start PowerShell with Administrator level access. PowerShell is included with modern versions of MS Windows (such as Windows 7 and Windows 8). If you are running Windows XP then you will need to download and install PowerShell from the Microsoft support site.
To start PowerShell on Windows 7, browse to:
Start Menu -> All Programs -> Accessories -> Windows PowerShell -> Windows PowerShell
To start PowerShell on Windows 8:
Move your mouse to the top right corner of the screen
In the options bar that appears click the Search option
Click the Windows PowerShell option that appears in the results.