Monday, August 20, 2018

Hyperv and the Virtual switching - Vm's unable to access internet


https://community.spiceworks.com/topic/466370-event-id-2-hyper-v-netvsc-error-vm-and-host-failed-to-negotiate-protocol-v-5-0

Sonora
dbelleba Feb 19, 2016 at 7:02 PM
@ bevege (I realize hes probably not here but for anyone else who had problems like his I ran into the same thing not too long ago).



Theres a known bug with Hyperv and the Virtual switching. You can tell this if you've double checked everything and your vms get local traffic but no internet and your vm host gets local and internet or your vm host doesn't get internet but your vms do. So it basically one or the other.



The fix?



On the virtual switch uncheck the box that says "allow management operating system to share this adapter". Hit apply. Ok. Open it back up, recheck it, hit apply, ok. Whola fixed.

The bug is that when its preselected when the switch is created it doesn't apply correctly. So by rechecking it, its like a refresh. I spent about 4 hours network troubleshooting getting ready to rip the roof off and came across a bug report.



Anyone find a fix for the server 2012 vm hosts adding additional domain controllers in server 2012 R2 and getting stuck on NTDS installation?

Thanks!

Was this post helpful?
 Spice Reply

Pimiento
quirinocardozo Feb 21, 2016 at 4:13 PM 1ST POST
Hi all, after much head-banging, reading up everyone's frustrating stories and all of the R&D attempted, and almost at the verge of giving up and re-building the whole VM Host and VMs back to 2008 R2, dbellba's post above gave me a hint where to look.

- Although I could not find the "virtual switch" he's referring to, I did have a "Virtual Network Manager", which when I investigated displayed the name of the Host's NIC plus a "#2" extension to it.
- Below in the "Connection type", I tried selecting the main NIC that was physically connected to the LAN cable, received a warning that I would be temporarily disconnected - which I was, re-connected via VM-Host's IP
- Then after re-connecting, did a re-boot of the VM.

Guess what? It worked!!! My stubborn 2012 R2 VM's online now.

Hope this helps (and works!) for anyone else out there.

Found on Spiceworks: https://community.spiceworks.com/topic/466370-event-id-2-hyper-v-netvsc-error-vm-and-host-failed-to-negotiate-protocol-v-5-0?utm_source=copy_paste&utm_campaign=growth

https://community.spiceworks.com/topic/466370-event-id-2-hyper-v-netvsc-error-vm-and-host-failed-to-negotiate-protocol-v-5-0

Saturday, August 18, 2018

Windows 7 won't boot up after install on Hyper-V


Okay, I am ABSOLUTELY SHOCKED after a ton of web searching that an incredibly SIMPLE solution to this problem exists, but no one on any of these forums seems to be capable of understanding and revealing the answer... SO -- here it is:
1. Create a new Virtual Machine on your Hyper-V (Server 2008 R2).
2. Install Windows 7 from a DVD or an ISO file, whatever makes you happy.
3. On the final reboot of the install, you will, of course, get the above mentioned black screen.
4. Reboot the VM, but this time press a key to boot from the Windows 7 DVD (or boot from your ISO) so that you can get into the repair mode (recovery console/DOS prompt).
5. Type C: to go to the C (boot) drive of your Windows 7 VM.
Here's the magic:
6. Simply type the following command at the recovery console DOS prompt:
bootsect.exe /nt60 all /force

7. type EXIT and then reboot the machine.
ENJOY!

Thursday, September 1, 2016

Run ADUC on your PC as domain admin

@ECHO OFF

runas /netonly /user:domain\useracct-admin "mmc %SystemRoot%\system32\dsa.msc"

Save this as a batch file and run as admin user; enter your domain admin creds and ADUC launches as domain admin

Wednesday, December 16, 2015

Outlook slow and crashing lately

Blame it on KB3097877  / Windows update

Search to see if it was deployed using an elevated cmd prompt;

