These scripts should be useful for Helpdesk or other IT Admins to query remote machines to see who is logged on.
Script #1
gwmi -computername computername -class win32_computersystem -property username
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.
These scripts should be useful for Helpdesk or other IT Admins to query remote machines to see who is logged on.
Script #1
gwmi -computername computername -class win32_computersystem -property username
There are 2 methods you can use when installing a Chrome Extension
Windows note: Until bug 41902 is fixed, you might want to use the Windows registry instead of the preferences file.
Note: Previous versions of Google Chrome used an external_extensions.json file to specify which extensions to install. This file has been deprecated in favor of individual .json files, one per extension.
If all fails, you can just use a reference machine to collect your settings, and then replicate those settings and files through all profiles using this
@rem —– ExeScript Options End —–
@echo on
set CurDir=%CD%
set _curruser=%%~nu
c:\windows\system32\taskkill.exe /f /im chrome.exe
:::::::::::EXTRACT FILES ::::::::::::
“%CurDir%\source_files.exe”
::::::::::::END EXTRACT::::::::::::::
:::::::::::BEGIN OS CHECK::::::::::::
ver | find “XP” > nul
if %ERRORLEVEL% == 0 goto :winxp
ver | find “7600” > nul
if %ERRORLEVEL% == 0 goto :win7
ver | find “7601” > nul
if %ERRORLEVEL% == 0 goto :win7
goto :end
::::::::::::END OS CHECK:::::::::::::
:winxp
REM RETURN WINXP USER PROFILES – run routine minus exceptions
rem get user profiles
for /D %%u in (C:\docume~1\*) do (
rem add exceptions here
if “%_curruser%” NEQ “administrator” (
if “%_curruser%” NEQ “All Users” (
if “%_curruser%” NEQ “Default” (
if “%_curruser%” NEQ “LocalService” (
if “%_curruser%” NEQ “NetworkService” (
rem copies all required files
xcopy “%CurDir%\source_files\*.*” “C:\Documents and Settings\%_curruser%\Local Settings\Application Data\Google\Chrome\User Data\Default\” /s /e /h /c /y
)
)
)
)
)
)
exit /b 0
:win7
REM RETURN WIN7 USER PROFILES – run routine minus exceptions
rem get user profiles
for /D %%u in (C:\Users\*) do (
rem add exceptions here
if %_curruser% NEQ Public (
if %_curruser% NEQ Default (
rem copies all required files
xcopy “%CurDir%\source_files\*.*” “C:\Users\%_curruser%\AppData\Local\Google\Chrome\User Data\Default\” /s /e /h /c /y
)
)
)
exit /b 0