<![CDATA[Article Comments for Ethan Wilansky]]>http://www.windowsitpro.com/authors/author/author/5040629/rsscomment/5040629en-USSun, 27 May 2012 03:32:10 GMTSun, 27 May 2012 03:32:10 GMTQ: I need to change a property bag value that appears at the SharePoint list level. I understand that the SharePoint list doesn’t contain a Properties collection. How could this have happened, and how can I change the value for an existing list?http://www.windowsitpro.com/article/sharepoint/change-property-bag-value-sharepoint-list--141581#commentsAnchorFri, 20 Jan 2012 17:10:08 GMT
I think I got them. Let me know if I missed some.]]>
Caroline MarwitzFri, 20 Jan 2012 17:10:08 GMThttp://www.windowsitpro.com/article/sharepoint/change-property-bag-value-sharepoint-list--141581#commentsAnchor
Q: I need to change a property bag value that appears at the SharePoint list level. I understand that the SharePoint list doesn’t contain a Properties collection. How could this have happened, and how can I change the value for an existing list?http://www.windowsitpro.com/article/sharepoint/change-property-bag-value-sharepoint-list--141581#commentsAnchorSun, 15 Jan 2012 17:28:09 GMT
Right you are, Randy. I'll ask Penton to update the article to change $root.Properties.Update() to $root.Update(). Ethan]]>
EthanWSun, 15 Jan 2012 17:28:09 GMThttp://www.windowsitpro.com/article/sharepoint/change-property-bag-value-sharepoint-list--141581#commentsAnchor
Q: I need to change a property bag value that appears at the SharePoint list level. I understand that the SharePoint list doesn’t contain a Properties collection. How could this have happened, and how can I change the value for an existing list?http://www.windowsitpro.com/article/sharepoint/change-property-bag-value-sharepoint-list--141581#commentsAnchorThu, 22 Dec 2011 19:20:24 GMT
This is a useful tip, but you cannot call the Update method on the properties hash table. Instead, just call Update on the RootFolder class of SPList. For example, $root.Update()]]>
Randy WilliamsThu, 22 Dec 2011 19:20:24 GMThttp://www.windowsitpro.com/article/sharepoint/change-property-bag-value-sharepoint-list--141581#commentsAnchor
Data Presentation Techniques for SharePoint Listshttp://www.windowsitpro.com/article/sharepoint-development/data-presentation-techniques-for-sharepoint-lists-122099#commentsAnchorMon, 25 Jul 2011 20:00:40 GMT
Hello, Very interresting article ... do you have the reverse way transfering data from SQL nvarchar unicode(dt_WSTR) to a lookup field in sharepoint ? will it be the same kind of path to follow? Thanks, Diom]]>
FelymichMon, 25 Jul 2011 20:00:40 GMThttp://www.windowsitpro.com/article/sharepoint-development/data-presentation-techniques-for-sharepoint-lists-122099#commentsAnchor
The Code Behind the Printer Mapping Utilityhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/the-code-behind-the-printer-mapping-utility#commentsAnchorMon, 11 Jul 2011 11:35:57 GMT
Download link it´s not working!!! Where can I find the script and download it? Tks!]]>
Mon, 11 Jul 2011 11:35:57 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/the-code-behind-the-printer-mapping-utility#commentsAnchor
Speeding InfoPath 2010 Custom Form Deployment to External Listshttp://www.windowsitpro.com/article/technology/speeding-infopath-2010-custom-form-deployment-to-external-lists#commentsAnchorWed, 16 Feb 2011 09:52:21 GMT
The approach of unpacking the XSN, writing data to the xsf, repacking to an XSN and uploading the file to a InfoPath form library should apply to your scenario as well. You will have to take a closer look in the xsf to see where the data connection is written and then rewrite that value for different environments. Also, you will have to handle the sandbox solution code (.dll) outside of this process. That part shouldn’t be difficult. As long as you’re not creating a fulltrust solution, then the approach outlined in this article should put you on the right track.]]>
WILANSKYWed, 16 Feb 2011 09:52:21 GMThttp://www.windowsitpro.com/article/technology/speeding-infopath-2010-custom-form-deployment-to-external-lists#commentsAnchor
Speeding InfoPath 2010 Custom Form Deployment to External Listshttp://www.windowsitpro.com/article/technology/speeding-infopath-2010-custom-form-deployment-to-external-lists#commentsAnchorTue, 11 Jan 2011 15:56:44 GMT
]]>
Marcel PeterhansTue, 11 Jan 2011 15:56:44 GMThttp://www.windowsitpro.com/article/technology/speeding-infopath-2010-custom-form-deployment-to-external-lists#commentsAnchor
Speeding InfoPath 2010 Custom Form Deployment to External Listshttp://www.windowsitpro.com/article/technology/speeding-infopath-2010-custom-form-deployment-to-external-lists#commentsAnchorTue, 09 Nov 2010 15:48:27 GMT
Very interesting article. I would be interested to know if this approach would be reccommended for Form Library forms with sandboxed code behind and using data connection files stored in data connection libraries?

I am currently thinking of doing site backup and then importing the .wsp file into VS 2010 picking only the artifacts I need and then deploying it to the other environments. Any guidance would be greatly appreciated.
]]>
PatrickTue, 09 Nov 2010 15:48:27 GMThttp://www.windowsitpro.com/article/technology/speeding-infopath-2010-custom-form-deployment-to-external-lists#commentsAnchor
Business Intelligence in SharePoint 2010http://www.windowsitpro.com/article/business-intelligence/business-information-in-sharepoint-2010#commentsAnchorMon, 30 Aug 2010 10:24:04 GMT
Hi,
Thanks for the post.
How can I install or integrate Dashboard designer in WSS 4(Sharepoint Foundation 2010)?
Are there any other similar tools which can be used for WSS?

Thanks]]>
Priyanka RakhechaMon, 30 Aug 2010 10:24:04 GMThttp://www.windowsitpro.com/article/business-intelligence/business-information-in-sharepoint-2010#commentsAnchor
Business Intelligence in SharePoint 2010http://www.windowsitpro.com/article/business-intelligence/business-information-in-sharepoint-2010#commentsAnchorMon, 30 Aug 2010 10:10:24 GMT
Hi,
Thanks for the post.
How can I install or integrate Dashboard designer in WSS 4(Sharepoint Foundation 2010)?
Are there any other similar tools which can be used for WSS?

