RE: [ActiveDir] LDAP Display Name for User logged into computer
You can't do that, per se. AD doesn't track who logged in where. You'd have to turn on logon auditing and scrape the DC logs to pull that off. Alternately, there *might* be something you can poll per machine via WMI, but I don't think so. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Jones, Rick J.(Desktop Engineering) [mailto:rick.j.jones;attws.com] Sent: Thursday, November 07, 2002 6:40 PM To: [EMAIL PROTECTED] Subject: [ActiveDir] LDAP Display Name for User logged into computer What is the LDAP display name on a computer account for the user that logged into the system from that computer? What I am trying to do is pole active directory with a vbscript I have to find out the UserID of the user that last logged into the domain from that computer. Any thoughts? Rick List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Domain Controllers per users...
Title: Message You will want to check out the Executive summary on http://www.microsoft.com/technet/treeview/default.asp?url="/technet/prodtechnol/ad/windows2000/plan/bpaddsgn.asp Thanks, Chuck -Original Message-From: Gil Kirkpatrick [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 07, 2002 5:30 PMTo: '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] Domain Controllers per users... I can't imagine how one could make such a recommendation without at least taking into account the DC h/w characteristics and the network characteristics. -Original Message-From: Myrick, Todd (NIH/CIT) [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 07, 2002 11:11 AMTo: '[EMAIL PROTECTED]'Subject: [ActiveDir] Domain Controllers per users... Greetings all, Quick question, has anyone seen a KB or White paper that outlines the guideline of how many DC's you need per number of users. The old rule for NT4 was 1 BDC for every 2000 active users. I have read all the AD sizing papers etc, but just wanted to know if anyone remembered coming across this little tidbit. Thanks, Todd Myrick
RE: [ActiveDir] Domain Controllers per users...
Title: Message To be a little more specific: Deploy = Research Product Specs = Sizing Guidelines for Windows 2000 Domain Controllers and Global Catalog Server Then the Executive Summary. Sorry for the second e-mail. Chuck -Original Message-From: Charles Carerros Sent: Friday, November 08, 2002 8:10 AMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] Domain Controllers per users... You will want to check out the Executive summary on http://www.microsoft.com/technet/treeview/default.asp?url="/technet/prodtechnol/ad/windows2000/plan/bpaddsgn.asp Thanks, Chuck -Original Message-From: Gil Kirkpatrick [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 07, 2002 5:30 PMTo: '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] Domain Controllers per users... I can't imagine how one could make such a recommendation without at least taking into account the DC h/w characteristics and the network characteristics. -Original Message-From: Myrick, Todd (NIH/CIT) [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 07, 2002 11:11 AMTo: '[EMAIL PROTECTED]'Subject: [ActiveDir] Domain Controllers per users... Greetings all, Quick question, has anyone seen a KB or White paper that outlines the guideline of how many DC's you need per number of users. The old rule for NT4 was 1 BDC for every 2000 active users. I have read all the AD sizing papers etc, but just wanted to know if anyone remembered coming across this little tidbit. Thanks, Todd Myrick
RE: [ActiveDir] Domain Controllers per users...
Yeah - I base all technical recommendations on Executive Summaries. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Charles Carerros [mailto:ccarerros;cie.uwm.edu] Sent: Friday, November 08, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... You will want to check out the Executive summary on http://www.microsoft.com/technet/treeview/default.asp?url=/tec hnet/prodtechnol/ad/windows2000/plan/bpaddsgn.as p Thanks, Chuck -Original Message- From: Gil Kirkpatrick [mailto:gilk;netpro.com] Sent: Thursday, November 07, 2002 5:30 PM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... I can't imagine how one could make such a recommendation without at least taking into account the DC h/w characteristics and the network characteristics. -Original Message- From: Myrick, Todd (NIH/CIT) [mailto:myrickt;mail.nih.gov] Sent: Thursday, November 07, 2002 11:11 AM To: '[EMAIL PROTECTED]' Subject: [ActiveDir] Domain Controllers per users... Greetings all, Quick question, has anyone seen a KB or White paper that outlines the guideline of how many DC's you need per number of users. The old rule for NT4 was 1 BDC for every 2000 active users. I have read all the AD sizing papers etc, but just wanted to know if anyone remembered coming across this little tidbit. Thanks, Todd Myrick List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Domain Controllers per users...
HAHAHAHA - now THAT was funny! :) -Original Message- From: Roger Seielstad [mailto:roger.seielstad;inovis.com] Sent: Friday, November 08, 2002 9:19 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... Yeah - I base all technical recommendations on Executive Summaries. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Charles Carerros [mailto:ccarerros;cie.uwm.edu] Sent: Friday, November 08, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... You will want to check out the Executive summary on http://www.microsoft.com/technet/treeview/default.asp?url=/tec hnet/prodtechnol/ad/windows2000/plan/bpaddsgn.as p Thanks, Chuck -Original Message- From: Gil Kirkpatrick [mailto:gilk;netpro.com] Sent: Thursday, November 07, 2002 5:30 PM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... I can't imagine how one could make such a recommendation without at least taking into account the DC h/w characteristics and the network characteristics. -Original Message- From: Myrick, Todd (NIH/CIT) [mailto:myrickt;mail.nih.gov] Sent: Thursday, November 07, 2002 11:11 AM To: '[EMAIL PROTECTED]' Subject: [ActiveDir] Domain Controllers per users... Greetings all, Quick question, has anyone seen a KB or White paper that outlines the guideline of how many DC's you need per number of users. The old rule for NT4 was 1 BDC for every 2000 active users. I have read all the AD sizing papers etc, but just wanted to know if anyone remembered coming across this little tidbit. Thanks, Todd Myrick List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Domain Controllers per users...
Well, If you read the real text then it will go into more detail. I was just pointing out the beginning of the document. After all there are no page and paragraph numbers on those documents. -Original Message- From: Craig Cerino [mailto:Craig_Cerino;Tiel.com] Sent: Friday, November 08, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... HAHAHAHA - now THAT was funny! :) -Original Message- From: Roger Seielstad [mailto:roger.seielstad;inovis.com] Sent: Friday, November 08, 2002 9:19 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... Yeah - I base all technical recommendations on Executive Summaries. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Charles Carerros [mailto:ccarerros;cie.uwm.edu] Sent: Friday, November 08, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... You will want to check out the Executive summary on http://www.microsoft.com/technet/treeview/default.asp?url=/tec hnet/prodtechnol/ad/windows2000/plan/bpaddsgn.as p Thanks, Chuck -Original Message- From: Gil Kirkpatrick [mailto:gilk;netpro.com] Sent: Thursday, November 07, 2002 5:30 PM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... I can't imagine how one could make such a recommendation without at least taking into account the DC h/w characteristics and the network characteristics. -Original Message- From: Myrick, Todd (NIH/CIT) [mailto:myrickt;mail.nih.gov] Sent: Thursday, November 07, 2002 11:11 AM To: '[EMAIL PROTECTED]' Subject: [ActiveDir] Domain Controllers per users... Greetings all, Quick question, has anyone seen a KB or White paper that outlines the guideline of how many DC's you need per number of users. The old rule for NT4 was 1 BDC for every 2000 active users. I have read all the AD sizing papers etc, but just wanted to know if anyone remembered coming across this little tidbit. Thanks, Todd Myrick List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Domain Controllers per users...
I believe he was just being facetious - come on - it's Friday -Original Message- From: Charles Carerros [mailto:ccarerros;cie.uwm.edu] Sent: Friday, November 08, 2002 9:45 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... Well, If you read the real text then it will go into more detail. I was just pointing out the beginning of the document. After all there are no page and paragraph numbers on those documents. -Original Message- From: Craig Cerino [mailto:Craig_Cerino;Tiel.com] Sent: Friday, November 08, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... HAHAHAHA - now THAT was funny! :) -Original Message- From: Roger Seielstad [mailto:roger.seielstad;inovis.com] Sent: Friday, November 08, 2002 9:19 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... Yeah - I base all technical recommendations on Executive Summaries. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Charles Carerros [mailto:ccarerros;cie.uwm.edu] Sent: Friday, November 08, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... You will want to check out the Executive summary on http://www.microsoft.com/technet/treeview/default.asp?url=/tec hnet/prodtechnol/ad/windows2000/plan/bpaddsgn.as p Thanks, Chuck -Original Message- From: Gil Kirkpatrick [mailto:gilk;netpro.com] Sent: Thursday, November 07, 2002 5:30 PM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... I can't imagine how one could make such a recommendation without at least taking into account the DC h/w characteristics and the network characteristics. -Original Message- From: Myrick, Todd (NIH/CIT) [mailto:myrickt;mail.nih.gov] Sent: Thursday, November 07, 2002 11:11 AM To: '[EMAIL PROTECTED]' Subject: [ActiveDir] Domain Controllers per users... Greetings all, Quick question, has anyone seen a KB or White paper that outlines the guideline of how many DC's you need per number of users. The old rule for NT4 was 1 BDC for every 2000 active users. I have read all the AD sizing papers etc, but just wanted to know if anyone remembered coming across this little tidbit. Thanks, Todd Myrick List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Domain Controllers per users...
I was being facetious, but IIRC there is also a server sizer tool available for download from Microsoft. No docs required! -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Craig Cerino [mailto:Craig_Cerino;Tiel.com] Sent: Friday, November 08, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... I believe he was just being facetious - come on - it's Friday -Original Message- From: Charles Carerros [mailto:ccarerros;cie.uwm.edu] Sent: Friday, November 08, 2002 9:45 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... Well, If you read the real text then it will go into more detail. I was just pointing out the beginning of the document. After all there are no page and paragraph numbers on those documents. -Original Message- From: Craig Cerino [mailto:Craig_Cerino;Tiel.com] Sent: Friday, November 08, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... HAHAHAHA - now THAT was funny! :) -Original Message- From: Roger Seielstad [mailto:roger.seielstad;inovis.com] Sent: Friday, November 08, 2002 9:19 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... Yeah - I base all technical recommendations on Executive Summaries. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Charles Carerros [mailto:ccarerros;cie.uwm.edu] Sent: Friday, November 08, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Domain Controllers per users... You will want to check out the Executive summary on http://www.microsoft.com/technet/treeview/default.asp?url=/tec hnet/prodtechnol/ad/windows2000/plan/bpaddsgn.as p Thanks, Chuck -Original Message- From: Gil Kirkpatrick [mailto:gilk;netpro.com] Sent: Thursday, November 07, 2002 5:30 PM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Domain Controllers per users... I can't imagine how one could make such a recommendation without at least taking into account the DC h/w characteristics and the network characteristics. -Original Message- From: Myrick, Todd (NIH/CIT) [mailto:myrickt;mail.nih.gov] Sent: Thursday, November 07, 2002 11:11 AM To: '[EMAIL PROTECTED]' Subject: [ActiveDir] Domain Controllers per users... Greetings all, Quick question, has anyone seen a KB or White paper that outlines the guideline of how many DC's you need per number of users. The old rule for NT4 was 1 BDC for every 2000 active users. I have read all the AD sizing papers etc, but just wanted to know if anyone remembered coming across this little tidbit. Thanks, Todd Myrick List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir% 40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
[ActiveDir] Switching Mixed mode to Native mode
All, Are there any important gotchas that anyone has experienced making the change from W2K Mixed to Native mode? I expect that security templates on DCs will change and I'm wondering if there's any other potential issues I should be aware of regarding DNS, DHCP, authentication, WINS, ... etc. I'm in the process of doing some additional 'homework' now for a scheduled change in 2-3 weeks. Any links or comments would be appreciated. Dave Kinnamon Network Administrator ETC International List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] LDAP Display Name for User logged into computer
Last logon is kept in the registry on the local machine, unless your policies prevent that being kept, as DefaultUserName. Take a look @ HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName. You could write it to a log as part of the login script, along with current time and computer name, or you could poll it via script @ intervals using a txt file with the names of the systems you want to monitor. Hope this helps! John A. Bjelke UNISYS Systems administrator Supporting AFRL Kirtland AFB 505.853.6774 [EMAIL PROTECTED] The contents of this Email communication are confidential to the addressee. If you are not the intended recipient you may not disclose or distribute this communication in any form but should immediately contact the Sender. The information, images, documents and views expressed in this Email are personal to the Sender and do not expressly or implicitly represent official positions and policies of Unisys Federal Systems or it's subsidiaries and no authority exists on behalf of Unisys to make any agreements, representations or other binding commitment by means of Email. -Original Message- From: Roger Seielstad [mailto:roger.seielstad;inovis.com] Sent: Friday, November 08, 2002 5:09 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] LDAP Display Name for User logged into computer You can't do that, per se. AD doesn't track who logged in where. You'd have to turn on logon auditing and scrape the DC logs to pull that off. Alternately, there *might* be something you can poll per machine via WMI, but I don't think so. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Jones, Rick J.(Desktop Engineering) [mailto:rick.j.jones;attws.com] Sent: Thursday, November 07, 2002 6:40 PM To: [EMAIL PROTECTED] Subject: [ActiveDir] LDAP Display Name for User logged into computer What is the LDAP display name on a computer account for the user that logged into the system from that computer? What I am trying to do is pole active directory with a vbscript I have to find out the UserID of the user that last logged into the domain from that computer. Any thoughts? Rick List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Switching Mixed mode to Native mode
The BDCs will all be gone. Yahoo! Upromote worked great. -Original Message- From: Bjelke John A Contr AFRL/VSIO [mailto:John.Bjelke;kirtland.af.mil] Sent: Friday, November 08, 2002 9:37 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] Switching Mixed mode to Native mode If you do have a lot of BDC's, you might want to look at Upromote... http://www.algintech.com/UTools/UPromote.asp -Original Message- From: Jimmy Andersson [mailto:jimmy;mvps.org] Sent: Friday, November 08, 2002 8:31 AM To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Switching Mixed mode to Native mode Basically - as long as you don't have any BDCs you should be ok. Regards, /Jimmy -- Jimmy Andersson, Q Advice AB Microsoft MVP - Active Directory Whistler Tech Beta Program Member Windows Pre-release Community Member -Original Message- From: [EMAIL PROTECTED] [mailto:ActiveDir-owner;mail.activedir.org] On Behalf Of Dave Kinnamon Sent: den 8 november 2002 15:56 To: '[EMAIL PROTECTED]' Subject: [ActiveDir] Switching Mixed mode to Native mode All, Are there any important gotchas that anyone has experienced making the change from W2K Mixed to Native mode? I expect that security templates on DCs will change and I'm wondering if there's any other potential issues I should be aware of regarding DNS, DHCP, authentication, WINS, ... etc. I'm in the process of doing some additional 'homework' now for a scheduled change in 2-3 weeks. Any links or comments would be appreciated. Dave Kinnamon Network Administrator ETC International List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
Re: [ActiveDir] Pruning printers from AD
Well, you can do it manually, but removing the old printQueue objects using ADSIEdit or LDP. How long have you waited? The pruning service is governed by Group Policy settings. The default setting is that the service will try to check the printer availability (on the print server) three times at 8 hour intervals, after which it removes the printer objects from AD. Check your GPO settings and also check the Spoolsv.exe process is running on at least one DC in your domain. Tony -- Original Message -- From: =?iso-8859-2?Q?Lev_Zden=ECk?= [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 8 Nov 2002 16:50:53 +0100 Hello evr, I had to reinstall my print server (W2K) which was a member server of my AD domain. After that I installed all my printers to the reinstalled print server. Now when I am searching printers in AD there are old and new one. How Can I prune those old printers from AD THX ZL List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Pruning printers from AD
I have waited 7 days. The spool.exe is running and new printers are function. By default is printer pruning turned on or off ? Zdenek -Original Message- From: Tony Murray [mailto:[EMAIL PROTECTED]] Sent: Friday, November 08, 2002 4:57 PM To: [EMAIL PROTECTED] Subject: Re: [ActiveDir] Pruning printers from AD Well, you can do it manually, but removing the old printQueue objects using ADSIEdit or LDP. How long have you waited? The pruning service is governed by Group Policy settings. The default setting is that the service will try to check the printer availability (on the print server) three times at 8 hour intervals, after which it removes the printer objects from AD. Check your GPO settings and also check the Spoolsv.exe process is running on at least one DC in your domain. Tony -- Original Message -- From: =?iso-8859-2?Q?Lev_Zden=ECk?= [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 8 Nov 2002 16:50:53 +0100 Hello evr, I had to reinstall my print server (W2K) which was a member server of my AD domain. After that I installed all my printers to the reinstalled print server. Now when I am searching printers in AD there are old and new one. How Can I prune those old printers from AD THX ZL List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Pruning printers from AD
I have tried to find printers object by ADSI edit but without success. Where it is located ? Thx Z. -Original Message- From: Tony Murray [mailto:[EMAIL PROTECTED]] Sent: Friday, November 08, 2002 4:57 PM To: [EMAIL PROTECTED] Subject: Re: [ActiveDir] Pruning printers from AD Well, you can do it manually, but removing the old printQueue objects using ADSIEdit or LDP. How long have you waited? The pruning service is governed by Group Policy settings. The default setting is that the service will try to check the printer availability (on the print server) three times at 8 hour intervals, after which it removes the printer objects from AD. Check your GPO settings and also check the Spoolsv.exe process is running on at least one DC in your domain. Tony -- Original Message -- From: =?iso-8859-2?Q?Lev_Zden=ECk?= [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 8 Nov 2002 16:50:53 +0100 Hello evr, I had to reinstall my print server (W2K) which was a member server of my AD domain. After that I installed all my printers to the reinstalled print server. Now when I am searching printers in AD there are old and new one. How Can I prune those old printers from AD THX ZL List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Pruning printers from AD
Title: Message Printer Pruner May Not Remove Printer Queue Objects from Active Directory: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q246174 If you'd like to see the printer objects: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q235925 Regards, /Jimmy --Jimmy Andersson, Q Advice ABMicrosoft MVP - Active DirectoryWhistler Tech Beta Program MemberWindows Pre-release Community Member -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Lev ZdenìkSent: den 8 november 2002 16:51To: [EMAIL PROTECTED]Subject: [ActiveDir] Pruning printers from AD Hello evr, I had to reinstall my print server (W2K) which was a member server of my AD domain. After that I installed all my printers to the reinstalled print server. Now when I am searching printers in AD there are old and new one. How Can I prune those old printers from AD THX ZL
RE: [ActiveDir] LDAP Display Name for User logged into computer
BTW, you can also pull the last domain name logged into from the DefaultDomainName under that same reg key. You might need to do this, judging from your description of what you're trying to do. Otherwise, you may drive yourself nuts trying to match local account logins with non-existant DC records :^) -JB -Original Message- From: Roger Seielstad [mailto:roger.seielstad;inovis.com] Sent: Friday, November 08, 2002 5:09 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] LDAP Display Name for User logged into computer You can't do that, per se. AD doesn't track who logged in where. You'd have to turn on logon auditing and scrape the DC logs to pull that off. Alternately, there *might* be something you can poll per machine via WMI, but I don't think so. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Jones, Rick J.(Desktop Engineering) [mailto:rick.j.jones;attws.com] Sent: Thursday, November 07, 2002 6:40 PM To: [EMAIL PROTECTED] Subject: [ActiveDir] LDAP Display Name for User logged into computer What is the LDAP display name on a computer account for the user that logged into the system from that computer? What I am trying to do is pole active directory with a vbscript I have to find out the UserID of the user that last logged into the domain from that computer. Any thoughts? Rick List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Pruning printers from AD
Title: Message THX Zdenek -Original Message-From: Jimmy Andersson [mailto:[EMAIL PROTECTED]]Sent: Friday, November 08, 2002 5:11 PMTo: [EMAIL PROTECTED]Subject: RE: [ActiveDir] Pruning printers from AD Printer Pruner May Not Remove Printer Queue Objects from Active Directory: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q246174 If you'd like to see the printer objects: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q235925 Regards, /Jimmy --Jimmy Andersson, Q Advice ABMicrosoft MVP - Active DirectoryWhistler Tech Beta Program MemberWindows Pre-release Community Member -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Lev ZdenìkSent: den 8 november 2002 16:51To: [EMAIL PROTECTED]Subject: [ActiveDir] Pruning printers from AD Hello evr, I had to reinstall my print server (W2K) which was a member server of my AD domain. After that I installed all my printers to the reinstalled print server. Now when I am searching printers in AD there are old and new one. How Can I prune those old printers from AD THX ZL
RE: [ActiveDir] Switching Mixed mode to Native mode
Yeah. I find it important to make sure that: A) I don't have any remaining NT4 BDCs in the domain. B) I have a nice, cold beverage of my choosing in my hand at the time. -- Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA -Original Message- From: Dave Kinnamon [mailto:dkinnamon;etcconnect.com] Sent: Friday, November 08, 2002 9:56 AM To: '[EMAIL PROTECTED]' Subject: [ActiveDir] Switching Mixed mode to Native mode All, Are there any important gotchas that anyone has experienced making the change from W2K Mixed to Native mode? I expect that security templates on DCs will change and I'm wondering if there's any other potential issues I should be aware of regarding DNS, DHCP, authentication, WINS, ... etc. I'm in the process of doing some additional 'homework' now for a scheduled change in 2-3 weeks. Any links or comments would be appreciated. Dave Kinnamon Network Administrator ETC International List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir% 40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] LDAP Display Name for User logged into computer
Title: Message Hi Why not grab it with a loginscript and save it on the workstation somewhere - file or registry key until you need to collect it? Check to see if it's a domain user then search AD for the user and save the result. You could even skip checking to see if they're a domain user by only associating the login script with domain users... HTH dave -Original Message-From: Jones, Rick J.(Desktop Engineering) [mailto:[EMAIL PROTECTED]] Sent: 07 November 2002 23:40To: [EMAIL PROTECTED]Subject: [ActiveDir] LDAP Display Name for User logged into computer What is the LDAP display name on a computer account for the user that logged into the system from that computer? What I am trying to do is pole active directory with a vbscript I have to find out the UserID of the user that last logged into the domain from that computer. Any thoughts? Rick
[ActiveDir] DCPromo w/ Answer File
We are processing some 230 DCs for demotion over the weekend. To facilitate this, weve created an answer file that specifies that the ReplicationSourceDC is to use during the demotion. But, during the demotion, were seeing it not use the named source. Any suggestions? Larry A. Duncan, MCSA/MCSE Directory Services Engineer/ Systems Management Consultant [EMAIL PROTECTED] ph. 615.598.0241
RE: [ActiveDir] Pruning printers from AD
If you'd like to see the printer objects: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q235925 Regards, /Jimmy -- Jimmy Andersson, Q Advice AB Microsoft MVP - Active Directory Whistler Tech Beta Program Member Windows Pre-release Community Member -Original Message- From: [EMAIL PROTECTED] [mailto:ActiveDir-owner;mail.activedir.org] On Behalf Of Lev Zdenìk Sent: den 8 november 2002 17:06 To: [EMAIL PROTECTED] Subject: RE: [ActiveDir] Pruning printers from AD I have tried to find printers object by ADSI edit but without success. Where it is located ? Thx Z. -Original Message- From: Tony Murray [mailto:tony;mail.activedir.org] Sent: Friday, November 08, 2002 4:57 PM To: [EMAIL PROTECTED] Subject: Re: [ActiveDir] Pruning printers from AD Well, you can do it manually, but removing the old printQueue objects using ADSIEdit or LDP. How long have you waited? The pruning service is governed by Group Policy settings. The default setting is that the service will try to check the printer availability (on the print server) three times at 8 hour intervals, after which it removes the printer objects from AD. Check your GPO settings and also check the Spoolsv.exe process is running on at least one DC in your domain. Tony -- Original Message -- From: =?iso-8859-2?Q?Lev_Zden=ECk?= [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Fri, 8 Nov 2002 16:50:53 +0100 Hello evr, I had to reinstall my print server (W2K) which was a member server of my AD domain. After that I installed all my printers to the reinstalled print server. Now when I am searching printers in AD there are old and new one. How Can I prune those old printers from AD THX ZL List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
RE: [ActiveDir] Setting up defrag in the Scheduled tasks
Title: Message The official answer is you buy the full diskeeper product (win2k's defrag is really diskeeper lite...). I assumecrippling defrag in this manner was the deal that Executive software made with MS so that they could include it. That said, I do seem to remember coming across a web site that showed how to automate defragmenter. Try your favorite search engine. -Original Message-From: Christopher Hummert [mailto:[EMAIL PROTECTED]] Sent: Friday, November 08, 2002 11:21 AMTo: [EMAIL PROTECTED]Subject: [ActiveDir] Setting up defrag in the Scheduled tasks What's the command switch that I need to do to set up defrag to be a Scheduled task in windows 2000?
RE: [ActiveDir] Setting up defrag in the Scheduled tasks
Title: Message I've seen scripts that allow you to schedule w2k's defrag but it was pretty much scripting the gui, sending clicks to the screen through script. Very unreliable stuff as far as I'm concerned. -Original Message-From: Ken Cornetet [mailto:[EMAIL PROTECTED]]Sent: Friday, November 08, 2002 11:09 AMTo: '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] Setting up defrag in the Scheduled tasks The official answer is you buy the full diskeeper product (win2k's defrag is really diskeeper lite...). I assumecrippling defrag in this manner was the deal that Executive software made with MS so that they could include it. That said, I do seem to remember coming across a web site that showed how to automate defragmenter. Try your favorite search engine. -Original Message-From: Christopher Hummert [mailto:[EMAIL PROTECTED]] Sent: Friday, November 08, 2002 11:21 AMTo: [EMAIL PROTECTED]Subject: [ActiveDir] Setting up defrag in the Scheduled tasks What's the command switch that I need to do to set up defrag to be a Scheduled task in windows 2000?
RE: [ActiveDir] LDAP Display Name for User logged into computer
Title: Message I was able to find an example of a VBScript of how to tell who is logged into a remote system via WMI. It requires that the system be online of course but this at least lets me hit just this small list of machines. Rick J. Jones -Original Message- From: Thornley, Dave H [mailto:[EMAIL PROTECTED]] Sent: Friday, November 08, 2002 8:20 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] LDAP Display Name for User logged into computer Hi Why not grab it with a loginscript and save it on the workstation somewhere - file or registry key until you need to collect it? Check to see if it's a domain user then search AD for the user and save the result. You could even skip checking to see if they're a domain user by only associating the login script with domain users... HTH dave -Original Message- From: Jones, Rick J.(Desktop Engineering) [mailto:[EMAIL PROTECTED]] Sent: 07 November 2002 23:40 To: [EMAIL PROTECTED] Subject: [ActiveDir] LDAP Display Name for User logged into computer What is the LDAP display name on a computer account for the user that logged into the system from that computer? What I am trying to do is pole active directory with a vbscript I have to find out the UserID of the user that last logged into the domain from that computer. Any thoughts? Rick
Re: [ActiveDir] Setting up defrag in the Scheduled tasks
Title: Message You might try this out: http://www.morphasys.com/autodefrag/ AutoDeFrag is a launcher for the standard defragmenter built into Windows 2000. The standard defragmenter does not support the ability to be scheduled, and therefore must be manually launched when required, once for each fixed disk in your system. AutoDeFrag works around this limitation and allows the Windows 2000 Task Scheduler to be used to schedule the defragmenter. Hope that helps Rob 2000 Task Scheduler to be used to schedule the defragmenter. nd allows the Windows 2000 Task Scheduler to be used to schedule the defragmenter. 2000 Task Scheduler to be used to schedule the defragmenter. - Original Message - From: Damon R. Erickson To: [EMAIL PROTECTED] Sent: Friday, November 08, 2002 11:14 AM Subject: RE: [ActiveDir] Setting up defrag in the Scheduled tasks I've seen scripts that allow you to schedule w2k's defrag but it was pretty much scripting the gui, sending clicks to the screen through script. Very unreliable stuff as far as I'm concerned. -Original Message-From: Ken Cornetet [mailto:[EMAIL PROTECTED]]Sent: Friday, November 08, 2002 11:09 AMTo: '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] Setting up defrag in the Scheduled tasks The official answer is you buy the full diskeeper product (win2k's defrag is really diskeeper lite...). I assumecrippling defrag in this manner was the deal that Executive software made with MS so that they could include it. That said, I do seem to remember coming across a web site that showed how to automate defragmenter. Try your favorite search engine. -Original Message-From: Christopher Hummert [mailto:[EMAIL PROTECTED]] Sent: Friday, November 08, 2002 11:21 AMTo: [EMAIL PROTECTED]Subject: [ActiveDir] Setting up defrag in the Scheduled tasks What's the command switch that I need to do to set up defrag to be a Scheduled task in windows 2000?
[ActiveDir] OT: Receiving Posts out of order
Sorry for the way off topic but I seem to receive some responses before I get the original posts. Hours apart. Also sometimes when I post I dont see the post for a few hours. Is anyone else experiencing this and any suggestions? Thanks Sent at 1:20 PM 11/8/02
[ActiveDir] Password change issue
Title: Message I can change anyone's password from one of the DC's. However, no of our users can change their password from a client machine. It keeps saying that it is unable to change password at this time. Anyone know why it would do this? Replication is fine and all FSMO roles are up and talking. Chris Flesher The University of Chicago NSIT/DCS 1-773-834-8477
RE: [ActiveDir] Setting up defrag in the Scheduled tasks
Title: Message I've been using AutoDefrag for the past couple of months and it seems to work pretty well. http://www.morphasys.com/autodefrag/ -Original Message-From: Ken Cornetet [mailto:[EMAIL PROTECTED]]Sent: Friday, November 08, 2002 9:09 AMTo: '[EMAIL PROTECTED]'Subject: RE: [ActiveDir] Setting up defrag in the Scheduled tasks The official answer is you buy the full diskeeper product (win2k's defrag is really diskeeper lite...). I assumecrippling defrag in this manner was the deal that Executive software made with MS so that they could include it. That said, I do seem to remember coming across a web site that showed how to automate defragmenter. Try your favorite search engine. -Original Message-From: Christopher Hummert [mailto:[EMAIL PROTECTED]] Sent: Friday, November 08, 2002 11:21 AMTo: [EMAIL PROTECTED]Subject: [ActiveDir] Setting up defrag in the Scheduled tasks What's the command switch that I need to do to set up defrag to be a Scheduled task in windows 2000?
RE: [ActiveDir] Setting up defrag in the Scheduled tasks
Title: Message Try this and you won't need to use switches. Works like a champ!!! http://www.morphasys.com/autodefrag/ -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christopher HummertSent: Friday, November 08, 2002 8:21 AMTo: [EMAIL PROTECTED]Subject: [ActiveDir] Setting up defrag in the Scheduled tasks What's the command switch that I need to do to set up defrag to be a Scheduled task in windows 2000?
RE: [ActiveDir] OT: Receiving Posts out of order
Title: Message I see the same weird thing Regards, /Jimmy --Jimmy Andersson, Q Advice ABMicrosoft MVP - Active DirectoryWhistler Tech Beta Program MemberWindows Pre-release Community Member -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Sullivan, KevinSent: den 8 november 2002 19:20To: [EMAIL PROTECTED]Subject: [ActiveDir] OT: Receiving Posts out of order Sorry for the way off topic but I seem to receive some responses before I get the original posts. Hours apart. Also sometimes when I post I dont see the post for a few hours. Is anyone else experiencing this and any suggestions? Thanks Sent at 1:20 PM 11/8/02
RE: [ActiveDir] Psched error?
Are you running NetIQ AppManager agents on this box by chance? -Original Message- From: Chris J. Popp [mailto:chris.popp;sharpeengineering.com] Sent: Thursday, November 07, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [ActiveDir] Psched error? I am constantly getting the following in Win2K SP3's App Log. Time and date changes (of course) when it occurs: Event Type: Error Event Source: Perflib Event Category: None Event ID: 1008 Date: 11/7/2002 Time: 11:32:18 AM User: N/A Computer: PACKERS Description: The Open Procedure for service PSched in DLL C:\WINNT\system32\pschdprf.dll failed. Performance data for this service will not be available. Status code returned is data DWORD 0. Data: : 02 00 00 00 Any ideas? MS's site came up blank on this. Thanks, Chris List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ: http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
Re: [ActiveDir] Setting up defrag in the Scheduled tasks
Title: Message You might try this out: http://www.morphasys.com/autodefrag/ AutoDeFrag is a launcher for the standard defragmenter built into Windows 2000. The standard defragmenter does not support the ability to be scheduled, and therefore must be manually launched when required, once for each fixed disk in your system. AutoDeFrag works around this limitation and allows the Windows 2000 Task Scheduler to be used to schedule the defragmenter. Hope that helps Rob - Original Message - From: Christopher Hummert To: [EMAIL PROTECTED] Sent: Friday, November 08, 2002 10:21 AM Subject: [ActiveDir] Setting up defrag in the Scheduled tasks What's the command switch that I need to do to set up defrag to be a Scheduled task in windows 2000?
RE: [ActiveDir] Password change issue
Title: Message Also if they are legacy (9x) clients make sure they have the DSClient setup. This will allow them to change PW at any DC. Without it they need to be talking to the PDC emulator. Kevin -Original Message- From: cflesher [mailto:[EMAIL PROTECTED]] Sent: Friday, November 08, 2002 1:25 PM To: [EMAIL PROTECTED] Subject: [ActiveDir] Password change issue I can change anyone's password from one of the DC's. However, no of our users can change their password from a client machine. It keeps saying that it is unable to change password at this time. Anyone know why it would do this? Replication is fine and all FSMO roles are up and talking. Chris Flesher The University of Chicago NSIT/DCS 1-773-834-8477
RE: [ActiveDir] DCPromo w/ Answer File RESOLVED
Q223757. We were apparently using a value (ReplicationSourceDC in this case) that does not get read during a demotion, only during promotions. Larry A. Duncan, MCSA/MCSE Directory Services Engineer/ Systems Management Consultant [EMAIL PROTECTED] ph. 615.598.0241 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Larry A. Duncan Sent: Friday, November 08, 2002 10:31 AM To: [EMAIL PROTECTED] Subject: [ActiveDir] DCPromo w/ Answer File We are processing some 230 DCs for demotion over the weekend. To facilitate this, weve created an answer file that specifies that the ReplicationSourceDC is to use during the demotion. But, during the demotion, were seeing it not use the named source. Any suggestions? Larry A. Duncan, MCSA/MCSE Directory Services Engineer/ Systems Management Consultant [EMAIL PROTECTED] ph. 615.598.0241
RE: [ActiveDir] LDAP Display Name for User logged into computer
Title: Message Someone asked for the script; Here it is in its full glory. I took a base script that takes a list of computer names, you merely drop the text file onto the script and it will process the entire thing with an output file. Beginning --- Option Explicit 'The purpose of this VBScript is to query a computer and tell whom is logged into it. ' ' The Script will take an entire list of computers (drop the list onto the script) ' and produce a new file having (WHOLOGGEDIN) before the . in the name. ' ' If you double click the script, it is assumed you want to look up just 1 computer name and query you for the info Public Const ADS_SCOPE_BASE = 0 Public Const ADS_SCOPE_ONELEVEL = 1 Public Const ADS_SCOPE_SUBTREE = 2 Dim con, com, DNPath, strComputer, rs, colComputer Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim objFSO, objInputFile, objOutputFile, objWMIService, objComputer Dim InputFileName, OutputFileName, SingleComputerName Dim arrayInputFileDATA, strInputLine Dim RAWInputFileName, periodPlacement 'Open the FileSystem up Set objFSO = CreateObject(Scripting.FileSystemObject) if WScript.Arguments.Count = 0 then SingleComputerName = InputBox (You did not provide a file with a list of computers _ to look for so I assume you want to lookup just 1 computer. vbcrlf vbcrlf _ Please provide a single computer name to look for, , _ Single computer lookup) 'check to see if the user put nothing and exit if they did. if SingleComputerName = then msgbox Computer name is empty, can not function without it. vbcrlf _ You need to drop a file containing a list of vbcrlf _ computers onto the script OR enter a single vbcrlf _ computer name to report on., 16, No Computer Name! WScript.Quit end if 'adjust the array for single file entry redim arrayInputFileDATA(0) 'load the array with the data arrayInputFileDATA(0) = SingleComputerName else 'read the filename of the dropped source file InputFileName = WScript.Arguments(0) 'Open the OpenTextFile file for reading Set objInputFile = objFSO.OpenTextFile (InputFileName, ForReading) 'Get the raw file name of the input file RAWInputFileName = objFSO.GetFileName(InputFileName) 'Find the period in the file name periodPlacement = instrRev (RAWInputFileName, .) 'Check to make sure we have a period and exit if there isn't one If periodPlacement = 0 then msgbox The input file name has to have a period in the file name vbcrlf _ or else the output file name can not be properly named. Wscript.Quit end if OutputFileName = left(RAWInputFileName, periodPlacement - 1) (WHOLOGGEDIN) _ right(RAWInputFileName , len(RAWInputFileName) - periodPlacement + 1) 'Open the OutputTextFile file for output and as a new file overwriting if necessary Set objOutputFile = objFSO.OpenTextFile ( _ objFSO.GetParentFolderName(InputFileName) \ OutputFileName, _ ForWriting, True) 'Read the entire file into memory strInputLine = objInputFile.ReadAll 'Close the file objInputFile.Close 'split the entries by line arrayInputFileDATA = split (strInputLine, vbcrlf) end if 'Turn off error trapping, we will be handling errors on our own. On Error Resume Next objOutputFile.WriteLine Computer name,UserID 'Go through each computer name 1 at a time For Each strComputer in arrayInputFileDATA err.Clear Set objWMIService = GetObject(winmgmts:{impersonationLevel=impersonate}!\\ strComputer \root\cimv2) select case err.number Case 0 Set colComputer = objWMIService.ExecQuery(Select * from Win32_ComputerSystem) For Each objComputer in colComputer if SingleComputerName then 'This is a single computer name the user typed in so we just show it to user Msgbox Account= Trim(strComputer) USERID= objComputer.UserName else 'Write to a file the results objOutputFile.WriteLine Trim(strComputer) , objComputer.UserName end if Next case 462 if SingleComputerName then 'This is a single computer name the user typed in so we just show it to user Msgbox Account= Trim(strComputer) is offline. else 'Write to a file the results objOutputFile.WriteLine Trim(strComputer) ,offline end if Case else msgbox Error Number : err.number vbcrlf _ Error Description: err.Description wscript.quit end select Next 'Close the open files we have objOutputFile.Close msgbox Script Completed Wscript.Quit --- End Rick J. Jones -Original Message- From: Jones, Rick J.(Desktop Engineering) Sent: Friday, November 08, 2002 9:44 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] LDAP Display Name for User logged into computer I was able to find an example of a VBScript of how to tell who is logged into a remote system via WMI. It requires that the system be
[ActiveDir] assign printers to users via group policy
Title: Message Does anyone know if it is possible to assign printers to users via group policy?I am already publishing them in AD, but the user has to install the printer they want to use manually at the moment. (By clicking on the share name) If not with GP, can anyone give me a simple script?