[Powershell Basics] Find substring in string array

[Powershell Basics] Find substring in string array

Imagine that you have array of strings (email addresses for example):

 

one-domain.ru
two-domain.ru
three-domain.com
four-domain.com
five-domain-company.com

 

You have a task - find email addresses in domain domain.ru among these strings.

powershell (ru), exchange (ru)

  • Hits: 12378

Interface slow work in Office 2013

After you install Office 2013, you can start encounter issues with interface performance of Office 2013 applications. Even on fast computers with hardware videocard. You can try the following solution (heled me in most cases).

office 2013 (en)

  • Hits: 2173

[HOW-TO] Find users published phone numbers in Lync 2013 database

Sometimes you will get a situation when contact cards in Lync client showing wrong phone numbers.

This is because of this menu in Lync client:

001

No matter of source issue, you must have a tool to investigate what happening in Lync SQL database (as soon as initial data for building Address Book files located there).

From this moment we will be talking about RTC database in RTCLOCAL instance that is located on Front-End server (in Enterprise deployment). Remember that in Enterprise Deployment every specific user can rely on their own "primary" server. If you have Standard deployment - there will be no problems to indentify the server needed.

lync (ru), lync 2013 (ru), lync 2010 (ru)

  • Hits: 7776

Invoking commands in Linux systems via SSH with the help of Powershell

In one of my projects, I was needed to write a script that will send SMS messages. We already had Linux server with GSM-modem that accepted commands sent by SSH. So, I was only needed to connect from Windows system to Linux with SSH protocol.

I tried to use the SSH-Session module for Powershell, but it have some issues when sending commands. So I started to work with Posh-SSH module.

 

Lets install Posh-SSH:

script (en), powershell (en)

  • Hits: 10554

[Powershell Basics] Find a path for Powershell modules in your system

When you downloading some modules for Powershell, you will need to install that modules. Powershell module - is a folder. You will copy module folder to modules repository (also a folder).

How to find modules repository folder?

PS H:\> $env:PSModulePath -split ';'
C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

In other system:

powershell (ru)

  • Hits: 2771

Solving problems with UAC in Windows Server 2012

Suddenly for me, Veeam Backup & Replication started to throw errors while backing up some of my virtual machines. As I have managed to find out, root problem was in that Veeam could not run pre-freeze script to stop some services.

Futher researches showed that UAC denied starting of scripts. When I tried to run script with elevated permissions, stop-start of services was performed without any problems.

script (en), windows server (ru)

  • Hits: 4940

How to connect Shared MailBox to Outlook

Shared Mailboxes first appeared a long time ago (in Exchange 2007), but usually administrators do not use them, despite the fact that this type of mailboxes is very useful to provide conjoint mailbox for multiple users!

I'm constantly getting requests from my users to create common e-mail address for a bunch of users (even departments). Now I'll very briefly show you how to perform the task.

 

exchange 2013 (ru), exchange 2010 (ru)

  • Hits: 5581

Page 9 of 13