IT Management Daily
Storage Daily
Security Daily
FREE NEWSLETTERS
search
 

follow us on Twitter


internet.commerce
Be a Commerce Partner















internet.com
IT
Developer
Internet News
Small Business
Personal Technology

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




Products
 LinqConnect Express (LinqConnect Express)
 LinqConnect 2.00 (Devart)
 EMS SQL Manager for MySQL (EMS Database Management Solutions, Inc.)
 EMS SQL Management Studio for MySQL (EMS Database Management Solutions, Inc.)
 Database Designer for PostgreSQL (MicroOLAP Technologies LTD)
 ESBFinCalc Pro - Financial Calculator (ESB Consultancy)
» Enterprise IT Planet » Resources » SMS Scripts

Script for Changing the Local Administrator Password

September 26, 2003

Email Print Digg This Add to del.icio.us
Here's a script from Anand Upadhyay that uses the Windows 2000 Resource Kit tool Cusrmgr.exe to change the Local Administrator Password. You can do more with this tool, but the script will only change the Local Administrator password. Once you compile the script as an EXE file, you can run it through SMS with Local Admin rights.

Download the password.ipf file.

<< Back to SMS Scripts list.


Below is the entire script:


Document Type: IPF
item: Global
  Version=6.0
  Title English=Change Local Administrator Password.
  Flags=01011000
  Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  LanguagesList=English
  Default Language=2
  Japanese Font Name=MS Gothic
  Japanese Font Size=10
  Start Gradient=0 0 255
  End Gradient=0 0 0
  Windows Flags=00010000000000000010110000011000
  Message Font=MS Sans Serif
  Font Size=8
  Disk Filename=SETUP
  Patch Flags=0000000000001001
  Patch Threshold=85
  Patch Memory=4000
  FTP Cluster Size=20
end
item: Custom Graphic
  Width=1010
  Height=615
  Flags=0000000010000000
  item: Rectangle
    Rectangle=0 0 509 56
    Flags=11100001
    Pen Width=1
    Brush Style=1000
    Extra Flags=00000100
  end
  item: Text
    Text English=Local Administrator Password Change.
    Rectangle=7 7 506 48
    Pen Color=16777215
    Pen Width=1
    Extra Flags=00000011
    Name=Century Gothic
    Font Style=-19 0 0 0 400 0 0 0 0 3 2 1 34
  end
  item: Rectangle
    Rectangle=772 582 1010 615
    Pen Width=1
    Brush Style=1000
    Extra Flags=00000100
  end
  item: Text
    Text English=Created By: Anand Upadhyay
    Rectangle=781 590 975 608
    Flags=00010011
    Pen Color=16777215
    Pen Width=1
    Extra Flags=00000011
    Name=MS Sans Serif
    Font Style=-12 0 0 0 0 0 0 0 0 0 0 0 0
  end
end
remarked item: Remark
  Text=Note: Compile this script to EXE and run it through SMS with Local Admin rights
end
item: Set Variable
  Variable=DEST_C
  Value=C:
end
remarked item: Remark
  Text=Make sure Cusrmgr.exe is available on C:\ drive before you compile this script.
end
remarked item: Remark
  Text=Cusrmgr.exe is available on Windows 2000 Resource kit but it is also compatible with NT 4.0
end
remarked item: Remark
  Text=Installing tool which will be removed later.
end
item: Install File
  Source=c:\Cusrmgr.exe
  Destination=%DEST_C%\Cusrmgr.exe
  Flags=0000000000100010
end
remarked item: Remark
  Text=Getting Computername from Registry and putting it into Variable.
end
item: Get Registry Key Value
  Variable=COMPUTERNAME
  Key=SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
  Value Name=ComputerName
  Flags=00000100
end
remarked item: Remark
  Text=Resetting Local Administrator Password
end
remarked item: Remark
  Text=Change **Administrator** name in below line, only if you need to 
  and change **password** in below line with your custome password.
end
item: Execute Program
  Pathname=%DEST_C%\Cusrmgr.exe

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. We 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

SMS Scripts Archives