Category Archives: Tips

Get OS Version from Windows Install medium

Find the wim file located in :\sources on the install medium then run a command shell as administrator. dism /get-wiminfo /wimFile:<Drive>:\sources\<Wimfile> As a result you should get something like this: dism /get-wiminfo /wimfile:Y:\sources\boot.wim Deployment Image Servicing and Management tool Version: … Continue reading

Posted in Tips | Tagged | Comments Off on Get OS Version from Windows Install medium

Cleanup winsxs folder

Do not delete files manually from winsxs folder . Instead use the following command to remove old servicepack files. dism.exe /online /cleanup-Image /spsuperseded

Posted in Fix IT, Tips | Comments Off on Cleanup winsxs folder

Powershell from scheduled task

As powershell is running by default in secure mode , use the following setting to run powershell scripts from a scheduled task. This way you do not have to elevate the rights for running scripts. Ensure your Powershell script is … Continue reading

Posted in Information Technology, Tips | Tagged | Comments Off on Powershell from scheduled task

ADDS Dump thumbnailPhoto to JPG file

Use this command line in Powershell to save a users thumbnailPhoto to a file. First start a Powershell session with Active Directory Modules loaded, then: get-aduser “sAMAccountname” -server “FQDN Domain Controller”-properties thumbnailPhoto | select -expandproperty thumbnailphoto | set-content -path “JPG … Continue reading

Posted in Information Technology, Tips | Tagged , | Comments Off on ADDS Dump thumbnailPhoto to JPG file

Clear Protected from accidental deletion flag

Windows Active Directory protects per default Organizational Units (OU) from accidential deletion . To clear this flag for an entire OU structure you can use this Powershell commands . This example command will remove the flag from an OU structure … Continue reading

Posted in Information Technology, Tips | Tagged , | Comments Off on Clear Protected from accidental deletion flag