QuickTip: Comparing installed HotFixes on a two node Cluster
We had a Risk and Health Assessment Program (RAP) for SQL Server running in our environment in the last few days and one of the issues in the final report was: My PowerShell "wheels" started to roll and I suggested our team have a ... המשך לקרוא>
ScriptFanatic , 01-12-2011 17:17
Quick Tip: Out-File and IOPs – Position matters
Take a look at the following two examples. Both commands gets a list of log files, selects a subset of each file properties and logs them to a file. Get-ChildItem -Filter *.log -Recurse | ForEach-Object { $_ | Select-Object Name,Length,FullName ... המשך לקרוא>
ScriptFanatic , 12-09-2010 22:57
QuickTip: How to validate a UNC path
The System.Uri class provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI. One of its properties is IsUnc . IsUnc gets whether the specified Uri is a universal naming convention (UNC ... המשך לקרוא>
ScriptFanatic , 05-27-2010 15:05
QuickTip: Additional PowerShell Registry drives
Windows PowerShell provides access to the system registry via two PowerShell drives: HKLM and HKCU, which maps to the HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER registry hives respectively. PS > Get-PSDrive -PSProvider Registry Name Used (GB ... המשך לקרוא>
ScriptFanatic , 05-16-2010 13:28
QuickTip: How long since a file was last written to?
Here’s a quick way to find out. Pipe the file to the New-TimeSpan cmdlet. PS > Get-ChildItem foo.txt | New-TimeSpan Days : 319 Hours : 7 Minutes : 8 Seconds : 48 Milliseconds : 409 Ticks : 275873284097833 TotalDays : 319.29778252064 TotalHours ... המשך לקרוא>
ScriptFanatic , 04-18-2010 18:57
QuickTip: How do you check Internet connectivity?
With the following PowerShell one-liner you can check if the machine you’re working on has internet connectivity. The result is a Boolean value. If TRUE, the local machine is connected to the internet; if FALSE, it is not. Minimum supported ... המשך לקרוא>
ScriptFanatic , 03-09-2010 13:59
Page 1 of 1 (6 items)