Wednesday, December 26, 2007

remote assistance

remote assistance faq

This article shows what you can expect from the new version of Remote Assistance.


vista
Open Remote Assistance by clicking the Start button , clicking All Programs, clicking Maintenance, and then clicking Windows Remote Assistance

Saturday, December 22, 2007

vba userform controls

using a tree control

gpo videos

gpo videos

mom 2005 webcast 2 view

from eileen_brown's blog also search her blog for sms stuff

Webcasts: 10 Ways to learn about MOM 2005
The following webcasts will help you learn more about MOM 2005, the latest event and performance management tool. Register to view any of the webcasts below. You can find additional MOM webcasts on the Management Webcasts page.

Microsoft Operations Manager 2005—Exploring Microsoft's New Event and Performance Management Tool for Windows Server System and Beyond
September 02, 2004: This webcast discusses MOM's new features for managing and optimizing your infrastructure. Hear how this release builds the foundation for the Dynamic Systems Initiative (DSI) and provides a stepping stone for Microsoft's integrated change, configuration, and operations management solution, System Center.


Managing Exchange Server with Microsoft Operations Manager 2005 - Increasing Service Availability and Reducing Email Outages with MOM 2005
September 07, 2004: Learn how the Exchange Server 2003 Management Pack for MOM 2005 can help improve the health and performance of Exchange Server 2003 through specialized, proactive monitoring and alerting.


Managing SQL Server with Microsoft Operations Manager 2005 - Increasing SQL Availability and Reliability with Specialized Knowledge and Tools in MOM's SQL Management Pack
September 14, 2004: Learn how to manage SQL Server with Microsoft's premier event and performance management tool—MOM 2005. In this webcast, two Microsoft program managers will share their insight and techniques on using MOM 2005 to help ensure service availability for SQL Server 2000 and the upcoming SQL Server 2005 version.


Monitoring your E-Business Solutions with Microsoft Operations Manager 2005—Using Built-In Knowledge in MOM 2005 to Reduce Downtime
September 16, 2004: If you're interested in improving and optimizing the performance of your BizTalk and Commerce Servers using MOM 2005, you won't want to miss this webcast. We will show you how to take advantage of powerful built-in features in MOM to effectively monitor your e-business solutions and reduce downtime.


Using Microsoft Operations Manager 2005 at Microsoft IT—How to Manage 6,000 Servers Across 225 Worldwide Sites for Maximum Performance and Availability
September 21, 2004: Gain valuable insight into how Microsoft uses MOM 2005 to help ensure its servers stay up and running. Attend this webcast for an opportunity to learn and ask the experts how they have implemented the new technology in MOM 2005 to monitor over 6,000 servers across 225 worldwide sites.


Monitoring Solutions to Extend Microsoft Operations Manager 2005 Capabilities—Service Monitoring Solution Accelerator
October 14, 2004: This webcast explores powerful solutions for improving Service Monitoring using products such as MOM 2005 and SQL Server Notification Services. Learn valuable automation techniques, best practices, and design considerations as we examine key concepts, such as MOM 2005 Service Continuity, Notification Work Flow, Alert Tuning, and Auto Ticketing.


Real Stories of Microsoft Operations Manager 2005—Lessons Learned from our MOM 2005 Early Adopters
October 19, 2004: If you are planning a MOM 2005 deployment in the near future, watch this webcast to gain valuable insight from the experiences of participants in the MOM 2005 Technical Adopter Program. In this webcast, Omar Kouatly, owner of the program, will share highlights from the design, deployment, and troubleshooting experiences of over 30 MOM 2005 users.


Monitoring Active Directory with Microsoft Operations Manager 2005—Using MOM 2005 to Improve Availability of One of Your Most Critical Services
November 04, 2004: Learn how MOM 2005 can significantly improve the effectiveness of Active Directory management in your organization. In this webcast, we will highlight key features of the new release of Microsoft's event and performance management tool that can help you monitor and keep your AD forests up and running.


Installing Microsoft Operations Manager 2005 from Start to Finish—Your Guide to Setting Up and Testing MOM 2005
November 16, 2004: Learn from the experts how to install MOM 2005 and troubleshoot any areas of concern during the installation process. This webcast can be used as an on-demand reference for the setup, configuration, and testing of MOM 2005 in your own lab environment.


Microsoft Operations Manager 2005 at MSN - Using MOM 2005 to Monitor One of the Largest Web Portals in the World
June 14, 2005: See how MOM 2005 is used to support the unique business requirements of MSN, Hotmail, and Passport through proactive monitoring and alerting.
Published Tuesday, January 11, 2005 12:07 PM by Eileen_Brown
Filed under: ,
Comments

Wednesday, December 19, 2007

mom 2005 db

MOM Operations Database SDK Views
MOM Database Has Insufficient Allocated Space
SMS&MOM Troubleshooting MOM 2005 DTS Issues and Database Full Issues
OpsMgr, SCE And MOM Blog MOM Reporting database grooming settings tool

myITforum.com Inside MOM Database Maintenance, Part I Database Grooming

myITforum.com Inside MOM Database Maintenance, Part II Building a Data Warehouse

====================================================

Hi Norma, Unfortunately deleting data from the reporting database is not an easy task. You'll need to change the retention period using the following SQL script and then run the MOMXPartitioning and Grooming job to clear the data. I recommend only changing the retention days by a few days at a time or else the groom will fail. The SQL script is as follows: --- Update the SystemCenterReporting data retention period Declare @Groomdays int --Retain data for 180 days Select @Groomdays=180 exec p_updateGroomDays 'SC_SampledNumericDataFact_Table', @Groomdays exec p_updateGroomDays 'SC_AlertFact_Table', @Groomdays exec p_updateGroomDays 'SC_EventParameterFact_Table', @Groomdays exec p_updateGroomDays 'SC_AlertToEventFact_Table', @Groomdays exec p_updateGroomDays 'SC_EventFact_Table', @Groomdays exec p_updateGroomDays 'SC_AlertHistoryFact_Table', @Groomdays Hope this helps, Andy

take ownership of files & folders

Administrator Cannot Access Another User's Redirected My Documents Folder
Even if an administrator has not permissions he should be able to take ownership via Explorer to access the folder properties for security. If that does not work for you for some reason take a look at the free utility fileacl that is also shown on the Microsoft website as it has an option to force ownership. If you still have problems check the user rights on that computer via secpol.msc to make sure that administrators have the user right to take ownership. I believe xcacls.vbs will also let you take ownsership

Download details: SubInACL (SubInACL.exe)

Download details: FILEACL

XCACLS Gui

