PowerCLI has a function to remove a USB device from a host, Remove-UsbDevice. However, what if you need to add a usb device to a VM. Well you can with a bit of PowerCLI magic. This solution assumes the device you wish to add remains in the same USB port and that the VM will be on the same host as the USB device of interest. If you wish you can hack around to insert the host ID and change from path: option to pid: and vid: options. You can read more about the option at VMware pubs.
[Read More]Simple PowerShell to add PortableApps to your Windows 8 or 8.1 Start Menu
Copy the below code to your machine and edit the $folder line to match the location of your PortableApps you can check you have the correct folder by doing a dir with it and ensuring all your portable apps come up.
To undo what the script does then remove the folder “%appdata%\microsoft\windows\Start Menu\Programs\Portable\“
No warranty or suchlike – for information only. Publication requires leaving a comment with a reference to each article and source must be provided with all use
[Read More]Simple Storing of File Dates and Restoration with PowerShell
All sorts of things mess around with file dates and of concern to me was a number of home videos I transcoded that ended up with new file creation dates that I wanted to retain against the original write time. We can handle this in Windows with a little PowerShell. I’ll assume here that all files are in the same path and without their extensions, all files have unique names.
[Read More]