Rexxer

Some tips for me and other

News

Exchange + Search mail

get-mailbox -resultsize unlimited | Search-Mailbox -SearchQuery ‘attachment:”Filename”‘ -TargetMailbox UserName -TargetFolder “FolderName” -LogOnly -LogLevel Ful another lookup: Search-Mailbox -Identity “vasya.pupkin” -SearchQuery “to:domainname.com” -TargetMailbox “ivan.ivanov” -TargetFolder “Folderame” -LogLevel Full

Exchnage + Restore Deleted Items between dates

Search-Mailbox -identity ivan.ivanov -SearchDumpsterOnly -SearchQuery “Received:2016-01-01..2016-04-01” -TargetMailbox ForDeletedMail -TargetFolder RestoredDeleted Another example: Search-Mailbox Superman -SearchDumpster -SearchQuery “(Received:1/1/2012..5/18/2016) AND (To:Batman@DC.com OR From:Batman@DC.com OR CC:Batman@DC.com OR BCC:Batman@DC.com OR ‘Batman’ OR ‘Bruce’ OR ‘Wayne’)” –targetmailbox BobTheLawyer -loglevel full -targetfolder “Search_Batman” Keywords for SearchQuery: https://msdn.microsoft.com/library/ee558911%28v=office.15%29.aspx?f=255&MSPPError=-2147217396 Script (I haven’t try it): https://blogs.msdn.microsoft.com/emeamsgdev/2012/04/27/powershell-script-to-recover-all-deleted-items-in-a-mailbox/

iPhone + DFU mode

Для того что бы перевести телефон в DFU режим нужно зажать кнопки HOME и POWER на 10 секунд, потом не отпуская HOME отпустить POWER (экран телефона должен быть черным), держать HOME еще 10 сек. Телефон в это время должен быть подключен к компьютеру. iTunes определит что телефон находится в режиме восстановления, на экране телефона не […]

WSUS + Repairing

You can try to connect to Windows Internal Database with SQL manager(run as admin) by \\.\pipe\MICROSOFT##WID\tsql\query link. In my case I found SUSDB with Pending repairing status. I took it offline and then online after 2-3 attempts. I could backup it and shrink but this didn’t help – the DB was about 6Gb. So I […]

Server reboot + variants

Нормальная работа reboot проблемы с софтом reboot -f проблемы с ядром/маунтами/libc echo b>/proc/sysrq-trigger проблемы с ядром/маунтами/libc и нет открытой консоли ipt_SYSRQ (надо подготовить заранее) проблемы с ядром/железом ipmitool chassis power cycle проблемы с ядром/железом без открытой консоли ipmitool -H ipmi.server.local chassis power cycle проблемы с автономной переферией/БП/ipmi ребут через IP-розетку

My Interactive Environment Monitoring System (IEMS)

I built IEMS for our office with sensors DS1820B and cables for ethernet (current cable system inside walls) – looks like: We monitor temperature for all the rooms and CO2, humidity, temperature from Netatmo weather station. We’re going to upgrade the sensors to DHT22 to monitor humidity also. I use Html + Google charts + […]

RRDTools + fine design

#!/bin/sh /usr/local/bin/rrdtool graph /usr/local/www/apache22/data/images/netatmo0.png \ –width 400 –height 150 –font TITLE:13 –color BACK#444444 –color SHADEA#444444 –color SHADEB#444444 –color CANVAS#444444 –color FONT#ff7518 –slope-mode –start -1d –end now –units-exponent 0 –vertical-label “ppm” –title “CO2 from Netatmo” –imgformat PNG \ DEF:n0=/var/rrdtool/db/netatmo.rrd:n0:AVERAGE \ LINE1:n0#00ff00:”CO2″ \ VDEF:sn0=n0,AVERAGE \ CDEF:tp_17=n0,0,GT,n0,1700,GT,1700,n0,IF,0,IF AREA:tp_17#29206D \ CDEF:tp_16=n0,0,GT,n0,1600,GT,1600,n0,IF,0,IF AREA:tp_16#29106D \ CDEF:tp_15=n0,0,GT,n0,1500,GT,1500,n0,IF,0,IF AREA:tp_15#28006D \ CDEF:tp_14=n0,0,GT,n0,1400,GT,1400,n0,IF,0,IF AREA:tp_14#28106D \ […]

Sysprep your Windows OS for more than 3 times

Copy-pasted from: http://system-center.me/miscellaneous/sysprep-your-windows-os-for-more-then-3-times/ It can happen, the need of re-syspreping an already syspreped machine, why ? maybe you lost your Image master. so.. you running the setup process, adding the changes you want, relocating the XML answerfile, running the sysprep with /generalize switch.. the process is running for few seconds and then the sysprep window is […]

Delete an upgrade notification to Windows 10

WUSA /Uninstall /KB:3035583

Windows 10 + Sysprep + Generalize + Error

I couldn’t run Sysprep on Windows 10 because some packages were incompatible with Sysprep. But you can do it without the option Generalize. Fix: Run Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation – you will see what the user blocks running Login with this users and run: Remove-AppxPackage -Package <invalid packagefullname […]

Previous Posts Next posts