You are not logged in.

#1 16 Mar 2007 18:06

Derrick.Anderson
Member
Registered: 16 Mar 2007
Posts: 1

SU and RunAs - syntax - what else is there to know?

I have a winbatch script that is using the following SU syntax. I could not really find much in regards to "Winsta0\Default -e" definitions ... can anyone shed some light on this for me?

Winsta0\Default -e verses Winsta\Default

run(sComspec,StrCat("/c echo ",bbb,"|","c:\SYSTEM32\Su.Exe"," ",aaa," ",s34,"c:\SYSTEM32\Su.Exe",s34," ",sDomain," Winsta0\Default -e"))

This syntax is strange to me ... it doesnt really follow the flow that i am accustomed to - any insight would be appreciated.

Also, RunAs ... how can i enter the password unattended and without the need of third party tools - is it at all possible?

PS..
The goal is to install appz (eg:Office) with a system account for clients (unattended installations via SMS warpped with winbatch) need a run as for a profile - does this make sense at all.

Last edited by Derrick.Anderson (16 Mar 2007 18:13)

Offline

#2 16 Mar 2007 19:31

Simon Sheppard
Admin
Registered: 27 Aug 2005
Posts: 1,130
Website

Re: SU and RunAs - syntax - what else is there to know?

If you use SMS 2003 R2 you can specify an installation account - i.e. a domain account setup with the relevant permissions, then theres no need to mess with RunAs.

Offline

Board footer

Powered by