PowerShell for Windows Admins:


August 7, 2011  9:26 AM

MSDiskDriver classes

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The root\wmi namespace contains four MSDiskDriver related classes gwmi -Namespace root\wmi -Class msdiskdriver* -List | select name MSDiskDriver MSDiskDriver_Performance MSDiskDriver_PerformanceData MSDiskDriver_Geometry The first class – MSDiskDriver – is a super class that calls...

August 3, 2011  2:36 AM

Network speeds–the faster ones

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Quick update to 0 Comments     RSS Feed     Email a friend


August 1, 2011  6:57 AM

Where to select

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Using select-object (aliased to select in common usage) to reduce the number of properties passing into further processing is a common aspect of using PowerShell. However, its not the only place we can do it. Consider this scenario. We need to test the network client on a number of remote...


July 31, 2011  3:22 AM

Live Mesh Update

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Couple of points worth noting if you are going to use Live Mesh (1) File paths longer than 269 characters (folder paths > 248) won’t sync  - shorten the path to fix (2) PST files won’t sync – even if they are not in use By default Mesh wants to put the target folder into your...


July 22, 2011  1:43 PM

Can I? Should?–copying VBscripts

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

One of the major errors I see PowerShell newcomers performing is copying script structures and syntax of VBScript into PowerShell. Let me give you an example This piece of VBScript is borrowed from the Windows 2000 scripting guide strComputer = "." Set objWMIService = GetObject("winmgmts:"...


July 20, 2011  3:09 PM

Can I? Should I?–examples–legacy scripts

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

In this post http://msmvps.com/blogs/richardsiddaway/archive/2011/07/17/can-i-should-i.aspx I stated that PowerShell...


July 15, 2011  6:47 AM

Printer Security settings

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I was recently asked about getting the security settings for printers.

$pace = DATA {            

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
		


July 3, 2011  6:52 AM

Computer Report IV: Time server

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The batch file uses net time /querysntp which displays the name of the Network Time Protocol (NTP) server currently configured for the local computer or the one specified in ComputerName. Unfortunately /querysntp  has been deprecated in later versions of Windows. In a domain...


July 3, 2011  5:17 AM

Computer Report III: Eventlog service

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The batch file has a separate report for event log service status wmic service where name="EventLog" get Name, SystemName, StartMode, Status PowerShell translation Get-WmiObject -Class Win32_Service -Filter "Name='Eventlog'" | Select Name, SystemName, StartMode, Status This becomes a...


July 3, 2011  5:06 AM

Computer Report: II Service Information

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The batch file retrieves service information using wmic service where state="Running" get DisplayName, Caption Direct PowerShell translation is this. Get-WmiObject -Class Win32_Service -Filter "State='Running'" | Select DisplayName, Caption Couple of problems:

  1. DisplayName...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: