Set browser default homepage for all users

The Internet is a double-edged sword for many businesses. It enables workers to find information in mere seconds, but employees can end up abusing their online permissions. Administrators should put in place specific policies limiting Web access for workers, including one that sets the default homepage for all computer users. To change the default homepage in Internet Explorer, use Local Group Policy Editor; to change the default home page in Mozilla Firefox, create the appropriate configuration files.

Internet Explorer

Step 1Click “Start” and type “gpedit.msc” into the search box. Press “Enter” to run Local Group Policy Editor.

Step 2Select “User Configuration,” “Administrative Templates,” “Windows Components” and then “Internet Explorer” from the left pane.

Step 3Right-click “Disable Changing Home Page Settings” from the right pane and then click “Edit.” Click “Enabled.”

Step 4Enter the website address into the “Home Page” field. Click “OK” to set the default homepage in Internet Explorer.

Mozilla Firefox

Step 1Click “Start” and type “notepad” into the search box. Select “notepad.exe” from the search results.

Step 2Copy and paste the following text into Notepad:
[XRE] EnableProfileMigrator=false
Save the file to your desktop with the name “override.ini”. This will disable the Migration Wizard.

Step 3Click “File” and then click “New.” Copy and paste the following text:
pref(“general.config.obscure_value”, 0); pref(“general.config.filename”, “mozilla.cfg”);
Save the file to the desktop as “local-settings.js” to lock the configuration file.

Step 4Create a new file, then copy and paste the following text:
// set Firefox Default homepage pref(“browser.startup.homepage”, “http://<website>&#8221;);
Replace “<website>” with the URL of the target homepage. Save the file as “mozilla.cfg”.

Step 5Right-click “Start” and click “Open Windows Explorer.” Navigate to “C:\Program Files\Mozilla Firefox.”

Step 6Go to the desktop. Hold down “Ctrl” and select the files “override.ini” and “mozilla.cfg.” Drag the files over the Windows Explorer icon on the taskbar to re-open the window. Drop both files into the Mozilla Firefox folder.

Step 7Navigate to “C:\Program Files\Mozilla Firefox\defaults\pref.” Go to the desktop, select “local-settings.js” and drag-and-drop the file into the “pref” folder by following the same instructions as in the preceding step. This will set the default homepage for all users.

Article from: http://smallbusiness.chron.com/change-default-homepage-users-54727.html

VMWare Fusion 7 – Blank screen in Full screen mode

My VM is a Windows 2012 Server which is operational in normal window mode (ie non-full screen mode) but as soon as i switch to Full screen it’s blank.

Note: Make sure that VMWare Tools are installed

Solution:
Shut down or power off the virtual machine. You cannot change the setting while the virtual machine is powered on or suspended.
1) From the VMware Fusion menu bar, select Window > Virtual Machine Library.
2) Select a virtual machine and click Settings.
3) In the Settings Window, in the System Settings section, select Display.
4) Select Accelerate 3D graphics.

Also remember to check off Use Full resolution for Retina display and Automatically adjust user interface size in the virtual machine.

Alternatively you can click on Make text and other items larger or smaller under Screen Resolution option to reserve the resolve of screen

Disable windows Narrator

If you’re familiar with editing the Windows registry, you can use the solution described here:
•Launch regedit.exe and navigate to: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
•Create a key with the name Narrator.exe
•Inside the key, create a new String value called Debugger, and set its value to %1

This won’t be changed by Windows updates, and can be easily reverted by just deleting the key.

Windows cannot be installed to this disk. The selected disk is of GPT partition style

