search
top

Displaying Logical Drives with PowerShell

PowerShell is a powerful scripting language and can do many things. One task that can be used over and over is to get the logical drives off a system. One you have this information you can then perform tasks like searching for files, directories, reporting usage etc.. In this post I will be simply showing how to create a variable and retrieve the data for the logical drives using WMI object... read more

How to Backup System State with PowerShell

As tweaker’s there is always changes needed to the system to make it run to our liking and there is always the risk that those changes will break and possible have major repercussions. That’s where restore points come into play. With PowerShell there is a way to use system restore points to backup and restore if an issue does arise. This process assumes that system restore points are enabled... read more

Microsoft Script Explorer for Windows PowerShell

While digging around on the Internet for some PowerShell code I came across a new tool from Microsoft called Microsoft Script Explorer for Windows PowerShell (pre-release). Microsoft Script Explorer for Windows PowerShell (pre-release) helps scripters find Windows PowerShell scripts, snippets, modules, and how-to guidance in online repositories such as the TechNet Script Center Repository, PoshCode, local... read more

Creating Folder Shares with PowerShell

Here is a cool little function that you can use to create a share on a system. Save this function in a PowerShell module and load to your toolset.To run this cfunction you must have full administrator privileges, this function also sets the ErrorActionPreference to stop. function New-Share { param($Path, $Name) try { $ErrorActionPreference = ‘Stop’ if ( (Test-Path $Path) -eq $false) { $null =... read more

Adding Additional Fonts to PowerShell and Command Console

Ever wanted to add a different font to PowerShell and command prompt, we’ll here is an easy way to add it with PowerShell. Open a PowerShell with Administrator privileges and execute the following commands. $key = ‘HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont’ Set-ItemProperty -Path $key -Name ‘000’ -Value ‘Courier New’ To select a font,... read more

« Previous Entries Next Entries »

top
Life of a Geek Admin
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.