OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Hidding logon script window
From: Phil (dontaskDONTTELL.COM)
Date: Thu Nov 02 2000 - 21:11:33 CST


Actually, it would be 'nul', not 'null' - using 'null' will create a file in
the current directory with that name.

However...porting this to nul may be a mistake, though, as doing so will
make any prompts such as this completely invisible to the user:

    The password or user name is invalid for \\localhost\c$.

    Type the password for \\localhost\c$:

-Phil

----- Original Message -----
From: "Paul Snedden" <psneddenGBMLOGIC.COM.AU>
To: <FOCUS-MSSECURITYFOCUS.COM>
Sent: Thursday, November 02, 2000 2:30 PM
Subject: Re: Hidding logon script window

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As well as this, you chould/should pipe the results of commands to
null

eggs-ample
net use g: \\server\share$ > null

In this way, you won't see the "The command completed successfully."
line. Instead, you could put in an echo command along the lines of
"Setting up Drive G: for Common Files" or whatever.

> -----Original Message-----
> From: Focus on Microsoft Mailing List
> [mailto:FOCUS-MSSECURITYFOCUS.COM]On Behalf Of Chris Hanlon
> Sent: Friday, November 03, 2000 8:49 AM
> To: FOCUS-MSSECURITYFOCUS.COM
> Subject: Re: Hidding logon script window
>
>
> If you put 'echo off' in your batch file the users won't see any
> commands until you call another batch file or execute 'echo on'.
> Another option is to precede a command with an symbol if you type
> 'dir'
> the user will see the output of dir but not the command.
>
> It might be a good to start your login script with 'echo off'.
>
Chris

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBOgFeVHz2HXQUsCJOEQKw4wCg8cGdLOoAeh+5mSCum917PJlnLmQAoOmX
yruxHkn0gat89+l4AqlCv3H3
=7qiu
-----END PGP SIGNATURE-----