> Note - I'm not a scripting guru either. And as much as I love command lines, > this particular sort of thing makes me nervous. Last time I did this, I used > the GUI in the link I originally posted for you - and *added* the group > Administrators, without changing anything else. Sorry I can't help further; > you might post in m.p.windows.server.scripting if you want to do this > without the little gui helper.
After a few hours of trial and error, this is what I came up with:
@echo off for /F "tokens=*" %%* in ('dir /ad /b *') do call :Sub %%* goto :eof
:Sub echo Processing %* ... subinacl.exe /file %* /objectcopysecurity=templateuser >> fix.log subinacl.exe /file %* /replace=templateuser=%* >> fix.log fileacl.exe %* /INHERIT /REPLACE /NOROOT /SUB /FILES >> fix.log fileacl.exe %* /O %* /NOROOT /SUB /FILES >> fix.log
It iterates through all directories and for each directory does the following:
1. Copies the permissions from the folder templateuser to the current directory (this also changes the owner). 2. Replaces the permissions for "templateuser" that were copied in step 1 with the username that matches the current directory. 3. Removes all non-standard permissions from subdirectories and files in the current directory and sets the inherit flag (inherit from parent). 4. Sets the owner back to the current user.
At first I was attempting to set the permissions manually as opposed to copying them from a folder with the correct permissions, but I was unable to replicate the permissions perfectly. subinacl.exe with the / objectcopysecurity and /replace switches really came to the rescue.
I just ran it overnight. I'm going to browse through fix.log to see if there were any problems, but looking at a sample of maybe 10 folders, it appears to have worked beautifully! Thanks for the help.
Cheers, Rickard

mom 2005

MOM 2005 Resource Kit
MOM 2005 Best Practices Guides - Duncan McAlynn's Microsoft Management Blog
MOM 2005 Best Practices and Limitations
Making MOM More Secure
mom resources
Pete's Management BLOG.... Responding to Alerts via Email with MOM 2005
Pete's Management BLOG.... Numerous Recent MOM 2005 Knowledge Base ArticlesPete's Management BLOG.... December 2006 12 days of mom tips
MOM database basics
Moving the OnePoint Database from a Server Running SQL Server to Another
installing MOM to monitor SQL Server
MOM Operations Database SDK Views
FAQShop.com Welcome to the MOM Section

Tuesday, December 18, 2007

remote desktop kb shortcuts

When you are in a remote desktop window the keyboards shortcuts you have become familiar with change slightly. Here are a few of the more common ones:

ALT+PAGE UP - Switches between programs from left to right.
CTRL+ESC - Switches the client between a window and full screen.
ALT+HOME - Displays the Start menu.
CTRL+ALT+MINUS (–) - Places a snapshot of the active window in the Remote Desktop session on the clipboard.
CTRL+ALT+PLUS (+) - Places a snapshot of the entire Remote Desktop session window on the clipboard.
CTRL+ALT+END - Displays the Task Manager

Monday, December 17, 2007

iso tools

Virtual Clone Drive. This utility will let you mount .ISO, .CCD, .DVD, .IMG, .UDF and .BIN files. Download the utility and start the setup process
MagicDisk - This is a nice, free utility with more features, but it's not quite as simple to use.


ImgBurn is a lightweight CD / DVD / HD DVD / Blu-ray burning application that everyone should have in their toolkit!

LC ISO Creator creates ISO files from CD/DVD-ROM.

download (LCISOCreator.zip - 14 kB)

from http://desktopengineer.com/home/all_articles/free_lucersoft_iso_creator

CD / DVD Data Recovery & Rescue software, featuring BD and HD DVD isobuster

Saturday, December 15, 2007

lmHosta file

from

http://www.svrops.com/svrops/documents/hostsdoc.htm#Setting%20Up%20LMHOSTS%20Files
====================

The following example shows how all of these keywords are used:
102.54.94.98 localsrv #PRE

102.54.94.97 trey #PRE #DOM:networking #net group's PDC

102.54.94.102 "appname \0x14" #special app server

102.54.94.123 popular #PRE #source server

#BEGIN_ALTERNATE

#INCLUDE \\localsrv\public\lmhosts #adds LMHOSTS from this server

#INCLUDE \\trey\public\lmhosts #adds LMHOSTS from this server

#END_ALTERNATE


In the preceding example:
The servers named localsrv and trey are preloaded so they can be used later in an #INCLUDE statement in a centrally maintained LMHOSTS file.
The server named "appname \0x14" contains a special character after the 15 characters in its name (including blanks), so its name is enclosed in quotation marks.
The server named popular is preloaded, based on the #PRE keyword.
Additional Comments
LMHOSTS example:

IP Address PDCName #PRE #DOM:domainname
IP Address "domainname,,,,,\0x1b" #PRE

Where IP Address is the address of your PDC.
PDCName is the name of your PDC
domainname is the name of your Domain
and
domainname,,,,, is also the name of your Domain. However, the commas represent spaces, and in this line, your domainname must be 15 characters. If it isn't, pad it with the appropriate number of spaces to reach 15 characters.
And...use the quotes

Your PDC acts as the Domain Master Browser, and as such, should have the browse lists of all Segment Master Browsers (if you have a multi-segment network), thus a list of all network devices.

The above LMHosts file tells your PC the name of the logon domain controller (your PDC), and the second line says use the PDC as your browse master.

If you can ping your PDC and net use a share to the PDC, then the above should work.

ad auth in vba

Sorry for delayed reply.

You should still be able to use the code in your first message in VB6, for example, following code works on my side in a VB6 program:

Function AuthCheck(ByVal sUser As String, ByVal sPassword As String) As Boolean
On Error GoTo E

Dim RootDSE
Dim DSObject
Dim Auth
Dim NamingContext
Const ADS_SECURE_AUTHENTICATION = 1

Set RootDSE = GetObject("GC://rootDSE")
NamingContext = RootDSE.Get("defaultNamingContext")

Set DSObject = GetObject("GC:")

Set Auth = DSObject.OpenDSObject("GC://" & NamingContext, sUser, sPassword, ADS_SECURE_AUTHENTICATION)

Set Auth = Nothing
Set DSObject = Nothing
Set RootDSE = Nothing

AuthCheck = True
Exit Function
E:
AuthCheck = False
' log the err.Description if needed
End Function


Calling AuthCheck("", "") will return True if the user/password is correct and return False if not.

If you need to use strong-typed objects, you need to reference "Active DS Type Library" in your VB6 project and use those objects accordingly. For example, OpenDSObject is a method of the interface IADsOpenDSObject.

Best regards,
Walter Wang
Microsoft Online Community Support

Thursday, December 13, 2007

excel user forms

Excel-VBA userforms 101 and FAQ - Xtreme Visual Basic Talk
X Factor user forms
SplashScrn
Create User Forms in Microsoft Excel
Excel VBA Code For Excel UserForms & Controls
ExcelUser -- Programming Excel

VBScript Classes

