Recently I have had a issue that a service was stuck on starting
Get the PID of the service
sc queryex servicename
Use the PID to kill the task
taskkill /f /pid [PID]
It will then say
SUCCESS: The process with PID XXXX has been terminated....
Not sure why this occurred however I was planning to add a new drive to a vm, however could not add the new drive.
Thinking back to an issue with a VM at work, on my VM exchange I tried to edit an existing drive on the VM and it mentions checkpoints exist.
In poweshell I did get-vmsnapshot Exchange it mentioned it was a recovery checkpoint
The command I used to remove it was get-vmsnapshot exchange | remove-vmsnapshot
Below is a screenshot of the CMD/Powershell window
...
If you try to change the product key with a retail key it would give the prompt "This edition cannot be upgraded"
You can get the current version of the os by opening command prompt as admin and enter
DISM /online /Get-CurrentEdition
To get the list of editions it can be upgraded to
DISM /online /Get-TargetEditions
To upgrade Standard eval to Standard full use the generic product key within this command
dism /online /set-edition:ServerStandard /productkey:WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY /accepteula
To upgrade Standard eval to Datacenter full or Datacenter eval to Datacenter full
DISM /online /Set-Edition:ServerDatacenter /ProductKey:CB7KF-BWN84-R7R2Y-793K2-8XDDG /AcceptEula
Once done restart your computer.(it can take a while to come back up as it will mention adding features
Once logged in run this command
winver.exe...
in powershell enter sconfigoption 4then option 3 to enable ping and click yes on both prompts
Allow ping through Windows FirewallWindows Firewall with Advanced SecurityInbound Rules“File and printer Sharing (Echo Request – ICMPv4-In)” and enable the rule.3if IPv6 is needed enable the “File and Printer Sharing (Echo Request – ICMPv6-In)” rule
...
Run Powershell as admin
Get-vm | Get-VMNetworkAdapter | select-object VMname, Macaddress, Name | Export-Csv -Delimiter ";" -Path C:\vmmacs.csv
VMName = name of the virtual machine
Macaddress = Mac of the VM being used
Name = The type of network adapter being used such as Network Adapter and Legacy Network Adapter
Delimiter is ; which is how they are spaced out so that you can convert from text to collumn.
Open the file in Excel, select the column, then click on Data tab then text to columns, select delimited and click on next and then ensure only semicolon is ticked, and then click finish
...
When using:
Remove-ADUser -Identity username
It prompt for confirmation to remove the object
To prevent this from appearing and removes the object add -Confirm:$False at the end
The full command is:
Remove-ADUser -Identity username -Confirm:$False...
On Any Hyper-V virtual machine it adds the Floppy disk drive, and there is not an option to remove the drive from the settings window of the VM
The Way to remove this drive is by changing a value in the registry of the virtual machine that is running windows. However as I join my VMs to a domain I can utilise group policy to apply this change
I created a new group policy called "Remove Hyper V Floppy disk drive"
I went into Computer configuration > preferences > windows Settings > Registry
From there I right clicked on registry and selected new > Registry item
And set the following values:
Action: Update
Hive: HKey_Local_Machine
Key Path: SYSTEM\CurrentControlSet\Services\flpydisk
Value name: Start
Value Type: REG_DWORD
Value: 4
Base: Decimal
Then I clicked Apply and OK
I applied it to the root of the domain so that it would apply to all devices on the domain...
Encapsulates RDP in HTTPS packets listens on port 443 (for TCP) and port 3391 (for UDP)
Ports can be changed via RD Gateway Manager utility
Right-click the RD Gateway server name in the navigation pane and select Properties.
Select the Transport Settings tab.
Modify the HTTP and/or UDP port number.
Add firewall exceptions for TCP and UDP for the custom port
When you connect from a client, you need to add the custom port to the end of the gateway server name, preceded by a colon (:)...
Linux distributions
For details on Linux distributions and versions that support dynamic memory, and the requirements for Linux Integration Services, see Linux and FreeBSD Virtual Machines on Hyper-V.
Windows Server 2012 and Windows Server 2012 R2
Datacenter, Standard, and Essentials editions.
Integration services are built-in and do not require a separate download and installation.
Windows 8 and Windows 8.1
Windows 8, Windows 8 Pro, and Windows 8 Enterprise editions.
Windows 8.1, Windows 8.1 Pro, and Windows 8.1 Enterprise editions.
Integration services are built-in and do not require a separate download and installation.
Windows Server 2008 R2 with Service Pack 1 (SP1)
Datacenter, Enterprise, Standard, and Web editions.
Windows Server 2008 R2
Datacenter and Enterprise editions.
Windows 7
Enterprise and Ultimate editions (32-bit and 64-bit).
...