wmic /output:stdout qfe get hotfixid | find "KB3097877"

If it shows up as installed; seach manually in installed updates and uninstall it / reboot

Friday, December 4, 2015

Generating Active mailbox user list in Exchange 2010


In EMS

Get-MailboxServer | Get-Mailbox | foreach-object {$email = $_.primarysmtpaddress; $_ | Get-MailboxStatistics | where{$_.DisconnectDate -eq $null}| select DisplayName, @{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, StorageLimitStatus, LastLogonTime,DeletedItemCount,@{Name="EmailAddress";expression={$email}}} | Format-Table

With help from various sources online

Add to export to csv

| epcsv c:\ActiveMailboxes.csv

Tuesday, November 10, 2015

Finding User Created Shared Outlook Calendars in Exchange


Source: http://powershell.org/wp/forums/topic/finding-user-created-shared-outlook-calendars-in-exchange/

Get-Mailbox | Get-MailboxFolderStatistics | Where-Object {$_.FolderType -eq 'User Created' -and $_.folderpath -like '/calendar/*'} | select identity, name | ft -wrap


by mikefrobbins at 2012-08-14 09:35:55
Is there a way with PowerShell to find user created outlook calendars in Exchange 2010 if I don't know the exact name of the calendar? Or maybe I know the exact name but I'm not sure which user created the calendar? Are wildcard searches possible?
If I know the username and the exact name of the calendar, I can use this command to validate it exists:
Get-MailboxCalendarFolder -Identity "username:\calendar\usercreatedCalendarName"
I can see the current permissions with the following command:
Get-MailboxFolderPermission -Identity "username:\calendar\usercreatedCalendarName"
Add Editor Permissions with this command:
Add-MailboxFolderPermission -Identity "username:\calendar\usercreatedCalendarName" -User usernameToAdd -AccessRights Editor
And remove a users access with this command:
Remove-MailboxFolderPermission -Identity "username:\calendar\usercreatedCalendarName" -User usernameToRemove
Example: Can you give Bill access to my management meeting calendar in Outlook? Ok, I have no access to the calendar in Outlook so I'm breaking out PowerShell and I know who I think the owner of the calendar is, but the name may not be exact. How can I return a list of all of John's user created calendars in Outlook by using PowerShell on the Exchange server? Yeah, I know there's better ways to have shared calendars, but we've all been there – users create this sort of stuff.
by MikePfeiffer at 2012-08-14 13:52:23
Hey Mike,
You can find all the user created folders using the Get-MailboxFolderStatistics cmdlet. For example:
Get-MailboxFolderStatistics administrator | Where-Object{$_.FolderType -eq 'User Created'}
This won't give you the folder type (e.g., calendar, etc.) for user created folders, but it will give you the path. This may help if they are nesting them under the default calendar folder in the mailbox.
by mikefrobbins at 2012-08-14 14:51:29
Thanks Mike! That got me started on the right track. It looks like I can do something like this for a very generic search of all mailboxes: (luckily we don't have thousands of mailboxes or this wouldn't be a good idea)
Get-Mailbox | Get-MailboxFolderStatistics | Where-Object {$_.FolderType -eq 'User Created' -and $_.folderpath -like '/calendar/*'} | select identity, name | ft -wrap
If I know the user, I can add it like in your example:
Get-MailboxFolderStatistics username | Where-Object {$_.FolderType -eq 'User Created' -and $_.folderpath -like '/calendar/*'} | select identity, name | ft -wrap
Or if I have some of the calendar name as in my example of "management meeting calendar", I can add it to the foldername path:
Get-Mailbox | Get-MailboxFolderStatistics | Where-Object {$_.FolderType -eq 'User Created' -and $_.folderpath -like '/calendar/*manage*meet*'} | select identity, name | ft -wrap

Source: http://powershell.org/wp/forums/topic/finding-user-created-shared-outlook-calendars-in-exchange/