Powershell: Update computer group membership
without restart! yay! Run line in powershell
Some notes from work
without restart! yay! Run line in powershell
Run this oneliner to get computer free disk space
After enabling auditing for event 4688, see post about auditing Microsoft AD DS(TBD). You can collect logs to see cmd activity for a user. I have wrote this powershell function little quick to help me out with this. But I do recommend an greylog for this purpose.
After enabling auditing for event 4624, see post about auditing Microsoft AD DS(TBD). You can collect logs to see login activity for a user. I have wrote this powershell function little quick to help me out with this. But I do recommend an greylog for this purpose.
I got a weird case that DCHP settings has disappeared. Scope options and lease times where gone and resett, some routes where gone as well. We did use powershell to find effected scopes and to restore some of the options. The code is not pretty but it does the job for
Enable BitLocker Drive Encryption in Control Panel or PowerShell Start gpedit.msc Navigate to Computer Configuration > Administrative Templates > Windows Components > BitLocker Drive Encryption > Operatin System Drives Enable following Settings Require additional authentication at startup Allow enhanced PINs for startup (OPTIONAL) Configure minimum PIN legnt for startup (OPTIONAL) Configure pre-boot PIN in PowerShell
To be sure that UAC is disable, make the configuration in registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System EnableLUA = Dword 0
Some times for some reason this issue occure. It can be a pain because when google on it you be adivsed to follow steps that will remove the computer from domain and then rejoin. You do not always want to do that. It is much easier to just reset the password for the computer object.… Continue Reading The trust relationship between this workstation and the primary domain failed