Windows

Micro$oft Windows

Grant-SmbShareAccess -Name ShareName -AccountName Administrators -AccessRight Full -ForceGrant-SmbShareAccess -Name “Brother DW2710 series” -AccountName Everyone -AccessRight Change -Force It appears that there is no pre-existing command line tool for managing permissions on existing shares beyond the initial setup. However, you can accomplish multiple grants if temporarily taking the shares offline is not a concern. In such…

Read More Change Windows network share permissions from command line

This seems to do the trick for listing processes by memory usage. I’m most interested in the top 9 processes (I have to figure out why the regexp isn’t working in findstr for anything over 10 in a range like [1-15]. tasklist /NH | sort /R /+65 | findstr /N . | findstr “^[1-9]:” Here’s…

Read More List top processes using memory from Windows commandline

After implementing a Group Policy to prohibit saving of passwords in Google Chrome and Microsoft Edge, the previously saved passwords are still on the system. To remove these from multiple systems, a simple script can be deployed via GPO at User Logon to do the work. Otherwise, on a case-by-case basis, the passwords can be…

Read More Delete saved passwords for Chrome and Edge from the command line

If you get the following error on a Windows Server (possibly desktop client), you can use the local group policy editor to resolve this. It commonly impacts Server 2019 systems promoted to a domain controller wherein the UAC admin approval mode is reset and does not contain a value (Enabled or Disabled). Windows cannot access…

Read More mmc – Windows cannot access the specified device, path, or file.

I usually hit Winkey and start typing whatever it is I’m looking to start; be it a command prompt, Outlook, explorer, or other installed applications and I rarely (read: never) use it for searching the internet. Sometimes search gets “stuck”… because it’s crashing in the background. Here’s a method to improve performance and reliability of…

Read More Improving Performance and Reliability of Windows Search

The PowerShell script is designed to extract information about Remote Desktop Protocol (RDP) local session manager events from the Windows event logs on a RDS host and save it to a CSV file. Script: Get events with EventID 40 from Microsoft-Windows-TerminalServices-LocalSessionManager/Operational Event Log $RDPAuths = Get-WinEvent -LogName ‘Microsoft-Windows-TerminalServices-LocalSessionManager/Operational’-FilterXPath ‘<QueryList><Query Id=”0″><Select>*[System[EventID=40]]</Select></Query></QueryList>’ [xml[]]$xml = $RDPAuths | ForEach-Object…

Read More Analyze RDP Disconnection Logs using PowerShell