Creating Classes with VBScript
ASP 101 - Articles
DevGuru VBScript Object Class
VBScript in a Nutshell Chapter 2 Program Structure use find 2 search 4 Class Modules
Inside Microsoft Using VBScript Classes in ASP Applications
Creating Classes with VBScript 5.0

misc
JSWare - VBScripts and Components Topic and Function Index
JSWare - MSI - Windows Installer - Code and Utilities

vbscript error numbers w/ try catch class exmpl

try catch class

vbscript error ms page
==============================
Select Case Err
Case 61
sErrMsg = "Disk Full"
Case 71
sErrMsg = "Disk Not Ready"
Case 76
sErrMsg = "Path not found"
Case 70
sErrMsg = "Permission denied"

case else

sErrMsg = Err & " Undefined"

End Select

http://blogs.msdn.com/ericlippert/archive/2004/09/09/227461.aspx

=============================

5 Invalid procedure call or argument 6 Overflow 7 Out of memory 9 Subscript out of range 10 This array is fixed or temporarily locked 11 Division by zero 13 Type mismatch 14 Out of string space 17 Can't perform requested operation 28 Out of stack space 35 Sub or Function not defined 48 Error in loading DLL 51 Internal error 52 Bad file name or number 53 File not found 54 Bad file mode 55 File already open 57 Device I/O error 58 File already exists 61 Disk full 62 Input past end of file 67 Too many files 68 Device unavailable 70 Permission denied 71 Disk not ready 74 Can't rename with different drive 75 Path/File access error 76 Path not found 91 Object variable not set 92 For loop not initialized 94 Invalid use of Null 322 Can't create necessary temporary file 424 Object required 429 ActiveX component can't create object 430 Class doesn't support Automation 432 File name or class name not found during Automation operation 438 Object doesn't support this property or method 440 Automation error 445 Object doesn't support this action 446 Object doesn't support named arguments 447 Object doesn't support current locale setting 448 Named argument not found 449 Argument not optional 450 Wrong number of arguments or invalid property assignment 451 Object not a collection 453 Specified DLL function not found 455 Code resource lock error 457 This key is already associated with an element of this collection 458 Variable uses an Automation type not supported in VBScript 462 The remote server machine does not exist or is unavailable 481 Invalid picture 500 Variable is undefined 501 Illegal assignment 502 Object not safe for scripting 503 Object not safe for initializing 504 Object not safe for creating 505 Invalid or unqualified reference 506 Class not defined 507 An exception occurred32811 Element not found32812 The specified date is not available in the current locale's calendar

Tuesday, December 11, 2007

more vba

Excel’s VLOOKUP Function How to Use It and How to Nest It

Excel VBA: No Experience Necessary - Lesson 1
Excel VBA: No Experience Necessary - Lesson 2
Excel VBA: No Experience Necessary - Lesson 3
Excel VBA: No Experience Necessary - Lesson 4
Excel VBA–No Experience Necessary: Lesson 5



Sub TestPings() Dim cell As Range Dim astr() As String
Excel FAQ - Excel 101 - Xtreme Visual Basic Talk
Excel - My Excel Pages
Examples
Getting Started with Macros and User Defined Functions
VB(A) functions
Excel for Windows Visual Basic for Applications 101
Regular Expressions
regexp Patterns
VB(A) functions
Excel - Xtreme Visual Basic Talk
Excel FAQ - Excel 101 - Xtreme Visual Basic Talk
Kickbutt VBA Find Function - Excel Help & VBA Help
excel-vba-findall-method


=========================================================
Sub Comp()
Dim rSource As Range, rTarget As Range, SourceRow%, TargetRow%

Set rSource = ActiveWorkbook.Sheets(2).Range("A2").CurrentRegion
Set rTarget = ActiveWorkbook.Sheets(1).Range("A2").CurrentRegion

For SourceRow = 2 To rSource.Rows.Count
For TargetRow = 2 To rTarget.Rows.Count
If rSource.Cells(SourceRow, 8).Value = rTarget.Cells(TargetRow, 8).Value And _
rSource.Cells(SourceRow, 3).Value = rTarget.Cells(TargetRow, 3).Value And _
rSource.Cells(SourceRow, 6).Value = rTarget.Cells(TargetRow, 6).Value Then
rTarget.Cells(TargetRow, 4).Value = rSource.Cells(SourceRow, 4).Value
rTarget.Cells(TargetRow, 5).Value = rSource.Cells(SourceRow, 5).Value
rTarget.Cells(TargetRow, 7).Value = rSource.Cells(SourceRow, 7).Value
End If
Next TargetRow
Next SourceRow
End Sub

Saturday, December 8, 2007

Sunday, December 2, 2007

Perform an AD Search Using Alternate Credentials

Perform a Search Using Alternate Credentials


Microsoft Windows XP - Create a shortcut using runas command parameters

'==========================================================================
'
' VBScript Source File -- Created with SAPIEN Technologies PrimalScript 2007
'
' NAME:
'
' AUTHOR: mike mccafferty , mmcc
' DATE : 12/2/2007
'
' COMMENT: sites of interest
' http://www.windowsitlibrary.com/Content/2026/08/2.html
' using runAs with a shortcut
' http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_security_runas_shortcut.mspx?mfr=true
' ADU&C runas /user:DomainName\administrator "mmc %windir%\system32\dsa.msc"
' ADU&C runas /netonly /user:DomainName\UserName "mmc.exe dsa.msc"
'




'==========================================================================
Sub WMIalternateCreds1()

' From the book "Windows XP Cookbook"
' ISBN: 0596007256

' Note that you cannot use this to connect to the local machine.
' ------ SCRIPT CONFIGURATION ------
strServer = "" ' e.g. wks01
strUser = "" ' e.g. AMER\rallen.adm
strPasswd = ""
' ------ END CONFIGURATION ---------
on error resume next
set objLocator = CreateObject("WbemScripting.SWbemLocator")
set objWMI = objLocator.ConnectServer(strServer, "root\cimv2", _
strUser, strPasswd)
if Err.Number <> 0 then
WScript.Echo "Authentication failed: " & Err.Description
end if

' Now you can use the objWMI object to get an instance of a class
' or perform a WQL query. Here is an example:
colDisks = objWMI.InstancesOf("Win32_LogicalDisk")


End Sub


Sub ADalternateCreds2()
Dim objConn
Set objConn = CreateObject("ADODB.Connection")
objConn.ConnectionString = "Provider=ADSDSOObject;" & _
"User ID=MyUserID;Password=MyPassword;"
objConn.Open

End Sub

Sub ADalternateCreds3()

' You get a choice, you can either
' hard-code the Domain Name (or a Domain Controller Name) only,
' then get the Distinguished Name from Root DSE:
'



Const DOMAIN_NAME = ""

Set objLDAP = GetObject("LDAP:")
Set objRootDSE = objLDAP.OpenDSObject("LDAP://" & DOMAIN_NAME &_
"/RootDSE", strUsername, strPassword)