Thanks]]>
Priyanka RakhechaMon, 30 Aug 2010 10:10:24 GMThttp://www.windowsitpro.com/article/business-intelligence/business-information-in-sharepoint-2010#commentsAnchor
Data Presentation Techniques for SharePoint Listshttp://www.windowsitpro.com/article/sharepoint-development/data-presentation-techniques-for-sharepoint-lists-122099#commentsAnchorThu, 22 Jul 2010 08:25:43 GMT
How were you able to sort and filter on the merged/joined dataview in SPD? I’ve tried filtering with the wizard, adding xsl sort parameters, and updating the caml query string in the with no luck.

Any insight would be great, thanks!]]>
HauckThu, 22 Jul 2010 08:25:43 GMThttp://www.windowsitpro.com/article/sharepoint-development/data-presentation-techniques-for-sharepoint-lists-122099#commentsAnchor
SharePoint Q&A: Data Source Conflicthttp://www.windowsitpro.com/article/sharepoint/sharepoint-q-a-data-source-conflict#commentsAnchorWed, 30 Jun 2010 18:13:02 GMT
Thank you]]>
Theeranai NitsunkitWed, 30 Jun 2010 18:13:02 GMThttp://www.windowsitpro.com/article/sharepoint/sharepoint-q-a-data-source-conflict#commentsAnchor
Automatically Delete User Accounts and Mailboxes in Exchange 5.5http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-delete-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchorTue, 10 Jun 2008 11:33:22 GMT
ujjhhjjj]]>
cecchiniTue, 10 Jun 2008 11:33:22 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-delete-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchor
Identifying Software’s Presence and Configuration Detailshttp://www.windowsitpro.com/article/vbscript/identifying-software-s-presence-and-configuration-details#commentsAnchorFri, 02 May 2008 07:43:29 GMT
great]]>
bobFri, 02 May 2008 07:43:29 GMThttp://www.windowsitpro.com/article/vbscript/identifying-software-s-presence-and-configuration-details#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorMon, 25 Feb 2008 12:00:15 GMT
Dj, the code is still available to subscribers. Just click the blue Download the Code button at the top of the article to download the zip file w/ the code.]]>
AnneMon, 25 Feb 2008 12:00:15 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorMon, 25 Feb 2008 08:11:54 GMT
This looks very useful but I suspect the code is no longer available due to age of article. If someone could help out id appreciate it.]]>
DarrenMon, 25 Feb 2008 08:11:54 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Use Kerberos to Secure MOSS 2007http://www.windowsitpro.com/article/kerberos/use-kerberos-to-secure-moss-2007-#commentsAnchorTue, 18 Dec 2007 09:36:10 GMT
Kudos for Ethan for addressing a problem that we encounter all to often in the field. During a MOSS deployment yesterday, I asked the IT dept. if they knew how Kerberos was working in their WAN and if they had tested their SPNs with the SetSPN tool. I received the "Deer in the Head lights" response. Thanks for addressing this issue. This is one Sharepoint article I will share with my clients and encourage them to subscribe to Windows IT Pro Today.]]>
CURTTue, 18 Dec 2007 09:36:10 GMThttp://www.windowsitpro.com/article/kerberos/use-kerberos-to-secure-moss-2007-#commentsAnchor
Automatically Delete User Accounts and Mailboxes in Exchange 5.5http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-delete-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchorThu, 29 Nov 2007 08:09:04 GMT
Good one! How about deleting mailboxes that have no users assigned? For example, imagine using mailmig (from the command line) and using a temporary Exchange 5.5 server to create the files for the .pst Then, you use Exmerrge to extract the .pst Now you want to delete the temporary mailboxes as the previous operations were done by scripts. You would like to finish the job by also deleting these mailboxes? All automatically, right :-) Jimmy]]>
JimmyThu, 29 Nov 2007 08:09:04 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-delete-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchor
Take Advantage of Scriptomatic 2.0 to Maximize Your WMI Scripting Effortshttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/take-advantage-of-scriptomatic-2-0-to-maximize-your-wmi-scripting-efforts#commentsAnchorSun, 23 Sep 2007 12:13:29 GMT
jdfjal;kd;fk;kd;fkdfajkdljfldajf dklfjklajdfkljdklfjlkajfkldjf dfkldafjdklfjljfklajflkfjaklfj dfjklajflkdjflkajfklajfkldjfkladjfjd kladfjlkjfkljflfjjfljdlfjjlajl]]>
maxspeed Sun, 23 Sep 2007 12:13:29 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/take-advantage-of-scriptomatic-2-0-to-maximize-your-wmi-scripting-efforts#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorMon, 20 Aug 2007 19:52:32 GMT
Great script Ethan. Does anyone check these comments anymore? I have a quick question. I’ve added two extra wmi categories to the inventory script. win32_operatingsystem and win32_computersystemproduct. I’ve been trying to figure out how to add another worksheet for each of those categories to the spreadsheet report. But I keep getting an Input Past End of File error, no matter what I do. Can someone please explain to me how I have to modify the BuildReport script to get it to add the two workstheers?]]>
JeremyMon, 20 Aug 2007 19:52:32 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorTue, 07 Aug 2007 10:19:00 GMT
drumgod007: To download the code, click the blue Download the Code Here button at the top of the article (just under the title information and links to the sidebars).]]>
AnneTue, 07 Aug 2007 10:19:00 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorTue, 31 Jul 2007 13:05:21 GMT
Where do i actually d/l the scripts from?? It says "You can download both scripts from http://www.winscriptingsolutions.com, InstantDoc ID 39111. . . . " Going there only leads to the article. I cannot find a location on the website to actually download the two scripts... can someone point me to the URL for both of them please...]]>
djTue, 31 Jul 2007 13:05:21 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorSun, 14 Jan 2007 01:31:19 GMT
Very good]]>
sanishgeorge Sun, 14 Jan 2007 01:31:19 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorFri, 16 Jun 2006 08:41:39 GMT
sdfsdfsdfsdfsdfsdf]]>
nateb4nateb4 Fri, 16 Jun 2006 08:41:39 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Create Home Directories and Set NTFS Permissions with a Web Scripthttp://www.windowsitpro.com/article/vbscript/create-home-directories-and-set-ntfs-permissions-with-a-web-script#commentsAnchorWed, 24 May 2006 20:23:21 GMT
I am not able to find the entire scripts to download. Any idea. Thanks]]>
KHALEDWed, 24 May 2006 20:23:21 GMThttp://www.windowsitpro.com/article/vbscript/create-home-directories-and-set-ntfs-permissions-with-a-web-script#commentsAnchor
A Printer Mapping Utilityhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/a-printer-mapping-utility#commentsAnchorSat, 25 Mar 2006 15:58:27 GMT
y u charge so much]]>
ScottSat, 25 Mar 2006 15:58:27 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/a-printer-mapping-utility#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorWed, 15 Mar 2006 01:59:45 GMT
Hey everybody, I receive the following error message when running script on W2K. --------------------------- Windows Script Host --------------------------- Script: C:\Documents and Settings\****\Desktop\HrdWrInv.vbs Line: 154 Char: 3 Error: 0x80041001 Code: 80041001 Source: (null) --------------------------- OK --------------------------- Does anybody have a solution for that problem??]]>
HansWed, 15 Mar 2006 01:59:45 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorWed, 12 Oct 2005 15:48:42 GMT
When I run this script on a remote computer(WinXP, SP2) , any one have any answers help much appreciated. Script: Script location Line: 27 Char: 2 Error: 0x80041001 Code: 80041001 Source (null) Line 27 is below which is causing the error. For Each objItem In objProduct]]>
MikeWed, 12 Oct 2005 15:48:42 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorThu, 15 Sep 2005 23:24:58 GMT
If anyone has the modified script still for adding passwords it would be appreciated. Jeremy@local71.com]]>
JeremyThu, 15 Sep 2005 23:24:58 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
The Registry File Formathttp://www.windowsitpro.com/article/registry2/the-registry-file-format#commentsAnchorThu, 15 Sep 2005 10:54:09 GMT
This is useless]]>
JoeThu, 15 Sep 2005 10:54:09 GMThttp://www.windowsitpro.com/article/registry2/the-registry-file-format#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorFri, 02 Sep 2005 09:47:30 GMT
can any one tell me what changes need to be made to get user info from the script. Thanks]]>
Anonymous User Fri, 02 Sep 2005 09:47:30 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorTue, 23 Aug 2005 06:00:23 GMT
Keep getting the following error in ASP. Active Directory error ’80070005’ General access denied error /usercreate.asp, line 195 Line 195 is .Setinfo I am Administrator and all the rest of it on the security side of things. The code does return the values of existing users if you try to add existing users. Any Ideas? Thanks ]]>
Anonymous User Tue, 23 Aug 2005 06:00:23 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorMon, 22 Aug 2005 09:33:05 GMT
When I run the buildreport.vbs, I am getting the following error: "(36, 5) Microsoft VBScript runtime error: File not found." The line it is complaining about is: "Set objTextFile = objFSO.OpenTextFile(strInvFilePath & strFileName,ForReading)" Anyone know whats up?]]>
Anonymous User Mon, 22 Aug 2005 09:33:05 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Automated Registry Updateshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchorWed, 17 Aug 2005 14:19:46 GMT
I am getting the following error "Report records processed: C:\Documents and Settings\spilmanr\My Documents\Tools\Remote Registry Tool\apply reg.vbs(469, 3) Microsoft VBScript runtime error: Invalid procedure call or argu ment: ’Mid’" Anyone help?]]>
Anonymous User Wed, 17 Aug 2005 14:19:46 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorThu, 11 Aug 2005 09:47:50 GMT
Got the script working... Love it! How can you set the user to require password change at next logon? Also, What is the syntax for nested OUs? Thanks! JPM]]>
JohnThu, 11 Aug 2005 09:47:50 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Making a Single-Task Command-Line Application or Script Perform Repetitive Taskshttp://www.windowsitpro.com/article/scripting/making-a-single-task-command-line-application-or-script-perform-repetitive-tasks#commentsAnchorMon, 01 Aug 2005 20:56:45 GMT
I am having problems using the above script using user names or OU with spaces such as: Ethan Wilansky,Tech Writers How to get over this issue? Pls Advise. dev.babu@optus.com.au ]]>
MAHADEVANMon, 01 Aug 2005 20:56:45 GMThttp://www.windowsitpro.com/article/scripting/making-a-single-task-command-line-application-or-script-perform-repetitive-tasks#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorWed, 22 Jun 2005 14:09:17 GMT
great script!! is there a way to modify the scripts so that it can include software inventory as well. I want to be able to poll each machine and extract what software they have installed and the registrations keys and licenses and have it tied into the excel report. If possible can you send that added code. Thanks Nick]]>
NickWed, 22 Jun 2005 14:09:17 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Rem: Enable and Disable IE’s Proxy Settingshttp://www.windowsitpro.com/article/vbscript/rem-enable-and-disable-ie-s-proxy-settings#commentsAnchorMon, 06 Jun 2005 04:08:06 GMT
I want to be able to automate the configuration of the proxy for each dial-up connection listed in IE->connections.]]>
Anonymous User Mon, 06 Jun 2005 04:08:06 GMThttp://www.windowsitpro.com/article/vbscript/rem-enable-and-disable-ie-s-proxy-settings#commentsAnchor
Create Home Directories and Set NTFS Permissions with a Web Scripthttp://www.windowsitpro.com/article/vbscript/create-home-directories-and-set-ntfs-permissions-with-a-web-script#commentsAnchorThu, 21 Apr 2005 11:35:13 GMT
I am a novice when it comes to ASP, so please bear with me. I have modified your UserCreate.asp and have it working fine, but when it comes to HomeFolderPerms.asp, the home directory on the file server is not created (although the script thinks it is) - until it tries to apply rights I have domain admin rights. I can run a test vbs script from the same directory on the domain server and create directories without a problem.]]>
Anonymous User Thu, 21 Apr 2005 11:35:13 GMThttp://www.windowsitpro.com/article/vbscript/create-home-directories-and-set-ntfs-permissions-with-a-web-script#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorWed, 23 Feb 2005 12:02:03 GMT
Sorry for being so late to the game but is there a way to import the user names, exchange server and OU into the script. I need to create usernames and mailboxes for 500 students. I have the names but not a way to import them. Thanks Garry]]>
gholton1Wed, 23 Feb 2005 12:02:03 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Automatically Create User Accounts and Mailboxes in Exchange 5.5http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchorSun, 20 Feb 2005 12:32:28 GMT
Hi, I think your script is great. Is there anywhere I can get a whole list of the variables to use as I want to enter a line in the login script attribute and add the user to groups. COuld you help me out please? Cheers]]>
Anonymous User Sun, 20 Feb 2005 12:32:28 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchor
Rem: Defeat Tenacious Adware With a Simple Script.http://www.windowsitpro.com/article/vbscript/rem-defeat-tenacious-adware-with-a-simple-script-#commentsAnchorWed, 09 Feb 2005 14:11:01 GMT
If you can get away with it, try booting the system into Safe Mode after you update the antispyware definition files. Once you are at the desktop there run the scan and cleanups. This has worked for me on a system that was infected with something that would reload the sypware after Ad-Aware and MS AS both said they cleaned the problem.]]>
Anonymous User Wed, 09 Feb 2005 14:11:01 GMThttp://www.windowsitpro.com/article/vbscript/rem-defeat-tenacious-adware-with-a-simple-script-#commentsAnchor
Rem: Defeat Tenacious Adware With a Simple Script.http://www.windowsitpro.com/article/vbscript/rem-defeat-tenacious-adware-with-a-simple-script-#commentsAnchorWed, 09 Feb 2005 09:06:07 GMT
While you are downloading AutoRuns from Sysinternals get Process Explorer too ( http://www.sysinternals.com/ntw2k/freeware/procexp.shtml ). That way you can use AutoRuns to determine the application/process name, and then use Process Explorer to kill it before you remove it from the registry. Following this process usually resolves the reappearing registry keys. Be advised, you might need to kill the entire process tree and not just a single process.]]>
Anonymous User Wed, 09 Feb 2005 09:06:07 GMThttp://www.windowsitpro.com/article/vbscript/rem-defeat-tenacious-adware-with-a-simple-script-#commentsAnchor
Handy Web Script Creates User Accounts, Part 2http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchorFri, 04 Feb 2005 08:53:05 GMT
Can I use this script on a child domain?]]>
Anonymous User Fri, 04 Feb 2005 08:53:05 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchor
Automatically Create User Accounts and Mailboxes in Exchange 5.5http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchorFri, 21 Jan 2005 11:57:20 GMT
Set objMBContainer = GetObject("LDAP://" & strEx55SrvrName & "/" & strMailBoxPath) doesn’t seem to work. Verified the raw path via exchange admin. any ideas?]]>
Anonymous User Fri, 21 Jan 2005 11:57:20 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchor
Automated Registry Updateshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchorThu, 20 Jan 2005 08:51:03 GMT
Overkill, for what is essentially a very simple procedure]]>
Anonymous User Thu, 20 Jan 2005 08:51:03 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchor
Scripting and Managed Code Demystifiedhttp://www.windowsitpro.com/article/perl/scripting-and-managed-code-demystified#commentsAnchorWed, 19 Jan 2005 06:07:20 GMT
You have helped me so much. Now I am just waiting on how to make this script more robust.]]>
Anonymous User Wed, 19 Jan 2005 06:07:20 GMThttp://www.windowsitpro.com/article/perl/scripting-and-managed-code-demystified#commentsAnchor
Automatically Create User Accounts and Mailboxes in Exchange 5.5http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchorWed, 12 Jan 2005 12:53:08 GMT
Is there any script to move the exchange 5.5 mailboxes?]]>
Anonymous User Wed, 12 Jan 2005 12:53:08 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchor
Handy Web Script Creates User Accounts, Part 2http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchorSun, 09 Jan 2005 08:58:12 GMT
I am creating users with no problem but how do I create a user 2 levels deep. I seen many examples of how to do this on the net but can someone show me example if how I could do this with this script.]]>
Anonymous User Sun, 09 Jan 2005 08:58:12 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorSun, 09 Jan 2005 08:53:57 GMT
I am tring to use this but I want to place users in OUs two levels deep. How do I accomplish this.]]>
Anonymous User Sun, 09 Jan 2005 08:53:57 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorSun, 09 Jan 2005 08:53:57 GMT
I am creating users with no problem but how do I create a user 2 levels deep. I seen many examples of how to do this on the net but can someone show me example if how I could do this with this script.]]>
Anonymous User Sun, 09 Jan 2005 08:53:57 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Automated Registry Updateshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchorMon, 03 Jan 2005 20:30:35 GMT
I cant find your sample AAA123Test!!!.reg Can u direct me there?]]>
Anonymous User Mon, 03 Jan 2005 20:30:35 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorThu, 09 Dec 2004 01:46:56 GMT
Hi all! Can somone please tell me how to add the string for computer serial number? I haved tried but the script does not create the .txt file like it did before. please help. Thanks. Tom thomasvarmfors@lfv.se]]>
Anonymous User Thu, 09 Dec 2004 01:46:56 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorTue, 07 Dec 2004 17:19:26 GMT
ok. slightly off track i think anon user - i got this working. Part of the problem, is that it is trying to create the new user in one of two OU’s that have been created already. So in the code where is says: Select Case Request.Form("Container") Case "OrgUnit01" you need to change these details (as well as in the form what group it places the user in) to an OU that exists. Tested in IIS6/2003Enterprise - works like a charm. andrew.]]>
Anonymous User Tue, 07 Dec 2004 17:19:26 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorTue, 30 Nov 2004 10:45:44 GMT
I can not get this script to work in my enviroment, i run the script an dnothing happens, no errors or anything. any help would be welcome]]>
bpneteng Tue, 30 Nov 2004 10:45:44 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Handy Web Script Creates User Accounts, Part 2http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchorTue, 09 Nov 2004 12:14:02 GMT
I cannot get this to create a user, I have made the basic modifications to it as specified, but no user is created. Is there a way to begin to troubleshoot this script? I click submit, the screen goes away, and nothing else happens.]]>
Anonymous User Tue, 09 Nov 2004 12:14:02 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorFri, 05 Nov 2004 00:01:25 GMT
In response to the comment above.. actually the blank return means the script isn’t reporting the password isn’t valid. This script’s initial password of "initial!password" doesn’t work. so just change it to something that works with your system. also, how can this script report errors w/o freezing?]]>
Anonymous User Fri, 05 Nov 2004 00:01:25 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorThu, 04 Nov 2004 18:02:47 GMT
Hey, if anyone has ’Arsalan Nasir’s problem, as I did.. I know how to fix it. The problem is with the user creation part of the script where it uses posts nothing. The way it creates the problem locks it up... ’set the default user password. oAddUser.SetPassword sJobTitle and enter your password in the job title field, you’ll see it work, and will be on your way to get this thing working. I have it working under IIS 6, Server 2003 Enterprise. It’s a good start of learning ASP.]]>
Anonymous User Thu, 04 Nov 2004 18:02:47 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Create Home Directories and Set NTFS Permissions with a Web Scripthttp://www.windowsitpro.com/article/vbscript/create-home-directories-and-set-ntfs-permissions-with-a-web-script#commentsAnchorThu, 04 Nov 2004 07:07:42 GMT
The script is creating the users home directory but it si not giving it the necessary rights to the folder. The error I get is Unable to retrieve the Win32_LogicalFileSecurity Setting of d:\ririvera ]]>
RICHARDThu, 04 Nov 2004 07:07:42 GMThttp://www.windowsitpro.com/article/vbscript/create-home-directories-and-set-ntfs-permissions-with-a-web-script#commentsAnchor
Handy Web Script Creates User Accounts, Part 2http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchorWed, 03 Nov 2004 07:03:29 GMT
ckemi]]>
Anonymous User Wed, 03 Nov 2004 07:03:29 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorMon, 01 Nov 2004 00:28:03 GMT
Excellent article for automation, if the updated script is still available, please whish to have a copy, thanks. qwerty670@hotmail.com]]>
qwerty670 Mon, 01 Nov 2004 00:28:03 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorTue, 26 Oct 2004 10:56:25 GMT
I mean the username..not the password...doh!! Now that is REALLY lazy not to proof read your post!]]>
JoeOldendickTue, 26 Oct 2004 10:56:25 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorTue, 26 Oct 2004 10:35:05 GMT
Not to sound LAZY, but its been a while since I’ve done any programming and thought I’d ask..even though I am being lazy. Can someone email me the script with the changes that will collect the username and password? joe.oldendick@gmail.com Thanks!]]>
JoeOldendickTue, 26 Oct 2004 10:35:05 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorWed, 20 Oct 2004 13:35:52 GMT
Hi all, When i try to execute the script to colect data about windows 98 machine, this error apears: The remote server does not exists.... Cod: 800A01CE PS: Windows2k is ok.]]>
Anonymous User Wed, 20 Oct 2004 13:35:52 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Managing User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/managing-user-accounts-part-1#commentsAnchorThu, 30 Sep 2004 12:15:28 GMT
Meaty stuff. Thanks. JK.]]>
joe8908Thu, 30 Sep 2004 12:15:28 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/managing-user-accounts-part-1#commentsAnchor
Managing User Accounts, Part 2http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/managing-user-accounts-part-2#commentsAnchorThu, 30 Sep 2004 12:02:44 GMT
Again excellent stuff. JK.]]>
joe8908Thu, 30 Sep 2004 12:02:44 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/managing-user-accounts-part-2#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorFri, 03 Sep 2004 08:27:24 GMT
I’d like a copy of the modified script also, if anyone has one??]]>
taffwatts Fri, 03 Sep 2004 08:27:24 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorWed, 25 Aug 2004 16:12:33 GMT
Is the modified script still available? Also, the question about the ous (nested ous) ... there seems to be errors if your ous have spaces in the names. Is there a way around this?]]>
jhammell Wed, 25 Aug 2004 16:12:33 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Automated Registry Updateshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchorThu, 19 Aug 2004 09:06:11 GMT
Ethan--excellent script, I am now using it all the time. One problem however... When the CreateDWORD subroutine converts the hex value using CInt, it can’t handle large numbers. For example, it will fail converting the hex value ’00010000’, and therefore will not write that value to the registry. I resolved this by changing CInt to CLng. ]]>
mvanwely@partners-intl.netThu, 19 Aug 2004 09:06:11 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchor
How the Report Agent Workshttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/how-the-report-agent-works#commentsAnchorMon, 16 Aug 2004 03:49:55 GMT
excelent idea. doing it with a remote agent would be perfect]]>
4saleMon, 16 Aug 2004 03:49:55 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/how-the-report-agent-works#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorThu, 05 Aug 2004 13:52:49 GMT
Works great, BUT anyone know how to detect the Serial Numbers of disk drives in a RAID? This program detects, "MEGA RAID 5" not enough info!]]>
racer999Thu, 05 Aug 2004 13:52:49 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorFri, 30 Jul 2004 17:07:26 GMT
I would also like to get a copy of an updated script. For account and Exchange creation. Just moved to Win2k3 from NT and so I’m lost on how I’m going to make all the students run. My good old batch files aren’t gonna work without some assistance!]]>
Northwestu,Northwestu Fri, 30 Jul 2004 17:07:26 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorMon, 26 Jul 2004 21:56:19 GMT
This is most useful. I was able to run the inventory script without error but when I ran the report script the processing inventory box appears but as soon as I press OK I get a script error. Line: 36, Char: 5, Error: File not found, Code: 800a0035. Line 36 only contains comments???]]>
nbk24o8Mon, 26 Jul 2004 21:56:19 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorThu, 22 Jul 2004 16:08:26 GMT
Hi Ethan, Where can I find Exchange Management Components on my Exchange server 2000 CD? thanks]]>
payal1711Thu, 22 Jul 2004 16:08:26 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorMon, 19 Jul 2004 06:52:12 GMT
Could this sample code be combined with the Handy Web Script Creates User Accounts, Part 2 InstantDoc #22708? I would like to create the users and mailboxes through a web interface. //Ronny ]]>
rondahlMon, 19 Jul 2004 06:52:12 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Handy Web Script Creates User Accounts, Part 2http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchorTue, 13 Jul 2004 19:16:37 GMT
Well I figured out my problem with the Expected Function. Everything works as it should!! Greatt script, but of course I want ot go further with it! Can I set the Terminal Services attributes as well? I want to re-set the defaults attributes for things like "Allow login to TS" and "Require permision for Remote COntrol" How can this be done? Thanks again!]]>
STEVENTue, 13 Jul 2004 19:16:37 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchor
Handy Web Script Creates User Accounts, Part 2http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchorTue, 13 Jul 2004 11:25:02 GMT
I keep getting an error with this line of code; "’ AND objectCategory=’Person’" The error in the lower left of the browser says "Expected ’Function’ Error=0 Any ideas what this is? Thanks. ]]>
STEVENTue, 13 Jul 2004 11:25:02 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorFri, 09 Jul 2004 06:44:42 GMT
Great article/script. Straightforward and works great - unlike most resources out there! Ran into the same exact scenario with my accounting department and got all 130 servers and workstations inventoried in 2 days through Group Policy. Thanks for the help.]]>
Rob Wurster Fri, 09 Jul 2004 06:44:42 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorWed, 07 Jul 2004 03:37:24 GMT
Your Comments (required): I will appreciate also if you could mail me the updated script. Thanks a lot. Cheers, Djam (pippi_prince@hotmail.com)]]>
Name (required):d.cassiope Wed, 07 Jul 2004 03:37:24 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorMon, 05 Jul 2004 10:31:57 GMT
On Windows 2000 Pro i have got thi error: --------------------------- Windows Script Host --------------------------- Script: C:\Documents and Settings\Tommaso\Desktop\HrdWrInv.vbs Line: 154 Char: 3 Error: 0x80041001 Code: 80041001 Source: (null) --------------------------- OK --------------------------- I have already try to update to version 5.6 of scipt engine but i have got it again. What i can do to solve the problem]]>
Tommaso Mon, 05 Jul 2004 10:31:57 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorThu, 17 Jun 2004 09:34:17 GMT
Dave, Excellent work. I commend you. Can you please send me the modified script info. Also, Do you have something that can be used with the script to create homedirs and set ntfs permissions?]]>
Augustus Sam II Thu, 17 Jun 2004 09:34:17 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Automatically Create User Accounts and Mailboxes in Exchange 5.5http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchorWed, 16 Jun 2004 12:07:38 GMT
Hi Loved your script although it is failing at line 247 Call objAcctMgmt.GetSidFromName(strDomain,strUser,arrSID) I had to remove all the on error resume nexts to find this. I figured the was some problem getting an SID seeing the user was created so fats but this does not solve it at all, user is created in correct OU an even tells me that it is created properly, mailbox is never created]]>
Luiz HenriqueWed, 16 Jun 2004 12:07:38 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchor
Use Scripts to Configure IIShttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/use-scripts-to-configure-iis#commentsAnchorWed, 16 Jun 2004 05:08:59 GMT
Super helpful]]>
Didi Levy Wed, 16 Jun 2004 05:08:59 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/use-scripts-to-configure-iis#commentsAnchor
Automatically Create User Accounts and Mailboxes in Exchange 5.5http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchorThu, 10 Jun 2004 09:50:31 GMT
I want to thank you for your great info you provided on InstantDoc #39177 http://www.winnetmag.com/Articles/ArticleID/39177/pg/3/3.html It really helped me a lot as an Exchange Engineer. I have 2 questions for you: 1- Sometime when I run “crum55.wsf /a:nt /u:User1 /d:NTDomain /f:FirstName /l:Last”Name The mailbox does NOT get associated with the account even though the account and the mailbox are created, but there is no association in between!! . 2- How can I can run “crum55.wsf” if I want to create 100 accounts? You’re welcome, Nick. It was my pleasure to write it and I’m thrilled to hear it’s useful for you. In answer to your first question, it sounds like you’re getting some sort of COM error and the account association is failing. The only way to deal with this is to try to log the COM error. You might find something in the Application Event log. I would also suggest that you search on the name of the COM dll I’m using in the script to create the association. You are likely to find some information about it in the MSDN Library. I think it will be critically important to consistently replicate the behavior in order to track down what’s causing the error. You should also disable On Error Resume Next in the script to see if you get some error output when the script runs and the association fails. Let me know what you find. In answer to your second question, you’re not the first person asking me how to create lots of accounts with CrUM55 and also with CrUM (the Exchange 2000/2003 version). I plan to explore this in my next article for Exchange and Outlook Administrator. I found the problem with the account association. it was replication issue. It takes up to 45 seconds from the moment your run the script to the moment it links it to mailbox. For creating multiple account, I wrote a ".bat" file and added all the entry in it. It worked well. My final comment is, when the acccount is created, I want the "User Must change the password at next logon" to be checked. The script does not do that, can you help? To enable this option, set the PasswordExpired attribute to one (1). Setting this attribute to 0 enables the user to log on without changing the password. Example Code [Visual Basic] Set usr = GetObject("WinNT://Fabrikam/jeffsmith,user") usr.Put "PasswordExpired", CLng(1) ’ User must change password usr.SetInfo In the script, find where I’m setting attributes on the user account. In that section, you can add the second line of the code above. I believe I call the user object, objUser, not usr. Therefore, change the code in line two to: objUser.Put "PasswordExpired", CLng(1) It did not work!! I tried both of the below lines and neither worked!! objUser.Put "PwdLastSet", 0 objUser.Put "PasswordExpired", CLng(1) What am I doing wrong? I’ll take a look at the original code and tell you where you have to insert the new code. One issue could be where the code is being placed. The user account must be created and saved to the directory (NT SAM or Win2K/2003 AD) before other attributes, such as password expiration, is set on the user account. I think I found the problem. As you mention, the order of where the line is inserted is important. Either of these 2 line work right before the "objUser.SetInfo" The code will look like: objUser.put "PasswordExpired", CLng(1) objUser.SetInfo or good objUser.put "PasswordExpired" , 1 objUser.SetInfo Thank you so much for your help]]>
Nick Matahen Thu, 10 Jun 2004 09:50:31 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchor
Automatically Create User Accounts and Mailboxes in Exchange 5.5http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchorTue, 01 Jun 2004 04:15:36 GMT
Cool one. when i try that script im getting an error saying script = d:\keerth\crum55.wsf line :141 char :4 error :Object Required:’objContainer’ code:800a01a8 source :Microsoft VBScript runtime error I need some assitance in this,awaiting ur response,]]>
keerthiTue, 01 Jun 2004 04:15:36 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automatically-create-user-accounts-and-mailboxes-in-exchange-5-5#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorTue, 18 May 2004 13:08:49 GMT

