Is it possible to query a collection and get the last logged on user?
Hi
Is it possible in SCCM to query a collection to get the computer names and the last logon user for each computer? I cant seem to find how to do this?
Thank you
try this out
Select distinct
v_R_System.Netbios_Name0 AS [Computer Name],
v_GS_COMPUTER_SYSTEM.UserName0 AS [User Name]
from v_R_System
left join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceID)
inner join v_fullcollectionmembership as b on (b.ResourceID = v_R_System.ResourceID)
left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = v_R_System.ResourceID
inner join v_GS_SYSTEM e on e.resourceid = b.resourceid
Where
b.CollectionID = @collectionid
Blog: http://theinfraguys.com
Follow me at Facebook
The Infra Guys Facebook Page
Please remember to click Mark as Answer on the answer if it helps you in anyway
Similar Messages
-
Query on 0TCT_MC01 to get the last used date of a query
Dear All,
I tried to create a query on 0TCT_MC01 to get the last used date of a query.
Since we do not have readily available key figure for Last used date, could any one help me out to achieve this result?
I am interested to find the old queries which are not being used anymore.
Thanks in advance.You can get the info from the below tables
if you are working with BW 3.5 you can look in table RSDDSTAT in BI 7.0 it is RSDDSTAT_OLAP.
Make a selction on the infocube and the OLAP Statistic Object which is the query ID and execute. Then you should see how often the query was executed, by whom and which date/time.
in field Statistics Object Name Query ID you type in the tech name of the query
from the Counter for statistics event calls -- will give the count... no of times the query used least the count lesser the query is used.
Regards
KP
Edited by: Konduru Prashanth. on Dec 22, 2011 2:44 PM -
Is it possible to create a playlist and share it with another itunes user?
Is it possible to create a playlist and share it with another itunes user?
try this out
Select distinct
v_R_System.Netbios_Name0 AS [Computer Name],
v_GS_COMPUTER_SYSTEM.UserName0 AS [User Name]
from v_R_System
left join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceID)
inner join v_fullcollectionmembership as b on (b.ResourceID = v_R_System.ResourceID)
left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = v_R_System.ResourceID
inner join v_GS_SYSTEM e on e.resourceid = b.resourceid
Where
b.CollectionID = @collectionid
Blog: http://theinfraguys.com
Follow me at Facebook
The Infra Guys Facebook Page
Please remember to click Mark as Answer on the answer if it helps you in anyway -
Is it possible to play my guitar and have the sound changed to different instrument like a sax? Have my Mac act as an emulator. I'm a guitar player, not a sax player, but I want a sax solo in my song.
You'd need a midi guitar for that. GarageBand does not create midi from audio. Use a different application, like Finale to create a midi file from your Guitar audio file.
Or play the sax track using a midi keyboard or simply GarageBand's musical typing. You can use the track editor to add expression and articulation afterwards. -
Ping a SCCM Collection and mail the results
I would like a make a runbook that take a collection (No hardware scanned for 15 days), ping all computers in the collection and mail the result to me.
The runbook steps are as followed:
1) Get Collection Member
2) Get Computer/IP Status
3) Send Email
My problem is now, that I recieved a mail for every computer that answers in ping. This is, I guess, expected behavior, as "Send Email" is trigged every time the "Get IP Status" is a success.
But how do I collection all results from "Get IP Status" and gather it in 1 mail?
The flatten option doesnt seem to help here, and the multiple runbooks seems like a overkill solution for such a relative simple task. Is there something I overlooked?
Thanks!Easiest way (in my opinion) would be to use two policies
Policy One
1) Trigger Policy (Set Flatten with your wanted delimiter)
2) Send Email
Policy Two
1) Get Collection Member
2) Get Computer/IP Status
3) Return Data (one return parameters, add published data from both 'Get Collection Member' and 'Get Computer / IP Status') -
I have the latest Creative Cloud versions of Lightroom and Lightroom Mobile on my Ipad. On my desktop I have created a collection which I have put in a custom order. On my Ipad I go into that collection and set the order to custom order, which I presume means the order I have on my desktop. However, the photos on the Ipad seem to be just random photos from the collection THEN the rest of the collection is in the correct order after that.
Do you have virtual copies in your collection?
Could you please send send me a LR Desktop +Mobile diagnostig log - best as a private message with a downloadable dropbox link
You can trigger the Lr Desktop diagnostig log via LR Desktop preferences -> Lightroom Mobile and when you hold down the alt key you will notice a generate diagnostic log button.
The Lr Mobile app log can be triggered when you open up the settings and long press the to LR Icon a diagnostic log will be generated and attached to your local mail client. While opening the settings could you double check if you are signed-in?
Thanks
Guido -
Hi there! So I am using Lightroom 3 on a pc and I have ran into an issue when exporting images. The DPI and image size (in inches) that I am selecting during the export process. For example I just exported a collection and set the dpi to 180 and the size to 7 inches on the long edge. My exported result is 457 dpi and sized at 3200x2134 pixels.. Any ideas on why this is happening and what I can do to correct it?
The DPI setting in a digital image has no meaning at all. You need to learn how to calculate what you need in your exported image. The only measurement in a digital image that has any meaning is the number of pixels in each direction. It doesn't matter what you set that DPI to (actually it's PPI or pixels per inch). The image will have the same number of pixels regardless of the setting. If you need an image that is 5 x 7" (for example) at 200 PPI then you would want an image that measured:
5 x 200 = 1000 pixels
7 x 200 = 1400 pixels
So you would need an image that is 1000 x 1400 pixels to have a 5 x 7" image at 200 PPI. The reason your exported image had such a high PPI setting is because you specified the number of inches you wanted the image to be. And there were enough pixels in the image that it calculated out to be that high PPI setting.
I apologize, I don't explain this very well. But you need to learn to do the math to determine how large you really want your exported images to be. -
How to query LDAP server and get DB Service names?
Hi, before making a connection to an Oracle database, if i want to get list of Databases available,
i could use OracleClientFactory (and CreateDataSourceEnumerator and GetDataSources) to get list of tnsnames from the local tnsnames.ora file
Now, if i instead want to query the LDAP server with a given context and get the DB Service list,
how can i do that using ODP.NET?
I am using Visual Studio C# 2010 and ODP.NET 11.2
Thanks,
-srinivas yelamanchiliThe oracle client has an ldap.ora file, how can I use ODP.NET to read the ldap.ora file and get list of oracle instances available?
Thanks,
-sri -
I bought my iphone 5 a bit more than a month ago. Few days ago it is broken (not my fault). Is it possible to completely return it and get money back?
No, you cannot get your money back.
If you have tried the basics restart, reset, restore, then make an appointment at the genius bar. If the iphone is defective then they will replace it. -
Is it possible to import new slides and keep the audio?
Hi,
is it possible to import new slides and keep the audio?
The designers have changed the housestyle of the powerpoints,
but the audio has been recorded in captivate in the meanwhile. Is
it possible to keep the audio of the files and replace all the old
powerpoint slides with new ones? (not one by one by hand off but
all in one button press ?)
Thanks,
wouter
My
Elearning company.Hi again Wouter
Are you saying that your Library has lots of other audio that
isn't really used on a slide? If so, try right-clicking the Library
panel and choosing "Select Unused Items". This should highlight all
the sound files not in use. Now press the Delete key and they
should be removed from the Library view.
Now you are faced with just what is left. You may not know
which clip goes with which slide. So try this. In your Film strip,
audio attached to the slide should appear as a Speaker icon in the
corner. Click the Speaker icon and pop down (or up) menu should
display. Choose "Find in Library". This should highlight the
associated clip in the Library. Now, if you like, you may
right-click the file in the Library and rename that to something
like "Slide X audio" (so you know which clip goes with which
slide).
Cheers... Rick -
How to get the job logs from sm35 by using the queue id and session name?
hi all,
can any one please let me know how to read the job log from sm35 by using the session name and queue id. i have the job name and job count but is it possible to download the job log by using the queue id and session name.
FYI..
i want to read this job log and i want to send it to an email id.
-> i am using the job_open and submitting the zreport via job name and job count and then i am using the function module job_close.
but this is not working in my scenario i have the queue id and session name by using this two i want to get the job log is there any function module available or code please provide me some inputs.
thanks in advance,
koushikHi Bharath,
If you want to download it to the local file then you can follow the instructions in the below link.
How to download Batch Input Session Log?
Regards,
Sachin -
I purchased an iPad mini on October 10th. I want to return it and get the new ipad mini retina when it comes out. I am currently still within the 14 day return/exchange window but how can I exchange it if the new ipad mini release date isn't until "later in November", which would be beyond the 14 days from my purchase date? If apple announces a new version of a product you just purchased but won't actually release it for more than 14 days, how can you possibly exchange the one you just bought? Is my only option to return the one I bought on the 10th (so return by 10/24) and then not have an iPad until the new one is available for purchase? Or would it make any sense to return the one I bought, get a new one, which would presumably have another 14 day return window, and then exchange THAT one for the new ipad mini w/ retina when it comes out (hopefully within that second 14 day window)?
Call the apple store you got it from and ask them. Sometimes in the past they've extended the 'no questions asked return' but only Apple can tell you for sure.
-
Date fields and compare and get the later date of the fields
I am trying to compare these date fields and compare and get the later date of the fields
Tables are
TABCASER
TABCASER1
EVCASERS
Field
Are
TABCASER1.CASER_no
The dates are to be compared and then get the records with the highest or latest date value.
TABCASER1.CASERRECIEVEDDATE
EVCASERS.FINALEVDATES
EVCASERS.PUBLICATIONDATE
EVCASERS.PUBLICATIONDATE
TABCASER.COMPAREACCEPDATE
I have this code but I am trying to figure out what it all means.
I have several questions.
1.
1. greatest it is used here to compare right? How do I then output this ? do I store it to a var (coldfusion) ultimately , I wish to send it to a page of records
2. is it necessary to use todate? And to_date? What does this do?
3. decode, is this necessary too. What does this do? NULL?
4.
5.
6. when I do get the query results how do I send it to coldsuion and out put to a display.
Someone sent me this code.
is there abetter way of doing this? To compare the dates and store in a var to display. thanks
Here is my code below:
Greatest(
CASE
WHEN INSTR(TABCASER1.CASER_no,'-CE') > 0 THEN
decode(TABCASER1.CASERRECIEVEDDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER1.CASERRECIEVEDDATE)
WHEN INSTR(TABCASER1.CASER_no,'-ERNIE') > 0 THEN
decode(EVCASERS.FINALEVDATES,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.FINALEVDATES)
WHEN INSTR(TABCASER1.CASER_no,'-MONIE') > 0 THEN
decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
WHEN INSTR(TABCASER1.CASER_no,'-NADINE') > 0 THEN
decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
ELSE
decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE)
END
,decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE))
between TO_DATE('#dateformat(form.startDate,"mm/dd/yyyy")#','MM/DD/YYYY') and TO_DATE('#dateformat(form.endDate,"mm/dd/yyyy")#','MM/DD/YYYY')
is there abetter way of doing this? To compare the dates and store in a var to display. thanksHi
If you have date datatypes than:
select
greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
from TABCASER, TABCASER1, EVCASERS
where ...-- join and other conditions
1. greatest is good enough
2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
6. to format the date for display use to_char function with format modell as in the to_date function.
Ott Karesz
http://www.trendo-kft.hu -
I need to create an SCCM report to show last logged on user on all machines and the Active Directory department attribute of that last logged on user.
You problem is here.
right
join v_R_User USR on USR.ResourceID
= CS.ResourceID
USR.ResourceID != CS.ResourceID, you need to map the username to the user logon to the PC. By using the user’s department information you will
end up with unreliable results.
Anyways you need to make these changes to your query.
left
join v_R_User USR on USR.Unique_User_Name0
= CS.UserName0
http://www.enhansoft.com/ -
Lost all photos on my iPhoto and get the ERROR WRITING TO DISK when trying to reload from Time Machine. iPhoto cannot import your photos because there was a problem writing to the volume containing your iPHOTO LIBRARY . Looking for solution.
Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.
First, empty the Trash, if possible.
Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) 2>&- | wc -l | pbcopy
Launch the built-in Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign ($) to appear.
The output of the command will be a number. It's automatically copied to the Clipboard. Please paste it into a reply.
The Terminal window doesn't show the output. Please don't copy anything from there.
Maybe you are looking for
-
Watching for a variable in an external swf
Hi, I'm trying to load an swf game, and then repeatedly run a check to see if the game has ended by accessing one of it's variables. Reading the forums and searching the web has gotten me this far: var myLoader:MovieClipLoader = new MovieClipLoader(
-
IMac 21.5 GHz, strange, different backlight from warm color to cold color
Hi all, I just bought an iMac 21.5 GHz with ATI and 3.33 GHz Processor. Everything is great, but I'm wondering about display backlight. Right side of display is clear and warm in colors. If I'm looking more and more on the left side, color will be mo
-
Audible or vibrating low battery alarm
is there any way to ask Apple that sets the low battery warning with an audible or vivrating alarm?
-
Hi, I am doing the application given in sdn tutorials: Creating a Web Dynpro Application Accessing ABAP. In this I configured the meta data connection for WD_FLIGHTLIST_RFC_METADATA_DEST. When I am testing it is giving the following error: com.sap.mw
-
Quartz schedular problem accessing thru RMI client
Hi, I am trying to access Quartz scheduler through RMI client/server. Quartz scheduler RMI is starting up properly. When I run the RMI client I am receiving the following error. ================================================================= org.qu