search
top

How To Retrieve Windows AD Group Members using PowerShell

Introduction As part of daily administration we are constantly being asked by Auditors and managers for a list of the individuals in groups. In the past and current we can still use the venerable net commands to get the access. With PowerShell we can it quickly and in a format easier than before. In this post we will over how to get the information and export it into other formats. To use the... read more

Finding WWN’s on Windows Server 2012 Using PowerShell

With a single command you can retrieve WWN’s on Windows Server 2012 R2 using PowerShell. Open the PowerShell command and type: Get-WmiObject -class MSFC_FCAdapterHBAAttributes -namespace “root\WMI” | ForEach-Object {(($_.NodeWWN) | ForEach-Object {“{0:x}” -f $_}) -join “:”} And that is all there is to it. Simple and fast using PowerShell. Update: I have been been... read more

Retrieving Disk Information and Freespace Using PowerShell 2

It is always nice to be able to retrieve disk information for the systems. Alot of scripts are used to gather the information so Administrators can keep ahead of the demand for space. With PowerShell 2 it is simple to retrieve the information in a single line using the win32_volume WMI class call. Now in this example I am only retrieving four items and rounding the values to two decimal places. There are... read more

How to change several system settings with PowerShell

PowerShell is an awesome addition to Windows and the admins that administer servers.  This post covers a few PowerShell commands to make changes to common settings. Create a drive to HKEY_CLASSES_ROOT & HKEY_CURRENT_USER. By default these two registry geys are not available for mounting and using in PowerShell, but that is an easy fix! if (!(get-psdrive hkcr -ea 0)){New-PSDrive -Name HKCR -PSProvider... read more

How To Install WMF 4.0 and PowerShell 4.0 on Windows 2008 R2 / Windows 7

So you want to try out PowerShell 4.0 on your Windows 2008 R2 / Windows 7 system. In this post we will do just that. Install the latest PowerShell version on your system. To use PowerShell 4.0 you need to have .NET 4.5 or higher. You can get the offline version here. Install .net 4.5 update NDP451-KB2858728-x86-x64-AllOS-ENU.exe and reboot. Next download WMF (Windows Management Framework) from here.... 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.