This is great. I have been reading up on the WMI classes and was trying to pull the network settings (ipaddress/DNS/GW, etc) but it always gives me errors. Any thoughts? I would also like to grab some software info. Is there an easy class that has the SW listed in ADD/remove only? What about hotfix/updates? Thanks for the great script!

]]>
Bill Prochazka Tue, 18 May 2004 13:08:49 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Automated Registry Updateshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchorTue, 18 May 2004 10:28:03 GMT
Can this script be used to change permissions on reg keys?]]>
JonTue, 18 May 2004 10:28:03 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchor
Script User Account and Mailbox Creationhttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchorThu, 06 May 2004 05:51:04 GMT
Would appreciate if you could mail me the updaed script. Thanks in advance.]]>
raymondThu, 06 May 2004 05:51:04 GMThttp://www.windowsitpro.com/article/vbscript/script-user-account-and-mailbox-creation#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorThu, 06 May 2004 05:43:42 GMT

I was trying to get the SerialNumber property from the bios and entered the property in Line 133 in HrdWrInv.vbs and added the property on line 97 of the buildReport.vbs. The info is collected in the text file but doesn’t show up in the Excel report. Did i omit something?

]]>
Jean-ClaudeThu, 06 May 2004 05:43:42 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorWed, 05 May 2004 07:37:32 GMT

