Tags » Powershell-basics

Awkward file and folder names

Spent some time today dealing with a situation where there were special characters – namely [ ] in folder a file names

£> Get-ChildItem -Path C:\Test… 348 more words

Powershell Basics

Event log dates

You can use Get-EventLog to query the event logs on you system

Get-EventLog -LogName System

One frequent task is to check if events occurred during a specific timespan. 96 more words

Powershell Basics

Get your current powershell version: $PSVersionTable

The first command I run on any system that I have never touched before is: $PSVersionTable

This command will pull up the version of Powershell. On windows 7, if it’s anything below version 4, I first run an upgrade. 152 more words

Powershell Basics

foreach, pipelines and $_

I’ve recently seen a few questions where people have been using a pipeline inside a foreach loop and experienced problems when they’ve tried to access properties on the looping objects. 2,188 more words

PowerShell And Active Directory

More on dates

My recent post on date conversions seems to have generated a fair bit of confusion and discussion. The original task was to read in a string from a CSV file that contained a date in UK format – DD/MM/YYYY and reformat it to a string is US format – MM/DD/YYYY… 167 more words

Powershell Basics

Date conversions

Saw a question regarding the conversion of dates in UK format DD/MM/YYYY to US format MM/DD/YYYY

Using 25 December 2014 as an example

If you have a dat in US format you can do this… 132 more words

Powershell Basics

What Formatting cmdlets do to your data

I have seen an increasing number of questions recently where the answer has been to remove Format-Table from the pipeline. As an example consider the names of the processes running on your machine… 488 more words

Powershell Basics