howto

Capture PuTTY Session Logs

In the past week I have had my good share of working on remote systems where I needed to utilize the tool PuTTY to issue commands; not all of them documented. To assist me in documenting my steps I often use the session logs. However this normal has been a manual process in the heat of the moment and sometimes enabling logging is an afterthought.

To guarantee that this is done I have preformed the following steps to the default configuration of my PuTTY client and all saved sessions so that logs are saved and dated for future reference. I wish to record those here for any of you who would like to do the same.

[Press Start]

 

Open PuTTy

Under Category, choose Logging

Under Session Logging, choose the option “All session output”

Under file name: choose a directory and log filename

Using the PuTTY log parameters I configure my logs to consists of host, year, month, data and time for each session.

I also selected the option to “Always append to the end” of the session log which is currently open”

Finally, saving this new log settings to the Default Settings profile in putty making this the default logging option for all future connections and saved profiles.

Note: Profiles that existed before this change will need to be modified if you wish to also log the session output.

Log Parameters:

  • &H = hostname for the session
  • &Y = year
  • &M = month
  • &D = day
  • &T = time

Example Log’s:

Short Video on how to do this

How to Remove Users From the Office 365 Deleted Users

And… its time to purge those 365 deleted users. Although we can wait for the retention policy to do it for us. I wanted to do this “now”.

I had wrote the following steps in the past and thought I would share here.

[Press Start]

To delete the account for one or more users

Sign in to Office 365 with your work or school account.

Go to the Office 365 admin center.

Go to Users > Active Users.

Choose the names of the users that you want to delete, and then select DELETE Delete.

In the confirmation box, select Yes.

Done!

[Pause]

Well, not so fast. The deleted users is not fully gone yet. It takes 30 days after you have deleted the user for it to purge from Office 365. However there is a way to do this faster

[Press Start]

Connect to Exchange Online using the Windows Azure Powershell module.

To connect you enter the following cmdlet’s:

  1. Store your credetials (this is stored in memory): $msolcred = get-credential
  2. Connection to Office 365: connect-msolservice -credential $msolcred

Once connected you can issue the following command to list deleted users:

get-msoluser –returndeletedusers -maxresults 100

To remove a deleted user permanently:

remove-msoluser –userprincipalname UID@UPN.com -RemoveFromRecyclebin

If you had multiple users, the following cmdlet would work to remove all deleted users recycle bin:

get-msoluser –returndeletedusers -maxresults 100 | remove-msoluser -removefromrecyclebin -force

That’s it… Your done. Good Luck

Original Post of mine can be found here

Check Bitlocker Encryption Status, Simple PowerShell Method

If you have enabled Bitlocker encryption on your Windows client and wondering how far along you are in the initial encryption process this quick PowerShell command will help you.

Steps

  1. The first step is to turn on BitLocker
  2. Next, Right click PowerShell and select Run as Administrator
  3. Issue the following command: manage-bde -status c: to show the status of volume c: on your client.  You can omit the volume letter to list all attached volumes.

  4. Issue the above command again will show you the progression of your drive encrypted status.  When completed you will notice that the Protection Status will be set to On
    For more info on BitLocker Drive Encryption

Using Get-SPWebTemplate to list available site templates in SharePoint 2013

In this tech-short we will go over a simple yet effective way to list out the available site templates in SharePoint 2013.

Using the New-SPSite PowerShell cmdlet allows you to specify the name of a template to use. In my case I was unaware of the name of available templates in my SharePoint installation.  Using the Get-SPWebTemplate command to produce a list for me.

Steps

  1. Open the SharePoint 2013 Management Shell
  2. The the following command: Get-SPWebTemplate | Sort-Object “Name”

The results are a list Templates which could be used in this environment.

 

If you wanted to do the same with PowerShell locally or remote the following steps can be taken.

Open PowerShell and issue the following commands:

  1. New-PSSession -ComputerName SharePoint
  2. Add-PSSnapin Microsoft.SharePoint.Powershell
  3. Get-SPWebTemplate | Sort-Object “Name”

Deploy Template Using VMware Guest Customization Specification

