Storage News
Security News
Networking News 
FREE NEWSLETTERS
search
 

internet.commerce
Be a Commerce Partner
Managed Hosting
Phone Systems
PDA Phones & Cases
Promotional Products
Web Hosting Directory
Laptop Batteries
Complex Webhosting
Laptop Battery
Web Hosting
Promote Your Website
Business Gifts Canada
Data Center Solutions
Laptop Computers
Internet Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Understand Your Exposure: New Mission Critical Systems for E-Mail and IM
Article: This article takes a look at electronic messaging, areas of compliance and security and how the need to manage e-mail and instant messaging to minimize security and legal exposure has joined availability and storage as critical concerns for managing an organization's messaging. >>
 
IT Risk Management: An Essential Strategy for Business Management
Whitepaper: As dependency on IT increases, exposure to IT risk continues to grow. Most organizations do not have an adequate understanding of the IT risks they face. This whitepaper provides a model for categorizing, prioritizing, and addressing IT risk management challenges. >>
 
Fundamentals of Mail Security
Strategy Guide: This guide examines the results of Symantec's 2006 security surveys, evaluates spam and malware solutions, and analyzes security assessment appliances. >>
 
Five Steps to IT Risk Management Best Practices
Article: Greg Hughes, Symantec's Executive Vice President of Worldwide Services and Support, explores the best practices of managing and balancing information risk and reward. >>
 
Emerging Trends in Fighting Spam
Whitepaper: This whitepaper focuses on the latest techniques spammers are using to deliver content through existing spam-blocking defenses, such as image spam, as well as Symantec's approach to solving the problem of image spam, botnets and other threats. >>
For more whitepapers, webcasts, articles, and resources on data archiving and storage management, click here.

Products
 Wireless USB Hub and Adapter (IOGEAR, Inc)
 SANmelody (DataCore Software)
 Autoloader / SuperLoader (Quantum Corp)
 Caspio Bridge / ExpressDB (Caspio, Inc)
 sepagoPROFILE (sepago GmbH)
 EnterpriseDB Advanced Server (EnterpriseDB Corp)
» Enterprise IT Planet » Resources » Win Scripts

Whitepaper: Automating Secure System Access for External Business Associates. Reduce manual processes, and access real-time information, get faster and easier collaboration, & 2-way info transfer.

Set 'Change Password' Flag in AD

July 20, 2004

Email Print Digg This Add to del.icio.us

Author: Eugenio Talarico
Platform: Windows
Type: VBScript

Description: Set 'change password' flag in Active Directory.

If you specify:

0 Select USER MUST CHANGE PWD
-1 Deselect USER MUST CHANGE PWD.
Batch structure:
for /f "tokens=1-2 delims=;" %%a in (input.txt) do (
cscript r_ch_pwd.vbs %%a %%b)
into the input.txt put:
username;-1

You have to specify where the TARGET OBJECT IS CONTAINED into the VBS script.

Scroll down to view the script.


''*****************************************************************************
''* INTO STRVARIABL LINE PUT THE PATH WHERE THE OBJECT TARGET IS CONTAINED
''*****************************************************************************
''*****************************************************************************
strVariabl = "OU=pippo,OU=pluto"
''*****************************************************************************
''*****************************************************************************
''*****************************************************************************
By
Eugenio
Script Code: dim nome
dim param
ParseCommandLine()
Const ADS_PROPERTY_APPEND = 3 
Set objRootDSE = GetObject("LDAP://rootDSE")
''*****************************************************************************
''* INTO STRVARIABL LINE PUT THE PATH WHERE THE OBJECT TARGET IS CONTAINED
''*****************************************************************************
''*****************************************************************************
strVariabl = "OU=pippo,OU=pluto"
''*****************************************************************************
''*****************************************************************************
''*****************************************************************************
strFissa =  strVariabl & "," & objRootDSE.Get("defaultNamingContext")
Set objUser = GetObject _
    ("LDAP://cn="& nome & "," & strFissa)
objUser.Put "pwdLastSet", param
objUser.SetInfo
Sub ParseCommandLine()
  	Dim vArgs
  	set vArgs = WScript.Arguments
  	if vArgs.Count <> 2 then 
      		DisplayUsage()
  	Else
     		nome = vArgs(0)
		param = vargs(1)
	End if
End Sub

Disclaimer: We hope that the information in these pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as - is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by me. I shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.

Email Print Digg This Add to del.icio.us

Win Scripts Archives

Access FREE xxxxxxx Tools:
Access FREE HP ProCurve Tools:
Whitepaper:
ProCurve ProActive Defense Empowers Your Business with More Security and Less Complexity

Whitepaper:
Extending the Enterprise Network Through Mobility

Whitepaper:
Convergence--Preparing the Enterprise Network

Video:
ProCurve Networking by HP

Solutions


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers