Query: Get PC list based on last loggen users in particular OU
Hello everyone. I'm having such structure:
DOMAIN
OU1 (w/o users accounts)
OU2 (users)
OU3 (users)
OU4 (users)
PCOU (Computer accounts)
I need to get list of all PCs, on which users from OU1 (so all child OUs) logged on.
Not very good at SCCM, so having trouble with query.
Not very good at SCCM, so having trouble with query.
What do you have for you query already?
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ
Similar Messages
-
Is there any way to get the list of Essbase and planning users in excel wi
Is there any way to get the list of Essbase and planning users in excel with last login details.
Hi,
This tool might be of some help to you, 'OlapUnderground Advanced Security Manager'. I havent used it personally but went through its features. Give it a try!
Thanks,
Junaid -
Sorry for the typographical mistake.
Please read the question as:"How do i get a list of all Roles defined under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?" -
Hi ,how can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm
or poerwshell . i have struggled for a week
tchocrHi,
There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
assistance:
http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
Best Regards,
Mandy
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.
Hi,
There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
assistance:
http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
Best Regards,
Mandy
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Query to get objects list for which the current user has 'SELECT' privilege
Hi,
I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
From these findings, I have composed below query
(SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
Have I got user's all prvilege details? should I look some other system views?
How to exclude system table privileges details?
(SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
What about Public role in Oracle? Should I consider public role here?
Oracel Version :11g
I want make this query to work on Oracle 8i or above version
Thanks>
I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
>
You will need a hierarchical query to do that.
Try this script for Listing privileges recursively for Oracle users
http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html -
Add a Price List based on last purchase price
Hi!
I'm working with SAP B1 2005 A SP01 PL39 and I'm trying to add a Price List via DIAPI using this code in VB.net.
Dim oPriceList As SAPbobsCOM.PriceLists
oPriceList = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPriceLists)
oPriceList.PriceListName = "PriceList Z"
oPriceList.BasePriceList = 0 '// last purchase price
oPriceList.Factor = 1
oPriceList.GroupNum = BoPriceListGroupNum.boplgn_Group1
oPriceList.RoundingMethod = BoRoundingMethod.borm_NoRounding
oPriceList.Add()
The problem is when the Price List is added, the base price list changes and becomes "PriceList Z" instead of "last purchase price"!!
After i try to update the base price list from "PriceList Z" to "last purchase price" manually at Inventory > Price Lists > Price Lists and it works!
I even tested the code changing the base price list to "last evaluated price"...
oPriceList.BasePriceList = -1 '// last evaluated price
... and it works too! The Price List is added based on the last evaluated price.
I'm only having problems with last purchase price... why?Thanks for the quick response Petr but my problem isn't solved yet...
As you can read in my first post, i've changed the code and based the new price list on the "Last Evaluated Price".
This "Last Evaluated Price" isn't in the OPLN table and the new price list (with last evaluated price based on) is added successfully.
The problem comes when i try to add a new price list based on the last purchase price. -
How to get specific file based on last modified
Hi,
I have a problem.
what I am doing in my program is unzipping few files in c:\temp.
the folder structure is like this
c:\temp\patch\abc.doc
c:\temp\patch\abc.txt
c:\temp\patch\myfolder\xyz.doc
c:\temp\patch\myfolder\myFile\xyz.txt
what I mean to say is that, I have files bot directly in the folder patch or in subdirectories.
then what I have to do is that I have to perform some kind of verification on these files and from here i have to put it some other location.
so for getting the list of files in the directory I am doing this
File fileDir = new File("C:\\temp\\patch");
File[] fileList = fileDir.listFiles();what this does is returns all the subdirectories and files in the folder patch, but not the files in the subdirectory.
so I trried doing this
for(int j=0 ;j < fileList.length; j++){
String newFileName = fileList[j].getName();
String dir = File.separator + newFileName;
if(fileList[j].isDirectory()){
newDir.append(dir);
getFiles(newDir.toString());
newDir = new StringBuffer();
newDir.append(outputDir);
}this code works fine when i run it for the first time.
but when i run it second time it is giving some path like
C:\temp\patch\myFolderC:\temp\patch\myFolder
becasue alreday the folder temp contains the folders and files
what is the msitake?
And how do i get only the file that I am copying at this particular time excluding the earlier ones.can you also tell me the modification required in the code.
Because thats where I am facaing the problem.
It would be of great help if you could give me the modified code of what I have written.
Since I am new to java I am not able to get the nuances of the code, but surely its a childs play for you I guess -
How to get the list of communities of a user using EDK
Hello,
I am developing a portlet which needs to get the list of communities in which the logged-in user is a member. I am using EDK 5.0.1.
I can't find a way to retrieve this information using the EDK I am using.... Would you please help?
Thank you in advance.Hey Ramy,
A bit off the top of my head, but try this:
IPortletContext PortletContext;
IRemoteSession PTSession;
PortletContext = PortletContextFactory.CreatePortletContext(Request, Response);
PTSession = PortletContext.GetRemotePortalSession();
privatevoidgetCommunities()
IObjectManager Manager = PTSession.GetObjectManager(ObjectClass.Community);
IObjectQuery Query;
Query = Manager.QueryObjects(-1, 0, -1, ObjectProperty.Name, true);
for(inti = 0; i <= Query.GetRowCount() - 1; i++) {
string sCommunityName = Query.GetRow(i).GetName();
string sCommunityID = Query.GetRow(i).GetID().ToString();
Cheers!John -
Display sharepoint list based on logged in user
Hi,
I have a sharepoint list which has 10 items.My friends and me use that list to add and delete items.
What i would want is when my friends log in they should be able to see only their items in the list and when I log in I should be able to see all items in the list.Is this possible?
Kindly help as i am new to sharepoint and this is my first project.Learning by doing :)Two ways of doing this stand out. I think it'll boil down to whether you want to allow your colleagues to look at other tickets.
In the list Advanced Settings, you can configure the list so that users can only see and edit items that they create. This is useful if you want to enforce security. SharePoint has a feature known as security trimming which will hide all content
not relevant to other people
Views are also possible. You can create views that filter dynamically against the account logged in. This can be set up on any column in the list that uses your company address book for its data. So, the "created by" column would work
as well as any additional columns you might make. This way is "smoke and mirrors" though and doesn't apply security to items assigned to other people.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
How do I get a list of the most recent upgraded packages?
Hi there,
I want to get a list of the last upgrades using pacman.
I´ve been looking for a way to do it in the man page, but either I´m blind or there is not such an option.
I know that I can just do:
ls --sort time /var/cache/pacman/pkg/|head
But what if I clean the cache regularly?
Does the pacman database store the upgrade or installation date for each package? If so, how can I access this data?
Cheers,
Edit: I know that "pacman -Qi" gives me the date of installation of individual packages, but what I want is to be able to sort the list of all installed packages by date.
Last edited by samhain (2008-04-30 11:41:19)dolby wrote:/var/log/pacman is the file you want
Thanks.
cat /var/log/pacman.log | grep "] upgraded" | tail
Gives me what I need
I would prefer if pacman had some option for sorting the queries, but for now, this will do fine. -
;-| Is it possible to get a list of Roles for the EJB Caller?
Hi,
from an EJB I can use isCallerInRole(role), however I would like to get a
list of Roles that the user is in to do DB lookups for each role...
I have an implementation under 'JBoss' which does a JNDI lookup for the
SubjectSecurityManager using java:/jaas/other and then uses that to get at
the roles...
Is there a 'standard' way of doing this?
Is there a 'SubjectSecurityManager' like beast on WebLogic?
Any help would be greatly appreciated!
Kind regards
LewisHi Lewis,
I believe there is not a method for this currently but I believe it has been suggested
to our security team. Watch for this feature in a future release.
It maybe possible to write a method for this if you are using a custom realm.
Kind Regards,
Richard Wallace
Senior Develoepr Relations Engineer
BEA Support.
"Lewis Henderson" <[email protected]> wrote:
Hi,
from an EJB I can use isCallerInRole(role), however I would like to get
a
list of Roles that the user is in to do DB lookups for each role...
I have an implementation under 'JBoss' which does a JNDI lookup for the
SubjectSecurityManager using java:/jaas/other and then uses that to get
at
the roles...
Is there a 'standard' way of doing this?
Is there a 'SubjectSecurityManager' like beast on WebLogic?
Any help would be greatly appreciated!
Kind regards
Lewis -
Function Module to get pernr number based on first name and last name
Hi All,
What is the Function Module to get pernr number based on first name and last name.
Could you please help me.
T@R.
Vidyahi Vidya,
you can get perner from PA0002 based on firs name and last name.
use select query and get perner. -
SQL query to get a list of relations between workitems
How can I create a SQL query to get a list of all problems with related changes? And all problems with related incidents?
I have tried to join the tables RelationshipTypeDim with ProblemDimKey and ChangeRequestDim, but the results are not correct.The relationships in the data warehouse can be kind of tricky. The relationships are contained in the WorkItemRelatesToWorkItemFactvw table. This table lists the related items by their WorkItemDimKey, so you cannot reference directly from the ChangeRequestDimvw
or ProblemDimvw. You will need to reference the WorkItemDimvw to get the WorkItemDimKey for each entry.
The query below will get all of the related work items from the Change Request class. The way the joins work is ChangeRequestDimvw gets the list of change requests. Then inner joins WorkItemDimvw to get the WorkItemDimKey for each CR. Then inner joins WorkItemRelatesToWorkItemFactvw
to get all of the CRs with related work items. Then inner joins the WorkItemDimvw again to get the ID of the related work item.
Now the tricky part is it appears that these relationship are set based on which item that created the relationship. So you need to union a second query that reverse the relationship on the WorkItemRelatesToWorkItemFactvw.
This query should give you a good start on getting the related work items. You can filter it down from here if you only want to include problems.
SELECT C.ID, WIWI.ID
FROM dbo.ChangeRequestDimvw C
INNER JOIN dbo.WorkItemDimvw WI ON
WI.EntityDimKey = C.EntityDimKey
INNER JOIN dbo.WorkItemRelatesToWorkItemFactvw AS WIRWI ON
WIRWI.WorkItemDimKey = WI.WorkItemDimKey
INNER JOIN dbo.WorkItemDimvw AS WIWI ON
WIWI.WorkItemDimKey = WIRWI.WorkItemRelatesToWorkItem_WorkItemDimKey
union
SELECT C.ID, WIWI.ID
FROM dbo.ChangeRequestDimvw C
INNER JOIN dbo.WorkItemDimvw WI ON
WI.EntityDimKey = C.EntityDimKey
INNER JOIN dbo.WorkItemRelatesToWorkItemFactvw AS WIRWI ON
WIRWI.WorkItemRelatesToWorkItem_WorkItemDimKey = WI.WorkItemDimKey
INNER JOIN dbo.WorkItemDimvw AS WIWI ON
WIWI.WorkItemDimKey = WIRWI.WorkItemDimKey
Order by C.ID
Matthew Dowst |
Blog | Twitter -
USER NAMES LIST BASED IN A QUERY
Hi
I want to create a user names list base in a result of a query.
I must give access to specific users which are in table, this table is for accesing to the oracle portal.
But for defining what users must have access I need another table which contains a field defines what users can access to the application.
How do I must do for creating this user list?
The apex application begins when I click in its link created in the Oracle portal, this action sends a parameter of the user name of the portal.
Based in the username sent, the first page in the apex application must execute a query on load and its result must redirect to the page for user valids or another page for invalid users.
For that I have thought in doing an application without authentication scheme.
Also the application must save the username for knowing what user did the last change in a table. But this username must be the same of the oracle portal user name.
Is posible create a username list in apex which be contains the same user names of the oracle portal? How to do that?
I expect your prompt reply.
Any help would be thank.
Regards.I think VPD (Virtual Private Database) and RLS (Row Level Security) are the tools to solve your problem. Take a look at them, there are cool demos on OTN too.
Andy
Maybe you are looking for
-
is it possible to buy an apple monitor for a mac book pro version 10.7.5 with Software Mac OS X Lion 10.7.5
-
I am looking to buy a NAS for home use. Here are my requirement(s): use as file storage and sharing inside home LAN. I will need to screen movie to TV from it. I would need it to be reliable. I backup my MAC locally via USB by timemachine. It seems l
-
okay so i have been trying to contact apple for days now but i was just thinking why do we have to only choose between white or black for the digitizer? would i be able to send my ipod into apple to get it customized to a different color besides that
-
Creative Cloud Set-up error 42
When attempting to download the Photoshop CC trial, I am encountering the following error shortly after running the CreativeCloudSet-Up.exe We've encountered the following issues Installer was unable to access a critical file/directory. Please try
-
Dimension Build Rule converting characters to ascii
Hi I have a dimension build rule which has been in place over a year. However every few weeks it converts some of the dimension members to ascii characters but loads with the correct alias. The next time the load runs, it tries to enter the real memb