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 …
Introduction to Scripting Eventlog on a Remote Computer Remoting is the biggest improvement in PowerShell v 2.0. Here on this page we will see how it’s possible to apply the -ComputerName parameter to eventlog files, and thus view errors on a network computer. PowerShell Eventlog Topics I think of Get-WinEvent …
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 …
Introduction to Windows PowerShell Get-Member Get-Member is an essential command for discovering more about a PowerShell objects. Because you are at the command line, you cannot right-click an object and check its properties; instead, what you can do is type: Get-ObjectXYZ | Get-Member. PowerShell is sometimes referred to as a …
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 …