Using templates save you lots of time when it comes to deploying virtual machines. And if you are looking to get a slight edge on your deployments in lab or production using customization specifications may be the way you want to go.

Here are some quick steps to deploy using this method:

 

  1. From the home page of  vCenter Web click VMs and Templates
  2. Right click on the template of choice and select New VM from Template…
  3. Enter the name of your virtual machine guest as you would refer to it in vCenter. Choose your datacenter and click Next to continue
  4. If you are using clusters, choose your cluster and click Next to continue
  5. Select your datastore and click Next
  6. On the select clone option screen choose customise the operating system option; you may also set the machine to power on after creation to start the process which customises the guest – Click Next to continue
  7. On our last screen we are shown our customization choices.  Choose your template configuration and click next
  8. Clicking Next on the confirmation screen start our deployment

And that’s all folks  — posted this for a friend with screenshots to illustrate the process.

– Jermal

Remove Wireless Profiles in Windows 10

Similar to my previous post ‘Windows 8: Remove Old Wireless Network Profiles‘ the following are steps which can be preformed in both the command prompt or PowerShell prompt.

Task: Clean up all wireless profiles in Windows 10

Requirements:

  • PowerShell or Command Prompt
  • Elevated Privileges

Steps:

  1. Open, a PowerShell prompt or Command prompt as Administrator
  2. Enter netsh wlan show profiles to show all wireless profiles

  3. Enter netsh wlan delete profile name=”ProfileName” to delete a particular profile by name

     
  4. Or enter  netsh wlan delete profile name=”*” to remove all saved profiles

For more info on managing wireless networks on Windows 8, 8.1, 10 check out the following: Manage wireless network profiles

 

I hope you enjoyed this short post, thanks for visiting – jermal

 

Tech Short: Using PowerShell to join Computer to AD Domain

Working on a server installation I decided to use a simple yet effective power-shell command to join a Windows Server 2012/R2 system to our domain.

For the sake of brevity lets just show you.

Requirements:

  • Admin access to the computer/server you are joining to the domain along with permissions in the AD domain to join machines
  • Connected to the network where the domain is accessible
  • Obtain an network ip address along with dns that can resolve the domain you are joining
  • PowerShell

Steps:

  1. Launch PowerShell as an Administrator
  2. Issue the following command example: Add-Computer -DomainName <domain name> -Restart

You will be prompt for a username and password at this point. Enter in the correct credentials and soon after a restart will occur.

When you resume from the restart you can now log in on this workstation/server with domain credentials.

Additional info can be found on Technet

I hope you enjoyed this short, thanks for visiting – jermal

Tech Short: Change Password VMware vCenter 6

The day would come where I would need to change my password in vCenter… Today was that day; Thankfully vCenter places am informative notice of your expiring password.

Here is how you can change your password using vCenter 6:

Log into vCenter 6

  1. Click Home.
  2. Click Administration.
  3. Click Single Sign-On > Users and Groups.
  4. Click the Users tab.
  5. Right-click the affected user account, selecting edit user
  6. Enter in the current password, followed by your new (it could be the same, I don’t ever recommend this practice)
  7. Click OK to save changes.

 

I hope you enjoyed this techshort, thanks for visiting – jermal

Renaming SharePoint 2013 Server

I spent sometime today renaming SharePoint 2013 Servers for a project I was pulled in on. It involved using PowerShell cmdlets and other administrative tasks.

The project required me to “Clone” SharePoint farm servers to make template environments for demonstration and development task.

I originally followed steps provided here: Renaming SharePoint then later streamlined the process so its something I found useful. Here are my notes saved in PowerShell format so it could be run step by step using PowerShell ISE:

 

Best,

Jermal

Option to mount .iso in Windows 8 missing

Friday, April 10, 2015

By now we are aware that Windows 8 has the ability to mount .ISO files. But what happens when one day you go to click on that .ISO file and the mount option is missing.

This is what happened to me.  To fix this little problem the following steps were followed:

  1. Right click the .ISO file, and select properties in the menu
  2. Under the General Tab, select Change to change the file association
  3. You will be prompted to choose what program should open the file type. Choose Windows Explorer

One you have selected Windows Explorer, the mount option is available again.