Monday, 18 November 2019

Refresh Wallpaper Force Fully using Command Line


Refresh Wallpaper Force Fully using Command Line

Run Command Prompt as Administrator


rundll32.exe user32.dll, UpdatePerUserSystemParameters





Friday, 8 November 2019

Enable Dot NET 3.5 Windows 10


Copy sxs folder to local system

run below command



Dism /online /enable-feature /featurename:NetFx3 /All /Source:D:\sxs /LimitAccess

Disabling DRS for a single VM on DRS Enabled Cluster


Click on Cluster 

Configure

VM Overrides

Click on '+' sign

select your VM

Change 'Automation level'  to Disabled

Click OK


Thursday, 31 October 2019

Uninstalling .NET framework


If you were to use Remove-WindowsFeature PowerShell cmdlet, you can add the –whatif switch to see the list of features that would also be impacted.

Remove-WindowsFeature Net-Framework-45-Features –WhatIf



To completely Uninstall .NET framework , run below command.


Uninstall-WindowsFeature Net-Framework-45-Features

Wednesday, 30 October 2019

Thursday, 24 October 2019

Windows 2012 R2 Remote Booting Black Screen With Command Prompt Only

Windows 2012 R2 Remote Booting Black Screen With Command Prompt Only

















If you ever find yourself in a situation where Windows Server 2012 R2 decides to spontaneously switch from regular GUI Windows to Windows Server Core, here’s how you switch it back.


Dism /online /enable-feature /featurename:Server-Gui-Mgmt /featurename:Server-Gui-Shell /featurename:ServerCore-FullServer /all
















The command will take a while, but when it is complete all your GUI goodies will return. After a reboot and a long wait you will get your Start menu back!

Tuesday, 22 October 2019

Group Policy Update Error

ERROR :

C:\Windows\system32>gpupdate /force
Updating policy...

Computer Policy update has completed successfully.
User Policy could not be updated successfully. The following errors were encountered:

The processing of Group Policy failed. Windows attempted to read the file \\BirlasoftCOE.com\SysVol\BirlasoftCOE.com\Policies\{8E6E766D-476D-4422-ADB9-5936C3E89479}\gpt.ini from a domain controller and was not successful. Group Policy settings may not be applied until this event is resolved. This issue may be transient and could be caused by one or more of the following:
a) Name Resolution/Network Connectivity to the current domain controller.
b) File Replication Service Latency (a file created on another domain controller has not replicated to the current domain controller).
c) The Distributed File System (DFS) client has been disabled.

To diagnose the failure, review the event log or run GPRESULT /H GPReport.html from the command line to access information about Group Policy results.


SOLUTION :

On that Client System :

Go to 

HKLM\SYSTEM\CurrentControlSet\Control\LSA\Kerberos\Parameters 

(create the key Parameters if necessary).

Create/Edit the MaxTokenSize value data to 65535 in Decimal



Saturday, 5 October 2019

List of ALL installed programs in Windows


Method 1 - PowerShell

Open Power Shell as ADMIN

Run this command 

Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize > C:\InstalledProgramsPS.txt



Check file InstalledProgramsPS.txt on C:\ Drive







Method 2 - wmic

open CMD as ADMIN
type wmic
At the "wmic:root\cli>" prompt, type the following command:

/output:C:\InstalledProgramsWMIC.txt product get name,version

Check file InstalledProgramsWMIC.txt on C:\ Drive


Sunday, 29 September 2019

Start Menu for Windows 10, Server 2012,2016,2019



Right Click on Taskbar
Toolbars
New Toolbar...

Locate below Folder path 

C:\ProgramData\Microsoft\Windows\Start Menu\Programs

OK


Enable | Disable Administrative Shares

  • Start > Run > type “regedit” (without the quotes) > press Enter
  • Browse to HKLM > System > CurrentControlSet > Services > lanmanserver > parameters
To enable administrative shares :
  • Change the value of AutoShareServer to 1
  • Change the value of AutoShareWks to 1
To disable administrative shares :
  • Change the value of AutoShareServer to 0
  • Change the value of AutoShareWks to 0

AutoRun Disable for Windows

Method 1
  1. Click Start, type Gpedit.msc in the Start Search box, and then press ENTER.

     If you are prompted for an administrator password or for confirmation, type the password, or click Allow.
  2. Under Computer Configuration, expand Administrative Templates, expand Windows Components, and then click Autoplay Policies.
  3. In the Details pane, double-click Turn off Autoplay.
  4. Click Enabled, and then select All drives in the Turn off Autoplay box to disable Autorun on all drives.
  5. Restart the computer.