Would this script go for Exchange 2003 and Windows Server 2003 or is there another way there?

]]>
larsWed, 05 May 2004 07:37:32 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
Handy Web Script Creates User Accounts, Part 1http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchorWed, 14 Apr 2004 08:13:50 GMT
Hi, I installed the script as instructed however when I access it through a web browser it only notfies if I try to make a user that already exists. The page just goes blank when I want to create a user which doesnt exist at all and nothing happens. What could be wrong?]]>
Arsalan Nasir Wed, 14 Apr 2004 08:13:50 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-1#commentsAnchor
How the Report Agent Workshttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/how-the-report-agent-works#commentsAnchorSun, 11 Apr 2004 05:52:28 GMT
HrdWrInv.vbs works fine, but BuildReport.vbs crashes with "D:\vbs\inventory\BuildReport.vbs(373, 3) Microsoft VBScript runtime error: Subscript out of range". I’m running an English Excel Version with Multi-Language Option on top. My Excel version accepts other english VB scripts. any help welcome, the script would be widely appreciated.]]>
ThomasSun, 11 Apr 2004 05:52:28 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/how-the-report-agent-works#commentsAnchor
Create Home Directories and Set NTFS Permissions with a Web Scripthttp://www.windowsitpro.com/article/vbscript/create-home-directories-and-set-ntfs-permissions-with-a-web-script#commentsAnchorMon, 29 Mar 2004 23:56:54 GMT
Indeed this is the best script I’ve seen so far. But, one little tiny thing is missing....varType function is missing.]]>
Remy Mon, 29 Mar 2004 23:56:54 GMThttp://www.windowsitpro.com/article/vbscript/create-home-directories-and-set-ntfs-permissions-with-a-web-script#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorThu, 25 Mar 2004 07:52:43 GMT
This is going to work well for us. I modified a bit to get the UserName and SerialNumber. Now just to make it automatically run on all computers on the domain......]]>
craigThu, 25 Mar 2004 07:52:43 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor
Automated Registry Updateshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchorWed, 03 Mar 2004 08:43:05 GMT
Hi! I´ve enjoyed a lot reading this article because it helped me very much. I just have one question to make to you that is what if a computer in my network is not available at the time i´m updating the registry´s, the script creates a loop that when the machine is available it sends the new keys or if not how can i resolve this issue??? Thanks a lot!!!]]>
Mario Raposo Wed, 03 Mar 2004 08:43:05 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchor
Automated Registry Updateshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchorThu, 22 Jan 2004 11:31:35 GMT

