Windows 10

From Omnia
Revision as of 20:05, 27 September 2024 by Kenneth (talk | contribs) (→‎Startup Folder)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Subpage Table of Contents

Control Panel

Right click on the start button and select Control Panel

The Old-Style Control Panel is Just a Right-Click Away in Windows 10 | Windows 10 content from SuperSite for Windows - http://winsupersite.com/windows-10/old-style-control-panel-just-right-click-away-windows-10

Startup Folder

User's Startup Folder

Start -> Run -> shell:startup

  • or Windows Key + R -> shell:startup
  • C:\Users\USER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  • %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
  • %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Ref: [1]

System Startup Folder

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\StartUp
%ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp

Automatic Login

control userpasswords2


  1. In the Search box, type control userpasswords2, and then press ENTER. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
  1. Clear the Users must enter a user name and password to use this computer check box, and then click Apply.
  1. In the Automatically Log On dialog box, type your password, and then click OK.
  1. In the User Accounts dialog box, click OK.
  1. After you restart your computer, you will be able to log on automatically.


Microsoft - Turn on automatic logon - http://windows.microsoft.com/en-us/windows-vista/turn-on-automatic-logon

Upgrade to Windows 10

Windows 10 - Upgrade for Free - https://www.microsoft.com/en-us/software-download/windows10

How to manually run Windows 10 Compatibility Appraiser - http://www.thewindowsclub.com/manually-run-windows-10-compatibility-appraiser

schtasks.exe /Run /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"

note: "If you do not run the appraiser manually this way, it will still run on its own at a set time and update the compatibility details. Setting your Windows clock to some time in the future has also helped some."

Difference Between N and KN Editions

Difference Between N and KN Editions: [1]

Windows 10 - It has everything that Microsoft offers for a windows OS.
Windows 10N - The N version of Windows comes without a media player baked into the system.
Windows 10KN - This version removes Windows' media playing capabilities.
Windows SLP - This will have only language pre-installed.

Internet Time Syncrhonization

server: time.windows.com

Run As Administrator

Task Manager - Run As Administrator

  1. Run Task Manager
  2. Start new process with "Run as Administrator" checked

Reference:

Run - Run As Administrator

Make any program run with Run run as administrator:

  1. Run Task Manager
  2. Kill "Windows Explorer"
  3. Start new "Windows Explorer" process with "Run as Administrator" checked

To reverse, do the same without the "Run as Administrator"

References:

You can also disable UAC

Run CMD as Administrator

REG fix that should put a new entry on the context menu for the desktop to run CMD elevated:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas]
@=”Run Command Prompt as Administrator”

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas\command]
@=”cmd.exe”

reference: (Solved) - Ran As Administrator not working on Desktop Icons « How-To Geek Forums - http://www.howtogeek.com/forum/topic/ran-as-administrator-not-working-on-desktop-icons

-

another method, start task manager, start new task and check the "create this task with administrator privileges"

Delete Confirmation

5582.Windows_2D00_8_2D00_Delete_2D00_File_2D00_Confirmation_2D00_Dialog.png

Enable the Windows 8 / Windows 10 delete file confirmation dialog - Nothing but .NET - Site Home - MSDN Blogs - http://blogs.msdn.com/b/madenwal/archive/2012/08/08/windows-8-delete-file-confirmation.aspx

Make Windows 10 to display Delete Confirmation dialog | Techdows - http://techdows.com/2015/02/make-windows-10-display-delete-confirmation-dialog.html

Enabled Administrator Account

Enable administrator account:

net user administrator /active:yes

Set password:

net user administrator *

If you want to enable the guest account:

net user guest /active:yes

Ref:

User Management

List Local Users

net local users

List Local User Groups

net localgroup

Find Hidden Files

dir /S /A:H > hidden.txt

ref: [2]

Disable UAC

1. Go to Start Menu -> Control Panel -> User Accounts and Family Safety -> User Account.

2. Go to Start Menu -> Control Panel -> System and Security -> Action Center.

3. Click or right click on Flag icon in notification area (system tray), and then Open Action Center.

My favorite:

4. Type “MsConfig” in Start Search to start System Configuration, then go to Tools tab, select Change UAC Settings, then click on Launch button.

References:

sfc

sfc - Resource Checker: Scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.

sfc /scannow

sfc error

C:\>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection found corrupt files but was unable to fix some
of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log. For
example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not
supported in offline servicing scenarios.

Best solution: Repair Install

