Home | Download | Demo | Feature list | Premium users | Support | Knowledgebase
How to fix WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
The network path was not found - The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
How to configure Windows Vista clients.
How to configure the windows firewall using group policies.
   
Welcome Guest Search | Active Topics | Members | Log In | Register

Organize computers by OU Options
ejensen
Posted: Friday, May 09, 2008 4:16:31 PM
Rank: Freeware Member
Groups: Member

Joined: 5/2/2008
Posts: 26
Location: Ohio, USA
This would be "the cats ass" if you could do this. On the screen that shows all the computers in a particular domain, if there was a way to organize them into what OU they are in. Even if that was a manual process, it would be very handy. Maybe a rules processor would work, we name our computers by department (i.e. FTLAB-A would be a LAB computer).
merwinb
Posted: Wednesday, June 04, 2008 8:17:52 PM
Rank: Freeware user
Groups: Member

Joined: 6/4/2008
Posts: 2
Location: USA
ejensen wrote:
This would be "the cats ass" if you could do this. On the screen that shows all the computers in a particular domain, if there was a way to organize them into what OU they are in. Even if that was a manual process, it would be very handy. Maybe a rules processor would work, we name our computers by department (i.e. FTLAB-A would be a LAB computer).


This would indeed be "the cat's ass" and my team would use it on a daily basis.

-B
rmeleiro
Posted: Thursday, June 05, 2008 3:27:52 AM

Rank: Premium user
Groups: Member , Premium Users

Joined: 6/4/2008
Posts: 3
Location: Portugal
We have been using Lansweeper for a couple of months and I really need to congratulate Geert Moernaut for such a great job. Necessity is the mother of al inventions, and we had to come up with a way of organizing our Lansweeper collected machines via OU. We've constructed a simple report which I'm sharing with you - eventually it will help. It is based on version 3.1.
(Only tested it on an AD Domain with Windows XP machines or superior and all examples verified on Microsoft SQL Server 2005).

Steps to reproduce:

1. On the management console, move to Configuration and Scanned Registry Keys.
2. Add the following key to HKLM: SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine
3. Use Distinguished-Name as RegValue.
4. Create a new view (in this example, it is named web30FirstOU):

CREATE VIEW web30FirstOU
AS
SELECT SUBSTRING(Value, CHARINDEX('=', Value, CHARINDEX('=', Value, 1) + 1) + 1,
CHARINDEX('=', Value, CHARINDEX('=', Value, CHARINDEX('=', Value, 1) + 1) + 1)
- CHARINDEX('=', Value, CHARINDEX('=', Value, 1) + 1) - 4) AS FirstOU, Computername
FROM tblRegistry
WHERE (Valuename = 'Distinguished-Name') AND
(Regkey = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine')

(This will create a view with two simple columns - computername and FirstOU, based on string delimiters from the AD DN (Distinguished-Name); may not be used without changes on multiple level OUs and definitely does not work on W2K)

5. Create a new view (or report) named web30OUComputers (again, just an example)

CREATE VIEW web30OUComputers
AS
SELECT tblComputers.Domain, web30FirstOU.FirstOU, tblComputers.Computername, tblADusers.Displayname, tblComputers.Lastseen,
tblComputersystem.Manufacturer, tblComputersystem.Model
FROM tblComputers INNER JOIN
tblComputersystem ON tblComputers.Computername = tblComputersystem.Computername INNER JOIN
tblADusers ON tblComputers.Username = tblADusers.Username LEFT OUTER JOIN
web30FirstOU ON tblComputers.Computername = web30FirstOU.Computername

6. Place the web30OUComputers view/report wherever you need it to be.
7. Should you need to reflect any changes made on AD, just logoff/logon, restart, wait for Group Policy to refresh or do a gpupdate /force. Just do not forget to rerun lsclient
8. Et voilà, a simple report with all your computers organized(able) by Active Directory OUs.

Just a contribution...
Geert, keep up the good work.
nilesf
Posted: Tuesday, July 22, 2008 8:04:56 PM
Rank: Freeware Advanced Member
Groups: Member

Joined: 1/21/2008
Posts: 43
Location: USA
rmeleiro,

In the following step where and how is this done?

"6. Place the web30OUComputers view/report wherever you need it to be"

Where will I find this view in the Lansweeper web site?




Thanks,
Niles
rmeleiro
Posted: Thursday, August 07, 2008 1:30:54 PM

Rank: Premium user
Groups: Member , Premium Users

Joined: 6/4/2008
Posts: 3
Location: Portugal
Niles, the view I mentioned is the one being created, so you'll only find it once it's done. The "place...wherever" means that, once created, that view (whatever the name is) should be placed on the Report tables on Lansweeper and referred to by LSManage - standard report creation procedure.
Regards

Rui Meleiro
ueteam
Posted: Tuesday, November 18, 2008 1:56:15 PM

Rank: Premium user
Groups: Member , Premium Users

Joined: 11/11/2008
Posts: 10
Like Niles, I'm missing the last step (6. Place the view)? The views are created, but not sure what to do next.
taeratrin
Posted: Tuesday, November 18, 2008 10:20:28 PM
Rank: Freeware Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 52
Nilesf and ueteam : In the tsysreports table, add a new record with web30OUComputers in the first field and a short description in the second field. This will add it to the available reports.

Unfortunately, it doesn't seem to be working. It's not showing all of the computers, and the FirstOU field is blank on all but one.

Edit : Nevermind. They're slowly filling in. Forgot they need to go through a reboot to get the info.
ESIT
Posted: Wednesday, December 03, 2008 8:59:25 PM

Rank: Premium user
Groups: Member , Premium Users

Joined: 11/14/2008
Posts: 9
When you say create a new view, how exactly do you go about doing that?

Through lsbuilder?

I really need this ability.

Thanks
ESIT
Posted: Wednesday, December 03, 2008 9:48:34 PM

Rank: Premium user
Groups: Member , Premium Users

Joined: 11/14/2008
Posts: 9
Very strange, I see the views in SQL, but not in the report builder?
Lansweeper
Posted: Friday, December 05, 2008 2:08:02 PM

Rank: Administration
Groups: Administration

Joined: 2/10/2005
Posts: 1,451
Location: Hamme Belgium
ESIT wrote:
Very strange, I see the views in SQL, but not in the report builder?

The report builder only shows views starting with "web30rep" (so it does not interfere with your custom created views)
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.

   
Quick links: Download - Premium users - Support 
Copyright 2004 - 2008 © Geert Moernaut - Hemoco bvba - All rights reserved