RSS

Introduction to PowerShell – Also relevant for NON Microsoft administrators

Today I had the privilege that many colleagues of mine from Open Line decided to sacrifice their free time and attend my session: “Introduction to PowerShell – Also relevant for NON Microsoft administrators”

The goal of this session was to:

  • Inform people of the advantages of scripting/automation in general.
  • Inform people of the advantages of PowerShell over CLIs and other scripting languages.
  • Inform people that PowerShell is not just for Microsoft administrators.
  • Teach people about the PowerShell basics.
  • Inform people about the many possibilities with PowerShell.
  • Provide people with a lot of practical resources to increase their knowledge and skill.

I really enjoyed the session and got a lot of interactivity and positive feedback. Next up is a follow-up session which will be more of a workshop style.

I’ve uploaded the presentation in PowerPoint and PDF format here:
https://bjornhouben-web.sharepoint.com/Lists/Files/DispForm.aspx?ID=22

Please share this so that others can benefit from it as well.

Notes:

  • I’ve included many useful resources as notes in the PowerPoint presentation, which makes the presentation also interesting to people who are not PowerShell beginners.
  • Also if anyone has suggestions to make the presentation better, please let me know.
 
 

Tags: , ,

OneDrive / SkyDrive – fix for onedrive sync engine host stopped working

As an IT professional I tend to work on multiple systems (tablets, laptops, desktops) and I use OneDrive (SkyDrive) extensively to always have access to the latest versions of my documents.

I love OneDrive, but today when I wanted to continue working on my desktop I got an error : “onedrive sync engine host stopped working”. So first thing I tried was just restarting OneDrive, which didn’t work. Then I figured … ah well let’s just reboot and see what happens.

When this also didn’t work I looked online and saw I wasn’t the only one experiencing this. I also came across the OneDrive Troubleshooter tool. After I ran this, followed the instructions and waited about 5-10 minutes, it worked properly again.

I hope this helps you to resolve similar issues.

Notes:

  • In processes the process shows as OneDrive Sync Engine Host , but the process is still SkyDrive.exe
  • In the application log, an event 1000 was generated with the following information:Faulting application name: skydrive.exe, version: 6.3.9600.17055, time stamp: 0x53291a62
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0x00000000
    Fault offset: 0x0000000000000000
    Faulting process id: 0x1050
    Faulting application start time: 0x01cf78c9a55d1428
    Faulting application path: C:\Windows\System32\skydrive.exe
    Faulting module path: unknown
    Report Id: 43b283ee-e4bd-11e3-826f-bc5ff4e873f4
    Faulting package full name:
    Faulting package-relative application ID:

 

 
 

Tags: , , , , , ,

PowerShell – Using PowerShell 5 to automate the installation of your favorite Windows applications

In this blog post I will explain why to automate installations of Windows applications and how you can do this.

Why automate the installation of applications?

But first, why is this useful? Well this depends on your situation and there are probably many good reasons. For me though, it basically boils down to this:

  1. I often reinstall my computers with new (preview) versions of Windows operating systems and having to install applications each time is a waste of time. Also sometimes you forget to install some things.
  2. On a regular basis, friends and family either want me to install or upgrade their PC and I want to provide them with a standard set of programs that most people need/want without having to spend a lot of time on it. By example virus scanner, burning program, media player, codecs, etc.
  3. I want to update existing installed applications to the latest (and hopefully more secure and feature packed) versions.
  4. When installing applications, there are often checkboxes enabled to install other applications (you generally don’t want to install). Automated solutions using packages generally prevent these additional unwanted applications from installing.

Which tools to use to automate the installation of applications?

Before PowerShell 5 preview was released, I used both Ninite and Chocolatey to perform to automate installations. They both have their advantages as described on this wiki page.

The PowerShell 5 preview version of OneGet installs and searches software from Chocolatey repositories, but support of additional repositories will come in subsequent versions.

How to automate the installation of applications using PowerShell 5 preview?