ITEMS THAT WILL BE RESET TO DEFAULT OR AFFECTED:

  • Sounds
  • Services
  • Visual Effects Settings
  • Device Drivers - Be sure to have these handy to reinstall. They do not always remain after the repair (upgrade) install.
  • You may lose the ability to sign on to MSN Messenger, to solve this problem have a look at this thread Unable to sign in to WLM.
  • You may lose your custom themes due to not having permisions set on the old themes. Go to the hidden themes folder at C:/Users/(User-Name)/AppData/Local/Microsoft/Windows/Themes, then Take Ownership of the themes folder and you will now have all your themes back.
  • It has been reported that you may also lose your Media Center gadget after doing the repair install.
  • Windows Updates will need to be checked and reinstalled again.

--

chkdsk C: /f /r [3]

--

Did you try this command to exactly locate the problematic files [4]

findstr /c:"[SR]" %windir%\logs\cbs\cbs.log >%userprofile%\Desktop\sfcdetails.txt

--

DISM.exe /Online /Cleanup-image /Restorehealth


--

C:\>DISM.exe /Online /Cleanup-image /Restorehealth

Deployment Image Servicing and Management tool
Version: 10.0.10586.0

Image Version: 10.0.10586.0

[==========================100.0%==========================]

Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to
restore the feature. For more information on specifying a source
location, see http://go.microsoft.com/fwlink/?LinkId=243077.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

-

DISM /online /cleanup-image /startcomponentcleanup /restorehealth

Sysprep

Uninstall built-in apps using PowerShell:

Get-AppxPackage *3dbuilder* | Remove-AppxPackage
Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Get-AppxPackage *Appconnector* | Remove-AppxPackage
Get-AppxPackage *windowscalculator* | Remove-AppxPackage
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
Get-AppxPackage *windowscamera* | Remove-AppxPackage
Get-AppxPackage *CandyCrush* | Remove-AppxPackage
Get-AppxPackage *officehub* | Remove-AppxPackage
Get-AppxPackage *skypeapp* | Remove-AppxPackage
Get-AppxPackage *getstarted* | Remove-AppxPackage
Get-AppxPackage *zunemusic* | Remove-AppxPackage
Get-AppxPackage *windowsmaps* | Remove-AppxPackage
Get-AppxPackage *Messaging* | Remove-AppxPackage
Get-AppxPackage *solitairecollection* | Remove-AppxPackage
Get-AppxPackage *ConnectivityStore* | Remove-AppxPackage
Get-AppxPackage *bingfinance* | Remove-AppxPackage
Get-AppxPackage *zunevideo* | Remove-AppxPackage
Get-AppxPackage *bingnews* | Remove-AppxPackage
Get-AppxPackage *onenote* | Remove-AppxPackage
Get-AppxPackage *people* | Remove-AppxPackage
Get-AppxPackage *CommsPhone* | Remove-AppxPackage
Get-AppxPackage *windowsphone* | Remove-AppxPackage
Get-AppxPackage *photos* | Remove-AppxPackage
Get-AppxPackage *WindowsScan* | Remove-AppxPackage
Get-AppxPackage *bingsports* | Remove-AppxPackage
Get-AppxPackage *windowsstore* | Remove-AppxPackage
Get-AppxPackage *Office.Sway* | Remove-AppxPackage
Get-AppxPackage *Twitter* | Remove-AppxPackage
Get-AppxPackage *soundrecorder* | Remove-AppxPackage
Get-AppxPackage *bingweather* | Remove-AppxPackage
Get-AppxPackage *xboxapp* | Remove-AppxPackage
Get-AppxPackage *XboxOneSmartGlass* | Remove-AppxPackage
Get-AppxPackage *Eclipse* | Remove-AppxPackage
Get-AppxPackage *NetworkSpeedTest* | Remove-AppxPackage
Get-AppxPackage *Store* | Remove-AppxPackage

Sysprep:

sysprep.exe /generalize /oobe /shutdown

References:

Install .NET Framework from Powershell

DISM.EXE /Online /Add-Capability /CapabilityName:NetFx3Kenneth (talk) 22:05, 28 February 2017 (UTC)
Add-WindowsCapability –Online -Name NetFx3Kenneth (talk) 22:05, 28 February 2017 (UTC)

src: https://blogs.technet.microsoft.com/mniehaus/2015/08/31/adding-features-including-net-3-5-to-windows-10/

Long Path Names

How to Make Windows 10 Accept File Paths Over 260 Characters - https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

Remove 260 Character Path Limit.reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001

Restore 260 Character Path Limit (Default).reg:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000000

---