1.Create USB stick using Apple Bootcamp Assistant. This procedure only works with it.
2.When it Bootamp assitant reboots your machine you need to interrupt the installation.
3.When you hear the startup sound, hold option until it presents you with login options.
4.Select your Macintosh HD to boot back into OSX.
5.Run Disk Utility, select the Macintosh then choose the partitions tab.
6.The BOOTCAMP partition should be at the bottom. Select this partition by clicking on it. Ensure it is the highlighted partition then press minus to remove it.
7.Click apply on the bottom right to make the changes.
8.Now press plus to add a new partition which will likely be names Macintosh HD2
9.Select this new partition then you can define the settings on the right.
10.Rename this to BOOTCAMP.
11.Change the type to ExFAT.
12.Now click apply on the again to make the changes.
13.Reboot you Mac, press option again during the boot and this time select the Windows device with the USB logo on it. Its orange.
14.Now it will start the install process. When it gets to the list of partition you should see four of them. You want the last one. It will say it cannot install on this.
15.Make sure the fourth partition is selected then click format. When it is done the error message should be gone and you should be able to continue.
16.During install it will suggest turning on auto updates. I recommend you turn this off until the bootcamp drivers are installed. When it is finished prepping the install it will reboot.
17.Each time it reboots you will need to intervene by pressing option but from now on select the Windows device with the picture of the hard drive. It is a silver color
18.It will reboot two or three times during the install. Each time you will need press option during boot to reselect the Windows device on the hard drive.

19.At the end of the installation it will prompt you to install the Apple Bootcamp Drivers.

Article from: https://discussions.apple.com/message/23545484#23545484

Resetting Administrator Password in Windows 2008

Tech w2k8_password_reset_incorrect_cropped

Published on December 12th, 2012 | by Kieran

32

Resetting Administrator Password in Windows 2008

Being in my line of work, I make use of dozens of test servers and virtual machines and from time to time I can forget what the administrator password is. To save time, usually I would use the Offline NT Password & Registry Editor to simply reset the password. However I was told of another useful method using the Microsoft Windows Server 2008 installation DVD / ISO Image. It’s a breeze to reset the password so I thought I would share. Personally I have tried this on a standalone Windows Server 2008 R2 but it should also work with Domain Controllers for resetting domain administrator passwords.

  • Boot from the Micrsoft Windows Server 2008 DVD
  • From the Install Windows menu, click “Next”.
  • Select “Repair your computer”
  • In the System Recovery Options, select the Operating System instance that you wish to repair and click “Next”.
  • Select “Command Prompt”. The
  • At the command prompt, run the following commands:

    c:
    cd windows\system32
    ren Utilman.exe Utilman.exe.old
    copy cmd.exe Utilman.exe

     

  • Reboot the server allowing Windows to load as normal
  • At the logon screen, press Windows Key + U.
  • As the command prompt, enter the following command:

    net user administrator Password12
    This will set the password for the Administrator user to be Password12 (case sensitive).

Closing the command prompt, you should now be able to log back onto the server using the password you have provided in the last step.

Cleanup Steps

Once you have verified you can log on to the server you will have repeat the steps above and boot using the Windows Server 2008 DVD/ISO and run the command prompt again.

  • Delete the newly created Utilman.exe from C:\Windows\System32
  • Rename Utilman.exe.old back to Utilman.exe

You should be back up and running as if nothing ever happened.

Some Screenshots

w2k8_password_reset_01 w2k8_password_reset_02 w2k8_password_reset_03 w2k8_password_reset_04 w2k8_password_reset_05 w2k8_password_reset_06 w2k8_password_reset_cmd_prompt

Article from:  http://www.kieranlane.com/2012/12/12/resetting-administrator-password-windows-2008/

Your Searches Might Be Slow Because The Index Is Not Running

How to setup file indexing

  1. go to your SERVER MANAGER
  2. select FILE SERVICES
  3. select ADD ROLE SERVICES
  4. put a check mark beside WINDOWS INDEX SERVICE and click NEXT
  5. select the partition(s) you want indexed.  Generally this you will only select drives that contain network file shares and not the Operating System drive.
  6. wait 5 minutes for it to install (on the installs I have done, I have NOT had to reboot, but the installer tells you that it MIGHT request a reboot, so be prepared for that)
  7. After the install is complete you can check your services for WINDOWS INDEX SERVICE to ensure it is STARTED
  8. You may also want to view the indexing progressa and settings by clicking START, typing INDEX and then clicking INDEXING OPTIONS

Your searches on your windows 7 / Vista client, against the Windows 2008 file server will now take less than 3 seconds, which is pretty impressive.

Article from:  http://www.urtech.ca/2011/05/solved-your-searches-might-be-slow-because-the-index-is-not-running/

