Sunday, August 7, 2016
[WSRV] Expand all values in object property
Get-Mailbox mbx001 | Select-Object -ExpandProperty EmailAddresses
https://blogs.msdn.microsoft.com/powershell/2009/09/13/select-expandproperty-propertyname/
Saturday, July 9, 2016
[WSRV] How to removing a pending update that is preventing a successful boot
dism.exe /image:C:\ /cleanup-image /revertpendingactions
remove the file C:\windows\winsxs\pending.xml.
Monday, May 23, 2016
[WSRV] Create a file with specific size
fsutil file createnew d:\temp\1mbfile.txt 1000000
Fsutil
https://technet.microsoft.com/en-us/library/cc753059(v=ws.11).aspx
Tuesday, May 10, 2016
[EXO] Download pictures from users
$user = Get-UserPhoto user@domain.com
$user.PictureData | Set-Content "D:\Export\Photo$($user.Identity).jpg" -Encoding byte
Thursday, March 3, 2016
[WSRV] Check which .NET Framework versions are installed
CMDLET:
Get-ItemProperty -Path “HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full” | Format-List Release
https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx
- On the Start menu, choose Run.
- In the Open box, enter regedit.exe.You must have administrative credentials to run regedit.exe.
- In the Registry Editor, open the following subkey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\FullNote that the path to the Full subkey includes the subkey Net Framework rather than .NET Framework.
NoteIf the Full subkey is not present, then you do not have the .NET Framework 4.5 or later installed.Check for a DWORD value named Release. The existence of the Release DWORD indicates that the .NET Framework 4.5 or newer has been installed on that computer.
- The value of the
ReleaseDWORD indicates which version of the .NET Framework is installed.ImportantThe following table lists the keys of released versions of the .NET Framework only. It doesn't list the keys of preview or pre-release versions.
|
Value of the
Release DWORD
|
Version
|
|
378389
|
.NET Framework 4.5
|
|
378675
|
.NET Framework 4.5.1
installed with Windows 8.1 or Windows Server 2012 R2
|
|
378758
|
.NET Framework 4.5.1
installed on Windows 8, Windows 7 SP1, or Windows Vista SP2
|
|
379893
|
.NET Framework 4.5.2
|
|
On Windows 10 systems
only: 393295
On all other OS versions: 393297 |
.NET Framework 4.6
|
|
On Windows 10 November
Update systems only: 394254
On all other OS versions: 394271 |
.NET Framework 4.6.1
|
|
On Windows 10 Anniversary
Update and Windows Server 2016: 394802
On all other OS versions: 394806 |
.NET Framework 4.6.2
|
|
On Windows 10 Creators
Update only: 460798
On all other OS versions: 460805 |
.NET Framework 4.7
|
|
On Windows 10 Fall
Creators Update only: 461308
On all other OS versions: 461310 |
.NET Framework 4.7.1
|
|
On Windows 10 April 2018
Update only: 461808
On all other OS versions: 461814 |
.NET Framework 4.7.2
|
[EX2010] Configure TLS Certificate for Receive Connectors
Get-ExchangeCertificate
$cert = Get-ExchangeCertificate -Thumbprint E67EC3C8D679AA35D17678FEC51907272B1BAE2
$tlscertificatename = "<i>$($cert.Issuer)<s>$($cert.Subject)"
Set-ReceiveConnector "EX2016SRV1\Client Frontend EX2016SRV1" -TlsCertificateName $tlscertificatename
Wednesday, March 2, 2016
[WSRV] Hyper-V VM doesn't start. “‘General access denied error’ (0x80070005)”
- Note the Virtual Machine ID that is listed in the "‘General access denied error’ (0x80070005)" error message.
For example, consider the following error message:
‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment
‘E:\VMs\VMName\Disk0.vhd. Error: ‘General access denied error’ (0x80070005). (Virtual
Machine ID 5FC5C385-BD98-451F-B3F3-1E50E06EE663)
In this example, the Virtual Machine ID is 5FC5C385-BD98-451F-B3F3-1E50E06EE663. - Open an elevated command prompt.
- To give the Virtual Machine ID (SID) access to the .vhd or .avhd file, type the following command, and then press Enter:
icacls <Path of .vhd or .avhd file> /grant "NT VIRTUAL MACHINE\<Virtual Machine ID from step 1>":(F)
For example, to use the Virtual Machine ID that you noted in step 1, type the following command, and then press Enter:icacls "E:\VMs\VMName\Disk0.vhd" /grant "NT VIRTUAL MACHINE\5FC5C385-BD98-451F-B3F3-1E50E06EE663":(F)
- Start the virtual machine.
https://support.microsoft.com/en-us/kb/2249906
Subscribe to:
Posts (Atom)