Nicky Raven
asked on
Batch File tool box
Hello All
I have a small batch file as pasted below and I am unable to make this work as it only open's the first msc then just stops can anyone help and point out what I have done wrong as I will require all the msc's files and exe's opening as specific user.
if you know of a different way I'm open to suggestions
,
@runas /user:Domain\User "cmd /c \"start dsa.msc\"" && "cmd /c \"start tsadmin.msc\"" && "cmd /c \"start Exchange Management Console.msc"" && "cmd /c \"start wsus.msc"" && "C:\Program Files (x86)\Windows Resource Kits\Tools\lockoutstatus.e xe"
'
for you info
Systems in use are Windows 7, Exchange 2010,, Windows Recourse Kit Tools, Admin tolls for Windows 7,
any other information needed just ask
I have a small batch file as pasted below and I am unable to make this work as it only open's the first msc then just stops can anyone help and point out what I have done wrong as I will require all the msc's files and exe's opening as specific user.
if you know of a different way I'm open to suggestions
,
@runas /user:Domain\User "cmd /c \"start dsa.msc\"" && "cmd /c \"start tsadmin.msc\"" && "cmd /c \"start Exchange Management Console.msc"" && "cmd /c \"start wsus.msc"" && "C:\Program Files (x86)\Windows Resource Kits\Tools\lockoutstatus.e
'
for you info
Systems in use are Windows 7, Exchange 2010,, Windows Recourse Kit Tools, Admin tolls for Windows 7,
any other information needed just ask
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorted by little problem faster than I relized
Then it's the lockoutstatus.exe that's keeping the command prompt open.
Just add a start "" at the beginning of line 12, so that it looks like the rest:
Just add a start "" at the beginning of line 12, so that it looks like the rest:
start "" "C:\Program Files (x86)\Windows Resource Kits\Tools\lockoutstatus.exe"
ASKER
Perfect thanks a lot for this super fast reply and solving my query, this will save me time getting all the admin programs up and running in the morning instead of shift right clicking then running as on all of then individually.
ASKER
my rendition
Open in new window