Posts tagged with $Profile

Starting PowerShell Automatically – Revisited

September 11th, 2016 by and tagged ,

A few months ago, I posted a quick blog on how I set PowerShell to start automatically when I log in. Well, it occurred to me that I should extend that to show you how I set the console window parameters so that my PowerShell windows are the right size and font, since on all […]

Posted in $Profile, Annoyances, PowerShell | Comments Off on Starting PowerShell Automatically – Revisited

Testing for Location on a Laptop

September 4th, 2016 by and tagged , ,

On my laptops, I have a different set of drive maps when I’m at home, or on the road. At home, I map to various local domain resources, but when I’m on the road, those resources aren’t available and I need to create “local” maps to versions that I can sync up to those domain […]

Posted in $Profile, PowerShell, Survival Guide | Comments Off on Testing for Location on a Laptop

Mapping Drives Revisited

September 4th, 2016 by and tagged , , , ,

In my old drive mapping post, I was forced to do some fairly ugly stuff because I had to call the old net use command. Yech. Eventually, we got New-PSDrive, and that helped, but in PowerShell v5 (Windows 10’s version), we get New-SmbMapping and it actually works. (New-SmbMapping was added earlier, but there were issues. Those […]

Posted in $Profile, net commands, PowerShell, Survival Guide | 4 Comments »

Setting Console Colours

May 30th, 2016 by and tagged , , , ,

As I described in my previous post, I always open both an admin and non-admin PowerShell window when I log on to a computer. To tell the two apart, I set the background colour of the Admin window to dark red, with white text, and the non-admin window to a white background with dark blue […]

Posted in $Profile, Annoyances, Console, PowerShell, Windows 10, Windows Server 2016, WMI | Comments Off on Setting Console Colours

More $Profile Tricks — Automatically Opening an Admin Window

May 20th, 2016 by and tagged ,

I run as a limited user during my normal work, but I always keep one or more Admin windows open. These are logged in to my Domain Administrator account, running “As Administrator”. And I make sure I can tell that I’m running in that window by setting the colour scheme with a nice, dark red, background. Hard […]

Posted in Network Administration, PowerShell | Comments Off on More $Profile Tricks — Automatically Opening an Admin Window

Starting Windows PowerShell Automatically

May 15th, 2016 by and tagged ,

Most system administrators routinely start a command line window of some sort when they log onto a computer. For me, obviously, that’s a PowerShell window. Actually, two PowerShell windows – one as a limited user, the other as an administrator, but that trick is for a different blog post. For this one, I’ll show you […]

Posted in Annoyances, Network Administration, PowerShell | Comments Off on Starting Windows PowerShell Automatically

A More Readable Path

August 20th, 2015 by and tagged

The path on many modern computers gets to be so long that reading it is a nuisance. Worse, from within Windows PowerShell, there isn’t a built in equivalent to the old cmd “path” command. Yet all the information we need is there, it’s just not where we might expect it. The actual executable path for a […]

Posted in PowerShell | Comments Off on A More Readable Path

Mapping Drives

January 3rd, 2012 by and tagged , ,

My standard environment expects to have several drive mappings wherever I’m logged in to my network. Even when I’m running on a computer that isn’t joined to the domain. To facilitate that, I have a simple “mapdrives.cmd” file that has the necessary net use commands in it to map them.  Then my default PowerShell $profile […]

Posted in PowerShell | Comments Off on Mapping Drives