To monitor the contents of a text file (like a log file) using Powershell, you can use the following command:
Get-Content someFile.txt -wait
To monitor the contents of a text file (like a log file) using Powershell, you can use the following command:
Get-Content someFile.txt -wait
(via http://www.servethehome.com/change-hyper-v-network-category-public-private-powershell)
When reloading my computer yesterday I was unable to get any Insider builds to install. All I saw was a “Your Microsoft account needs attention” with a FixMe button. Clicking on that button restarts the computer but it doesn’t fix the problem. You’ll see the same problem and FixMe button when you log back in.
Continue reading Insider builds issue: Microsoft account needs attentionNormally you can just use “winver” (or “ver” in command prompt) to get the version number but it doesn’t always return the build number.
You can find the build number in the registry; use the following command in cmd:
reg query "HKLMSOFTWAREMicrosoftWindows NTCurrentVersion" | findstr BuildLabEx
If you want to see which version of Windows is contained in an ISO image, mount the image and run the following command in an elevated cmd/powershell window:
dism /Get-WimInfo /WimFile:A:sourcesboot.wim
Be sure to change A: to the correct drive letter where the image is mounted. Also, combined x86/x64 ISO images will need to include the architecture before “sources”.
dism /Get-WimInfo /WimFile:A:x86sourcesboot.wim
dism /Get-WimInfo /WimFile:A:x64sourcesboot.wim
Nothing is more fun that finding out a production server has not been activating via KMS like it was supposed to be doing. Imagine my surprise logging in and seeing a “Windows is not activated” message. Re-entering the correct kms setup didn’t solve it; in fact, it didn’t even send a KMS message to the server.
It turns out the server was in MAK licensing mode. I found that out by running the command “slmgr /dlv” in an elevated command prompt and seeing VOLUME_MAK in the description.
When you want to release a new version of your software, you often want it to replace the existing version. In order to do this in Installshield Limited setup projects, you need to understand the following items.
There are two different codes: Product Code and Upgrade Code.
If you restore a database on a different SQL Server you may see the following error message:
The database owner SID recorded in the master database differs from the database owner SID recorded in database...
The solution is to change the authorization on the database to a known SQL account:
alter authorization on database::{databasename} to {username}
Simply replace the {databasename} and {username} with the appropriate names; the brackets should not appear in the SQL query.
To install the .NET Framework 3.5 from installation media located in the D:\sources\SxS directory, use the following command:
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\Sources\SxSContinue reading Installing .Net 3.5 on Win10 using DISM
The program disk2vhd makes the process of virtualizing old Windows Servers for Hyper-V very painless but there is one little gotcha — when you first power on the new virtualized server and attempt to install/update the Integration Services you may be stuck in a reboot loop. But that can easily be fixed.
Continue reading Hyper-V: virtualizing old servers using Disk2Vhd