Logon Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey all...

I got an easy one here.. I'm trying to use logon and have a bat file which
inside is doing a If exist command and will not run :(.

Can you not run dos commands in the group policy logon?

Reason I'm using If exist is because I'm checking to see if an application
is installed. If it is the just continue with the bat file.

Thanks,
Rob
 
You should be fine running batch command in GP logon scripts. I suspect its
either the syntax or something else. Can you run the script as the user
interactively?


--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
And, the Windows Group Policy Guide is out from Microsoft Press!!! Check it
out at http://www.microsoft.com/mspress/books/8763.asp
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy
 
Yes I ran it as the user and worked perfectly fine...

Here is the code for the bat file....

@echo off
REM **********************************************************
REM **** Windows 2000 and XP LOGON SCRIPT
REM ****
REM **********************************************************
pause

If Exist "c:\Program Files\Sap\FrontEnd\SapGui\saplogon.exe" goto exit

echo Your machine will reboot when this install finishes. Press return to
continue:
pause
\\server\SAPShare\setup\sapSetup.exe /p:"SAP Install"
:goto Exit
pause
:Exit
\\server\SapShare\InstVL3.bat

Exit
 
Howdy Rob!

You're sure you deployed your script as a logon script and not a startup
script?

cheers,

Florian
 
Back
Top