Search

Admin Boba

…exchange ideas and make Your job easier…

Category

CMD

How to read serial number on remote client

wmic /node: “hostname” bios get serialnumber

Advertisements

Silent Clean Disk batch script – GPO – Cleanmgr

For silent disk cleanup user computers we use batch logoff script in GPO:


cleanmgr/d c: /verylowdisk

Logon Scripts for installing AdobeReader

I found some scripts which can be use for installing AdobeReader and ather sofware via GPO:

First Example:

@ECHO OFF
TITLE Adobe Reader Installer
ECHO *************************************************************
ECHO This will install Adobe Reader on remote nodes              *
ECHO Script by JohnnyJammer                                      *
ECHO *************************************************************
    SET /p target=What is the name of the Target computer:
ECHO Copying over Adobe Reader to %target%'s C:\ drive
    XCOPY /y "\\FQDN_Path\to\your\file\AdbeRdrUpd11011.msp" "\\%target%\C$"
ECHO Now installing Adobe Reader
    ::%target% could be reading a file like so
    ::wmic /node:@C:\SometextFilewithComputerNames.txt process call create "C:\AdbeRdrUpd11011.msp /sAll /msi /norestart ALLUSERS=1 EULA_ACCEPT=YES UPDATE_MODE=3"
    wmic /node:%target% process call create "C:\AdbeRdrUpd11011.msp /sAll /msi /norestart ALLUSERS=1 EULA_ACCEPT=YES UPDATE_MODE=3"
::Allow 5 minutes to install, may need more time for this!
ping -n 300 127.0.0.1 > %TMP%\PING
ECHO Checking version
wmic product where (name like 'adobe reader%%') get version
ECHO Cleaning up files........................
    del "\\%target%\C$\AdbeRdrUpd11011.msp"
    del %TMP%\PING
ECHO Done.......................................
    pause

Make txt list off clients:

net view | find /i "\\" | sort >> C:\SortedWorkstations.txt

Second Example:

@ECHO OFF
::http://www.adobe.com/products/reader/distribution.html
cls
title Installing Adobe Reader
echo Installing Adobe Reader. . .

set READER="\\SERVER\FOLDER\AdbeRdr1011_en_US.exe"
if not exist %READER% set missing=%READER% & goto ERR1
goto INSTALL

:INSTALL
%READER% /sPB
goto END

:ERR1
cls
echo Unable to locate: %missing%
echo.
pause
goto END

:END
exit

Telnet u Safe Mode

Da bi pokrenuli telnet na klijenu u “safe mode”-u potrebno je pre nego što pokrenete klijenta u “safemode” u CMD pustit komandu:

REG COPY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TlntSvr HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\TlntSvr /s /f

Blog at WordPress.com.

Up ↑