I very much enjoyed this article about updating remote registries. I am always looking for articles like this that show more advanced scripting because I write a lot of VBScripts. I reviewed ApplyReg.vbs and just want to make a couple of remarks.

When I write scripts that perform actions on a series of remote computers, I also have a function that checks whether the remote computer is reachable. Instead of using Ping and reading the output to determine whether the remote machine answered, I prefer to use the Win32_PingStatus WMI class, which is available in Windows XP and Windows Server 2003, for a couple of reasons. First, I think that this method is a more elegant approach to this task. Second, we work in an environment with computers in 5 different countries in Europe, all of which use their local language on their machines. Writing a script that reads the output of a command-line command is difficult when multiple languages are involved.

The other thing I would like to mention is that NetBIOS or Fully Qualified Domain Names (FQDNs) are always easier to remember than distinguished names (DNs). I wrote scripts that used a text file with server NetBIOS names as the input file. I then used ADO to make an Active Directory (AD) search when I need the DN of the server. Because a small function looks up the DN, you don’t have to prepare the input file that you suggested with the DN already in the text file. Using a function to get the DN has another slight advantage: You can reuse the function in every script that requires a DN.

A note from Ethan: I’m aware of the Win32_PingStatus class, and I agree with you that this is the best approach. Just to give you some history, I specifically choose the approach I took because the Windows Resource Kit team originally asked me to write these scripts and the team told me that I must make the tool work in a pure Windows 2000 environment. I couldn’t even rely on having a Windows XP client for running the script. As a result, I went with the non-localized approach of reading the "reply from..." message. Your approach is much better when you can assume that one client is running Windows XP.

