https://www.youtube.com/watch?v=8PVeLqWnaXk
Tuesday, December 25, 2018
Monday, July 6, 2015
Make a unc network path appear as a local drive
Run a cmd prompt as administrator
for example:
C:\>mklink /D C:\Backups \\fileserver\Backups\
symbolic link created for C:\Backups <<===>> \\fileserver\Backups\
for example:
C:\>mklink /D C:\Backups \\fileserver\Backups\
symbolic link created for C:\Backups <<===>> \\fileserver\Backups\
Thursday, March 6, 2014
Friday, September 14, 2012
Disable hybernation and delete hyberfil.sys on multiple remote computers
Create a folder on the root of your C: drive. I named miune Cleanup_Hyberfil. In that folder put, Psexec.exe, Psinfo.exe and a txt file name COMPUTERS.TXT that has the computers you want to target. Make a batch file in the same folder with the following content:
PSEXEC @COMPUTERS.TXT -u domain\username -p {password} -d -e -h %WINDIR%\SYSTEM32\NET.EXE user Administrator {password}
psinfo -d Free @COMPUTERS.TXT -u localhost\Administrator -p {password}
psexec @COMPUTERS.TXT -u Administrator -p {password} %windir%\system32\powercfg /H OFF
psinfo -d Free @COMPUTERS.TXT -u localhost\Administrator -p {password}
PAUSE
PSEXEC @COMPUTERS.TXT -u domain\username -p {password} -d -e -h %WINDIR%\SYSTEM32\NET.EXE user Administrator {password}
psinfo -d Free @COMPUTERS.TXT -u localhost\Administrator -p {password}
psexec @COMPUTERS.TXT -u Administrator -p {password} %windir%\system32\powercfg /H OFF
psinfo -d Free @COMPUTERS.TXT -u localhost\Administrator -p {password}
PAUSE
Tuesday, September 11, 2012
Change screen resolution remotely on multiple computers
Download ResSwitch from:
http://www.naughter.com/qres.html
Put into a folder on the root of C: with PSexec. Put target computers in a text file named COMPUTERS.txt. Create a batch file with the following content, (edit according to the desired resolution):
psexec @COMPUTERS.TXT -u domain\username -p password -c -d -e -f -i %cd%\ResSwitch.exe /WIDTH:1280 /HEIGHT:1024 /DEPTH:32 /UPDATEREGISTRY /GLOBAL /RESETpause
http://www.naughter.com/qres.html
Put into a folder on the root of C: with PSexec. Put target computers in a text file named COMPUTERS.txt. Create a batch file with the following content, (edit according to the desired resolution):
psexec @COMPUTERS.TXT -u domain\username -p password -c -d -e -f -i %cd%\ResSwitch.exe /WIDTH:1280 /HEIGHT:1024 /DEPTH:32 /UPDATEREGISTRY /GLOBAL /RESETpause
Thursday, July 19, 2012
Retrieve the uptime for multiple computers
Download uptime.exe from Microsoft:
Place psexec.exe, COMPUTERS.txt, and uptime.exe in the same folder.
psexec @COMPUTERS.TXT -u domain\username -p password -c -e -f uptime.exe >> C:\uptime.txt
Will output the uptime for each machine to C:\uptime.txt on your local machine.
Place psexec.exe, COMPUTERS.txt, and uptime.exe in the same folder.
psexec @COMPUTERS.TXT -u domain\username -p password -c -e -f uptime.exe >> C:\uptime.txt
Will output the uptime for each machine to C:\uptime.txt on your local machine.
Monday, July 16, 2012
Create vSphere client shortcuts to vCenters that save your username and password
Properties of the shortcut:
Target:
"C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -i yes -s vCenterServerNameHere -u domain\username -p password
Start in:
"C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher"
Target:
"C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe" -i yes -s vCenterServerNameHere -u domain\username -p password
Start in:
"C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher"
Subscribe to:
Posts (Atom)