Solved

Script to auto run newsid

Posted on 2009-04-14
1
1,848 Views
Last Modified: 2012-05-06
We want to use script to autorun newsid for XP /2000 clients.
After i try "newsid /a", there is an agreement need to click yes/agree.
How can i make it auto answer yes to auto run newsid?
Many thanks.
0
Comment
Question by:dickchan
1 Comment
 
LVL 7

Accepted Solution

by:
garethh86 earned 500 total points
ID: 24136852
I think you have to specify the computer name after the command like so:

newsid /a <computername>

without the <>, otherwise it will ask you before you continue, see below a vb script that will make it automatically for you:

Also see: http://www.msfn.org/board/Assigning-newsid-compute-t114386.html for ideas on naming convention of the machines, you can use the serial number and the date of the machine.
Dim strMachineName = "SomeSortofNamingConvention"

Set objShell = CreateObject("WScript.Shell")

Set objScriptExec = objShell.Exec("newsid /a " & strMachineName)

Open in new window

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now