Editing files in VI

Not a exceptionally common thing for me to do so I always seem to have this sheet handy

   1: sudo vi /location/location/file.type


   3: edit file 

Then some quick commands

   1: :q

   2: Quit


   4: :q!

   5: Quit without saving

   6: :wq

   7: Write and quit


   9: :w

  10: Write (without quitting)


  12: :e!

  13: Reload currently open file from disk

Posted in VMWare | Tagged | Leave a comment

Some Commands


here are some commands I always seem to have cached in notepad++ they were given to me by my colleague Graeme.

Ping each host in a range:

   1: for /l %n in (1,1,254) do @ping -n 1 -w 100 10.146.8.%n | find "Reply"

Fast traceroute using ping:

   1: for /l %n in (1,1,32) do @ping -n 1 -i %n | find "Reply"

Find web servers: (a bit slow, needs plink (putty command line))

   1: for /l %n in (1,1,254) do plink -telnet 10.146.1.%n -P 80 | find "Server"

Gpupdate all hosts in a range :

   1: for /l %n in (1,1,254) do psexec \\10.1.1.%n gpupdate /force


Cheers Bud!

Posted in Applications, Troubleshooting | Tagged | Leave a comment

Citrix servers do not trust this server for Xenapp 7

You may see the error below


Open the Citrix PS shortcut do the following

   1: asnp Citrix*

   2: Get-BrokerSite


Confirm its false as per the screenshot

   1: Set-BrokerSite -TrustRequestsSentToTheXmlServicePort $true

   2: Get-BrokerSite


Then confirm with

   1: 2: Get-BrokerSite

Posted in Citrix | Tagged | Leave a comment

Convert a cert and a key to a pfx

Install openssl you can grab a copy here ttp://gnuwin32.sourceforge.net/packages/openssl.htm once installed you may need to go to the install directory and open the executable then follow the commands below

   1: openssl rsa –in c:\#Support\sha2_apps_technip_com.key  -out dec.key


   3: pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt

Posted in Applications, Website | Tagged | Leave a comment

SBS 2011 to 2012R2 Standard with Essentials Service and 365

Pre-requisite reading (optional)

We will be moving from a 2 server setup SBS 2011 Premium to a 1 server Essentials, SQL had stopped being used for several months after the initial installation of 2011 Premium

This was a big task in a short time and I have to give a big thanks to my colleague JB for his help with this! This is essentially most of the work myself and colleague did with a few bits here and there obviously this can be up to you to decide how you perform this.

I hope this helps! 


    Posted in Microsoft 365, SBS, Server 2012R2 | Tagged | Leave a comment