Powershell – Lync Change Services to Automatic / Manual / Stop and Start before patching

This is acommon problem I have come across in an enterprise pool, when you drain andpatch and reboot one of the front end nodes the services will start again andusers will re-home to the server, but you may not be finish working with theserver and this leads to additional disruption for your end users. I…

1

Powershell – Lync Get All Users Last Registration Time From Front End

this takes doug’s concept (http://blogs.technet.com/b/dodeitte/archive/2011/05/11/how-to-get-the-last-time-a-user-registered-with-a-front-end.aspx)  and just runs it in powershell query and outputs the results to a text file to allow you to search its simple but effective   param ([parameter(mandatory=$true)] [string]$lyncsrvfqdn) $outputfile = “LyncUserLastLogon.txt”$outputdir = $env:Userprofile + “\Desktop”$output = $outputdir + “\” + $outputfile $SqlServer = $lyncsrvfqdn + “\RTCLOCAL”$SqlCatalog = “RTCDYN”$SqlQuery = “SELECT…

4

Simple Print Queue Monitor – Powershell

its taking me a long time to get back to this… been super busy in work which is always a good thing! here is some sample code which will allow you to create a very simple print queue monitor and log the details out to a csv file for further manipulation…     <#.SYNOPSISThis is…

1

Multipinger with powershell

I decided to give this a go and create a multipinger with powershell… this is my first draft! if I get time I plan to change it to use jobs instead and then format the results out… but this is a functional first draft..   here is the code   param ([parameter(mandatory=$true)] [string]$begin, [parameter(mandatory=$true)] [string]$end)…

0

Duplicate File Finder With Powershell!

  here is a little script I was playing with to find duplicate files on your disk   here is the code     #Define the results path$outputdirectory = $env:userprofile + “\Desktop”$outputfile = “duplicatefileresults.txt”$output = $outputdirectory + “\” + $outputfile $testoutput = test-path $outputif ($testoutput -eq $true){  remove-item $output} $erroractionpreference = “silentlycontinue”cls# Define the file…

4

Evenly Distribute your VM’s across your standalone Windows 8 Hyper-V Hosts using powershell

Interestingly enough the argument with people still happens about not wanting management tools for their system. So I created this script as a basis which will load balance out VM’s across multiple hosts using live migration   here is the code… I plan to “tweak” it a bit more to include some monitoring of core…

0

powershell simple bandwidth monitor

very simple bandwidth monitor allows you to select your interface and will take the average bandwidth over 60 seconds (you can configure!) here it is !….     $interfaces = Get-WmiObject -class Win32_PerfFormattedData_Tcpip_NetworkInterface |select name$totalnoint = $interfaces.count Write-Host “Please select the interface you wish to use by selecting its number and pressing enter to continue…

3

Powershell Lync Export & Import Script for Users Contacts… for DR?

So if you want to export and import the contact information between to pools for DR here is 2 simple powershell scripts that will help. This will also move the users from the primary to the backup pool so the backup pool becomes their primary register you could include this as a larger DR script…

2

Powershell : Scan AD find users who’s password are close to expiring and email them!

i was ask for this as an interim step for a customer who needs to save money! hopefully at some point they will have the money to buy an identity management system etc.. but hey sometimes we have to solve these particular needs here is the code none the less ################################################################################################################### Please Configure the following variables….$smtpServer=”smtpServerName”$expireindays…

7

Powershell – Automated Lync Deployment V1

If you need to deploy an environment this may help… the script should deploy the windows pre-reqs, the lync pre-reqs, the local management store, the role specifc stuff , request the certificate and assign it and start the services and install network monitor   you need to have the CMS built and a topology published…

2