Solved

Script to auto run newsid

Posted on 2009-04-14
1
1,854 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
exchange 2007, scripts 15 73
Archive .pst - Why my archive has only Inbox folder? 5 82
Need to Modify a Script I found 5 92
Need sample Angular apps for study 4 71
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to count occurrences of each item in an array.

920 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

13 Experts available now in Live!

Get 1:1 Help Now