You make another great point about using DNs instead of FQDNs or NetBIOS names in the script. Again, a little history is in order. The goal was to take the output from another script as the input for the ApplyReg script. The output from the other script was the DNs of all domain controllers in a domain. If you get a chance, take a look at the two white papers that I reference in the article. The scripts, including ApplyReg, were written specifically to support the security goals delineated in the white paper.

]]>
stefanThu, 22 Jan 2004 11:31:35 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/automated-registry-updates#commentsAnchor
Handy Web Script Creates User Accounts, Part 2http://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchorThu, 22 Jan 2004 09:46:49 GMT

The script in this article seems to work but is inconsistent. One time it will work, the next time it will error on the SetInfo line. The difference in the script is that I added several fields for the user, such as company, address, city, and distinguished name. I know that adding these variables works because I have a different script that adds them but I like this one because it has a form-based option. (The other script pulls from Excel.)

It’s almost like the script is trying to add too much information at once, so I used SetInfo two or three times while adding the information for all the fields. That worked for a while, then seemed to stop.

The error type is:

(0x8007200B)
/IT/main/UserCreation.asp, line 224

Any thoughts about what’s going on?

A note from Ethan: I think your problem is caused by some of the attributes you’re trying to set. For example, the distinguishedName attribute is set by Active Directory. It denotes the exact location of an Active Directory object. For example, MyerKen in the Management OU of the na.fabrikam.com domain is automatically given the distinguishedName value of cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com. The only way to change this is to move the user account to another location. If you attempt to set this value in a script, the domain controller responding to your request will deny the modification and the script will fail. If you attempt a Put operation with the distinguishedName attribute, then any attempt to write other attributes (other Put operations) before calling SetInfo will fail because of the one attribute, in this case distinguishedName, that is configurable only by the system.

]]>
PeteThu, 22 Jan 2004 09:46:49 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/handy-web-script-creates-user-accounts-part-2#commentsAnchor
Administering Printer Locationshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/administering-printer-locations#commentsAnchorThu, 22 Jan 2004 09:07:09 GMT

