Category: Windows 8

Last updated by at .

Powershell

Get name of the PowerShell script file inside the script

When you create a script you sometimes want to create some output for a log file for example. In many cases it makes sense to use the script file name for the log file so you can easily see from which .ps1 the .log file was generated for example. To get the name of the PowerShell ps1. file you can use the following command:

This will return the ps1. file object. To get only the name string you could use:

To create a log file with the script file name you could use the following commands:



Powershell

Move files to folder sorted by year and month with PowerShell

I had to sort a lot of files and put them into folders for each month and year. So for example when the files was created/modified in February 2012, the file had to be moved into the folder 2012 and the subfolder 2 (for February). For this I created this quick and dirty script:

Please as always if you use a PowerShell script from the internet, test it first before you run it against your production environment.




InstantGo powercfg

Troubleshoot Windows InstantGo (Connected Standby)

In Windows 8 Microsoft released a feature called InstantGo (formerly know as Connected Standby) which should bring smartphone like Power Management features to your Windows tablet or notebook. Devices such as the Surface Pro 3 do offer this feature. This post should help you troubleshoot issues with InstantGo or Connected Standby.

InstantGo requires the following:

  • Windows 8.1 Operating System (In Windows 8 this is called Connected Standby)
  • A firmware flag indicating support for the standard
  • The boot volume must run on a SSD disk
  • Support for NDIS 6.30 by all network devices
  • Passive cooling on standby
  • Secure Boot
  • Memory to be soldered to the motherboard
  • The Hyper-V Hypervisor role must be disabled on Windows 8 and Windows 8.1 systems. Windows 10 Hyper-V will allow you to use Hyper-V and InstantGo at the same time.

Check if the hardware supports InstantGo

To check if your hardware supports InstantGo you can run the following command:

InstantGo powercfg

InstantGo Issues / Connected Standby Issues

In some case you can run in some issues where you have your battery draining more than expected during the InstantGo or Connected Standby time. This could be of the following reasons:

  • Drivers – Make sure you have the latest drivers installed
  • Firmware – Make sure you have the latest Firmware (BIOS) installed
  • Mails –  The Windows communication app keeps the broker infrastructure (BI) system active. BI, in turn, keeps the WLAN network up so that the system stays up-to-date with emails. If you get a lot of emails this can end up in a higher power drain.
  • Software –  Some installed legacy Software which does not let you go into the InstantGo modus.
  • VPN Clients – Some older VPN Clients can also cause issues with InstantGo
  • Network Activity – The WLAN device might have a challenging radio environment and the Windows system might not be able to establish a reliable Internet connection. We see how these events affect the WLAN device, which, in turn, impacts the battery.
  • Hyper-V – If you run Hyper-V in Windows 8 or Windows 8.1 you can not run InstantGo, this is solved in Windows 10.

Troubleshooting InstantGo / Troubleshooting Connected Standby

To get some more information about your device and InstantGo or Connected Standby you can use the following tools and reports.

powercfg /SleepStudy

Powercfg SleepStudy

The maybe best way to Troubleshoot Connected Standby or InstantGo issues, is to use the powercfg /SleepStudy command. This will generate a Sleep Study report which allows you to analyze different things about Conncted Standby:

Connected Standby / InstantGo Overview

SleepStudy Report

Connected Standby Transitions

SleepStudy Report Connected Standby Transitions

Connected Standby Sessions

Here you can analyze which application or driver did use battery resources during the Connected Standby session.

SleepStudy Report InstantGo

powercfg /batteryreport

powercfg batteryreport

With powercfg /batteryreport you can generate a report about how your battery is used.

Battery Report

And you can also see what kind of state drained your battery, if this was an active session or a Connected Standby session.

Battery Report Battery Usage

powercfg /energy

PowerCFG Engery

With powercfg /engery you can see not only InstantGo or Connected Standby issues, you can see what other applications, drivers and more does could drain your battery.

Energy Report

