Windows – Servicing – Company Portal

You can use app package servicing commands to add, remove, and list provisioned app packages (.appx or .appxbundle) in a Windows image. Command to Add Company Portal DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:C:\PathToFile\Microsoft.CompanyPortal_2022.409.807.0_neutral___8wekyb3d8bbwe.AppxBundle /SkipLicense   Notes   DISM App Package (.appx or .appxbundle) Servicing Command-Line Options

Windows – Rename Computer

PowerShell $(gwmi win32_computersystem).Rename(“PC-NewName”) Rename-Computer -NewName PC-NewName -Restart Invoke-command -computer PC-OldName -script {rename-computer PC-NewName; restart-computer} Commands WMIC ComputerSystem where Name=”PC-NewName” call Rename Name=NewName netdom renamecomputer %computername% /newname:PC-NewName /userd:domain\adminaccount /passwordd:password /reboot:10   Notes Rename-Computer Invoke-Command Netdom.exe WMIC.exe Get-WmiObject (gwmi)

Windows 10 – Freeze a Windows Build Version

This is how you lock the Windows build version—meaning this will prevent a future release from being automatically applied. Useful for gaining control over the build versions in your fleet. Enable reg add “HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate” /v TargetReleaseVersion /t REG_DWORD /d 1 /f /reg:64 Set Version reg add “HKLM\SOFTWARE\Policies\M9icrosoft\Windows\WindowsUpdate” /v TargetReleaseVersionInfo /t REG_SZ /d 2004 /f /reg:64 Read More …

PowerShell – Automate Cleanmgr.exe

/sagerun:1 ‘ Active Setup Temp Folders ‘ Content Indexer Cleaner ‘ Downloaded Program Files ‘ GameNewsFiles ‘ GameStatisticsFiles ‘ GameUpdateFiles ‘ Internet Cache Files ‘ Memory Dump Files ‘ Microsoft Office Temp Files ‘ Offline Pages Files ‘ Old ChkDsk Files ‘ Previous Installations ‘ Recycle Bin ‘ Service Pack Cleanup ‘ Setup Log Files Read More …

Windows – Could not load file or assembly Accessibility, Version=4.0.0.0

Error   See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.IO.FileNotFoundException: Could not load file or assembly ‘Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified. File name: ‘Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ at System.Windows.Forms.Control.OnHandleCreated(EventArgs Read More …