PowerShell in Practice offer today only
Posted by: Richard Siddaway
Manning have PowerShell in Practice on a half price offer today. Go to www.manning.com and use code dotd0330cc when ordering
Manning have PowerShell in Practice on a half price offer today. Go to www.manning.com and use code dotd0330cc when ordering
When you start your implementation planning for Windows Server 8 make sure to check with this page for functionality that has been removed or deprecated (means it will be removed in a future version)
When you run get-process you will see a number of entries named svchost. These are processes that host services. In task manager on Windows 7 and below all we see is the svchost entry. In the Windows 8 family we see the services running in a particular host
Now can we do anything...
I stumbled on this class
Get-WmiObject Win32_AutochkSetting
The useful output is
Caption :
Description :
SettingID : Microsoft...
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 = "."
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...
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,...
A recent post on the powershell.com site asked about running a Windows command (batch) file through PowerShell against remote machines. The batch file was expected to produce a number of files of data in a folder structure based on computer name. This makes it difficult as we could in theory run...
Last time we looked at the Win32_ReliabilityStabilityMetrics and closed by stating we’d look at the reliability records. Reliability records are event log records related to system reliability. The working part of the record is shown below (after the system properties are...
We have seen how to discover the available restore points. What about creating one.