database-tools

Handling Credentials as Parameters

Credentials are objects that contain a user name and an encrypted password. If your PowerShell functions should be able to accept credentials,...

Attention Operational DBAs

Uptime Database Infrastructure Monitor triages large environments so that you can quickly determine what needs your immediate attention, Database...

Resolving Mapped Drive

Ever wanted to know the original URL behind network drives? Here is an easy PowerShell way: # make sure the below drive is a mapped network drive #...

Finding Disabled GPOs

Here is a quick one-liner that dumps all Group Policy objects that have all settings disabled: Get-Gpo -All | Where-Object GpoStatus -eq...

Browsing All Event Logs

Get-EventLog always requires you to specify exactly one event log via -LogName. You cannot use wildcards, and you cannot browse all event logs at...

Creating Event Log Reports

You probably have used Get-EventLog frequently to dump event log information, for example: PS> Get-EventLog -LogName System -EntryType Error...

Using SSH from PowerShell

PowerShell 6 (PowerShell Core) finally ships with SSH support: you can use SSH to connect to non-Windows machines for PowerShell remoting...

Managing Lenovo BIOS Settings (Part 4)

In the previous tip we showed how you can read and change BIOS settings for Lenovo computers. This was the code to disable WakeOnLan, for example:...

Managing Lenovo BIOS Settings (Part 3)

In the previous tip we explained how to manage Lenovo BIOS settings from PowerShell. Typically, there are single settings that need to be managed....

Managing Lenovo BIOS Settings (Part 1)

There is unfortunately no standardized way of managing BIOS settings for computer vendors. Each vendor employs proprietary approaches. For Lenovo...

Exploring PowerShell Modules

Most cmdlets and functions are part of PowerShell modules. If you’d like to explore where exactly these commands come from, here is an easy...

Locking Workstation

If you’d like to lock the current workstation from within PowerShell, you can take advantage of the fact that PowerShell can run executables....

Detecting WinPE

PowerShell can run inside WinPE environments. If you’d like to detect whether your PowerShell script runs inside a WinPE environment, you can...

1 51 52 53 54 55 159