May 7, 2012 10:31 AM
Posted by: Richard Siddaway
PowerShellThere are a number of ways to pass the names of the local machine into a script or function:
- use the actual name
- use the IP address (if the processing in the script can work with IP addresses)
- use 127.0.0.1 – the loop back address (if the processing in...
May 6, 2012 8:00 AM
Posted by: Richard Siddaway
PowerShell,
WMIIn one of the events you had to find the default printer. This can be done using WMI.
The full list of printers can seen using:
Get-WmiObject -Class Win32_Printer
If you want to examine the printer objecy – to determine what information is available -...
May 5, 2012 12:50 PM
Posted by: Richard Siddaway
PowerShell,
WMI
A few times in the games you were asked for date time based information. Now WMI has a lot of classes that return WMI information. It is in an awkward format though
PS> Get-WmiObject -Class Win32_OperatingSystem | fl *time*
CurrentTimeZone : 60
May 5, 2012 7:55 AM
Posted by: Richard Siddaway
PowerShellThe games are over for another year. The number of entries was huge – 150% increase over last year. Congratulations to the winners and to everyone who took part.
One thing I noticed was the number of scripts that made testing booleans harder than it needed to be.
A boolean can...