I hope this helps you to troubleshoot Connected Standby issues.

Sources

 



Azure Backup Agent

How to Backup a Windows Client to Microsoft Azure

Today Microsoft announced that Microsoft Azure Backup now not only supports Windows Server or System Center Data Protection Manager, it also support Windows Clients, including Windows 7, Windows 8 and Windows 8.1.

To backup your Windows Client machine you have to go to the Azure Portal and create a new Backup Vault.

Create Azure Backup Vault

After that you have to download and install the Microsoft Azure Backup agent and the vault credentials which are needed to register the machine to your Backup Vault.

Azure Backup Agent

Now during the installation of the Azure Backup Agent you have to use the vault credential file to register your server. There are two different ways of registering machines to the backup vaults that store data:

  • Option #1: Register one machine per backup vault. The backup vault is created under Recovery Services in your Azure subscription. Please be aware that only 25 backup vaults can be created per subscription using this option. If you have more machines to backup to Azure, please use the second option.
  • Option #2: Register multiple machines to the same vault. This enables up to 50 machines to be registered with a single backup vault.

In both the options, access to the backup data is controlled using an encryption passphrase. At the time of registering a machine to a backup vault, an encryption passphrase is provided by the user – and this is used to encrypt and decrypt the data being backed up. With different encryption passphrases being used for different machines, isolation is guaranteed.

 

In both the options, access to the backup data is controlled using an encryption passphrase. At the time of registering a machine to a backup vault, an encryption passphrase is provided by the user – and this is used to encrypt and decrypt the data being backed up. With different encryption passphrases being used for different machines, isolation is guaranteed.

Azure Client Backup

Now you can see your machine in the Azure Portal in the recovery vault. After the Agent is installed you can launch the Microsoft Azure Recovery Services Agent to configure your backup.

Microsoft Azure  Backup

After the first Backup is done, you can also start recovering data from Azure.

Azure Backup Recover Data

Some notes:

  • If you are running Azure Backup on your notebook or tablet, the backup will only run if the computer is not on battery mode. If your notebook is running on battery the backup will run the next time the machine is connected to a power source.
  • If you pick the backup time of your machine make sure the machine is not shutdown during that time.


Microsoft Wireless Display Adapter

Microsoft Wireless Display Adapter

Some weeks ago I was in the US for a couple of days, I took advantage of that and visited the Microsoft Store to get a Microsoft Band which was unfortunately out of stock. But I found another great gadget, which as far as I know is only available in the US and Canada, called the Microsoft Wireless Display Adapter. The Microsoft Wireless Display Adapter is basically a Miracast receiver, which you can use to project your Windows, Windows Phone or Android display wireless to another screen or projector.

Microsoft Wireless Display Adapter

The adapter has a HDMI port for the display signal and a USB port to power the adapter. You plug them in to your TV and after the adapter finished booting you can start connecting your Wireless Display. The Wireless Display Adapter does not only stream the video, it also allows you to stream audio.

Microsoft Wireless Display Adapter App

This is perfect not only at home, but also during meetings or presentations. With the Windows Store App for the Wireless Display Adapter you can also configure some settings like name or security for the adapter.

 

 



Microsoft Band

Microsoft Band powered by Microsoft Health