To automate the installation of applications a couple of things are required:

  1. You need to determine which applications you want to install automatically.
  2. You need to determine the package name that Chocolatey uses for this application. Options include:
    -Using a browser to browse the Chocolatey packages
    -Using PowerShell and a part of the name of the application you’re looking for. By example if you’re looking for Irfanview, use:
    Find-Package -Name “fan”
  3. Store the package names to install somewhere (e.g. in a .txt file on OneDrive for easy access). My .txt file by example includes:
    AdobeReader
    Directx
    ffdshow
    Flashplayerplugin
    GoogleChrome
    Imgburn
    IrfanView
    Javaruntime
    Keepassx
    Mp3tag
    mpc-hc
    PDFCreator
    Silverlight
    TeamViewer
    Totalcommander
    Winrar
    greenshot
  4. Use the Install-Package cmdlet to install all the packages whose name is in the file from step 3.
    Install-Package -Name (Get-Content C:\OneDrive\AppsToInstall.txt) -Confirm:$False
  5. Wait for the programs to install

My opinion

It’s great to be able to use PowerShell to install my list of favorite applications similar to like I did with Chocolatey and I’m also looking forward to see what benefits the additional repositories will bring in the future.

I did encounter some errors however while trying to install some applications like Firefox and dotnet3.5. But since it’s still a preview, this will probably be fixed.

For regular users, I think they are better off sticking to by example Ninite because they’re often afraid of anything that involves a CLI.

Blog posts by other people about OneGet

Some other people have also blogged about the OneGet module and have gone in more technical detail, so be sure to take a look at their posts as well:

More information about PowerShell 5 Preview including a download link

Windows Management Framework v5 preview, includes also Desired State Configuration (DSC) improvements and NetworkSwitch commandlets to manage network switches that pass the Certified for Windows Program. For more information including a download link, you can read the initial blog post. : Windows Management Framework V5 Preview

 

 

 

Tags: , , , , , , , ,

Free – Brocade Ethernet Fabric course and exam

I’ve been pretty busy lately, so unfortunately there haven’t been as many blog posts as I would have liked.

I did want to share this opportunity however for a free course and exam on “Brocade Ethernet Fabric”:
http://info.brocade.com/DC-GDG-14Q2-CERT-SM-EF-Cisco-CCIE-LP.html?cn=DC-GDG-14Q2-CERT-SM-EF-Cisco-CCIE

I hope it is useful for you and that you’ll share it so many people can benefit from it.

 
4 Comments

Posted by on March 7, 2014 in Hardware, ICT, Learning, Network, Storage

 

Tags: , , , , , ,

Microsoft – Passed the free exam 74-409 Server Virtualization with Windows Server Hyper-V and System Center

As I mentioned earlier, Microsoft is offering free exam vouchers for the new exam “74-409 Server Virtualization with Windows Server Hyper-V and System Center”. For more information, take a look here.

I took the exam today and passed after having studied very hard for over a week (including pulling an all nighter today). I’m happy to have my first certification for the year 2014 already though :)

In my opinion the exam contained too many repeating (easy) questions on specific subjects, but there were also some very difficult questions about really specific situations. I personally would’ve preferred more “medium difficulty” questions.

All in all I learned a lot from preparing for the exam and I’m very happy with all the new things Microsoft has added to their new products.

If you are looking to take the exam as well, take a look at my previous post that contains the resources I used for preparation.

Good luck and enjoy. I’ll be going for some well earned sleep now :)

 

Tags: , , , , , , , , ,

Games – Left 4 Dead 2 is free today on steam (PC)

Just wanted to let you know that Valve decided to give away Left 4 Dead 2 for free today on steam (PC):
http://store.steampowered.com/app/550/?snr=1_7_7_151_150_1

It is a great shooter, that is especially fun while playing with friends in co-op mode.

Merry Christmas everyone and enjoy this great game.

 
1 Comment

Posted by on December 25, 2013 in Entertainment, Games

 

Tags: , , , , , , , , ,

 
Follow

Get every new post delivered to your Inbox.

Join 854 other followers

%d bloggers like this: