Re: Windows XP login script problems with using If Exists
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 09/24/04
- Previous message: David Wang [Msft]: "Re: Running a .bat file on a server in another domain"
- In reply to: Striffy: "Re: Windows XP login script problems with using If Exists"
- Next in thread: Striffy: "Re: Windows XP login script problems with using If Exists"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Sep 2004 21:04:20 -0700
Well, the signal for auditing doesn't have to be on the audit server -- you
DO have some server which is always running, right? Put the signal file on
it.
Your question is really related to a batch file and have nothing to do with
scripting -- so you can ask:
microsoft.public.win2000.cmdprompt.admin
to see if they have any more advice. There are several experienced
administrators active in that newsgroup who can probably give alternative
solutions.
Regarding GSX -- you may want to look at Microsoft Virtual Server if you are
concerned about performance and price.
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "Striffy" <striffett@telstra.com> wrote in message news:734f5fcb.0409222200.18473f8b@posting.google.com... 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
- Previous message: David Wang [Msft]: "Re: Running a .bat file on a server in another domain"
- In reply to: Striffy: "Re: Windows XP login script problems with using If Exists"
- Next in thread: Striffy: "Re: Windows XP login script problems with using If Exists"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading