Troubleshooting Windows Azure – Not Able To Connect to Remote Powershell to VM

  I was working on an issue of trying to connect to powershell remote on an Azure VM. I get the following error “Connecting the remote Server XXXX failed with the following….” There is some things you need to have in place first before being able to connect so I hope this little guide provides…

7

Windows Server 2012 – Get Binding Order For NICS in Powershell

I had a requirement the other day to retrieve the binding order for nics across several hosts in Windows Server 2012 but none of the scripts I found online worked! Here is the code I came up with and ran against 16 hosts .   Only real pre-req is the WINRM / Remote Powershell is…

2

Private Cloud – A Journey Part 1 (from a PFE point of view)

A few weeks back I was in Las Vegas! Attending the MMS 2013 Summit. After attending the keynote and given I have seen most of the demo’s before that weredisplayed during the session, I am still impressed by what you can do natively in the Microsofttechnology stack. On a more serious note, Microsoft are not…

0

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

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 – 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

Windows 2008 File Servers using a large amount of memory

Recently i have come across alot of file servers which have a large amount of in use and because of this are slow. When you investigate the task manager you see that there is little or no services taking up RAM but yet you are hitting the memory limit. The next step for me was…

0

Powershell Script – Deploying Exported VM’s for training labs

In my previous job i had to deploy a lot of labs, and since i worked full time in there i didnt really both with beginning to automate the process, well i dont have the time anymore so i need to start 🙂 this is part 1 of the script which will deploy the lab…

1