Good-to-know troubleshooting in Outlook *shrug*

Have you ever heard of Kurgan? The evil Highlander Immortal of the movie Highlander? I don’t know why but troubleshooting certain… applications… makes me think of him, maybe it’s the thought of splitting the laptop open with a giant sword.
I like troubleshooting when the process is automated with Powershell or graphic tools with charts (like WSUS reporting or other stuff) that lets me take a quick overview of what could be wrong… So I thought a good-to-know-tool for Helpdesk is OCT Outlook Configuration Analyzer Tool 2.0 which scans your profile and checks for issues regarding everything from configuration errors to missing hotfixes (or service pack for that matter)

So downloading, installing and running OCT will give you this start page

msocat

And then you select Start a Scan and enter a scan label (name the scan) and if necessary enter the credentials if you need to run the scan for another account than the one you are logged on with.

ocatstartascan

Then it takes around 2 minutes (said 9 minutes but for me it took 2 minutes 🙂 for the scan to complete and then you can click View a report of this configuration scan

ocatscanningreportviewchanged

Advertisements

Good-to-know recovery in Windows 8

If you haven’t started to play around in the snow yet (in Sweden at least) and you’re stuck inside because you’re sick (like me) you can always do things like back-ups (and no I’m not talking about the exercise), and other file cleaning things…. and in Windows 8, why not create a recove Wim-file with recimg?

If you run cmd as administrator and execute

recimg /?
Configures the recovery image Windows uses to refresh your PC.
RECIMG.EXE <command> <arguments>
The recimg.exe command line tool lets you configure a custom recovery image for Windows to use when you refresh your PC.
When you create a custom recovery image, it will contain the desktop apps you've installed, and the Windows system files in their current state. 
Recovery images do not contain your documents, personal settings, user profiles, or apps from Windows Store, because that information is preserved at the time you refresh your PC.
When you create a custom recovery image, recimg will store it in the specified directory, and set it as the active recovery image. 
If a custom recovery image is set as the active recovery image, Windows will use it when you refresh your PC. 
You can use the /setcurrent and /deregister options to select which recovery image Windows will use. 
All recovery images have the filename CustomRefresh.wim. If no CustomRefresh.wim file is found in the active recovery image directory, 
Windows will fall back to the default image (or to installation media) when you refresh your PC.
Note that you cannot reset your PC using a custom recovery image. Custom recovery images can only be used to refresh your PC.
The following commands can be specified:
/createimage <directory>         Captures a new custom recovery image in the location specified by         <directory>, and sets it as the active recovery image.
/setcurrent <directory>         Sets the active recovery image to the CustomRefresh.wim file in the         location specified by <directory>. Windows will use this image when you
refresh your PC, even if a recovery image provided by your PC's         manufacturer is present.
/deregister         Deregisters the current custom recovery image. If a recovery image         provided by your PC's manufacturer is present, Windows will use that         
image when you refresh your PC. Otherwise, Windows will use your         installation media when you refresh your PC.
/showcurrent         Displays the path to the directory in which the current active recovery         image is stored.
/help, /?         Displays this help text.

So! Away we go, and might I suggest you place the recovery wim file on a different drive than your windows drive 🙂

recimg /createimage e:\recimg

If you navigate to that folder you will see that windows will create a CustomRefresh.wim file.

When it is complete execute recimg /showcurrent to view the settings.

AND if you got a little bit over excited as I did with the cleaning up files and what not’s and you tried to refresh your Windows 8 machine with Windows Recovery by pressing Shift and F8 while booting…
but all you got was “The drive where Windows is installed is locked. Unlock the drive and try again”
Refresh your PC

Well have no fear you probably just messed upp BCD so press cancel, go back to Windows Recovery, select Troubleshoot, Advanced Options and then Command Prompt and execute

diskpart

and then

list volume

And note which volume letter (Ltr) that has the operating system files for Windows 8 – you better know the size of the partition 😉

then execute the following where you replace D: with the drive letter of your Windows 8 partition.

bcdboot d:\windows /s d:\

And if THAT fails you need to find out the GUID {identifier} for your installation and use that information with bcdboot to repair it.

bcdeditwin8

And then use that information instead (with the driveletter of your volume as explained in the previous steps):

bcdboot d:\windows /m {2980d3a5-1dfc-11e2-a3bb-2c768ae43499}

Adding or removing features with Powershell (or Dism)

Installing or uninstalling, waiting for updates, re-starting, staring at that “please-waaaaiiiit-wheel” can make you feel like… you’re wasting your time.
What if you want to install a feature with a script, or manually/graphically adding one doesn’t work – you start over, you restart the machine, go back to add/remove features and realize that – well – it didn’t install the rest of the management features… *sigh* instead of waiting… clicking Next… Filling out forms… Restarting… and so on bla bla.

So! We’ll look at different ways to add, install or uninstall features in Windows 8 and Windows Server 2012:

Uninstalling or Installing Windows Features using Poweshell
Run Powershell as Administrator and execute the following:
Get-WindowsFeature
to view a list of Available and Installed Features

If you want to remove a Windows feature such as the Graphical user interface on Windows Server 2012 (GUI) and run core you can uninstall Graphical Management Tools and Infrastructure (Server-Gui-Mgmt-Infra) and Server Graphical Shelll (Server-Gui-Shell) you can run the following command to uninstall the windows features
Uninstall-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Restart

So if you want to Install a windows feature you simply run Install instead:
Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Restart

Uninstalling or Installing Windows Features using DISM
Run CMD as administrator and execute the following
dism /online /get-features | more
To install a feature using dism, for example .Net 3.5, .Net2.0 for older applications use
dism /online /enable-feature /featurename:NetFx3

Getting errors, or how to install features that are missing installation files using an ISO
Did you install a Core server and can’t get the windows feature for GUI to install? Grab a Windows Server 2012 (or Windows 8 ISO if you’re trying to install .net on a client) and use install.wim to get a hold of the c:\windows\winsxs folder which has all the nessecary files to install a windows feature.

With Powershell
1. Mount the ISO and create a folder called C:\mount. Mount a Server 2012 or Windows 8 ISO depending on your working environment and note the drive letter, in this example I will use D:\, by running the following:
Mount-Diskimage C:\Lab\windows8orserver2012.iso
2. Determine what Index number you will use (Datacenter or Enterprise etc) by running the following command:
Get-WindowsImage -ImagePath D:\sources\install.wim
3. Mount the install.wim from the ISO by running the following commandline:
Mount-WindowsImage -ImagePath D:\sources\install.wim -Index 4 -Path C:\mount -Optimize -ReadOnly
4. Install the feature using the winsxs folder from your mounted install.wim image by running the following commandline:
Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell Restart
Source c:\mountwim\windows\winsxs
5. To dismount the wimfile run
Dismount-WindowsImage -Path C:\mount -Discard Dismount-WindowsImage -Path C:\mount -Discard

If you need to create a folder you can use New-Item cmdlet to create a folder:
New-Item c:\ Mount -type directory


With Dism
1. Mount the ISO and note the drive letter and create a folder called C:\Mount, in this example I will use D:\
2. Determine what Index number you will use (Datacenter or Enterprise etc) by running the following command:
Dism /get-wiminfo /wimfile:D:sources\install.wim
3. Mount the install.wim file (in this example the Index number is 4) by running the following commandline:
Dism /mount-wim /WimFile:D:\sources\install.wim /Index:4 /MountDir:c:\mount /readonly
4. Install the windows feature by running the following
dism /online /enable-feature /featurename:servercore-fullserver /featurename:server-gui-shell /featurename:server-gui-mgmt /all /source:N:\sources\sxs

If you need to create a folder use mkdir.

Disable flash in Internet Explorer 10 / Inaktivera Flash i Internet Explorer 10

With Group policy you can disable Flash in Internet Explorer 10 by enabling the Group Policy “Turn off Adobe Flash in Internet Explorer and prevent applications from using Internet Explorer technology to instantiate Flash objects” located at User Configuration\Administrative Templates\Windows Components\Internet Explorer\Security Features\Add-on management

There are a few more great policies here such as Add-on List.
If you go to Internet Explorer, Tools and manage add-ons you can right click an add-on, choose properties and with the CSLID specified for the add-on Control which add-ons to run (1) or disable (0)
Then you can enable the policy “Deny all add-ons unless specifically allowed in the Add-on list”
Internet Explorer 10 FAQ

Med Group policy so kan du inaktivera Flash i Internet Explorer 10 genom Group policyn “Turn off Adobe Flash in Internet Explorer and prevent applications from using Internet Explorer technology to instantiate Flash objects” som finns via User Configuration\Administrative Templates\Windows Components\Internet Explorer\Security Features\Add-on management

Det finns fler användbara policies här som möjligheten att begränsa add-ons.
Man öppnar Internet Explorer, verktyg och sedan väljer du Hantera tillägg.
Där högerklickar du på ett tillägg och noterar CSLID för detta.
Sedan använder du den informationen i Add-on list GPO:n och antingen tillåter (1) eller inaktiverar det (0).
Sedan kan du aktivera policyn “Deny all add-ons unless specifically allowed in the Add-on list”
Internet Explorer 10 FAQ

Windows 8 shortcut keys / Windows 8 kortkommandon

UPDATED:
And then Microsoft said let there be and URL with Windows 8 shortcut keys
http://windowsteamblog.com/windows/b/windowsexperience/p/win8_keyboard_shortcuts.aspx

Old: The pdf file with Windows 8 shortcut keys makes me nervous so I tried to make a better one with more pages so you don’t have to zoom in like there’s no tomorrow to actually see what kind of shortcut keys there are. The pdf contains new and old shortcut keys. You can download it here
And I’m sorry for my horrible pdf/excel skills 😉

UPPDATERAD:
Här hittar du en URL med alla kortkommandon för Windows 8:
http://windowsteamblog.com/windows/b/windowsexperience/p/win8_keyboard_shortcuts.aspx

Gammal: Jag tyckte inte att pdf filen med Windows 8 kortkommandon var speciellt användbar då man får zooma in hela tiden för att se exakt vad som står i dokumentet så jag gjorde en ny pdf med fler antal sidor så att man kan se vilka kommandon som finns. Det är en del nya kortkommandon men många finns kvar sedan Windows 7. Här kan du hämta hem filen.
Och jag ber om ursäkt för att den inte är den snyggaste pdf jag skapat hittills 😉

Så kom Windows 8

Tillgängligt för den som önskar att hämta ned och installera det.
Vilka fantastiska nyheter som visades!
Här finns en av nyheterna http://www.youtube.com/watch?v=4aLavxM3wGw&feature=channel_video_title
Och här hämtar du hem din aktiverade “pre-beta” av Windows 7 både x86 och 64 http://msdn.microsoft.com/en-us/windows/home/

Mer info här http://www.youtube.com/user/WindowsVideos

Nu ska jag gräva ned mig 🙂
Ett tips är att kolla på Task Manager, och allt annat såklart!