How to enable paths longer than 260 characters in Windows 10 - https://betanews.com/2016/05/29/long-paths-windows-10/

It's likely that this feature will be made available in Windows 10 Anniversary Update when it is released later in the year, but you can enable it in the latest Insider build using Group Policy:

  1. Hit the Windows key, type gpedit.msc and press Enter.
  2. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem > NTFS.
  3. Double click the Enable NTFS long paths option and enable it.

If you're using a version of Windows that does not provide access to Group Policy, you can edit the registry instead.

  1. Hit the Windows key, type regedit and press Enter.
  2. Navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\ CurrentVersion\Group Policy Objects\ {48981759-12F2-42A6-A048-028B3973495F} Machine\System\CurrentControlSet\Policies
  3. Select the LongPathsEnabled key, or create it as a DWORD (32-bit) value if it does not exist.
  4. Set the value to 1 and close the Registry Editor.

Telnet

Install telnet:

dism /online /Enable-Feature /FeatureName:TelnetClient

src: https://www.rootusers.com/how-to-enable-the-telnet-client-in-windows-10/

Set High Performance Power From Power Shell

Set to HP:

Write-Host "Setting High Performance Power Setting"
$p = Get-CimInstance -Name root\cimv2\power -Class win32_PowerPlan -Filter "ElementName = 'High Performance'"      
powercfg /setactive ([string]$p.InstanceID).Replace("Microsoft:PowerPlan\{","").Replace("}","")

Check Power Profile: # example: High performance

$PowerSettings = Get-WmiObject -Namespace root\cimv2\power -Class win32_powerplan
($PowerSettings | Where-Object { $_.IsActive }).ElementName

ref: https://stackoverflow.com/questions/61105428/how-to-change-power-plan-in-windows-10-with-powershell-and-revert-after-long-scr

Ansible:

- name: Get High Performance Power Script [tag - update_power]
  win_get_url:
    url: "http://ci-store/scripts/high-performance-power.ps1"
    dest: '{{ ci_dir }}high-performance-power.ps1'
  tags:
    - update_power

- name: Update Power Settings to High Performance [tag - update_power]
  win_shell: 'powershell.exe -ExecutionPolicy ByPass -File c:\ci\high-performance-power.ps1'
  args:
    chdir: C:\ci
  tags:
    - update_power

Send To Folder

%appdata%\..\Roaming\Microsoft\Windows\SendTo

Group Policy Editor

5 Ways to Access Local Group Policy Editor on Windows 10 - https://www.isunshare.com/windows-10/5-ways-to-access-local-group-policy-editor-on-windows-10.html

1. run ->

gpedit.msc

2. search 'group policy'

3. command prompt -> gpedit

4. powershell -> gpedit

Organization's security policies block unauthenticated guest access

You can't access this shared folder because your organization's security policies
block unauthenticated guest access. These policies help protect your PC from
unsafe or malicious devices on the network.
Windows 10 Enterprise and Windows 10 Education no longer allow a user to connect to a remote share by using guest credentials by default, even if the remote server requests guest credentials.

Solution:

If you want to enable insecure guest access, you can configure the following Group Policy settings:

  • Computer configuration\administrative templates\network\Lanman Workstation ->"Enable insecure guest logons"

Ref: [5]

Customized Explorer Folder Appearance

How to modify your folder view settings or to customize a folder - https://support.microsoft.com/en-us/help/812003/how-to-modify-your-folder-view-settings-or-to-customize-a-folder

Customize the appearance of a folder

To customize the appearance of a folder, follow these steps:

  1. Start Windows Explorer, and then locate the folder that you want to customize.
  2. Right-click the folder, and then click Properties.
  3. On the Customize tab, select the customization options you want to use for the folder.

Note: The Customize tab is not available for special folders where Windows has already set their default appearances. But, you may be able to customize the folder picture for the Thumbnails view of some special folders by using the steps in the Manually create a folder picture section of this article.

Clear Quick Access Library

Remove One Drive from Quick Access Library

(this will actually reset it to "Desktop/Downloads/Documents/Pictures", but good enough to kill One Drive.

For fixing Quick Access it should be sufficient to delete:

%appdata%\Microsoft\Windows\Recent\AutomaticDestinations\f01b4d95cf55d32a.automaticDestinations-ms

ref: [6] -

To fix this issue go to these two folders:

%AppData%\Microsoft\Windows\Recent\AutomaticDestinations
%AppData%\Microsoft\Windows\Recent\CustomDestinations

Then delete all the files in those folders.

ref: [7]

keywords