Category: Powershell

PowerShell Scripting  – Profile.ps1

Introduction to PowerShell’s Profile.ps1 DOS old timers may remember AutoExec.bat and Config.sys.  More modern Microsoft operating systems need boot.ini; all these files control the startup environment.  Well the purpose of this page is to configure the equivalent PowerShell file: profile.ps1. PowerShell Profile.ps1 Topics Mission Enabling a Basic Profile.ps1 Enabling cmdlets …

PowerShell ConvertToDateTime

PowerShell Converts a Date to a String with ConvertToDateTime This page solves the real problem of displaying the boot time.  What it does is convert a hard-to-read number (20121006065349.125599+060) into a meaningful date string (06 October 2012). Topics for PowerShell ConvertToDateTime Locate the Correct WMI Class Research Win32_OperatingSystem Properties Reveal the …

Windows PowerShell Vista

Windows PowerShell for Vista Introduction My mission is to help you install Microsoft’s PowerShell on Vista.  Once you have installed PowerShell, the first task is to set the script execution policy: Help Set-Executionpolicy Set-Executionpolicy remotesigned Get-Executionpolicy Introduction to Windows PowerShell Vista Topics 7 Things to get you started with PowerShell …

PowerShell Get-AdUser: Getting Started

Windows PowerShell Get-AdUser Cmdlet With Get-AdUser you can either focus on one active directory account, or else employ a filter to get a custom list of many users. Before giving an example of Get-AdUser, I have detail instructions for getting started with PowerShell’s Active Directory module. Topics PowerShell Get-AdUser Preparation: …

Windows PowerShell Introduction

Windows PowerShell Introduction My goal on this page is to persuade Windows administrators that Microsoft’s PowerShell is a friendly scripting language, which is well worth learning. Using my examples and learning points, you will soon be able to interrogate the server’s operating system.  So get started, by downloading and installing …

Windows PowerShell Set-ExecutionPolicy

Windows PowerShell Set-ExecutionPolicy It comes as a shock to realize that by default, and by design, PowerShell code just won’t execute because of security concerns.  Fortunately you can change this behavior easily with Set-ExecutionPolicy. Set-ExecutionPolicy Topics Start With Get-ExecutionPolicy Execution Policy Values Set-ExecutionPolicy Troubleshooting Set-ExecutionPolicy  ♣ PowerShell Pre-requisites and Checklist …