Solved

Script to auto run newsid

Posted on 2009-04-14
1
1,868 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
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…
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…

751 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