Cause 100% CPU load with Powershell

Powershell script to cause high cpu load (100%!)

foreach ($loopnumber in 1..2147483647) {$result=1;foreach ($number in 1..2147483647) {$result = $result * $number};$result}

Powershell – Get logedinuser

Powershell script som kolalr vilken user som är inloggad på en remote maskin… nice to have

$Computer = Read-Host ”Enter computername you want to check logedin user at”
Get-WmiObject Win32_LoggedOnUser -ComputerName $Computer | Select Antecedent -Unique

Uninstall trendMicro client – scripted

 

Cool

UT.cmd

  For32-bit OS: HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro
For 64-bit OS: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6232Node\TrendMicroWorryFree7
[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\UniClient\1600\Misc.]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6232Node\TrendMicro\UniClient\1600\Misc.] (Probably!) 

Worry free 7 – Automatic uninstallation script x86/x64

REQUIRES UAC ELEVATION !!!!!! aka do run as admin….

———————————–
echo Windows Registry Editor Version 5.00 >%temp%\T.reg
if %PROCESSOR_ARCHITECTURE%==x86 echo [HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\UniClient\1600\Misc.] >>%temp%\T.reg
if %PROCESSOR_ARCHITECTURE%==AMD64 echo [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6232Node\TrendMicro\UniClient\1600\Misc.] >>%temp%\T.reg
echo ”NoPwdProtect”=dword:00000000 >>%temp%\T.reg
echo ”Unload_Pwd”= >>%temp%\T.reg
echo ”AllowUninstall”=dword:00000001 >>%temp%\T.reg
echo ”Uninstall_Pwd”=”” >>%temp%\T.reg

regedit /S %temp%\t.reg
msiexec /x {0A07E717-BB5D-4B99-840B-6C5DED52B277} /q /passive

———————————-

uninstall guiden finner man under ”Wolfie” [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall]