Get-WmiObject -computername length restriction - by yhoni

Status : 


Sign in
to vote
ID 788843 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 5/29/2013 5:40:12 AM
Access Restriction Public


Using PowerShell 2.0 on Windows Server 2008R2
When running the following cmdlet and query, the SystemName field returns blank when the computer name is 15 characters.

Get-WmiObject -computername server-test-001 -query "select systemname from Win32_volume"

I've tried single quotes, double quotes, square brackets, back quotes, en-dashes, and em-dashes. I've tried DNS aliases with shorter and friendlier names. The only thing that works is using a shorter machine name. svr-test-001 vice server-test-001.
Sign in to post a comment.