'Or Hardcode both, and just connect directly to the target container:


Const DOMAIN_NAME = ""
Const CONTAINER_PATH = "OU=SomeOU,DC=SomeDomain,DC=local"

Set objLDAP = GetObject("LDAP:")
Set objRootDSE = objLDAP.OpenDSObject("LDAP://" & DOMAIN_NAME &_
"/" & CONTAINER_PATH, strUsername, strPassword)


' You would have to specify a value for strUsername and strPassword in all cases.
'
' Personally, I favour pulling the Distinguished Name from RootDSE rather than hard-coding it. It just makes things easier to maintain for me.
'
' Chris

End Sub


Sub ADalternateCreds1()
On Error Resume Next

Const ADS_SCOPE_SUBTREE = 2

Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Properties("User ID") = "Administrator"
objConnection.Properties("Password") = "+77m5trgJo!"
objConnection.Properties("Encrypt Password") = TRUE
objConnection.Properties("ADSI Flag") = 1
objConnection.Open "Active Directory Provider"
Set objCommand.ActiveConnection = objConnection

objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE

objCommand.CommandText = _
"SELECT Name FROM 'LDAP://dc=fabrikam,dc=com' WHERE objectCategory='user'"
Set objRecordSet = objCommand.Execute
objRecordSet.MoveFirst

Do Until objRecordSet.EOF
Wscript.Echo objRecordSet.Fields("Name").Value
objRecordSet.MoveNext
Loop

end sub

Log Parser 2.2

WindowsDevCenter.com -- Using Log Parser 2.2
Log Parser 2.2 and ASP.NET
TechNet Webcast: Efficient Data Mining with Log Parser 2.2 (Level 300)
Microsoft TechNet column Tales from the Script - January 2005 All You Need is Log (Well, Log Parser)
Finding Duplicate Names in Active Directory - blog.scottlowe.org - The weblog of a senior engineer specializing in virtualization, storage, and servers
Complex Queries Against Active Directory - blog.scottlowe.org - The weblog of a senior engineer specializing in virtualization, storage, and servers

Saturday, December 1, 2007

free tools

Carl J » 15+ Free Visual Studio Add-Ins
Carl J » 15+ FREE Visual Studio Add-ins - Part 2
Carl J » 21+ FREE Regular Expression Tools & Resources (for .Net Developers)

regularExpressions 2

regex101
Regular Expression Visualizers for VS 2005

parse-textObject – AWK with a vengeance.

Carl J » 21+ FREE Regular Expression Tools & Resources (for .Net Developers)

