Re: Windows XP login script problems with using If Exists
From: Striffy (striffett_at_telstra.com)
Date: 09/23/04
- Next message: Jamie: "Long delay trying to use EnableDHCP() method"
- Previous message: Jerold Schulman: "Re: automatic user creation"
- In reply to: David Wang [Msft]: "Re: Windows XP login script problems with using If Exists"
- Messages sorted by: [ date ] [ thread ]
Date: 23 Sep 2004 14:24:22 -0700
Thanks for the reply.
This is similar to how we map network drives, look for a file if it
can see it then map this dirve.
I thought that then this would be similar to the same process, if you
can see the executable (audit.exe) then run it?
The problem is the server is a GSX virtual server and due to $$$$ it's
on a host server with other GSX machines and is overloaded, thus
having to turn it off when not in use, as this all this server does is
audit..
I know it's not good practice but have to do with what we have....
Cheers
S
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message news:<OS2dU05nEHA.3896@TK2MSFTNGP15.phx.gbl>...
> I think you were relying on fragile automation and should fix your script.
> I did not see the timeout problem when I tried it on W2K, XP, nor Windows
> Server 2003, so I think the behavior is just something fragile and dependent
> on your configuration.
>
> A better approach is for you to fix your automation to rely on less fragile
> behavior -- doing a conditional based on a network timeout is horrible --
> doing a conditional based on existence/absence of a file is far better.
>
> You should leave the audit server on all the time. Instead, write a
> zero-byte file of a particular name on the server share to indicate whether
> scanning should proceed or not.
>
> i.e.
> \\servername should be powered all the time and audit$ share be available
> Add or delete \\servername\audit$\DoScan.txt whenever you want the audit to
> happen.
>
>
> IF EXIST \\servername\audit$\DoScan.txt START
> \\server\audit$\scanner\scan32.exe
>
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
> "Striffy" <striffett@telstra.com> wrote in message
> news:734f5fcb.0409201944.71e69c5d@posting.google.com...
> Hi,
> We've come across a problem with XP machines running a login script,
> the problem doesn't happen with the Windows 2000 machines.
>
> Problem is we have a audit server which when turned on will audit the
> companies computers using a login script, when turned off the script
> using 'IF Exists' command and should not be able to find it and move
> on, what we found is when the Audit server is not on, the script is
> stuck at this part and seems to either keep on trying to find the
> server or times out and doesn't continue.
>
> this is the part giving us the problems
>
> rem Running Sotware Audit utility
> IF EXIST \\servername\audit$\scanner\scan32.exe START
> \\server\audit$\scanner\scan32.exe
>
> Any help greatly appreciated
>
> S
- Next message: Jamie: "Long delay trying to use EnableDHCP() method"
- Previous message: Jerold Schulman: "Re: automatic user creation"
- In reply to: David Wang [Msft]: "Re: Windows XP login script problems with using If Exists"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|