понедельник, 15 июня 2020 г.

An easy way to run Computer Management remotely

To use Computer Management with a remote computer, you can run the following command in CMD or the Run window:

compmgmt.msc /computer=ComputerName

Alternatively, create a batch file named "cm.bat" with the following line only: start /B compmgmt /Computer=%1

From now on, you can use the simple command "cm ComputerName" in CMD or the Run window to access Computer Management.

If you need to run multiple instances of Computer Management with different computers, create a batch file with the following lines: compmgmt.msc /computer=Computer1 compmgmt.msc /computer=Computer2 compmgmt.msc /computer=Computer3

To use different domains with different credentials, you can use the cmdkey command before running the batch file: cmdkey /add:Computer1 /user:Domain1\user1 /pass:Password1 cmdkey /add:Computer2 /user:Domain2\user2 /pass:Password2

Alternatively, you can use the net use command to set credentials: net use \computername\ipc$ Password /user:ComputerName\user1 net use \computername\ipc$ Password /user:DomainName\user1


понедельник, 8 июня 2020 г.

How To Uninstall Updates with CMD

1. Go to CMD.

2. Find all updates with this command:
wmic qfe list brief /format:table

3. Using HotFixID from previous step uninstall it:
wusa /uninstall /kb:HotFixID

For example:
wusa /uninstall /kb:4539601

воскресенье, 31 мая 2020 г.

How to delete stubborn item in Outlook

If you are unable to delete an item in Outlook, try the following steps:

суббота, 30 мая 2020 г.

How to Enable RDP remotely with psexec

Here are the steps to enable remote access to a computer:

  1. Download the Psexec command line tool from: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec

  2. Use Psexec to enter the computer you want to access remotely: psexec \\CompName CMD

  3. Check the firewall status. If desired, disable the firewall with the following command: netsh advfirewall set currentprofile state off

  4. Enable remote desktop protocol (RDP) by adding a registry value: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

  5. Remote access to the computer is now enabled.


четверг, 21 мая 2020 г.

Windows update errors

If you want to update your Windows computer and are experiencing errors, there are ways to overcome the obstacles.

Error 80072EE2 / 80072eFD
check connectivity to WSUS by port 8530 or connectivity to Microsoft update site.
In addition, if you are using BatchPatch, error 102 also witnesses about lack of connectivity.

Error 80070070
free up disk space.

Error 80092004
If you want to receive future security patches 
install kb4474419 from:
https://www.catalog.update.microsoft.com/Search.aspx?q=kb4474419
or
install kb4490628 from:
https://www.catalog.update.microsoft.com/search.aspx?q=kb4490628

Here is the explanation:
https://windowsreport.com/kb4474419-kb4490628-kb4484071/

Direct download links
We're adding the /quiet /norestart switches to prevent the operating system from restarting your computer after installing the update

Error 80080005
To work around this problem you need to modify registry:

Locate the following registry subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems

By default, the Windows entry in the subkey has a value that is similar to the following:
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

Locate SharedSection and add 512 to SharedSection.

The newly changed Windows entry reads as follows:
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072,512 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

Error 8024000E
Install update KB947821





воскресенье, 8 декабря 2019 г.

Find authenticating Domain Controller for your computer

Here's how you can find out which domain controller your computer is getting authenticated with:

gpresult /r

SET L

echo %logonserver%

nltest /dsgetdc:

gpresult /r /scope:computer

=VB Script= Set objDomain = GetObject("LDAP://rootDSE") strDC = objDomain.Get("dnsHostName") Wscript.Echo "Authenticating domain controller: " & strDC

Which DCs are there in the domain?

NETDOM QUERY PDC
NETDOM QUERY DC (Lists all DC’s in domain)
NETDOM QUERY FSMO


четверг, 5 декабря 2019 г.

RPC/WMI Troubleshooting

Reasons for RPC and WMI errors

1. File and printer sharing disabled
2. Network connectivity issues
3. Name resolution issues. Always check that your problem is not on a cluster using several IP addresses.
4. Firewall blocking.
5. Registry corruption