Enable admin share using the registry

 

 

Enable admin share using the registry

BY Default the Admin share is disabled in Windows Server 2022 ( in fact, in windows 10 and server 2016 onwards it was). It can be enabled as follows:

 

  1. From the computer you’d like to enable the admin share, click Start or Cortana and immediately type “powershell“. From the list of results, right-click Powershell and select Run as administrator.
  2. Copy and paste the following command into the Powershell window and hit enter.

Enable-NetFirewallRule -DisplayGroup 'File and Printer Sharing'
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

  1. Reboot the computer.
  2. You can now browse to the computer’s admin share using a local administrative account of the machine. For example:
    \\computername\c$

 

From <https://cormang.com/2018/01/06/enable-c-admin-share-windows-10-server-2016/>

 

 

 

 

 

 

 

 

 

Created with OneNote.

What do the HTTP status codes, such as 403, 404, 500, mean?

 

 

What do the HTTP status codes, such as 403, 404, 500, mean?

What is an HTTP status code?

For every request from a webbrowser the server responds with a status code. If there was a error, you can get additional information about the error. You can find the most frequent error codes and a brief description in the list below.

 

HTTP Error 401 - Unauthorized

The 401 status code indicates that the HTTP request has not been applied because it lacks valid authentication credentials (usually username and password) for the target resource. If the request included authentication credentials the 401 response indicates that authorization has been refused for those credentials. Please check if your username and password are correct.

 

HTTP status 403 - Forbidden

This is a permissions issue. You often encounter this error when no index file (.htm, .html or .php) is present and the directory listing is off for a folder in the Web space (Line "Options -Indexes" in a .htaccess file). Sometimes user authentication was provided, but the authenticated user is not permitted to view the content of the folder or file. Other times the operation is forbidden to all users. Sometimes this error occurs if there are too many connections at the same time. The easyname support team can explain you this issue in depth.

 

HTTP status 404 - Not Found

This error message is shown when a site or folder on a server are requested but cannot be found at the given URL. Please check your input.

 

HTTP status 429 - Too Many Requests

The HTTP 429 Too Many Requests response status code indicates the user has sent too many requests in a given amount of time. A Retry-After header might be included to this response indicating how long to wait before making a new request. For example if more than 50 requests are received from the same IP address (cumulative hits) within the same second, our server will block that IP for the next 10 minutes as a security measure.

 

HTTP status 500 - Internal Server Error

This is a "catch all" status for unexpected errors. It is a server side error message common causes of this are eg. misconfigured .htaccess files or PHP errors, which you can check in the File php_error.log on your Webhost. You can find the php_error.log file in the /log/ directory - this directory can be found on the same level as your /html/ directory

 

HTTP status 503 - Service unavailable

This means, that the server is currently unavailable or the server is overallocated. You can check the file php_error.log as described for the status code 500.

Should you not find helpful error messages in the logfile, please try changing the session_cache to the option filesystem, you can do this in the easyname control panel if you navigate to [My Hosting]>>[PHP settings] and click the link "Settings". Please note that this change will take up to 15 minutes to take effect, so please try waiting 15 minutes before trying to call up your site and refresh it.

 

From <https://www.easyname.com/en/support/hosting/158-what-do-the-http-status-codes-such-as-403-404-500-mean>

 

Created with OneNote.

Windows installer logs

 

 

Windows installer logs

Windows installer logs are usually kept in the temp folder, you can get to this by going to run or an explorer bar and type the location as %temp%.

The default folder for this is:

C:\Users\<username>\AppData\Local\Temp

From This MS Support page:

To enable Windows Installer logging yourself, open the registry with Regedit.exe and create the following path and keys:

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer

Reg_SZ: Logging

 

Value: voicewarmupx

 

The letters in the value field can be in any order. Each letter turns on a different logging mode. Each letter's actual function is as follows fo r MSI version 1.1:

v - Verbose output

o - Out-of-disk-space messages

i - Status messages

c - Initial UI parameters

e - All error messages

w - Non-fatal warnings

a - Start up of actions

r - Action-specific records

m - Out-of-memory or fatal exit information

u - User requests

p - Terminal properties

+ -Append to existing file

! - Flush each line to the log

x - Extra debugging information. The "x" flag is available only on Windows Server 2003 and later operating systems, and on the MSI redistributable version 3.0, and on later versions of the MSI redistributable.

 

"" - Wildcard, log all information except for the v and the x option. To include the v and the x option, specify "/lvx".

 

