If CheckEXE ( s32bitCCMViewerEXE ) = false and CheckEXE ( s64bitCCMViewerEXE ) = false then sErrMsg = "Could not find the SCCM remote command exe (CmRcViewer.exe). bPrompt = true s64bitCCMViewerEXE = "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\i386\CmRcViewer.exe" s32bitCCMViewerEXE = "C:\Program Files\Microsoft Configuration Manager\AdminConsole\bin\i386\CmRcViewer.exe" 'If we can't find an instances of the CmRcViewer.exe somewhere in our ' defined paths, then quit. ' 'Version 1.1 - Rob Dunn - ' Option Explicit Dim bPrompt, s32bitCCMViewerEXE, s64bitCCMViewerEXE, sErrMsg, WshShell Dim CCMViewerEXE, sSiteCode, sServer, objShell, sComputer Dim objArgs, objFile, objFS 'Set to 'true' if you want to have the option to choose ' your site server and code when you execute the script. 'This simply pings a computer name, then attempts to ' connect to it using the SCCM remote viewer app if ' the computer is online.
0 Comments
Leave a Reply. |