Search found 9 matches

by Cancerous
22 Oct 2012 16:46
Forum: DOS Batch Forum
Topic: USB Activator
Replies: 5
Views: 5526

Re: USB Activator

Just get a macro keyboard or mouse.
by Cancerous
17 Oct 2012 19:54
Forum: DOS Batch Forum
Topic: Batch files running on startup - Not running synchronously.
Replies: 17
Views: 12844

Re: Batch files running on startup - Not running synchronous

EDIT: This didn't work! Finally solved it. For some reason the IF EXIST check doesn't work with netdom, so I just made the netdom script a one liner. netdom join %computername% /Domain:XXX /UserD:XXX /PasswordD:XXX /REBoot It looks incorrect (logically), but it works! So for anyone who sees this lat...
by Cancerous
15 Oct 2012 20:56
Forum: DOS Batch Forum
Topic: Batch files running on startup - Not running synchronously.
Replies: 17
Views: 12844

Re: Batch files running on startup - Not running synchronous

Soooo I figured out what is most likely the issue.

Netdom won't run from the .bat file, but will run if I type it directly in to the shell. Any ideas as to why this happens?
by Cancerous
14 Oct 2012 16:42
Forum: DOS Batch Forum
Topic: Batch files running on startup - Not running synchronously.
Replies: 17
Views: 12844

Re: Batch files running on startup - Not running synchronous

I dont mess with sysprep install, I slipstream with RT7 and use oobe and setupcomplete via runonce, with sfx apps and then add my unattend.xml to root of usb , walk away and when I come back win7 is setup 100% , all apps preinstalled ie: Office Pro, Nero, AcrobatX Pro , AVG etc and setup , pinned t...
by Cancerous
14 Oct 2012 16:28
Forum: DOS Batch Forum
Topic: Batch files running on startup - Not running synchronously.
Replies: 17
Views: 12844

Re: Batch files running on startup - Not running synchronous

joindomain.bat IF EXIST c:\namechanged.flag ( IF NOT EXIST c:\joineddomain.flag ( netdom join %computername% /Domain:Company /UserD:Admin PasswordD:password /REBoot echo > joineddomain.flag) ) delete.bat IF EXIST c:\joineddomain.flag ( net user Admin /del del c:\joindomain.bat del c:\wsname.bat del...
by Cancerous
11 Oct 2012 22:52
Forum: DOS Batch Forum
Topic: Batch files running on startup - Not running synchronously.
Replies: 17
Views: 12844

Re: Batch files running on startup - Not running synchronous

You can use || and && in batch. Well then... That makes things easier... Is this syntax correct? @echo off IF NOT EXIST c:\changedname.flag c:\wsname.exe /N:$SERIALNUM /REBOOT; echo.> c:\changedname.flag || IF NOT EXIST c:\joineddomain.flag netdom join %computername% /Domain:Domain /UserD:A...
by Cancerous
11 Oct 2012 22:22
Forum: DOS Batch Forum
Topic: Batch files running on startup - Not running synchronously.
Replies: 17
Views: 12844

Re: Batch files running on startup - Not running synchronous

You know if your wanting to do a automated install of win7 you could easily acomplish most everything you want just by using the Autounattend.xml and also make your install pretty much hands free as well. I will be glad to post or pm mine over to you if it would help.. I'm using sysprep with unatte...
by Cancerous
11 Oct 2012 18:23
Forum: DOS Batch Forum
Topic: Batch files running on startup - Not running synchronously.
Replies: 17
Views: 12844

Re: Batch files running on startup - Not running synchronous

Closed parenthesis was a typo, the script has it but I had to type them out due to them being on a VM and copy paste not working properly.

What's the purpose of a period in echo.>?
by Cancerous
11 Oct 2012 17:09
Forum: DOS Batch Forum
Topic: Batch files running on startup - Not running synchronously.
Replies: 17
Views: 12844

Batch files running on startup - Not running synchronously.

I'm setting up an image for a totally automated install of Windows 7 - this includes setting the computer name (using wsname), and joining it to the domain (using netdom). Overview: Run sysprep Change computer name Reboot Add to domain Reboot wsname and netdom both have reboot functions built in, ho...