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

Code snippets : Adobe Flex : Open file dialog

-

So, I’m doing my first attempts to write some simple apps in Adobe Flex using Flash Builder 4.6. One of funny things I came across was how to generate open file dialog windows and get name of the file which user picked from dialog windows. I guess still have to get used to specific way Flex applications are developed.

Here is quick code snippet of the tiny application which allows to open file dialog box andย pick file. File dialog window will be OS specific.

(more…)

0

Tips & Tricks : Hyperlinks are not working in Outlook

-

When you get a message “Your organization’s policies are preventing us from completing this action for you. For more info, please contact your help desk.” it means that you might want to apply this fix to be able to open links in emails:

http://support.microsoft.com/default.aspx?scid=kb;en-us;310049

Same fix applies also to other Office applications (they all might be affected along with Outlook).

0

Games : Codes : Skyrim โ€“ finding Aldis in Solitude

-

During the quest about Angeline’s daughter it might be not possible even to find Aldis. It is possible that he died during attack on Solitude. In that case some easiest way is to bring Aldis to player ๐Ÿ™‚

(more…)

0

How-To : Automate application mapping using SCCM 2012 Powershell

-

During mass reainstallation/redeployment/migration of large number of PCs, always question about applications is raised.

How to deploy/deliver applications once all machines are resintalled?

If you have SCCM in the infrastructure, this might help a lot with automation. All you need is mapping between computer name and applications (to be more specific collection ids) and PowerShell console on SCCM server.

Then you just need to prepare input files for the script below and you can automate application deployment on mass scale.

(more…)

0

Code snippets : Restart IIS Application Pool in PowerShell

-

If you need to watch IIS application pool and start it once goes down and want to use PowerShell for that here is simple script for that.

Script includes also logging all restarts in log file which is created in same folder as script.

# AppPool to monitor
$AppPoolName = "AppPoolName"

# Log Destination
$LogToScreen = 1
$LogToFile = 1

# Determine script location for PowerShell
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path

# Output log
$OutputLogPath = $ScriptDir + "\AppPoolRestart.csv"

#Check if file exists and create if it doesn't
If(!(Test-Path -Path $OutputLogPath)){
#Create file and start logging
New-Item -Path $OutputLogPath -ItemType File
}

###
# Function: LogMessage
###
function LogMessage($Msg, $ToScreen, $ToFile)
{
if ($ToScreen -eq 1)
{
Write-Host $Message
}

If ($ToFile -eq 1)
{
Add-Content -Path $OutputLogPath -Value $Message
}
}
###
# End Function: LogMessage
###

While (1 -eq 1){

Clear-Host

$AppPoolStatus = Get-WebAppPoolState -Name $AppPoolName

$DateTime = Get-Date

If ($AppPoolStatus.Value -eq "Stopped"){
Write-Host "Not Working"
Start-WebAppPool -Name $AppPoolName
$Message = "App Pool $AppPoolName restarted at $DateTime"
LogMessage $Message $LogToScreen $LogToFile
}Else{
Write-Host "Working"
}

Sleep 5
}
0

Tips & Tricks : Yii framework update issue

-

When Yii-based project doesn’t want to update, there might be missing component.

Once you add one plugin everything goes back to normal.

[root@arb-srv-01 easyforms]# composer update
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.7 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 2.0.7 -> satisfiable by yiisoft/yii2[2.0.7].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
[root@arb-srv-01 easyforms]# composer global require "fxp/composer-asset-plugin"

Changed current directory to /root/.config/composer
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
Using version ^1.2 for fxp/composer-asset-plugin
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing fxp/composer-asset-plugin (v1.2.1)
Downloading: 100%

Writing lock file
Generating autoload files
[root@arb-srv-01 easyforms]#

Hope that helps.

0

Tips & Tricks : Ubuntu 18.04 missing packages

-

Once you install Ubuntu 18.04 some packages might not be found by default in repositories (example: php7.2-fpm).

If you want to have more packages available just add repository with more packages available ๐Ÿ™‚

sudo add-apt-repository universe

Now you can enjoy more standard packages available.

0

Apps : Get-Console : When iPad meets Cisco

-

Despite all reservations to iPad as a device which might be useful in day-to-day IT Pro activities (was thinking about it more as a toy than tool)ย I found it really handy after some time. One of main reasons I found iPad cool IT tool was ability to connect to Cisco console port and configure Cisco devices.

Yes, it is possible to have Cisco console cable which connect to iPad and application which allows to configure Cisco via Console from iPad ๐Ÿ™‚

(more…)

5

How-to : Create virtual machine template for VMware Workstation 8

-

Often using VMware Workstation platform we need to quickly create new virtual machine. reasons for that might be different. For example additional machine for our Lab environment or just quick test without affecting other machines we have setup in our virtual environment.

Installing whole operating system with all applications we used to have in our setup might be time consuming process. That is why it is worth to consider creating and using templates to be able quickly generate virtual machines we need.

(more…)