If a user isn’t a member of the Administrators group, I found that the printer map page will not come up. I tried changing the permissions in IIS and NT file systems and gave users full control on the printer map directories, but it still does not work.

The only time I can see the printer map is if I specify Integrated Windows Authentication on IIS without anonymous access AND if I’m a member of the Administrators group on the print server. I even tried changing the permissions in the registry for the /root/cimv2 key in the registry without any effect. I also tried adding the users to all the user rights in Local Policy. This had no effect either. The error message I receive is: Error in CIMV2 connect string: -2147217405.

Does this mean all users have to be administrators on the print server in order to see the map? I don’t want to have to give all users administrative privileges on the print server.

A note from Ethan: The good news is that all your users do not need to have Administrator permissions. I think the issue is probably your access settings to the CIMV2 namespace. Try the following:

  1. Open the Computer Management console on one of your print servers.
  2. Expand the Services and Applications node.
  3. Select the WMI Control control.
  4. Right-click the WMI Control node and then click Properties.
  5. From the WMI Control Properties dialog box, click Security.
  6. Expand the Root node and click CIMV2.
  7. Click the Security button.
  8. Assign the Everyone group Remote Enable permission or, for a more secure solution, add a group to which your users are members and then grant the group the Remote Enable permission.

I suggest that you use only IIS Integrated authentication for security but I suppose you could also add the IIS anonymous user account to the group that you grant remote enable permission.

]]>
darrenThu, 22 Jan 2004 09:07:09 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/administering-printer-locations#commentsAnchor
Administering Printer Locationshttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/administering-printer-locations#commentsAnchorThu, 22 Jan 2004 09:07:09 GMT

