→ 🚀Are you a Lansweeper Champion?! Join our Contributor Program Sign up here!

Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tmui
Engaged Sweeper II
Hi, I have modified the default HyperV report, but can't seem to pull the Guest OS in my query. What am I missing?

TIA,
Tim

Select Top 1000000 tblAssets.AssetName As [Host Server],
tblAssets.IPAddress As [Host IP],
tsysOS.OSname As [Host OS],
tblHyperVGuest.Name As [Guest Server],
tblHyperVGuest.Memory,
tsysOS.Image As icon,
tsysOS1.OSname As [Guest OS],
tblAssets1.IPAddress As [Guest IP],
tblAssets1.NrProcessors As [# of Processors],
TblHyperVGuestNetwork.MacAddress As [Guest MAC]
From tblAssets
Inner Join tblHyperVGuest On tblAssets.AssetID = tblHyperVGuest.AssetID
Inner Join TblHyperVGuestNetwork On tblHyperVGuest.hypervguestID =
TblHyperVGuestNetwork.HyperVGuestID
Left Join tblAssets tblAssets1
On tblAssets1.Mac = TblHyperVGuestNetwork.MacAddress
Left Join tsysOS tsysOS1 On tblAssets1.AssetName = tsysOS.OSname
Order By [Host Server],
[Guest Server]
1 ACCEPTED SOLUTION
tmui
Engaged Sweeper II
I figured it out.

Line 17 should have been
 Left Join tsysOS tsysOS1 On tblAssets1.OScode = tsysOS1.OScode

View solution in original post

1 REPLY 1
tmui
Engaged Sweeper II
I figured it out.

Line 17 should have been
 Left Join tsysOS tsysOS1 On tblAssets1.OScode = tsysOS1.OScode

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now