Arvid's IT Blog for hard to find solutions

Sunday, October 28, 2012

How to recover disk space in WinSXS folder


The WinSXS folder contains copies of installed updates for Windows and cannot be moved to another drive. This folder can grow quite large, but there is a way to shrink it if you have installed Service Pack 1 (SP1) by cleaning up and deleting unused updates.

To do this:

  1. Start an Administrator mode command windows;
    - Click the 'Start' button and 'CMD'
    - Right-click top entry 'cmd.exe' and select 'Run as Administrator'
    - Click 'Yes' to the security warning
  2. Now just type the following command
    - dism /online /cleanup-image /spsuperseded
  3. This will take a few minutes to complete, but once done you should have reclaimed several GB to storage.


Wednesday, September 05, 2012

How to connect a Mac to SBS 2011 Remote Desktop


This information was written by Mark Watson.
Original post: http://www.focusedit.co.uk/blog/post/2011/09/26/SBS-Remote-Access-from-a-Mac.aspx



SBS Remote Access from a Mac

By Mark Watson26. September 2011 16:59
You need to setup a VPN then install and configure remote desktop connection.
VPN
More details can be found at
http://blog.mpecsinc.ca/2007/07/mac-on-sbs-creating-vpn-connection-to.html
1.       Open Finder.
2.       Click on Applications.
3.       Double click on Internet Connect.asp.
4.       You will be presented with the following window:
5.       Click on the VPN Lock.
6.       "Your computer needs to be set up to make VPN connections." Click on PPTP.
7.       Authenticate by inputting your Mac access password if requested.
8.       Set the server address: mysbsserver.mydomain.com
9.       Put your SBS login name in "Account Name".
10.   Enter your login password.
11.   Click on the Connect button.


Remote Desktop Connection
1.       Download the Remote Desktop client from http://www.microsoft.com/download/en/details.aspx?id=18140
2.       Follow the instructions on the screen to save the file to your hard disk. If you are using Safari, the downloaded file is saved to the desktop unless you specified a different location in the Preferences dialog box of Safari. To check your preferences, on the Safari menu, click Preferences, and then click General.
3.       Double-click the file you downloaded in step 5 to place the Remote Desktop Connection volume on your desktop, and then double-click the Remote Desktop Connection volume to open it. This step might have been performed for you.
4.       In the Remote Desktop Connection volume window, double-click the Remote Desktop Connection.mpkg package to start the installation process, and then follow the instructions on the screen.
5.       If the installation finishes successfully, you can remove the installer from your hard disk. To remove the installer, first drag the Remote Desktop Connection volume to the Trash, and then drag the file that you downloaded to the Trash.
Start the Remote Desktop Client and connect using the FQDN (Fully Qualified Domain Name: fitpc001.focusedit.local).

Thursday, August 30, 2012

How to export PST files from SBS 2011


First you have to give the required access:
  1. Start Exchange PowerShell
  2. Type:  New-ManagmentRoleAssignment -Role "mailbox import export" -User ""
  3. Close Exchange PowerShell
  4. Restart Exchange PowerShell as Administrator
  5. Type: New-MailboxExportRequest -Mailbox 'username' -FilePath "\\'server'\'share'\'filename.pst'"
  6. You can also run a bulk export:
    1. $Export = get-mailbox; $Export|%{$_|New-MailboxExportRequest -FilePath \\localhost\PST\$($_.alias).pst}

To read more go to: http://blogs.technet.com/b/sbs/archive/2011/05/09/how-to-import-and-export-mailboxes-using-pst-files-in-sbs-2011-standard.aspx

Wednesday, August 29, 2012

SBS 2011 Certificate problems Remote Desktop


This information came from: http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/d87e7b67-e057-471b-9015-8afac51008ec

And was written by Justin Davidow