We have about 12 printers in a single floor. I went through the scripts and got as far as the printer objects showing up on the floor map in the correct locations. The part that’s not working for me is when I click on the printer icon, it brings up a broken link for all the printers. If I move the mouse cursor over the printer, the display shows http://print_server/share name. Looking at the status bar on the browser, the following is displayed: http//print_server/share. If the queues were to be displayed, shouldn’t the path be \\print_server\share?

If this is incorrect, how can I query the http://print_server/printers/ directory for the correct printer when clicking a specific printer icon in the floor map?

A note from Ethan: I don’t know if this will help, but take a look at the Microsoft article “Cannot Install IIS 5.1 Printers Virtual Directory Subcomponent through Add/Remove Windows Components” (http://support.microsoft.com/default.aspx?scid=kb;en-us;304544).

Also, in Internet Explorer (IE), you should be able to type http://print_server/printer_share_name, where print_server is the name of your print server and share_name is the name of the printer share. IIS on the print server will redirect the request to the appropriate URL. I successfully tested this on a Windows 2000 Server with Service Pack 3 installed and with the configuration change suggested in the Microsoft article I mentioned.

]]>
darrenThu, 22 Jan 2004 09:07:09 GMThttp://www.windowsitpro.com/article/active-directory-service-interfaces-adsi/administering-printer-locations#commentsAnchor
Home-Brewed Hardware Inventoryhttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchorThu, 22 Jan 2004 08:38:41 GMT

I really enjoyed this article about the hardware inventory. It will probably get lots of use here. I have been looking for this exact code. We’ve been using a third-party software package for this, but since we’ve upgraded our security, that package no longer works.

I do have a few questions, though: What code should I put in if I want to collect the username on the Computer Systems tab in the Excel report? What needs to go in the hardware script AND what should I put in the report generator?

A note from Ethan: The Computer Systems tab is populated with information from the Win32_ComputerSystem class. In this class, there are two additional properties that will probably provide you with what you’re looking for: UserName and PrimaryOwnerName.

In hrdwrInv.vbs, you need to add these two properties to the strProperties variable for Win32_ComputerSystem. You’ll see the properties listed on lines 64 - 66. In buildReport.vbs, you need to add column heads for the two new properties. The column heads are specified for Win32_ComputerSystem on lines 49 and 50.

]]>
Carl Klima Thu, 22 Jan 2004 08:38:41 GMThttp://www.windowsitpro.com/article/windows-management-instrumentation-wmi/home-brewed-hardware-inventory#commentsAnchor