PowerShell for Windows Admins:

Windows 7


December 8, 2013  8:20 AM

Transferring modules from Windows 8 or 8.1 to Windows 7



Posted by: Richard Siddaway
CDXML, CIM, PowerShell 3, PowerShell v4, Windows 7, Windows 8, Windows 8.1, WMI

Windows 7 shipped with PowerShell 2.0 installed.  Windows 8 brought PowerShell 3.0 and Windows 8.1 brings PowerShell 4.0. Windows 8 and 8.1 also have a lot of modules installed. This extra functionality widens PowerShell...

December 14, 2012  4:17 AM

PowerShell v3 installed modules



Posted by: Richard Siddaway
PowerShell 3, Windows 7, Windows 8

This is the list of installed modules in PowerShell v3 on Windows 8

AppLocker
Appx
BitLocker
BitsTransfer
BranchCache
CimCmdlets
DirectAccessClientComponents
Dism


January 24, 2012  4:34 PM

Remoting between PowerShell v3 CTP 2 and PowerShell v2



Posted by: Richard Siddaway
PowerShell 3, PowerShell v2, Windows 2008 R2, Windows 7

One of the questions on tonight’s Live Meeting concerned the compatibility between remoting on PowerShell v2 and PowerShell v3 CTP 2

The difference is that v3 uses a WSMAN 3.0 stack but v2 uses 2.0

I used two machines:

  • Windows 2008 R2 SP 1 with PowerShell...


July 31, 2011  3:22 AM

Live Mesh Update



Posted by: Richard Siddaway
Windows 7

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...


July 30, 2011  11:03 AM

Live Mesh



Posted by: Richard Siddaway
Windows 7

One problem I’ve had for a while is how to keep my script library synchronised across a number of machines.  I have a laptop I use for my development work at home and I have two netbooks – at least one of which is always with my when I’m away from home.

I’ve tried using...


June 29, 2011  12:42 PM

Network Connection Ids



Posted by: Richard Siddaway
Network, PowerShell v2, Windows 2008 R2, Windows 7, WMI

Yesterday I was looking at changing a Network connection id (the name that shows in Network and Sharing Center when you look at the adapters). I kept getting an error – either COM or number of arguments depending if I was running locally or remotely.

I eventually realised that I must...


May 27, 2011  12:17 PM

root\wmi–MSBatteryClass



Posted by: Richard Siddaway
Hardware, Windows 7

A number of the classes in root\wmi return results from more than one class. That sounds odd but it can be explained by an example.

The namespace contains a number of classes related to the battery in laptops

gwmi -Namespace root\wmi -List *battery*

MSBatteryClassEvent ...


May 26, 2011  12:50 PM

root\wmi – speeding the testing



Posted by: Richard Siddaway
PowerShell v2, Windows 2008 R2, Windows 7, WMI

Testing the individual classes in root\wmi is a pain – so its time for some brute force.  I’ll select a group of classes and test the selection

gwmi -Namespace root\wmi -List system* | fw

 

I can then iterate through them calling get-wmiobject.

This...


May 26, 2011  12:42 PM

root\wmi – MS_SystemInformation



Posted by: Richard Siddaway
Hardware, PowerShell v2, Windows 2008 R2, Windows 7, WMI

Continuing our exploration of the murky jungle that is the root\wmi namespace we find a number of classes related to system configuration

gwmi -Namespace root\wmi -List *system* | fw

 

Of theses the only one I could get a respnse from on Windows 7 or Windows 2008 R2...


May 25, 2011  1:17 PM

root\wmi – ProcessorBiosInfo



Posted by: Richard Siddaway
Processor, Windows 7

The root\wmi namespace contains a massive number of classes. Unfortunately there appears to be very little documentation available for these classes. Another issue is that many of classes do not appear to return anything (at least on my Windows 7 system – further testing is required).

...


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: