Esselbach Contentteller CMS

  • Programs
  • Articles
  • News
  • Links
  • About
    • Virus, Malware & Rootkit Cleanup Links
  • Forums
Site Search
Loading

Programs
· Tweaking.com Programs

Articles
· Tips and Tweaks
· Virus, Malware & Rootkit Cleanup Links



Donate
All our programs are completely free. We are 100% advertising and donation supported.

Top Programs collapse/expand
· Windows Repair (All In One)
· Simple System Tweaker
· Advanced System Tweaker
· Repair Windows Firewall
· System Information Tool
· Registry Backup
· Reset Registry Permissions
· Repair Internet Explorer
· Repair Winsock & DNS Cache
· Repair Hosts File

Top Articles collapse/expand
· Virus, Malware & Rootkit Cleanup Links
· Tweaking.com - Windows Repair (All In One) Tips
· Increase Network Performance
· IP/DNS Tweak
· Tweaking.com - Advanced System Tweaker Online Help
· Fix/Repair File Permissions
· Should I Turn Off My Computer (Most commonly asked question)
· Tweaking.com - Registry Backup Online Help & FAQ
· Right-Click Tweaks (2000, XP, Vista, 2003, 2008 & 7)
· Increase Windows Performance By Changing Visual Effects (XP, Vista & 7)

News collapse/expand
  • Latest
  • Top

· Tweaking.com - Windows Repair (All in One) v1.9.14 Released
· Tweaking.com - svchost.exe Lookup Tool v1.5.0 Released
· Tweaking.com - Windows Repair (All in One) v1.9.13 Released
· Tweaking.com - Advanced System Tweaker v2.0.0 Released
· Tweaking.com - Windows Repair (All in One) v1.9.12 Released
· Tweaking.com - Advanced System Tweaker v1.2.0 Released
· Two Program Updates
· Tweaking.com - Registry Compressor v1.0.0 Released
· Tweaking.com - Windows Repair (All in One) v1.9.10 Released
· Tweaking.com - Windows Repair (All in One) v1.9.9 Released
· Tweaking.com - Simple Performance Boost v1.0.2 Released
· Login issue fixed.
· Tweaking.com - Windows Repair (All in One) v1.5.3 Released
· Tweaking.com - Windows Repair (All in One) v1.6.4 Released
· Tweaking.com - Simple Performance Boost v1.0.5 Released
· Tweaking.com - Windows Repair (All in One) v1.5.2 Released
· Soft launch - Forums coming soon.
· Tweaking.com - Windows Repair (All in One) v1.8.0 Released
· Tweaking.com - Windows Repair v1.0 Released
· 3 Programs Updated

Top Links collapse/expand
· PcWinTech.com
· SimplePortForwarding.com
· Microsoft Support


Tweaking.com » Articles » How To Keep Vista, 7 & XP's Password From Expiring » Page 1

How To Keep Vista, 7 & XP's Password From Expiring

Posted by: Shane on: 08/09/2011 09:02 PM [ Print | 0 comment(s) ]



By default, in Vista, 7 and sometimes in XP, you must reset your password every so often. Well, a lot of times this isn't needed and some people just get annoyed by it. Luckily, turning this off is VERY simple. However, you could also use the VBS script I wrote to automatically disable this feature.

This is a perfect tool for an admin, computer tech, or any common user. Sometimes just clicking a file and being done is better than doing it manually.

The VBS code is very simple and already available for you in the zip file.

This script references the currently logged on user to detect the names of both the current user and computer and then does the work for you.

Code-----------------------------------------------------------------------

Const ADS_UF_DONT_EXPIRE_PASSWD = &H10000

Dim user
Dim username
Dim computername
Dim lngFlag

Set WshNetwork = WScript.CreateObject("WScript.Network")

computername = WshNetwork.ComputerName
username = WshNetwork.UserName

Set user = GetObject("WinNT://" & computername & "/" & username & ",user")

lngFlag = user.Get("userflags")

If (lngFlag And ADS_UF_DONT_EXPIRE_PASSWD) = 0 Then

lngFlag = lngFlag Xor ADS_UF_DONT_EXPIRE_PASSWD
user.Put "userflags", lngFlag
user.SetInfo

msgbox username & " on " & computername & " Password now set to not expire."

else

msgbox username & " on " & computername & " Password already set to not expire."

End If

Code-----------------------------------------------------------------------



Now if you wish to do it manually that is very simple to.

Start with right clicking on "My Computer" or "Computer" and on that menu left click on “Manage”. From here, on the left, you go to "Local Users and Groups" then “Users”. Open your user(s) and finish by setting the field and click apply. All done!



Easy as pie, once you learn it.

Tweaking.com » Articles » How To Keep Vista, 7 & XP's Password From Expiring » Page 1
© 2013 Tweaking.com
Powered by Contentteller® Business Edition