I’ve been asked a lot of questions about the various ways of using queries and there are almost no limits to what you can do with a query and of course, you can then go on and use these queries for creating collections or just to supply you with the information you require.
I have created some very basic queries so far on previous posts that are available below:
Another variation on these basic queries that I’ve been asked to provide is to prompt for a computer name (in this query I’ll be using the NetBIOS name) which can be entered to provide the last logged on user and other information for that machine.
The query to do this is below:
select distinct SMS_R_System.LastLogonUserName,
SMS_R_System.NetbiosName = ##PRM:SMS_R_System.NetbiosName##
Again, there is a lot of junk information that will be provided but I have put that in so that you have a choice on the information you want. If there is anything in there you do not want, just remove it from the query.
If you have any questions or feedback about this post, or if you would like us to create any queries for you, please go ahead and leave us a message below in the comments section and we will get back to you as quick as we can.
Enter your email address below and click the Subscribe button to receive email notifications about new and exciting downloads available through our website at https://www.techygeekshome.com
You will also receive notifications about new technical guides, latest news and MSI installer downloads that are available through our blog here at https://blog.techygeekshome.info
We will not spam you and we will not pass on any of your details to anyone else. We tend to post new content once or twice a week.
You can unsubscribe any time you like.