Microsoft today announced a new product called Microsoft Band. The Microsoft Band focuses on health and fitness and comes with over 10 different sensors for health, sports and sleep tracking like built-in GPS and 24-hour heart rate monitoring to help you reach your fitness goals.

  • 24-hour heart rate monitor: Gives you a better understanding of your calorie burn, sleep patterns, and peak and resting heart rate so you can perform at your best.
  • Run: Whether you’re on the treadmill at the gym or outdoors in the rain or sun, you can view your run summary on your band with personalized metrics in the phone app including pace splits and heart rate.
  • Steps: Set a goal and track your progress. Microsoft Band calculates the calories you’ve burned and the distance you’ve traveled each day.
  • Built-in GPS: Measures the distance you’ve run and tracks your pace and route. Save your favorites to retrace your steps and challenge yourself later.
  • Calorie tracking: Count the calories you burn each day. View daily or weekly stats, set goals, and receive a virtual “high-five” when you reach them.
  • Sleep tracking: When activated, Microsoft Band tracks the length and quality of your sleep. Analyze the sleep charts in your app to gain insights about your slumber.
  • Guided Workouts: Fun and challenging workouts from fitness partners like Gold’s Gym, Shape, and Men’s Fitness with exercise prompts on the band and much more in the app.
  • Goal setting: Challenge yourself by setting daily step and calorie goals. Microsoft Band notifies you when you meet them so that you can stay motivated.
  • UV monitor: Get a quick read of the UV Index while you’re out and about.

Cloud-based service Microsoft Health

Microsoft Health Cloud

 

Microsoft Health is a cloud-based service that helps you live healthier by providing actionable insights based on data gathered from the fitness devices and apps that you use every day. Activity-tracking devices like the new Microsoft Band, smart watches, and mobile phones plus services like RunKeeper or MyFitnessPal connect easily to Microsoft Health. Using this fitness data and our Intelligence Engine in the cloud, Microsoft Health provides valuable, personal insights so you can reach your fitness goals.

Be more productive

Microsoft Band Smartwatch

But the Microsoft Band is much more. It also offers a lot of features as a smartwatch or personal assistant. Which shows you the usual stuff like text messages, meetings, calls, Facebook and Twitter integration but if you are using a Windows Phone you also have Cortana (the personal assistant on Windows Phone) integrated. These features should not only help you trough your daily life, they also should make you more productive and help you to keep your phone in your pocket.

Some of the function Microsoft offers in terms of notifications and alerts.

  • Text Messaging: Get your text messages right on your wrist.
  • Calls: See incoming call and voicemail notifications on your band.
  • Calendar: Microsoft Band stays in sync with the calendar on your phone, reminding you of important events throughout the day so you can be where you need to be.
  • Email: Monitor and preview email activity right on your band, so you don’t have to pull out your phone in the middle of your lunch date.
  • Smart notifications: Choose which alerts you get on your wrist. Change the notification settings on your phone and your Microsoft Band will match.
  • Watch mode: Turn on “Watch Mode” to always display today’s time and date without pressing any buttons.
  • Facebook & Facebook Messenger: Stay up to date on Facebook without having to check your phone. Get the latest posts, comments, photo notifications, and personal messages on your band.
  • Twitter: Tweets, mentions, retweets, messages, new followers. Set your preferences on your phone and see it all on your wrist.
  • Cortana: If you’re using Windows Phone 8.1, you can take notes and set reminders with your voice using Cortana personal assistant.
  • Weather: Get real-time weather conditions and a 5-day forecast to plan your week.
  • Finance: Create a watch list for select stocks in your Microsoft Health app. View the latest ticker activity right on your wrist.
  • Starbucks: No need to reach for your wallet. Enjoy coffee on the go with your Starbucks card ready to scan at arm’s length.
  • Timer & Stopwatch: Time your laps or your entire workout with the stopwatch. Set alarms to wake up silently or remind you to go for a run.
  • Do-not-disturb mode: Tap the icon on your band to turn all notifications off.
  • Personalization: With your choice of background designs and colors, let Microsoft Band reflect your personality.
  • Display: The full color touch display is bright and easy to read, even in direct sunlight.
  • Bluetooth 4.0: With Bluetooth 4.0, your data syncs to your phone in the background, so Microsoft Band is always up to date. You don’t have to log in to get the latest.

Works with the phone you own

Microsoft Band iPhone and Android

 

The Microsoft Band not just works with Windows or Windows Phone devices, it can also be used on iOS or Android devices.

Microsoft says the battery life of the Microsoft Band will be up to 48h and is only available in the US for $199 (Microsoft Store). I am totally looking forward to replace my Nike Fuelband with this devices.