I have the following script:
@echo off
if not "%computername%" == "remote" (
\\mbplwfile\audit$\Logon.vbs
)
if "%computername%" == "remote" (
c:\WINDOWS\syswow64\cscript.exe \\mbplwfile\audit$\Logon.vbs
)
This script is ran via GP to all users to track their logon times and from which computer they are doing this from, which is the logon.vbs. However, the computer "remote" is a Server200364bit system and thus I needed to change the location of the cscript.exe to the syswow64 folder. The above works fine. NOW, I have a bunch of new Win764bit systems, so how I make this script run to change the location of the cscript for all Win764bit systems. I feel as though I am on the right track, but I am not a script expert and any help or guidance would be much appreciated.
@echo off
if not "%computername%" == "remote" (
\\mbplwfile\audit$\Logon.vbs
)
if "%computername%" == "remote" (
c:\WINDOWS\syswow64\cscript.exe \\mbplwfile\audit$\Logon.vbs
)
This script is ran via GP to all users to track their logon times and from which computer they are doing this from, which is the logon.vbs. However, the computer "remote" is a Server200364bit system and thus I needed to change the location of the cscript.exe to the syswow64 folder. The above works fine. NOW, I have a bunch of new Win764bit systems, so how I make this script run to change the location of the cscript for all Win764bit systems. I feel as though I am on the right track, but I am not a script expert and any help or guidance would be much appreciated.