I linked to the first document in my original post, I was wary of it's use:  SBS is a small business product that people constantly mention NOT to do anything without using the SBS console. 
I've never been impressed with SBS,  this whole "the role is installed.. but.. we didn't install any of the management tools.." sounds like a hack.    I'm sorry,  hack != production. 
For those interested in the procedure of implementing a wildcard certificate to allow RDP connections via Remote Web Workplace (in my case it was a Comodo EssentialSSL Wildcard certificate)  
As of 8/17/2012,  for SBS 2011 Service Pack 1 - the procedure is:
  1. CLOSE the SBS console
  2. Start -> Administrative Tools -> IIS Manager (not the v6 manager)
  3. Connections -> servername -> Server Certificates
  4. "Create Certificate Request" in the actions menu on the right hand side
  5. "Common Name"  must be " *.domainname.tld "
  6. Submit the CSR file/text to your CA (this process will vary based on the CA)
  7. When you receive the response, (this may be 3 minutes, this may be days later) Return to the Server Certificates menu (via step 2+3 above)
  8. Select "Complete Certificate Request" under the actions menu. 
  9. Complete the wizard which installs the certificate in the personal store. (the name is misleading,  don't worry about it!)
  10. Bind the certificate to the default website: under Connections -> Servername -> Sites -> Default Web Site, select "edit bindings" on the actions menu on the right
  11. Select the first HTTPS entry and click "edit" 
  12. Select your new SSL certificate and press OK
  13. Repeat these steps for the other HTTPS entries in the list
  14. Restart IIS by selecting "Restart" under the actions menu in IIS
  15. Close IIS
  16. Open an Administrative Command prompt, (start-> All Programs-> Accessories->right-click Command Prompt and select "run as administrator")
  17. Execute the following command (without quotations): "dism /online /Enable-Feature:Gateway-UI"
  18. Open Remote Desktop Gateway Manager,  start->run-> "mmc" -> ok, File -> Add/remove Snap-in -> click "Remote Desktop Gateway Manager" and hit "add"  then OK
  19. When you click on RD Gateway manager,  it will pop up and inform you that there's a problem.  CLICK NO. DO NOT CLICK YES. 
  20. Expand the RD gateway manager,  saying NO to any questions it asks you, right click on your servername, and select properties.
  21. Again,  ALWAYS ANSWER NO TO ANY QUESTIONS IS ASKS YOU!
  22. On the SSL certificate Tab, click the "import certificate" button (again, technically badly named.  it means "select certificate",  It copies the  certificate from the personal store to the Remote Desktop store)
  23. Select the certificate you purchased.   Hit OK
  24. Ensure that the details correctly populate the "Issued to" and "Issued by" fields,  then hit OK.
  25. Close the MMC console window (do not save the window,  in fact do not open the RD gateway manager again.  almost anything you change in SBS will break things, including your ability to RDP to the machine!)
  26. Go to a remote computer and try connecting.   Your connection to "remote.yourdomain.tld" should now work, if you attempt to RDP to an internal machine,  it should now work.  On the first run you will still get an error about the RDP connection being signed by an unknown publisher,  this will still allow you to connect. 
You're done!  congratulations!

Saturday, June 09, 2012

PowerShell 2.0 wont install on Win2k3

If you are trying to do an SBS 2011 upgrade and find that PowerShell 2.0 wont install with an error message telling you that it is already installed, try the following.

Control Panel -> Add /Remove Program
Tick the box to 'Show Updates'
Scroll down to Windows Management Framework Core, and un-install it.

You should now be able to install PS 2.0 and continue with the upgrade.

Wednesday, June 06, 2012

Microsoft SPF record builder - Quick and Easy


This is the best SPF record builder that I have found. It uses your existing MX records to basically do all the work for you.

Link
http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/


Tuesday, November 29, 2011

How to fix SBS 2011 not starting Exchange services after a reboot

Please find following Microsoft KB:

http://support.microsoft.com/kb/940845

Monday, November 28, 2011

How to fix Remote Desktop connection problems after new certificate

This applies to SBS 2011 server after you install a new, external, certificate it will probably also apply if you renew the self-signed certificate as it might not update the Remote Desktop Gateway component with the new certificate.


Please refer to the Microsoft KB below:

http://support.microsoft.com/kb/2472211

Thursday, August 25, 2011

How to Whitelist a domain or email in Exchange 2010

If you have the Edge Transport Role installed on an Exchange 2010, mail may be rejected with the following error:
My.User@domain.com
mail.domain.com # #SMTP#

Don’t ask me why Microsoft has buried this feature! From what I can tell, the only way to whitelist in Exchange 2010 is through the Powershell – not the GUI. Thanks to Chris Caldwell for the fix.


Specific Address
1 - $list = (Get-ContentFilterConfig).BypassedSenders
2 - $list.add("new.mail@address.com")
3 - Set-ContentFilterConfig -BypassedSenders $list

Entire Domain
1 - $list = (Get-ContentFilterConfig).BypassedSenderDomains
2 - $list.add("domain.com")
3 - Set-ContentFilterConfig -BypassedSenderDomains $list

Verify
1 - Get-ContentFilterConfig

Information from http://danisrael.scekc.com/it/exchange-2010-whitelist.html

Sunday, August 21, 2011

Exchange 2010 repair / recovery site


http://msexchangeguru.com/2011/03/02/databse-repair/