https://www.simple-talk.com/sysadmin/exchange/the-active-directory-recycle-bin-in-windows-server-2008-r2/
PFsense – Collection of things good to remember…

/etc/rc.conf_mount_rw to make filesystem temporarily writeable
/etc/rc.conf_mount_ro to set filesystem back to read-only
Restore backup and check filesystem of Pfsense Firewall
Select to boot into “single user” mode.
When you get a prompt, remount the filesystem into read/write mode using “mount -u /cf”
Check the filesystem for errors and repair them with “fsck -yf /“. or just fsck…
Locate and copy the restore file from the “/cf/conf/backup/” directory.
Copy it with ”cp /cf/conf/backup/config-12121221.xml /cf/config/config.xml”
Remove the file “/tmp/config.cache” using “rm /tmp/config.cache“.
Run the command “/etc/rc.reload_all start“.
Reboot using “reboot“.
Powershell commands
kolla vad man har för version av powershell installerat…
if ($PSVersionTable.PSVersion.Major -ne 3) {Write-Host ”Version 3 NOT found!”;exit}
Download link Powershell 3.0 (2013) https://www.microsoft.com/en-us/download/details.aspx?id=34595
# Delete alla *.BAk files in all sub folders….
Get-ChildItem . -recurse | where {$_.Extension -match ”BAK”} | Remove-Item -recurse
Show Full Free/Busy Details for Exchange 2010 Room/Resource Mailboxes
Gemensamma kalendrars rättigheter ändras så här…
Delade resurser typ rum på liknande sätt..
Set-MailboxFolderPermissionKonf_Ecris:\Kalender-UserDefault-AccessRightsReviewer
kolla rättigheterna med
Get-MailboxFolderPermission konf_ecris:\kalender
Show Full Free/Busy Details for Exchange 2010 Room/Resource Mailboxes.
KingdomoftheSky
Exchange 2010 logging
Exchange 2010 loggs files in different places… and i do seem to forget where…
So just a heads up anda areminder how to do this things…
Receive connector protocol log filesC:\ProgramFiles\Microsoft\ExchangeServer\V14\TransportRoles\Logs\ProtocolLog\SmtpReceive
Send connector protocol log filesC:\ProgramFiles\Microsoft\ExchangeServer\V14TransportRoles\Logs\ProtocolLog\SmtpSend
A good post here on the subject https://technet.microsoft.com/en-us/library/dd302434.aspx
Windows 8 enterprise activation…
How to activate and change key windows 8 ent.
slmgr /ipk key
slmgr /ato
TSM

Ett tsm backup script… (enbart för mitt eget minne…)
preschedulecmd e:\backup\Pre_TSM_Copy.cmd
*postschedulecmd some_batch_file
*********** DOMAINS (drives) *************
DOMAIN E: SYSTEMSTATE
*********** CATCH-ALL EXCLUDE ************
EXCLUDE ”*”
*********** ENCRYPT ALL ******************
INCLUDE.ENCRYPT ”*”
*********** USER INCLUDES/EXCLUDES ******
INCLUDE.SYSTEMSTATE ALL 3
INCLUDE.BACKUP ”e:\backup\…\” 3
Exchange 2010
För att importera /exportera till PST följande behövs göras..
En ny roll behövs ha rättigheter i…
New-ManagementRoleAssignment -Name ”Import Export_Enterprise Support” -SecurityGroup ”grupp” -Role ”Mailbox Import Export”
Antivirus check with WMI
WMI commands to check Av installes ( leftovers etc)
WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName,productState /Format:List
WMIC /Node:localhost /Namespace:\\root\SecurityCenter Path AntiVirusProduct Get displayName,productState /Format:List
wbemtest.exe
Connect. Enter ”root\SecurityCenter” alt ”root\SecurityCenter2” for newer computers (w7 etc)

