0

Code snippets : Unzip file in PowerShell

-

Recently I needed to unzip file from PowerShell script. Here is result what I did use to achieve that:

$archiveDir = "C:\Downloads"
$fileZip = $archiveDir + "\file.zip"
$shell=new-object -com shell.application
$zip = $shell.NameSpace($fileZip)
foreach ($item in $zip.items())
{
 $shell.NameSpace($archiveDir).CopyHere($item)
}
0

Tips & Tricks : Enabling Windows Hyper-V 2012 Remote Management

-

After installing Windows Hyper-V 2012 sometimes there might be some issues with remote management (even if enabled via sconfig).

In that case few firewall rules might have to be enabled on Hyper-V machine using PowerShell:

(more…)

0

History : Upgrading Windows from 1.0 to Windows 8 Pro :)

-

Check this out 🙂 Upgrading Windows from 1.0 to Windows 8 Pro.

It’s great video showing the long way we went from Windows 1.0 to current Windows 8 🙂

0

Tips & Tricks : SugarCRM CRASH error after installation

-

When tried to access SugarCRM 6.5.13 after installation following error showed up in browser:

CRASH: PHP segmentation violation in session_start() called at [/install.php:486]

To fix that issue .htaccess file has to be created in SugarCRM main older with following content:

(more…)

0

How-To : Prep to SCCM 2007 R2 to SCCM 2012 SP1 Migration

-

Quick steps which should be done as pre-migration steps when you want to migrate System Center Configuration Manager 2007 R2 to System Center 2012 SP1 Configuration Manager.

Diagram below shows schematics of the lab environment prepared for migration testing.

SCCM Migration from 2007 to 2012

(more…)

0

Tips & Tricks : Linksys WUSB100 ver.2 and Windows 7

-

Default driver for Linksys WUSB100 Ver.2 doesn’t work on Windows 7 64-bit. Instead  of that Ralink USB RT2870 (currently MediaTek) driver can be used.

Properly working driver can be found here.

0

Tips & Tricks : SQL Server “Cannot connect to WMI provider”

-

Recently I had issue which occured without any particular reason on SQL Server 2012. All of the sudden I start getting error message:

Cannot connect to WMI provider. You do not have permission or the server is
unreachable.
Note that you can only manage SQL Server 2005 servers with SQL
Server Configuration Manager.
Invalid Namespace.

when tried to run SQL Server Configuration Tools.

What resolved situation is command:

mofcomp C:\Program Files\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof
0

Tips & Tricks : Microsoft SQL Server 2008 & 2012 Feature Packs

-

Some of applications require additional SQL Server 2008 or 2012 fetures installed. Some of these features might not be available in standard setup of SQL Server. In that case you have to refer to Microsoft Dowloads web page in order to download additional components required for installation:

0

Tips & Tricks : How to add .NET Framework 3.51 to Windows 8 or Windows Server 2012

-

Unfortunately there is a problem when you try to add .Net Framework 3.51 to Windows Server 2012 using Server Manager. In order to fix that issue and get .Net Framework 3.51 installed (which is required by majority of applications and servers) issue following command from Command Prompt:

dism /online /enable-feature /all /featurename:NetFX3 /source:x:\sources\sxs

Please notice that x: in source parameter has to be replaced with appropriate drive letter for DVD with Windows Server 2012 installation files.

0

Tips & Tricks : Configuring IPv4 address on Windows Server 2012 Core with PowerShell

-

In order to assign static IPv4 address to Windows Server 2012 Core using power shell use:

New-NetIPAddress -IPAddress 172.16.48.11 -InterfaceAlias "Ethernet" -DefaultGateway 172.16.48.5 -AddressFamily IPv4 -PrefixLength 24