Method 2
  1. Click Start, type Gpedit.msc in the Start Search box, and then press ENTER.

     If you are prompted for an administrator password or for confirmation, type the password, or click Allow.
  2. Under Computer Configuration, expand Administrative Templates, expand Windows Components, and then click Autoplay Policies.
  3. In the Details pane, double-click Default Behavior for AutoRun.
  4. Click Enabled, and then select Do not execute any autorun commands in the Default Autorun behavior box to disable Autorun on all drives.
  5. Restart the computer.


Saturday, 28 September 2019

Changing E1000 into VMXNET3 without changing a MAC address


Method 1 :
--------------
Note down MAK address and IP Configuration of existing E1000 NIC
Remove Adapter
add VMXNET3 adapter
add the old MAC




Method 2 : PowerCLI
-------------------
Power OFF VM

PowerCLI
Connect-VIServer -Server XXX.XXX.XXX.XXX -User YYYYYYY -Password ZZZZZZZZ

List VM: SRV1, NIC type:

PowerCLI C:\> Get-VM SRV1 | get-networkadapter

Change VM: SRV1, NIC type to VMXNET3:

PowerCLI C:\> get-vm SRV1 | Get-NetworkAdapter | set-networkadapter -type vmxnet3 -confirm:$false

This procedure preserves the original MAC address, but NIC adapter changes.

Wednesday, 18 September 2019

SHORTCUTS - Some important Shortcuts


Computer name change :
C:\Windows\system32\SystemPropertiesComputerName.exe














Password Change of local administrator :

C:\Windows\System32\compmgmt.msc




Creating Network Connections Shortcut in Windows 7

Right Click on Desktop

New --> Shortcut

Paste below in location

explorer.exe ::{7007ACC7-3202-11D1-AAD2-00805FC1270E}

Next

Provide Name 'Network'
OK






Tuesday, 17 September 2019

ESXi Build Upgrade (from 6.0.0, 3620759 to 6.0.0, 10719132)


Download specific/latest version of ESXi from my.vmware.com site.
(ESXi600-201811001.zip)

use WINSCP and create folder UPDATE on ESXi host's local datastore.


Copy file ESXi600-201811001.zip from system to ESXi datastore


connect ESXi host using Putty and login with root


run this command to start upgrade


esxcli software vib install -d /vmfs/volumes/5190d9c4-043db9f0-ba8b-00215a9b0038/UPDATE/ESXi600-201811001.zip

once done type command reboot to reboot ESXi host.


Sunday, 15 September 2019

Enabling Remote Desktop on Remote Computer using Registry



1. Start Registry editor. regedit.exe
2. Connect to remote computer's registry. ( File--> Connect Network registry...)
3. Select remote computer registry on tree
4. Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
     
Double-click fDenyTSConnections.

Change value to 0 for Enable
Change value to 1 for Disable






Thursday, 12 September 2019

Changing IP Address using Batch File


Created a Batch file (ChangeIP.bat)and write command as below.

netsh interface ip set address "Local Area Connection" static 10.70.8.11 255.255.255.0 10.70.8.1



Run this command to Elevate Command Prompt

runas /noprofile /user:systemname\administrator ChangeIP.bat


-

Wednesday, 11 September 2019

Deleting Old Copies of Windows Internal Server Backup ( Keeping last 10 copies)


Restart the QNAP and run the command

wbadmin get disks

then

wbadmin delete backup -KeepVersions:10 

There is no need to add the name of volume.


Activating Windows 10 Pro - Replacing Old Key Value


1. click windows button , then type cmd , and then open command prompt as administrator
   (right click command prompt). 

2. type this following steps (only type the bold texts) :
   slmgr.vbs /upk   

(this command will delete your old activation key), and then
   slmgr.vbs /ipk (your new working activation key)

slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
after these steps, check windows setting activation again 


Connecting Windows Internal Database using SQL Management Studio


Connecting Windows Internal Database using SQL Management Studio

s

For server name enter \\.\pipe\MICROSOFT##WID\tsql\query in case if we are connecting to Windows Server 2012 internal database. (Working for 2019 also)
o If we are connecting to windows 2003 and 2008 windows internal DB then we ne use  \\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query

s1

Windows 10's God Mode

God Mode  in Windows 10 gives you quick access to a ton of handy settings in one place.  Right-click on the desktop and go to New > ...