open notepad
Paste the following
@echo off
net user Username Password /add /comment:"Admin" /passwordchg:NO
wmic useraccount where "name='Username'" set passwordexpires=FALSE
net localgroup "Administrators" Username /add
PAUSE
Replace Username with the username you want to use
Replace Password with the password you want to use...
Run Powershell as admin
get-vm * | select Name,@{L="Disks";E={$_.harddrives.path}} | Export-Csv c:\temp\vmdisklocations.csv
Creates CSV which looks like the below
Name
Disks
WACLS1-VM
S:\VM\WACLS1-vm.vhdx H:\VMs HDD\WACLS1-VM\WACLS1-backupdisk.vhdx H:\VMs HDD\WACLS1-VM\WACLS!-VMM-Lib.vhdx
...
Set-UnifiedGroup -Identity "Group DisplayName" -PrimarySmtpAddress New-email-address
Previous email address is added as a alias
Get List of email addresses
Get-UnifiedGroup -Identity "Display Name" | Select PrimarySMTPAddress,Alias,EmailAddresses|FL
...
WARNING - This will removal all items from the start menu. You will need to re-pin any that you would like back.
This is Recommend if you are logging in to the first time.
Open Powershell ISE
And do a new script and enter the following:
(New-Object -Com Shell.Application).
NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').
Items() |
%{ $_.Verbs() } |
?{$_.Name -match 'Un.*pin from Start'} |
%{$_.DoIt()}
Then run the script (press F5)
...
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
...
Stop the Windows Update service, Remote access connection manager Certificate propagation
Move the “SoftwareDistribution” folder to the desired drive. Now there will be no folder named "SoftwareDistribution" in the path "%systemdrive%\Windows".
Now open the command prompt in “Administrator” mode (Type “cmd” in start menu search box and press ctrl+shift+enter)
Change to “Windows” directory by issuing the command “cd %systemdrive%\Windows"
Now use the command "mklink" to create a junction point to the “SoftwareDistribution” folder, that you moved to a different drive. The command is “mklink /J SoftwareDistribution d:\softwareDistribution”
d:\softwareDistribution is the new destination
reboot then check for updates...
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...