Archive
Microsoft Team Foundation Server 2010 and external access FQDN
VS.NET TFS: IISReset and The system cannot find the file specified. (2147942402, 80070002)
Hyper-V Remote Management Configuration Utility
| HVRemote reduces the manual configuration steps needed for Hyper-V Remote Management down to a few simple commands. |
Windows Help File: Navigation to the Webpage was canceled
It seems it’s not clear for everyone. When you download a compiled HTML Help file from the internet, the file get’s tagged as insecure. Now when you open the file, the content get’s block unless you remove the lock..
Screenshot (this is not an error of this page
To unlock the the file, just right-click it in explorer and chose properties. Under Genereal you’ll find an unlock button
that’s it. Now you can open the and read the file as usual..
PowerShell: About SessionConfiguration and how to change them
Remote Access Without Admin Privileges
In PowerShell v.2, remote access is available only to users who hold local administrator privileges. So, even if you do have appropriate remote access to a machine, , you cannot remotely access the system if you are not an Admin. This is not a technical limitation, though, just a safe default. You should use this line to change it :
Set-PSSessionConfiguration -Name Microsoft.PowerShell -showSecurityDescriptorUI
PowerShell: Display almost anything in a graphical GridView
Out-GridView Dirty Tricks
Out-Gridview is a new cmdlet in PowerShell v.2 which allows you to output objects to a “mini” excel sheet like this:
Get-Process | Out-GridView
However, this only works if .NET Framework 3.51 is installed. While PowerShell requires just .NET 2.0, both Out-GridView and ISE-Editor require 3.51 because of their WPF graphical output.
Out-Gridview will display the same columns you would have seen when you output the objects to the console. You should clone the object first to see all object properties in your gridview:
Get-Process | Select-Object * | Out-Gridview
PowerShell: Create a temporary filename
Thanks to Get-Date, you can easily create unique temporary file names with a timestamp:
(Get-Date -format ‘yyyy-MM-dd hh-mm-ss’) + ‘.tmp’
PowerShell: Generate PC Lists using Foreach-Object and -f Operator
Generate PC Lists
One easy way of creating lists of PC names or IP address ranges etc is a simple pipeline like this:
1..40 | Foreach-Object { ‘PC-W7-A{0:000}’ -f $_ }
Use the -f operator to format the number. In this example, it will always be three-digit.
PowerShell: Sort-Object
You can use Sort-Object to sort simple variable types. Have a look at the following:
‘Tom’, ‘Chris’, ‘Judy’, ‘Alan’ | Sort-Object
Input can come from a different command. If you’d like to get seven random lottery numbers, you should try this:
1..49 | Get-Random -Count 7 | Sort-Object
You’ll find that when you feed complex objects into Sort-Object, you should specify the object property you want to sort on (or else Sort-Object will pick one by itself):
Get-ChildItem $env:windir | Sort-Object Length
Here are some more examples:
Get-HotFix | Sort-Object InstalledOn
Get-ComputerRestorePoint | Sort-Object Description
Loading...