Note This should be used only for troubleshooting purposes and should not be left on because it will have adverse effects on system performance and disk space. Each time you use the Add/Remove Programs tool in Control Panel, a new Msi*.log file is created.

 

Please note that the above is just for MSI files or setups that take advantage of the Windows Installer. Some others will also create log files either in the temp folder, their application directory or the root of the hard drive. There is no one answer fits all.

 

You can also have the installer write an installation log wherever you like, as needed, without modifying the registry. Run the installer msiexec from the command line with the /L option. For example,

msiexec /i C:\Users\myusername\Downloads\somepackage.msi /L*v install.txt

 

This will run the install script and write all logging info (verbose) to the file install.txt

 

The options for the /L flag are:

i : Logs status messages.
w : Logs nonfatal warnings.
e : Logs all error messages.
a : Logs startup of actions.
r : Logs action-specific records.
u : Logs user requests.
c : Logs initial user interface parameters.
m : Logs out-of-memory.
p : Logs terminal properties.
v : Logs verbose output. To use v, specify /L*v.
+ : Appends to existing file.
! : Flushes each line to the log.
* : Logs all information except for the v option. This is a wildcard.

Source: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/msiexec.mspx

Although the Microsoft support page references Windows XP, I have confirmed that this works for Windows 7.

 

From <https://superuser.com/questions/180281/what-folder-are-installation-logs-in>

 

Windows 2000/2003

  1. In the Registry editor, navigate to the following location:

    HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
  2. Under the Installer key, create a String value named Logging.
  3. Edit the value of the string and type in the following:

    voicewarmup
  4. Remove all files from the %temp% directory. The log files default to the location: C:\Documents and Settings\Administrator\Local Settings\Temp
  5. Run the Symantec Mail Security for Microsoft Exchange installer.

 

Windows 2008/Windows 7

 

  1. Start > Run and type gpedit.msc to open the group policy manager.
  1. Expand Computer Configuration -> Administrative Templates -> Windows Components -> Windows Installer.
  2. Select Logging choose the Enabled option box and type voicewarmupx without quotes.
  3. Once you have generated the requested install log, disable the "Logging" option by reversing the steps.

Windows 2012/Windows 8

 

1.Start > Run and type gpedit.msc to open the group policy manager.

2.Expand Computer Configuration -> Administrative Templates -> Windows Components -> Windows Installer.

 

3.Select "Specify the types of events Windows Installer records" choose the Enabled option box and type iwearucmpvox without quotes.

4.Once you have generated the requested install log, disable the "Logging" option by reversing the steps.

 

 

When the installation/uninstallation completes or you see an error message, locate the four (4) MSIxxxxx. log files created in the Temp folder. Send the four MSIxxxxx.log files and the SMSMSExx_Setup.log file to the Symantec Technical Support agent who requested the logs. The default path is:

Windows 2000/2003: C:\Documents and Settings\<Username>\Local Settings\Temp

Windows 2008/Windows 7: c:\users\<username>\appdata\local\temp

NOTE:  You can also use the environment variable %TEMP% in Windows Explorer.

 

Where SMSMSExx_Setup.log refers to the version of the Symantec Mail Security for Microsoft Exchange installed.

 

 

Note: If you install the product remotely, the installation log appears in the Windows\Temp directory.

 

 

 

From <https://knowledge.broadcom.com/external/article?legacyId=tech82257>

 

 

 

Created with OneNote.

Granular control of update packages on windows 10 with WuMgr (Update Manager for Windows)

 

 

Granular control of update packages on windows 10 with WuMgr (Update Manager for Windows)

Thursday, January 6, 2022

11:53 PM

so I spent all morning working on a case where I need to test a specific windows patch, could not get the ones i want to install even though i knew they were the right packages from the windows update catalogue, i thought they are cumulative right so they should just work with no pre-reqs.....

 

well guess what, there was a pre-req to that cumulative update that was not listed by MS anywhere in their documentation online, but magically once i install the 2021-08 servicing stack update then magically i can now install those cumulate updates i need to test with for my case....

 

what a mess!

 

i found a great tool to help me figure it out:

 

https://github.com/DavidXanatos/wumgr/releases

 

this tool is great, basically it lets you use windows update like it used to work in Windows XP where you can install single updates one by one but it will only show ones that are compatible. so if you don't see the ones you want to test with listed for install then you know it's not going to be compatible with the machine.

 

what i did in my case was i noticed my listed security updates stopped at august servicing stack update, so I installed that one and now i can see the cumulative updates right up to the current month, which is good for me because i need to test with September, October and then November 1 by 1 in that order.

 

