Can’t Access Network Share – Jan 2019 – Windows 7 / Server 2008R2 / SBS2011

On PC hosting the shares:

Elevated Command Prompt:
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

Caused by windows updates KB4480970 and KB4480960

Source: Computer World

Exchange 2010 find mailbox sizes

Get-mailbox
Get-mailbox | get-mailboxstatistics | ft displayname,totalitemsize
Get-mailbox | get-mailboxstatistics | sort-object totalitemsize –descending | ft displayname,totalitemsize

Source: Alex De Jong

Whitelist sender or domain in Exchange 2010 content filter

To check whats currently whitelisted (Bypassed Recipients):

Get-ContentFilterConfig

To whitelist a single email address:

$list = (Get-ContentFilterConfig).BypassedSenders
$list.add(“new.mail@address.com”)
Set-ContentFilterConfig -BypassedSenders $list

To whitelist an entire domain:

$list = (Get-ContentFilterConfig).BypassedSenderDomains
$list.add(“domain.com”)
Set-ContentFilterConfig -BypassedSenderDomains $list

Source: SBITZ

Sync time with external NTP server on SBS2011

Administrative command prompt:
w32tm /config /syncfromflags:manual /manualpeerlist:time.nist.gov /update /reliable:yes

w32tm /resync

Check with:
w32tm /query /status

Source: DefaultReasoning

Office 365 SBS2011 Outlook won’t connect or keeps changing back to local exchange – Autodiscover

On SBS Server
Command Prompt run as admin:
%windir%\system32\inetsrv\appcmd.exe add backup BeforeRemovalAutodiscover

Exchange Management Shell run as admin:
Get-AutodiscoverVirtualDirectory | fl Name, Server, InternaUrl, Identity

Remove-AutodiscoverVirtualDirectory –Identity “identity value retrieved above”

If for some reason you need to restore autodiscover on the SBS server
Command Prompt run as admin:
%windir%\system32\inetsrv\appcmd.exe restore backup BeforeRemovalAutodiscover

Source: BlogsIISNet

Source: Toronto Help Desk

Create OWA only user with no access to workstations

Create user as per usual, then:

1. Create new security group

2. Add user to security group

3. Group Policy Management: Create new Group Policy Object linked at root of domain

4. Right Click and choose edit.
Navigate to: Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > User Rights Assignment

5. Double-click “Deny log on locally”

6. Click “Add User or Group” and add the group you created in step 1. Apply.

7. Wait for Group Policy synchronisation or gpupdate /force on computers.

Source: ServerFault

ps1 cannot be loaded. The file is not digitally signed.

This occurs when the script has been sourced from the web.

In Windows Explorer:
Right click the .ps1 file and choose Properties
Click the Unblock button under Security on the General tab.