PowerShell, Programming, Software

Powershell Local File Manipulation Basic Example

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.

This sort of functionality can be used for a variety of reasons and can be handy when creating simple logging scripts triggered by a windows scheduled service (aka: Windows Task scheduler). Continue reading “Powershell Local File Manipulation Basic Example”

Advertisement
Internet Explorer, PowerShell, Programming, Security, Software, Technology

Disable IE Enhanced Security Configuration in Windows Server 2012

In some cases it’s important to have and makes a lot of sense to keep in place. In other cases it’s an annoying setting that refuses to allow itself to be removed from your server. What am I talking about? It’s Internet Explorer’s Enhanced Security Configuration setting that blocks your attempts to browse anyplace useful. Continue reading “Disable IE Enhanced Security Configuration in Windows Server 2012”

PowerShell, Programming, Software

PowerShell Basics – Check and Escalate your ExecutionPolicy

PowerShell ExecutionPolicy
PowerShell ExecutionPolicy

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:

  1. Move your mouse to the top right corner of the screen
  2. In the options bar that appears click the Search option
  3. Type powershell
  4. Click the Windows PowerShell option that appears in the results.

Continue reading “PowerShell Basics – Check and Escalate your ExecutionPolicy”