Wolfgang Sommergut
Blogs, Articles, and Posts
Activate BitLocker with manage-bde, PowerShell, or WMI
(4sysops.com)
You can configure various settings for BitLocker using group policies, but this doesn't initiate
By: Wolfgang Sommergut submitted:Sep 22 2023
You can configure various settings for BitLocker using group policies, but this doesn't initiate
encryption. Similarly, it doesn't create the configured protectors that are necessary for activating BitLocker. Manage-bde, PowerShell, or the WMI class Win32_EncryptableVolume serve this purpose.
By: Wolfgang Sommergut submitted:Sep 22 2023
Add updates (.msu) offline into Windows images (.wim)
(4sysops.com)
Before deployment, Microsoft ISO's install .wim or custom images should be updated. With the DISM
By: Wolfgang Sommergut submitted:Feb 2 2024
Before deployment, Microsoft ISO's install .wim or custom images should be updated. With the DISM
module in PowerShell, you can add .msu updates, apps, and drivers to a Windows image offline without the need to boot it up.
By: Wolfgang Sommergut submitted:Feb 2 2024
Configure attack surface reduction in Microsoft Defender using Group Policy or PowerShell
(4sysops.com)
In addition to the virus scanner, Microsoft Defender offers other security functions. These include
By: Wolfgang Sommergut submitted:Aug 19 2022
In addition to the virus scanner, Microsoft Defender offers other security functions. These include
the reduction of the attack surface, which hardens applications such as Office, browsers, and Adobe Reader. The feature is not active by default and can be configured via group policies or PowerShell.
By: Wolfgang Sommergut submitted:Aug 19 2022
Find enabled local Group Policy settings with rsop.msc and PowerShell
(4sysops.com)
When it comes to GPO troubleshooting, you might want to find settings that are configured by local
By: Wolfgang Sommergut submitted:Aug 11 2023
When it comes to GPO troubleshooting, you might want to find settings that are configured by local
Group Policy. With rsop.msc, a graphical tool is available for this purpose. However, it is generally more efficient to generate a report using gpresult.exe and evaluate it with PowerShell.
By: Wolfgang Sommergut submitted:Aug 11 2023
How to change the PowerShell prompt
(4sysops.com)
All modern shells and command lines offer a prompt that provides the user with essential information
By: Wolfgang Sommergut submitted:Mar 24 2023
All modern shells and command lines offer a prompt that provides the user with essential information
about his context. By default, however, PowerShell displays only the current directory. Since its appearance is determined by a function, you can change the PowerShell prompt easily.
By: Wolfgang Sommergut submitted:Mar 24 2023
How to map a network drive with PowerShell
(4sysops.com)
If you want to assign a drive letter to file shares via the command line, you can use PowerShell
By: Wolfgang Sommergut submitted:May 19 2023
If you want to assign a drive letter to file shares via the command line, you can use PowerShell
instead of net.exe. The SmbShare module's cmdlets can display, connect, and disconnect shared drives. PowerShell also supports newer SMB features, such as QUIC and Compression.
By: Wolfgang Sommergut submitted:May 19 2023
Install Windows Terminal without the Store (on Windows Server)
(4sysops.com)
Microsoft has made its new terminal for multiple shells and command line programs available as a
By: Wolfgang Sommergut submitted:Jul 8 2022
Microsoft has made its new terminal for multiple shells and command line programs available as a
Store app. However, if you want to install the package with PowerShell because, for example, there is no Store app on Windows Server or Windows 10 LTSC, you'll get an error message due to a missing library.
By: Wolfgang Sommergut submitted:Jul 8 2022
Partition Windows drive in WinPE using PowerShell
(4sysops.com)
An essential step towards automating the Windows setup process is replacing the system drive's
By: Wolfgang Sommergut submitted:May 3 2024
An essential step towards automating the Windows setup process is replacing the system drive's
interactive partitioning with a script. Microsoft's examples for this purpose rely on batch files and Diskpart. However, installing PowerShell in Windows PE allows for a much more elegant solution.
By: Wolfgang Sommergut submitted:May 3 2024
Resolve-DnsName: nslookup for PowerShell
(4sysops.com)
nslookup has established itself as a popular tool for troubleshooting DNS problems. It exists on
By: Wolfgang Sommergut submitted:May 5 2023
nslookup has established itself as a popular tool for troubleshooting DNS problems. It exists on
multiple platforms, including Windows. However, there is an alternative, the PowerShell Resolve-DnsName cmdlet, which can also check proprietary Microsoft protocols for name resolution, such as NetBIOS or LLMNR.
By: Wolfgang Sommergut submitted:May 5 2023
Trim characters from strings in PowerShell
(4sysops.com)
Most programming languages provide string functions that can be used to selectively truncate leading
By: Wolfgang Sommergut submitted:Mar 17 2023
Most programming languages provide string functions that can be used to selectively truncate leading
or trailing characters. String objects in PowerShell have three such trim() methods that remove not only spaces but also any characters at the beginning and end.
By: Wolfgang Sommergut submitted:Mar 17 2023
Uninstall programs (remotely) with PowerShell
(4sysops.com)
Microsoft offers several options if you want to remove installed programs by using the command line
By: Wolfgang Sommergut submitted:Jun 16 2022
Microsoft offers several options if you want to remove installed programs by using the command line
or a script. Unfortunately, no method covers all scenarios. PowerShell's package management, for example, is limited to the local computer, while WMI does not recognize all programs.
By: Wolfgang Sommergut submitted:Jun 16 2022
UserAccountControl attribute: Checking and configuring security settings for Active Directory accounts
(4sysops.com)
The UserAccountControl attribute can be used to configure several account settings in Active
By: Wolfgang Sommergut submitted:Oct 21 2022
The UserAccountControl attribute can be used to configure several account settings in Active
Directory. This applies, for example, to the expiration date of passwords or to Kerberos delegation. An AD audit should check this attribute regularly. This can be done using PowerShell, and there is a cmdlet for changing flags.
By: Wolfgang Sommergut submitted:Oct 21 2022