How to Set SQL Backups & A full Maintenance Plan Using Only SQL Server Managment Studio

To backup SQL properly there are serveral easy items you need to setup:

  1. double click on each datbase and set your BACKUP MODEL to FULLsql-maintenance-plans 
  2. go to MANAGEMENT > MAINTENANCE PLANS and setup the three plans shown below
  3. go to SQL SERVER AGENT > JOBS and make sure your jobs appear here (and make sure the SQL SERVER AGENT service is running!)

MAINTENANCE PLAN 1: DAILY SQL MAINTENANCE

  1. Drag out the BACKUP DATABASE TASK and set it to backup ALL DATABASES, FULL with DEFAULT COMPRESSION
  2. Drag our the MAINTENANCE CLEANUP TASK and set it to delete backed up database files (by setting the FILE EXTENTION field to BAK – you do NOT enter .BAK) older than X days (I like 4 for X)
  3. Drag our the MAINTENANCE CLEANUP TASK and set it to delete backed up logs (by setting the FILE EXTENTION field to LOG – you do NOT enter .LOG) older than X days (I like 4 for X)
  4. Connect all of these in the order shown by dragging the green arrow at the bottom of one box to the other
  5. Set this to run several times a day (like every TWO hours from 9:00am to 5:59pm)

MAINTENANCE PLAN 2: INTRADAY SQL MAINTENANCE

  1. Drag out the BACKUP DATABASE TASK and set it to backup ALL DATABASES, FULL and set the CREATE A BACKUP FILE FOR EVERY DATABASE to what a location you like but set the BACKUP FILE EXT to TRN
  2. Drag our the MAINTENANCE CLEANUP TASK and set it to delete backed up logs (by setting the FILE EXTENTION field to TRN – you do NOT enter .TRN) older than X days (I like 5 for X)
  3. Connect all of these in the order shown by dragging the green arrow at the bottom of one box to the other
  4. Set this to run daily at an off hour (like 10pm)

MAINTENANCE PLAN 3: WEEKLY SQL MAINTENANCE

  1. Drag out the CHECK DATABASE INTEGRITY TASK, set to ALL DATABASES and INCLUDE INDEXES
  2. Drag out the REBUILD INDEX TASK
  3. Drag out the SHRINK DATABASE TASK
  4. Drag out the UPDATE STATISTICS TASK
  5. Drag out the HISTORY CLEAN UP TASK
  6. Drag out the MAINTENANCE CLEANUP TASK
  7. Connect all of these in the order shown by dragging the green arrow at the bottom of one box to the other
  8. Set this to run once a week at some very off hour (like 4AM Saturday morning) AFTER you have completed a full backup.

Article from: http://www.urtech.ca/2013/10/solved-how-to-set-sql-backups-a-full-maintenance-plan-using-only-sql-server-managment-studio/

PowerShell command

get-command -Noun spsite*

get-command -Noun sp*

help New-SPSite
help New-SPSite -Examples
help New-SPSite

# Lists all url, owner, template, and template id for all sites within web application

get-spsite | select url, owner, @{label=”template”;expression = { ($_.rootweb).webtemplate}}, @{label=”templateid”;expression = {($_.rootweb).webtemplateid}}

Get-SPSite -Limit all

http://www.toddklindt.com/Slides/March2013Webinar/PowerShell_transcript.20130315102332.txt

 

Word text generator for Lorem Ipsum

Regularly I need Word documents with example text. Word has a example text generator feature which creates text like “Lorem ipsum dolor sit amet, consectetuer …” or “On the Insert tab, the galleries include items that are designed …” or “The quick brown fox jumps over the lazy dog. The quick brown fox …”.

Simply start Word and type =lorem(3,10) and press Enter. 

Word 2010, lorem ipsum function

This results in:

Word 2010, lorem ipsum result

There are some options you can use:

  • =lorem(p, l) where p is the number of paragraphs and l the number of lines per paragraph.
  • =rand(p,l) provides the same functionality but using different text “On the Insert tab, the galleries include items that are designed …”
  • =rand.old(p,l) also provides the same functionality using different text “The quick brown fox jumps over the lazy dog. The quick brown fox …”

