PowerTip of the Day, from PowerShell.com: WMI is a great information resource, and Get-WmiObject makes it easy to retrieve WMI instances. First, use -List parameter to find WMI class names. For example, find classes that deal with network: Get-WmiObject-ListWin32_*network* Next, pick one of the classes and enumerate its instances: Get-WmiObjectWin32_NetworkAdapterConfiguration With WQL, a SQL-type query [...]
Powershell V2.0 is the current latest realease [Dec 2011], installed by default on Windows 7 and Windows Server 2008 R2; and also available for download for earlier versions of Windows both 32bit and 64bit platforms. On Windows 7, click the Start icon, All Programs, Accessories, “Windows PowerShell” folder or Winkey+R type Powershell and enter Windows [...]
PowerTip of the Day, from PowerShell.com: Out-GridView is a great way to present results in a “mini-Excel” sheet: Get-Process|Out-GridView However, Out-GridView has two requirements:.NET Framework 3.5.1 and the built-in script editor ISE must both be installed. ISE is not installed by default on Windows Servers. So, if you want to use Out-GridView on server products, [...]
Pocket Tazer Stun Gun, a great gift for the wife. A guy who purchased his lovely wife a pocket Tazer for their anniversary submitted this: Last weekend I saw something at Larry’s Pistol & Pawn Shop that sparked my interest.. The occasion was our 15th anniversary and I was looking for a little something extra [...]
If you are trying to connect to a Sharepoint document library via UNC path and receive the following error No network provider accepted the give network path You are probably trying to connect via Windows 2003 You need to change the Startup Type and start the WebClient Service on the server. Also, you will need [...]
PowerTip of the Day, from PowerShell.com: By using PowerShell WMI, you can enumerate the start mode that you want your services to use. To get a list of all services, try this: Get-WMIObjectWin32_Service|Select-ObjectName, StartMode If you want to find out the start mode of one specific service, try this instead: ([wmi]‘Win32_Service.Name=”Spooler”‘).StartMode
PowerTip of the Day, from PowerShell.com: Try this one-liner if you need to print out all PDF documents you have stored in one folder: Dirc:\myfolder\*.pdf|Foreach-Object { Start-Process-FilePath$_.FullName – VerbPrint }
Most of the negative health effects of smoking are well-known so instead of listing all of the reasons that smoking is bad for you, this is a different perspective. When you DO stop smoking, here is a list of all of the good things that will happen to you, and when the bad – the [...]
PowerTip of the Day, from PowerShell.com: When you read multivalued information from WMI or any other source, for example, network adapter IP addresses, this information is returned as a multiline string: PS> Get-WmiObject-ClassWin32_NetworkAdapterConfiguration-Filter‘IPEnabled=true’|Select-Object-ExpandPropertyIPAddress 78.64.118.150 fe80::ad62:ac4d:4dea:936d If you want to turn this into a list, use the operator -join: PS> (Get-WmiObject-ClassWin32_NetworkAdapterConfiguration-Filter‘IPEnabled=true’|Select-Object-ExpandPropertyIPAddress) -join‘, ‘ 78.64.118.150, fe80::ad62:ac4d:4dea:936d It [...]

