Solved

Script to auto run newsid

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

Linux Academy Android App Now Supports Chromecast

We have some fantastic news for our Android fans. We’re so excited to announce that the Linux Academy Android app is now available with Chromecast support. That’s right – simply download the latest update of the Linux Academy App and start casting your favorite course videos!

Question has a verified solution.

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

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…
So the following errors occurs in 2 ways that I am aware of at this stage, and you receive one of the following error messages: ERROR 1. When trying to save a rule: No Web listener is specified for the Web publishing rule Autodiscovery Publishin…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

626 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