if you use it in offline mode this way it works great, definitely will come in use in the future for cases.

 

def saves time too, windows update stuff takes ages to test because you need to wait for it to check for updates each time you make a change which can take like 15 mins just to bring back a list of updates to install, never mind the actual installation lol.

 

From WuMgr Github:

 

WuMgr (Update Manager for Windows) is a tool to manage updates of Microsoft products on the Windows operating system. It uses the "Windows Update Agent API" to identify as well as download and install missing updates. It allows the user fine control of updates on modern (Windows 10) operating system versions, comparable to what windows 7 and 8.1 offered.

This tool is inspired by the Windows Update Mini Tool (WUMT), however in comparison to WUMT it is written in pure .NET instead of C/C++, and it is open source.

Here are my official donation options:

·        ETH: 0xBf08c3c47C5175015cEF4E32fB2315c9111F5305

·        LTC: LTqXK1UEri1FCv7fNn9bcFhsrh78SaNdSM

·        BTC: 18tQgfoog4VyespgskpNiaNFMTdcm6j5Gd

And if you preffer more legit payment methods, here is my pateron page: https://www.patreon.com/DavidXanatos

Icons provided by:

·        Icons8-com (http://icons8.com/)

 

From <https://github.com/DavidXanatos/wumgr>

 

 

 

Created with OneNote.

Method 2: Analyze Memory Dump Files Using Windows Debugger

How to Read Memory Dump Files in Windows 10

Wednesday, February 26, 2020

9:22 AM

Method 2: Analyze Memory Dump Files Using Windows Debugger

1.Download Windows 10 SDK from here.

Note: This program contains WinDBG program that we will be using to analyze the .dmp files.

2.Run the sdksetup.exe file and specify the installation location or use default.

3.Accept License agreement then at “Select the features you want to install” screen select only the Debugging Tools for Windows option and then click Install.

4.The application will begin downloading the WinDBG program, so wait for the program to be installed on your system.

5.Press Windows Key + X then select Command Prompt (Admin).

6.Type the following command into cmd and hit Enter:

cd\Program Files (x86)\Windows Kits\10\Debuggers\x64\

Note: Specify the correct installation of the WinDBG program.

7.Now once you’re inside the correct directory type the following command in order to associate WinDBG with .dmp files:

windbg.exe -IA

8.As soon as you enter the above command, a new blank instance of WinDBG will open with a confirmation notice which you can close.

9.Type windbg in Windows Search then click on WinDbg (X64).

10.In the WinDBG panel click on File then select Symbol File Path.

11.Copy and paste the following address into the Symbol Search Path box:

SRV*C:\SymCache*http://msdl.microsoft.com/download/symbols

12.Click OK and then save the symbol path by clicking File > Save Workspace.

13.Now find the dump file you want to analyze, you could either use the MiniDump file found in C:\Windows\Minidump or you could use the Memory dump file found in C:\Windows\MEMORY.DMP.

14.Double click the .dmp file and the WinDBG should launch and begin processing the file.

Note: Since this is the first .dmp file being read on your system, WinDBG appears to be slow but do not interrupt the process as these processes are being carried out in the background:

A folder called Symcache is being created in C:
Symbols are being downloaded and saved to C:\Symcache

Once the symbols have been downloaded and the dump is ready to analyze you will see the message Followup: MachineOwner at the bottom of the dump text.

15.Also, the next .dmp file is processed, it will be quicker as it will have already downloaded the required symbols. Over time the C:\Symcache folder will grow in size as more symbols are added.

16.Press Ctrl + F to open Find then type “Probably caused by” (without quotes) and hit Enter. This is the quickest way to find what caused the crash.

17.Above the Probably caused by line you will see a BugCheck code eg: 0x9F. Use this code and visit Microsoft Bug Check Code Reference for verifying the bug check refer.

 

From <https://troubleshooter.xyz/wiki/how-to-read-memory-dump-files-in-windows-10/#Method_2_Analyze_Memory_Dump_Files_Using_Windows_Debugger>

 

Commands:

 

 

!analyze -v = Automatic crash analysis, works on kernel or user dumps

 

!analyze -hang = Automatic hang analysis, works on kernel or user dumps

 

!process 0 0 = List all processes in a kernel dump

 

!process <address> 17 = List all the threads in one process from the list produced by the above command

 

.process <address> = Switch to a particular process context

 

.reload /user = Loads user mode symbols after switching to a process

 

lmu = Lists the dlls for a process once you've switched to it (Needs a full dump)

 

lm = List all the kernel modules in a kernel dump or dlls in a user dump

 

!uniqstack = List all unique looking threads in a user mode dump

 

!runaway 7 - shows the CPU usage for different threads in a user dump

 

!locks - Shows if a deadlock is detected in either a kernel or user dump

 

!handle 0 7 839afbf8

 

!process 0 0 pgdriver

 

Symbol paths:

 

SRV*C:\symcache*http://msdl.microsoft.com/download/symbols;C:\symbols

 

Created with OneNote.

Method 1: Analyze Memory Dump Files using BlueScreenView

How to Read Memory Dump Files in Windows 10

Wednesday, February 26, 2020

9:22 AM

Method 1: Analyze Memory Dump Files using BlueScreenView

1.From NirSoft Website download the latest version of BlueScreenView according to your version of Windows.

2.Extract the zip file you download and then double-click on BlueScreenView.exe to run the application.

3.The program will automatically search for the MiniDump files at the default location which is C:\Windows\Minidump.

4.Now if you want to analyze a particular .dmp file then just drag and drop that file to BlueScreenView application and the program will read the minidump file easily.

5.You will see the following information at the top of the BlueScreenView:

·        The name of the Minidump file: 082516-12750-01.dmp. Here 08 is the month, 25 is the date, and 16 is the year of the dump file.

·        Crash Time is simply when the crash happens: 26-08-2016 02:40:03

·        Bug Check String is the error code: DRIVER_VERIFIER_IOMANAGER_VIOLATION

·        Bug Check Code is the STOP error: 0x000000c9

·        Then there will be Bug Check Code Parameters

·        The most important section is Caused By Driver: VerifierExt.sys

6.In the lower part of the screen, the driver which caused the error will be highlighted.

7.Now you have all the information about the error you could easily search the web for the following:

Bug Check String + Caused by Driver eg: DRIVER_VERIFIER_IOMANAGER_VIOLATION VerifierExt.sys

Bug Check String + Bug Check Code eg: DRIVER_VERIFIER_IOMANAGER_VIOLATION 0x000000c9

8.Or simply you can right-click on the minidump file inside the BlueScreenView and click “Google Search – Bug Check + Driver“.

9.Use this information to troubleshoot the cause and fix the error. And this is the end of the guide How to Read Memory Dump Files in Windows 10 using BlueScreenView.

 

 

The following resource is signed with a weak signature algorithm MD5withRSA and is treated as unsigned

 

 

The following resource is signed with a weak signature algorithm MD5withRSA and is treated as unsigned

Monday, February 24, 2020

1:59 AM

Error

Detail

Textual

Unsigned application requesting unrestricted access to system

The following resource is signed with a weak signature algorithm

MD5withRSA and is treated as unsigned.

http://hod/hod/WSCachedSupporter2.jar

Remediation

Outline

1.      Identify JRE

2.      Access lib\security folder

3.      Edit java.security

o   jdk.jar.disabledAlgorithms

·        Search out jdk.jar.disabledAlgorithms

·        Comment out reference to MD5

Steps

Access Control Panel Applet – Java

Access Control Panel Applet – Java – Tab – General

Access Control Panel Applet – Java – Tab – java

Access Control Panel Applet – Java – Tab – java – view – Java Runtime Environment Settings

Image

Explanation

1.      Settings

o   C:\Program Files\Java\jre1.8.0_131\bin\javaw.exe

·        Architecture :- x86_64

o   C:\Program Files (x86)\Java\jre7\bin\javaw.exe

·        Architecture :- x86

Folder :- Lib\security

Once we know the path to our JRE, we will navigate to the lib\security folder.

In our case the JRE path is C:\Program Files\Java\jre1.8.0_131.

The version number of Java is 1.8.0_131.  Major Version is 1.8.0 and minor version is 131.

Folder :- Lib\security – Files

 

Folder :- Lib\security – File – java.security

Original

Revised

Explanation

1.      Remove MD5 from the list of disabled Algorithms

2.      Data

o   Original

·        jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024

o   Revised

·        #jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024
jdk.jar.disabledAlgorithms=MD2, RSA keySize < 1024

 

From <https://enguyva.wordpress.com/2018/04/05/java-jnlp-error-weak-signature-algorithm-md5withrsa/>

 

Created with OneNote.

Removing tiered storage spaces - Windows Server 2022

As part of the work I have done in my homelab with tiered storage on Server 2022 storage spaces , here is a script I created that allows you...