Security descriptor recipes

See also: all the recipes and the intro For a nicer introduction, please read my series of posts on security descriptors. Here are just the short recipes (partially overlapping with that series). # Privileges and SDDL http://msdn.microsoft.com/en-us/library/windows/desktop/aa379306%28v=vs.85%29.aspx # Changing ACLs from PowerShell http://technet.microsoft.com/en-us/magazine/2008.02.powershell.aspx # ACL/SDDL in .NET https://msdn.microsoft.com/en-us/library/ms229925%28v=vs.110%29.aspx # Control of permissions in PowerShell http://stackoverflow.com/questions/7690994/powershell-running-a-command-as-administrator…

0

WMI recipes

See also: all the recipes and the intro WMI is an RPC interface that allows to control the arbitrary processes, including the Windows kernel and subsystems. # WMI browsing (doesn’t seem to work well) http://www.microsoft.com/en-us/download/details.aspx?id=24045 # With powershell get-WmiObject -class Msft_Providers | fl -property * get-wmiObject -list | select-string Provider # Developing a WMI provider…

0

network configuration recipes

See also: all the recipes and the intro See also how to configure CredSSP with PowerShell. #  DHCP server In a VM must use the Legacy adapter, or it would refuse to get a static address, and DHCP will refuse to attach to interfaces with dynamic address. # how to shut up the DHCP authorization…

0

ETW and logging recipes

See also: all the recipes and the intro I have the other more detailed posts on the other aspects of the ETW logging, and here is a pile of assorted links and examples about it. Some very short introduction: The Windows logging has multiple layers. There are the pre-ETW Classic events (that can also be stored…

0

assorted recipes and links

See also: all the recipes and the intro I have collected here the small groups of recipes and links that are not worthy a separate post each. As usual, some of the recipes are for cmd, some for PowerShell, guessing which is which is easy enough. # Windows CMD command syntax http://ss64.com/nt/syntax.html # To search…

0

file operations and search recipes

See also: all the recipes and the intro # find all the files *.txt recursively under a directory, like Unix find dir /s /a dir\*.txt # in PowerShell dir -Recurse -Force “dir\*.txt” # search for text in the files, like find -exec grep # /s is recursive, /r is regexp, /i is ignore-case findstr /s…

0