For those starting out with Regex'es or those who are old hands here are some resources to help.
.NET Framework Developer's Guide .NET Framework Regular Expressions
Character Classes such as . \d \s [ ] defined.
Quantifiers such as + * ? { }
Options such as Multiline Compiled SingleLine
.Net Classes such as Regex Match MatchCollection GroupCollection
Examples
Tutorials
30 Minute Regex Tutorial on CodeProject.
.Net Coders Regex Overview breaks down groups and matches in one of the best overviews of the topics.
Introduction to Regular Expressions on CodeProject.
Understanding Basic Regular Expression Syntax (Section 3.10.) in the CodeProject's book chapter preview Microsoft Visual C# .NET 2003 Developer's Cookbook. Its a preview of Chapter 3: Strings and Regular Expressions.
Eric Gunnerson's Regex 101. A listing of differing match topics. Great for a beginner to look at after acquiring the basics of Regex, many examples.
How to: Search Strings Using Regular Expressions (C# Programming Guide) in MSDN Library.
Topics
Regular Expressions and the If Conditional on OmegaCoder's blog.
Want faster regular expressions? Maybe you should think about that IgnoreCase option...
(Compilation) For an overview of the three different modes, interpreted, on-the-fly compiled and precompiled see the MSDN article CLR Inside Out, "Base Class Library Performance Tips and Tricks"
(Compilation To an Assembly) section 3.13. Building a Regular Expression Library in the CodeProject's book chapter preview Microsoft Visual C# .NET 2003 Developer's Cookbook. Its a preview of Chapter 3: Strings and Regular Expressions.
Regex and Balanced Matching by Ryan Byington (MSFT) see als How to use RegexOptions IgnorePatternWhitspace from the Base Class Library (BCL) Team Blog.
A look into Matching Balanced Constructs with .NET Regular Expressions by Wes Haggard.
Regex Hangs My Expression by David Gutierrez in the BCL team blog.
The RegexOptions.Compiled Flag and Slow Performance on 64-Bit .NET Framework 2.0 BCL Team Blog
Programs (Not Sponsored or Endorsed by Microsoft) Just listed; no order implied.
Regular Expression Designer (.Net 1)
Expresso (.Net 2)(Free but registration) Used by most regex'ers; tool updated in 2007 to version 3.
RegEx Buddy ($)
Regular Expression WorkBench (.Net 1.1)(Free)
Regular Expression Visualizer for VS2005 by Roy Osherove. Write up about it here at Visual Studio Hacks. Its a VS2005 add-in.
Regulator also by Osherove, which is a stand alone regex tester.
Web Based Regex Testers
.Net Coders Expression Tester
Regex Testor by RegExLib.com main site has library of regex'es for browsing.
Other Non Regex Tools
GPLEX Lexical Analyzer for when Regex comes up short and a forum post that gives an example of its usage.
Forums
RegexAdvice.com is where the core regexer's, many different languages not just .net, give advice. Let them know you are using the .Net version.
Google Groups Regex Discussing Regular Expressions in variuos tools (perl, php, egrep, PowerGREP, .NET, procmail etc. etc). Let's help each other build effective regexes!
ASP Message Board : Regular expressions general discussions.
Books
Regular Expressions with .NET (ebook) by Dan Appleman.
Mastering Regular Expressions by Jeffrey Friedl.
Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta.
Regular Expression Recipes: A Problem-Solution Approach (ebook) by Nathan Good.

Active Directory (AD) Organizational Units,

InformIT Managing OUs, Users, and Groups in Active Directory Administering OUS
Scripts and Files of the Inside Active Directory book
Rem Managing GPO Links
TechTasks Code Center VBScript
Display OUs (VBScript) - Active Directory Cookbook, 2nd edition
VBScript OUs
Modify-the-General-Properties-of-an-OU

Thursday, November 22, 2007

Windows Explorer: Change Drive Listing Descriptors

http://www.dx21.com/TIPS/ViewItem.asp?oid=207&OS=Microsoft+Windows+Vista&S=WinV

Description

By default, Widows Vista (and XP) will display the description of the local and network drives first, followed by the drive letter. You can reverse the order by making a change to the registry.


Navigate to the below key:HKEY_CURRENT_USER\Software\Microsoft \Windows\CurrentVersion\Explorer
Locate the DWord value:ToggleCommentPosition
Set the value to one of the following:
1 = the drive letter is displayed first for remote drives.
2 = the drive letters are not displayed.
4 = the drive letter is displayed first for all drives.
Close the Registry Editor.
Close and reopen the Windows Explorer. You may need to use the F5 key to refresh the display.
Credit / Information

Author: VariousPost Date: 11/5/2007

Resolving PC Name from IP Address in

http://www.blogger.com/post-create.g?blogID=4011642678938322202

Hilltop Lab fancy scripts ADSI Scripting for Administering Windows 2000/2003 Networks

http://www.rlmueller.net/products.htm

name translate function

http://www.rlmueller.net/NameTranslateFAQ.htm


Frequently Asked Questions about NameTranslate
What is NameTranslate?
On What clients is NameTranslate available?
What can NameTranslate do for me?
Why do I need to use NameTranslate?
How do I use NameTranslate?
How about a quick example of the use of NameTranslate?
What are the options when I initialize NameTranslate?
What formats are accepted by the Set and Get methods of NameTranslate?
How do I convert an NT name to a Distinguished Name?
How do I convert the NetBIOS name of a computer to it's Distinguished Name?
How do I convert a Distinguished Name to an NT name?
How do I convert an NT Name to a Display Name?
How do I convert an NT Name to a User Principal Name?
How do I convert an NT Name to a GUID?
Can I convert the Display Name of a user to the Distinguished Name?
How do I find the NetBIOS name of the domain?
How do I specify credentials with NameTranslate?
Can I convert the names of more than one object at a time?
What errors can occur?
Where can I get more information?
1. What is NameTranslate?
NameTranslate refers to the IADsNameTranslate interface, which can be used to convert the names of Active Directory objects from one format to another.
2. On what clients is NameTranslate available?
The IADsNameTranslate interface is available on any client with Windows 2000 or above, or any other 32-bit client with DSClient installed. On Windows 95, Windows 98, Windows ME, or Windows NT clients, if DSClient is not installed, the IADsNameTranslate interface is only available if ADS is installed. The object is provided by ADSI on the client, but it must connect to Active Directory. The user must either be authenticated to the domain, or must provide credentials.
3. What can NameTranslate do for me?
The IADsNameTranslate interface can translate Active Directory object names between several formats. NameTranslate can be used to convert the name of any Active Directory object from one format to another. Among the formats supported by NameTranslate are:
Distinguished Names - format as specified in RFC 1779. For example cn=TestUser,ou=Sales,dc=MyDomain,dc=com.
NT format - the name format used in Windows NT 4.0. For example MyDomain\TestUser, where MyDomain is the NetBIOS name of the domain and TestUser is the NT name of the object. The sAMAccountName attribute is the NT name (or NetBIOS Name) of the object.
Canonical Name - For example MyDomain.com/Jim Anderson, where MyDomain.com is the DNS name of the domain and "Jim Anderson" is the Relative Distinguished Name (RDN, or the "cn" attribute, or common name, for most classes of objects) of the object.
Display Name - The displayName attribute of the object, for example "Jim L. Anderson".
User Principal Name (UPN) of the object. For example JimAnderson@MyDomain.com.
GUID - The Global Unique Identifier. For example {95ee9fff-3436-11d1-b2b0-d15ae3ac8436}.
4. Why do I need to use NameTranslate?
If you use the LDAP provider, which is more powerful and exposes more attributes than the WinNT provider, you must bind to Active Directory objects with the Distinguished Name of the object. However, most people refer to objects by their NT names. Users call this their UserName, or User ID. This single string value uniquely identifies the account in Active Directory. It is easier to remember and deal with than the lengthy Distinguished Name with its many components. In addition, the WshNetwork object can determine the NT name of the current user and the computer, but not the Distinguished Name.
5. How do I use NameTranslate?
The steps required to convert names with the IADsNameTranslate interface are:
Bind to the NameTranslate object.
Initialize the NameTranslate object by calling the Init method and specifying the type of translation.
Use the Set method of the NameTranslate object to specify the Active Directory object whose name will be converted.
Use the Get method of the NameTranslate object to retrieve the name of the Active Directory object in the desired format.
6. How about a quick example of the use of NameTranslate?
The VBScript code below converts the NT name of a user to the Distinguished Name:
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_1779 = 1' Specify the NetBIOS name of the domain and the NT name of the user.strNTName = "MyDomain\TestUser"' Use the NameTranslate object to convert the NT user name to the' Distinguished Name required for the LDAP provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the Set method to specify the NT format of the object name.objTrans.Set ADS_NAME_TYPE_NT4, strNTName
' Use the Get method to retrieve the RPC 1779 Distinguished Name.strUserDN = objTrans.Get(ADS_NAME_TYPE_1779)

' Escape any "/" characters with backslash escape character.
' All other characters that need to be escaped will be escaped.
strUserDN = Replace(strUserDN, "/", "\/")' Bind to the user object in Active Directory with the LDAP provider.Set objUser = GetObject("LDAP://" & strUserDN)

The following characters can appear in Distinguished Names, but must be escaped with the backslash "\" escape character:

,\/#+<>;"=

The Get method of the NameTranslate object will return the Distinguished Name with these characters properly escaped, with the exception of the forward slash character "/". If this character is found in the Distinguished Name, it should be replaced by "\/" before using the Distinguished Name in a binding string. Otherwise, an error will be raised.
7. What are the options when I initialize NameTranslate?
The Init method of the NameTranslate object accepts any of the following values:
Const ADS_NAME_INITTYPE_DOMAIN = 1
Const ADS_NAME_INITTYPE_SERVER = 2
Const ADS_NAME_INITTYPE_GC = 3
With ADS_NAME_INITTYPE_DOMAIN you specify the domain that the NameTranslate object will connect to. With ADS_NAME_INITTYPE_SERVER you specify the server (domain controller) that the NameTranslate object will connect to. With ADS_NAME_INITTYPE_GC the NameTranslate object locates a Global Catalog. Unless you are converting the name of an object in another domain, there is no need to use anything other than ADS_NAME_INITTYPE_GC. Code examples using each follow:
Const ADS_NAME_INITTYPE_DOMAIN = 1
Set objTrans = CreateObject("NameTranslate")
objTrans.Init ADS_NAME_INITTYPE_DOMAIN, "MyDomain.com"

Const ADS_NAME_INITTYPE_SERVER = 2
Set objTrans = CreateObject("NameTranslate")
objTrans.Init ADS_NAME_INITTYPE_SERVER, "MyServer"

The server name can be in the form "MyServer" or "MyServer.MyDomain.com"

Const ADS_NAME_INITTYPE_GC = 3
Set objTrans = CreateObject("NameTranslate")
objTrans.Init ADS_NAME_INIITTYPE_GC, ""
8. What formats are accepted by the Set and Get methods of NameTranslate?
The following constants define the formats used with the Set and Get methods to convert names:
Const ADS_NAME_TYPE_1779 = 1
Const ADS_NAME_TYPE_CANONICAL = 2
Const ADS_NAME_TYPE_NT4 = 3
Const ADS_NAME_TYPE_DISPLAY = 4
Const ADS_NAME_TYPE_DOMAIN_SIMPLE = 5
Const ADS_NAME_TYPE_ENTERPRISE_SIMPLE = 6
Const ADS_NAME_TYPE_GUID = 7
Const ADS_NAME_TYPE_UNKNOWN = 8
Const ADS_NAME_TYPE_USER_PRINCIPAL_NAME = 9
Const ADS_NAME_TYPE_CANONICAL_EX = 10
Const ADS_NAME_TYPE_SERVICE_PRINCIPAL_NAME = 11
Const ADS_NAME_TYPE_SID_OR_SID_HISTORY_NAME = 12
9. How do I convert an NT name to a Distinguished Name?
The VBScript example below converts the NT name of any user, in conjunction with the NetBIOS name of the domain, to the Distinguished Name of the user object:
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_1779 = 1' Specify the NetBIOS name of the domain.
strNetBIOSDomain = "MyDomain"

' Specify the NT name of the user.strNTName = "TestUser"' Use the NameTranslate object to convert the NT user name to the' Distinguished Name required for the LDAP provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the Set method to specify the NT format of the object name.objTrans.Set ADS_NAME_TYPE_NT4, strNetBIOSDomain & "\" & strNTName
' Use the Get method to retrieve the RPC 1779 Distinguished Name.strUserDN = objTrans.Get(ADS_NAME_TYPE_1779)
' Escape any "/" characters with backslash escape character.
' All other characters that need to be escaped will be escaped.
strUserDN = Replace(strUserDN, "/", "\/")' Bind to the user object in Active Directory with the LDAP provider.Set objUser = GetObject("LDAP://" & strUserDN)
If the object with the specified NT name does not exist, the Set method of the NameTranslate object raises an error. To programmatically determine the NetBIOS name of the domain you have authenticated to, see FAQ # 16 below.
10. How do I convert the NetBIOS name of a computer to it's Distinguished Name?
Computer accounts are just like user accounts, except that the sAMAccountName attribute of computer objects is terminated with "$". The NT name of a computer is the NetBIOS name with "$" appended on the end. The WshNetwork object returns the NetBIOS name of the computer. Before you can convert this name with NameTranslate, you must append the "$". For example:
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_1779 = 1' Specify the NetBIOS name of the domain.
strNetBIOSDomain = "MyDomain"

' Retrieve the NetBIOS name of the computer object from WshNetwork.
' Append a "$" on the end.
Set objNetwork = GetObject("Wscript.Network")
strComputer = objNetwork.ComputerName & "$"' Use the NameTranslate object to convert the NT computer name to the' Distinguished Name required for the LDAP provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the Set method to specify the NT format of the object name.objTrans.Set ADS_NAME_TYPE_NT4, strNetBIOSDomain & "\" & strComputer
' Use the Get method to retrieve the RPC 1779 Distinguished Name.strComputerDN = objTrans.Get(ADS_NAME_TYPE_1779)' Bind to the computer object in Active Directory with the LDAP provider.Set objComputer = GetObject("LDAP://" & strComputerDN)
This assumes that the Distinguished Name of the computer object does not contain any forward slash characters "/". If there are any forward slash characters, they must be escaped with the backslash escape character "\" to avoid an error when you bind to the object.
If you use NameTranslate to convert the Distinguished Name of a computer object to the NT from, you will need to parse the value returned by the Get method for the NetBIOS domain name and the NT name of the computer. If you want the NetBIOS name of the computer, you will need to strip off the trailing "$".
11. How do I convert a Distinguished Name to an NT name?
The VBScript example below converts the Distinguished Name of any user object to the NT form, which includes the NetBIOS name of the domain and the NT name of the user.
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_1779 = 1' Specify the Distinguished Name of the user.
strUserDN = "cn=TestUser,ou=Sales,dc=MyDomain,dc=com"

' Use the NameTranslate object to convert the Distinguished Name
' of the user to the NT Name required for the WinNT provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the Set method to specify the RPC 1779 format of the object name.objTrans.Set ADS_NAME_TYPE_1779, strUserDN
' Use the Get method to retrieve the NT Name.strNTName = objTrans.Get(ADS_NAME_TYPE_NT4)

' Parse for the NetBIOS name of the domain and the NT name of the user.
strNetBIOSDomain = Mid(strNTName, 1, InStr(strNTName, "\") - 1)
strUserName = Mid(strNTName, InStr(strNTName, "\") + 1)' Bind to the user object in Active Directory with the WinNT provider.Set objUser = GetObject("WinNT://" & strNetBIOSDomain & "/" & strUserName)
If the object with the specified Distinguished Name does not exist, the Set method of the NameTranslate object will raise an error.
12. How do I convert an NT Name to a Display Name?
The VBScript example below converts the NT form of any user name to the Display Name of the user object (the value of the displayName attribute):
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_DISPLAY = 4' Specify the NetBIOS name of the domain.
strNetBIOSDomain = "MyDomain"

' Specify the NT name of the user.strNTName = "TestUser"' Use the NameTranslate object to convert the NT user name to the' Distinguished Name required for the LDAP provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the Set method to specify the NT format of the object name.objTrans.Set ADS_NAME_TYPE_NT4, strNetBIOSDomain & "\" & strNTName
' Use the Get method to retrieve the Display Name.strDisplayName = objTrans.Get(ADS_NAME_TYPE_DISPLAY)
If the NT name of the user does not exist, the Set method of the NameTranslate object raises an error. However, if the object does not have a value assigned to the displayName attribute, the Get method of the NameTranslate object raises an error.13. How do I convert an NT Name to a User Principal Name?
The VBScript example below converts the NT form of any user name to the User Principal Name (the value of the userPrincipalName attribute):
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_USER_PRINCIPAL_NAME = 9' Specify the NetBIOS name of the domain.
strNetBIOSDomain = "MyDomain"

' Specify the NT name of the user.strNTName = "TestUser"' Use the NameTranslate object to convert the NT user name to the' Distinguished Name required for the LDAP provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the Set method to specify the NT format of the object name.objTrans.Set ADS_NAME_TYPE_NT4, strNetBIOSDomain & "\" & strNTName
' Use the Get method to retrieve the User Principal Name.strUserUPN = objTrans.Get(ADS_NAME_TYPE_USER_PRINCIPAL_NAME)
If the NT name of the user does not exist, the Set method of the NameTranslate object raises an error. However, if the object does not have a value assigned to the userPrincipalName attribute, the Get method of the NameTranslate object raises an error.14. How do I convert an NT Name to a GUID?
The VBScript example below converts the NT form of any user name to the GUID of the object. This is the value of the objectGUID attribute converted to a string format. It is also the value returned by the GUID property method of the object.
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_GUID = 7' Specify the NetBIOS name of the domain.
strNetBIOSDomain = "MyDomain"

' Specify the NT name of the user.strNTName = "TestUser"' Use the NameTranslate object to convert the NT user name to the' Distinguished Name required for the LDAP provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the Set method to specify the NT format of the object name.objTrans.Set ADS_NAME_TYPE_NT4, strNetBIOSDomain & "\" & strNTName
' Use the Get method to retrieve the GUID of the user object.strUserGuid = objTrans.Get(ADS_NAME_TYPE_GUID)
If the NT name of the user does not exist, the Set method of the NameTranslate object raises an error.
15. Can I convert the Display Name of a user to the Distinguished Name?
Yes, you can, as long as the user has a Display Name that is unique. If you specify ADS_NAME_INITTYPE_GC, the Display Name must be unique in the forest. Otherwise, it must be unique in the domain. An error will be raised by the Set method if the Display Name value you specify does not uniquely identify the object. The corresponding attribute is displayName. Of course, the value cannot be empty (null). A VBScript example follows:
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_1779 = 1Const ADS_NAME_TYPE_DISPLAY = 4' Specify the Display Name of the user.
strDisplay = "Test User"

' Use the NameTranslate object to convert the Display Name' of the user to the Distinguished Name.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the Set method to specify the Display Name of the object name.objTrans.Set ADS_NAME_TYPE_DISPLAY, strDisplay
' Use the Get method to retrieve the Distinguished Name of the user object.strUserDN = objTrans.Get(ADS_NAME_TYPE_1779)
If the Distinguished Name has any forward slash characters "/", they should be escaped with the backslash escape character "\" before using the Distinguished Name to bind to the corresponding object.
16. How do I find the NetBIOS name of the domain?
Most uses of the NameTranslate object require the NetBIOS name of the domain. If the client OS is NT or above, the environment variable %USERDOMAIN% is the NetBIOS name of the domain the user authenticated to. In VBScript, you can use the WshShell object to retrieve the value of this environment variable. For example:
Set objShell = CreateObject("Wscript.Shell")
strNetBIOSDomain = objShell.Environment("Process").Item("userdomain")
On any client, you can use the RootDSE object to retrieve the default naming context, which is the Distinguished Name of the domain that the user authenticated to. Then, you can use the NameTranslate object to convert this to the NetBIOS name of the domain. For example:
' Constants for the NameTranslate object.Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_1779 = 1

' Determine DNS name of domain from RootDSE.Set objRootDSE = GetObject("LDAP://RootDSE")strDNSDomain = objRootDSE.Get("defaultNamingContext")' Use the NameTranslate object to find the NetBIOS domain name from the' DNS domain name.Set objTrans = CreateObject("NameTranslate")objTrans.Init ADS_NAME_INITTYPE_GC, ""objTrans.Set ADS_NAME_TYPE_1779, strDNSDomainstrNetBIOSDomain = objTrans.Get(ADS_NAME_TYPE_NT4)' Remove trailing backslash.strNetBIOSDomain = Left(strNetBIOSDomain, Len(strNetBIOSDomain) - 1)
If the client is NT or above, you can also retrieve the NetBIOS domain name from the WshNetwork object. For example:
Set objNetwork = CreateObject("Wscript.Network")
strNetBIOSDomain = objNetwork.UserDomain
Finally, if the client is Windows 2000 or above, or NT with DSClient installed, you can use the WinNTSystemInfo object. For example:
Set objWinNTSysInfo = CreateObject("WinNTSystemInfo")
strNetBIOSDomain = objWinNTSysInfo.DomainName
You might attempt to retrieve the NetBIOS domain name from the domain object (binding with the DNS domain name retrieved from the RootDSE object). However, the nETBIOSName attribute of the domain object only has a value if the NetBIOS domain name is different from the Relative Distinguished Name of the domain (which is the top level domain component of the domain).
Note that the only method above that works on all clients (including Win9x) is the one that retrieves the DNS domain name from the RootDSE object and uses NameTranslate to convert this to the NT format.
17. How do I specify credentials with NameTranslate?
The InitEx method of the NameTranslate object is similar to the Init method, but allows you to specify a user name, domain, and password. The same connection options are supported. A VBScript example:
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_1779 = 1' Specify the NetBIOS name of the domain and the NT name of the user.strNTName = "MyDomain\TestUser"
' Specify a domain, user name, and password.
' The connection to Active Directory will be made with these credentials.
strDomain = "MyDomain"
strUser = "TestUser"
strPassword = "xyz321"
' Use the NameTranslate object to convert the NT user name to the' Distinguished Name required for the LDAP provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.
' Specify credentials.objTrans.InitEx ADS_NAME_INITTYPE_GC, "", strUser, strDomain, strPassword' Use the Set method to specify the NT format of the object name.objTrans.Set ADS_NAME_TYPE_NT4, strNTName
' Use the Get method to retrieve the RPC 1779 Distinguished Name.strUserDN = objTrans.Get(ADS_NAME_TYPE_1779)
' Escape any "/" characters with backslash escape character.
' All other characters that need to be escaped will be escaped.
strUserDN = Replace(strUserDN, "/", "\/")' Bind to the user object in Active Directory with the LDAP provider.Set objUser = GetObject("LDAP://" & strUserDN)
18. Can I convert the names of more than one object at a time?
Yes, you can. The SetEx and GetEx methods of the NameTranslate object are similar to the Set and Get methods, except that they deal with arrays of names. A VBScript example:
' Constants for the NameTranslate object.
Const ADS_NAME_INITTYPE_GC = 3Const ADS_NAME_TYPE_NT4 = 3Const ADS_NAME_TYPE_1779 = 1' Specify the NT form of several user names.arrNTNames(0) = "MyDomain\TestUser"
arrNTNames(1) = "MyDomain\JoeSmith"
arrNTNames(2) = "MyDomain\MaryNelson"' Use the NameTranslate object to convert the NT user names to the' Distinguished Names required for the LDAP provider.Set objTrans = CreateObject("NameTranslate")
' Initialize NameTranslate by locating the Global Catalog.objTrans.Init ADS_NAME_INITTYPE_GC, ""' Use the SetEx method to specify the NT format of the object names.objTrans.Set ADS_NAME_TYPE_NT4, arrNTNames
' Use the GetEx method to retrieve the RPC 1779 Distinguished Names.arrUserDNs = objTrans.GetEx(ADS_NAME_TYPE_1779)
For k = 0 To UBound(arrUserDNs)
Wscript.Echo arrUserDNs(k)
Next
19. What errors can occur?
If the domain, server, or GC cannot be contacted, the Init method will raise an error. This will happen if you are not authenticated to the domain. You can use the InitEx method to specify user credentials. Of course, an error will be raised by the InitEx method if the credentials are incorrect, or if the domain, server, or GC cannot be contacted.
If the object with the name specified does not exist, the Set method will raise an error.
If the object does not have a value defined for the corresponding attribute, the Get method will raise an error. For example, if the displayName attribute has no value, the Get method will raise an error if you have specified ADS_NAME_TYPE_DISPLAY. Similarly, if userPrincipalName has no value, Get will raise an error if you have specified ADS_NAME_TYPE_USER_PRINCIPAL_NAME. Such an error will never occur if you attempt to retrieve a name in the formats ADS_NAME_TYPE_1779, ADS_NAME_TYPE_CANONICAL, ADS_NAME_TYPE_NT4, or ADS_NAME_TYPE_GUID because the corresponding attributes always have a value.
The Set method will raise an error if the value specified does not uniquely identify the object in Active Directory. For example, more than one user could have the same value assigned to the displayName attribute. If you specify the object with the Set method and ADS_TYPE_NAME_DISPLAY and specify a value that could identify more than one object, an error will be raised. Once again, note that this cannot happen with ADS_NAME_TYPE_1779, ADS_NAME_TYPE_CANONICAL, ADS_NAME_TYPE_NT4, ADS_NAME_TYPE_USER_PRINCIPAL_NAME, or ADS_NAME_TYPE_GUID, because the corresponding attribute values must be unique.
20. Where can I get more information?
For more information on NameTranslate, see the following links:
IADsNameTranslate Interface: http://msdn2.microsoft.com/en-us/library/Aa706046.aspx
ADS_NAME_INITTYPE_ENUM: http://msdn2.microsoft.com/en-us/library/Aa772266.aspx
ADS_NAME_TYPE_ENUM: http://msdn2.microsoft.com/en-us/library/Aa772267.aspx
Init Method: http://msdn2.microsoft.com/en-us/library/Aa706049.aspx
Set Method: http://msdn2.microsoft.com/en-us/library/Aa706053.aspx
Get Method: http://msdn2.microsoft.com/en-us/library/Aa706047.aspx
InitEx Method: http://msdn2.microsoft.com/en-us/library/Aa706050.aspx
SetEx Method: http://msdn2.microsoft.com/en-us/library/Aa706054.aspx
GetEx Method: http://msdn2.microsoft.com/en-us/library/Aa706048.aspx

Thursday, November 15, 2007

dell server info

========================================
videos

Dell OpenManage integration with Microsoft Operations Manager (MOM) Dell OpenManage integration with Microsoft SMS 2003Dell OpenManage Remote Access Controller
Find a Notebook, Desktop, Server, Printer, Software, Service, Monitor or TV at Dell. setting up a DRAC video click on ITpro > knowledgebase > setting up a DRAC Dell OpenManage ITA7 - DiscoveryDell OpenManage ITA7 - Managing DevicesDell OpenManage ITA7 - Server Update UtilityDell OpenManage OMSA - OverviewNetwork Manager
=========================================

Basic Blade 1855 and 1955 Installation/Setup including DRAC

Updated on 06/23/06This document has been created to help with the installation/setup of the 1855 and 1955. It is to be used as a reference and may contain some steps that will not apply during your particular installation.Contents:

Dell OpenManage™ Server Administrator CIM Reference Guide

Using WMI Scripting for System Administration PDF

using CIM tools 2 manage dell powerEdge servers PDF
servers & storage forum

How to Download, Install and Set-up OpenManage Server Administrator

Find the Tutorial You need at a glance

Dell USA > Support Home Page

direct2dell bloggs

OpenManage Systems Management homePage
Dell Systems Management Resources#1
Dell OpenManage Resources info about dracs +
Dell Support - Technical Support, Drivers & Downloads, Troubleshooting, Product Manuals and Order Status
TechTalk - Dell Community Forum
Keyboard and mouse not responce in Web based Console Redirection - Systems Management - Dell Community Forum
Remote Access Controller 5 (DRAC 5) Version 1.20 users guide
Updating DRAC Firmware on PE 1855-1955 Chassis - Archived Media - Dell Community Forum
Dell Remote Access Controller 5 Firmware Version 1.0 User's Guide
Configuring Your System to Use a DRAC 5
Using RACADM DRAC command line interface
How to Configure DRACs without Booting to Automation and Other Useful Tips Altiris Juice
Altiris® Deployment Solution™ for Dell Servers
Put IPMI or DRAC Comands in a Job (even custom commands!) with DS for Dell Servers. Altiris Juice

Saturday, November 10, 2007

create a folder for an external drive

  • First, plug in your first USB storage device.
  • Go to the Windows XP disk manager by right clicking on 'my computer,' hitting 'manage,' expanding the 'storage' category and choosing 'disk management.'
    In the lower disk management window, locate the entry for your USB storage device. It will be marked as 'removable.'
  • Right click the entry and select 'change drive letters and paths
  • Click the 'add' button, then highlight 'mount in the following empty NTFS folder.'
    Use the 'browse' button, then the 'new folder' button to create an empty folder in the location of your choice. This will be the new home of your USB drive.
  • Choose the new folder and click 'ok' to get back to the 'add drive letter or path' window.
  • Now that you have your new drive folder, you can remove the drive letter that your USB device was automatically given if you'd like.
  • To do this, click 'remove' and take it out
  • Click 'ok.' Your USB drive is now permanently assigned to the new folder you created. When it is plugged in, the drive is accessible like any other folder on the disk you chose.
  • When the drive is unplugged, the folder will still appear as normal, but will be inaccessible.
  • You can share this folder over a network just as you would with any other folder. Share permissions will be removed and restored as the drive is removed and returned.
    Repeat this procedure with your other USB storage devices, creating a new directory for each. Now each of your devices has its own particular identity on your network.

Thursday, November 1, 2007

Image Mapping API 2.0 Downloads

Image Mapping API 2.0 Downloads

What Is IMAPIv2?
The Image Mastering API version 2.0 is a pretty cool thing for script writers. It allows you to not only get information about your CD and DVD drives, but it allows you to actually burn CDs and DVDs.



Introduction to IMAPIv2

Burning CDs and DVDs

Image Mastering API v2.0 for Windows XP

Image Mastering API v2.0 for Windows Server 2003

Image Mastering API v2.0 for Windows XP x64 Edition

Image Mastering API v2.0 for Windows Server 2003 x64 Edition

Saturday, October 27, 2007

2_Get

Tordex Wheel version 1.0.0
Gparted version 0.3.4.1
VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.