Powershell

Encoding Pictures

If your script needs resources such as icons or pictures, you do not have to ship these resources separately. They can be Base64-encoded and added...

read more

Managing Windows Firewall

Beginning in Windows 8 and Server 2012, there is a cmdlet that helps you enable the client firewall for various profiles: Set-NetFirewallProfile...

read more

Clearing Recycle Bin

Before the advent of PowerShell 5.0, to clear the recycler, you would have to manually delete the content of the hidden $Recycle.Bin folder in the...

read more

Displaying InputBox

To improve user-friendlyness, you could replace Read-Host by the following Show-InputBox function and get an inputbox dialog window: #requires...

read more

Creating Simple Keylogger

By accessing the Windows low-level API functions, a script can constantly monitor the keyboard for keypresses and log these to a file. This...

read more
1 58 59 60 61 62 130