Tag Info

New answers tagged

0

I changed my script as below and converted from BAT to EXE using an application @echo off setlocal enableextensions enabledelayedexpansion for /f %%a in (C:\Users\calcopm\Desktop\list.txt) do ( IF %%a equ 0.0.0.0 ( shutdown /s ) ELSE ( ping -n 1 -w 100 IF errorlevel 1 ( ECHO REMOTE %%a IS NOT REACHABLE ) else ( psshutdown \\%%a ) ) ) Still I was facing ...


0

If you are always repeating the same disks then you could just put them in as static. I've done this for USB keys. SELECT DISK 6 CLEAN CREATE PART PRI SELECT PART 1 ACTIVE ASSIGN FORMAT FS=fat32 quick label="WINPE" SELECT DISK 7 CLEAN CREATE PART PRI SELECT PART 1 ACTIVE ASSIGN FORMAT FS=fat32 quick label="WINPE" EXIT


-2

Rem: This worked for me @echo off setlocal @echo off > %0.ftp >> %0.ftp echo open **server** >> %0.ftp echo **userid** >> %0.ftp echo **password** >> %0.ftp hash >> %0.ftp asc >> %0.ftp echo lcd c:\program\data\ (your local path) >> %0.ftp echo cd fam/user/tcs/in/hold (your ftp path) >> %0.ftp echo get ...


1

Provided PSRemoting is enabled on your web servers you can simply run the following command to run the backup on multiple computers: invoke-command -ComputerName "webserver1","webserver2","webserver3" -Scriptblock {Import-Module WebAdministration; backup-webconfiguration -name IIS_backup} You can also separate your server list from the command as follows: ...



Top 50 recent answers are included