Article from: http://bramdejager.wordpress.com/2011/08/

Avoiding Xml Based SharePoint Features – Use The API Way

Developing solutions and features for SharePoint is a nightmare for all beginners, and even for the experienced SharePoint developers. If you ever have had the opportunity to create a SharePoint solution you most probably have had to make a lot of hacking in a bunch of XML files, just to build a simple feature. This is the way you have to do it, and the way taught by tutors and Microsoft, when using it with Visual Studio and no add-ins. This is the way it was, and has been, for most of us SharePoint programmers since the beta releases of SharePoint version 3.

Nowadays you have several tools that help you out; such as Visual Studio Extensions for WSS, WSPBuilder, STSDev and more. Some have a user interface that helps you a lot; such as VSeWSS and SPVisualDev and some does not help much there; such as STSDev. But whatever tool you use you will find that you are digging yourself deep into hacking those Xml files. Unfortunately the documentation is quite poor, but we have the fantastic SharePoint bloggers and MVPs that made their code and samples available throughGoogle, sorry Bing.

Lots of XML

For example when you have a site and you would like to create a custom list, you will have to define a Content Type, a list schema, a list template and a list instance and then you have a feature manifest and a solution manifest – that counts to at least five different XML files and a few different schemas. This is an awful amount of job in the beginning and I think in some cases it’s a waste of time, especially if it’s a custom list that only will be used once. Then we have the thing when we want to update the list or content type when it’s deployed…a whole lotta XML in combination with compiled code (for example when updating Content Types)!

I have in my recent projects abandoned the XML way (declarative/CAML) in favor of the The API way (Object Model).

The API Way

Almost everything that these XML files can do can be done using compiled .NET code and utilizing the SharePoint API’s. Take the example above – those XML files can be replaced with a few lines of C# code. Create a Content Type, create a List, add a Content Type to the List. There are still few XML files left; the feature and solution manifests; but those two are easy to handle.

All you have to do is put this initialization and creation code in the Feature Receivers of the Features.

Upgrading and developing these features using the API way are also very easy and straightforward. I think it also fits better into a TDD kind of development way. If you have a list that is created through the Feature Receiver and you find that you need to add a field to that list, I just de-activates and activates that feature. This is done by a set of extension I use to create fields if they don’t exist, in Lists or Content Types.

API way – Pros

Using the API way has several benefits:

  • As a beginner, but experienced .NET developer, it might be easier to start working with the SharePoint API
  • Mistakes are easier discovered:     
    • You have to deploy and test your feature to find small mistakes in the XML
    • Some errors are detected during compilation phases
  • Debugging – yea try that with XML based features!
  • Upgrading experience is far much better (de-activate and activate)
  • Development time is most often faster, just re-register the assembly
  • Easy to staple the feature, and it’s receiver, to Site Defintions
  • Testing, and TDD, is possible even outside of the SharePoint scope

API way – Cons

Of course there are cons of using the API way. First of all there are some things that you can’t do

  • Create List Templates – for reusable lists, i.e. lists available for the end-user to create
  • Create Site Definitions
  • Create Custom Actions
  • Configure Delegate Controls

The cons with the API way are for example:

  • Requires installation of assemblies in the GAC     
    • This is in many installations prohibited due to the fact that it requires that you run in full trust.
  • I find it easier in some situations to re-use configurations created in XML files
  • When using XML definitions you can specify ID’s of Content Types etc which are required in many situations, for example when you are re-using your Content Type in many farms or Site Collections.
  • Requires that you really understand how the provisioning works in SharePoint
  • Requires that you take care of the clean-up when deactivating

Most pros and cons are of course a personal consideration, but as I said, I almost every time nowadays use the API way for my features.

How do you develop your Features, Lists and Content Types?

Basically I try to have a clean and simple Site Definition and then staple my features and it’s receivers onto that Site Definition. It comes down to very little XML and some compiled code – very maintainable.

Article from: http://www.wictorwilen.se/Post/Avoiding-Xml-Based-SharePoint-Features-Use-The-API-Way.aspx