- Joined
- 2 Dec 2001
- Messages
- 18,694
I am writing a batch file and have a problem with one of the sections
Basically echo MailboxName=%UserName%>> custom11.PRF would ideally output MailboxName=%UserName% into the file custom11.PRF but is instead using the global variable of the username which isn't so good as it will be running as a machine logon script, is there any way I can get around this?
Edited to remove company name.
Code:
echo ; Section 4 - Default values for each service.>> custom11.PRF
echo ;***************************************************************>> custom11.PRF
echo.>> custom11.PRF
echo [ServiceX]>> custom11.PRF
echo CachedExchangeMode=0x00000003>> custom11.PRF
echo CachedExchangeSlowDetect=TRUE>> custom11.PRF
echo.>> custom11.PRF
echo [ServiceEGS]>> custom11.PRF
echo CachedExchangeConfigFlags=0x00000500>> custom11.PRF
echo MailboxName=%UserName%>> custom11.PRF
echo HomeServer=mail.network.local>> custom11.PRF
Basically echo MailboxName=%UserName%>> custom11.PRF would ideally output MailboxName=%UserName% into the file custom11.PRF but is instead using the global variable of the username which isn't so good as it will be running as a machine logon script, is there any way I can get around this?
Edited to remove company name.
Last edited: