the quick introduction to common scripting languages, as well as sample scripts.

📁 Topics

PowerShell

Preview PowerShell

In the modern world, everyone strives for automation. Automating everyday tasks increases efficiency and can avoid errors caused by repetitive monotonous work. PowerShell can be used to automate such mundane tasks.


Windows Batch

Preview Windows Batch

Batch files can be used to automate simple processes in Microsoft Windows. Batch files use the commands of the command prompt, in the simplest case these cmd commands can be entered in a simple text file line by line, it is then executed one command after the other. Windows batch originate from the MS-DOS era. At that time batch files had the file extension .bat. Since Windows 2000 the extension .cmd is used. Additionally there is the possibility to use jump labels or variables, up to more compl...


📰 New Posts

Preview PowerShell Version: get-host

PowerShell version 7.4.3 released

changed: 2024-06-19 from Bernhard (Initial Release: 2022-05-02)

The PowerShell version can be displayed with the get-host command. ... continue reading

PowerShell own objects

PowerShell own objects

created: 2023-08-24 from Bernhard

Convert a PowerShell object to a hashtable, or convert a hashtable to a PowerShell object ... continue reading

PowerShell Basics: Data, Loops and Conditions

PowerShell Basics: Data, Loops and Conditions

created: 2023-08-24 from Bernhard

Powershell arrays and objects and logic: If queries and loops. ... continue reading

Using PowerShell to set file system permissions: ACL

Using PowerShell to set file system permissions: ACL

created: 2023-05-08 from Bernhard

To add a user with write permissions to an existing folder, the following script can be used: ... continue reading

Preview PowerShell Basics

Basics: Start console, execute commands

changed: 2023-04-11 from Bernhard (Initial Release: 2022-05-02)

PowerShell allows you to control or manage systems using the command line or run automated operations via Powershell scripts. ... continue reading

Preview Execute remote commands with psexec pstools - cmd Windows

Execute remote commands with psexec pstools - cmd Windows

created: 2023-03-01 from Bernhard

The pstools can be used to execute commands on other computers: Of course, this requires the necessary rights for the remote connection: by default, these are the domain administrator or the local administrator. As an alternative for a remote connection to another computer, PowerShell remoting can also be used, see: Powershell Remote ... continue reading

Preview cmd command Windows Management: Control Panel cpl and msc

cmd command Windows Management: Control Panel cpl and msc

created: 2023-02-27 from Bernhard

cmd command Windows Administrative Tools: Control Panel cpl and msc ... continue reading

Preview CMD Commands Overview: BATch Commands Windows Command Prompt

CMD Commands Overview: BATch Commands Windows Command Prompt

created: 2023-02-24 from Bernhard

An introduction to Windows-BATch or the Windows-Command-Line can be found here: Windows Batch ... continue reading

MS-SQL Joins explained: Inner, Outer, Left, Right Join; Union

MS-SQL Joins explained: Inner, Outer, Left, Right Join; Union

created: 2023-02-22 from Bernhard

Joins can be used to get data in SQL from one or more tables in a single output. Joins are often combined with other queries in practice: For example, most often for the selection of data is not, as used here, a "select * from", but the respective columns are selected: "select column1,column2 from", or, of course, the joins can be combined or nested with "where" or other queries. ... continue reading

Preview Robocopy example - server relocation

Robocopy example - server relocation

created: 2022-12-12 from Bernhard

Even in times of Windows PowerShell there are certain commands that still do not have a worthy successor in Windows PowerShell. One of these commands is undoubtedly the good old robocopy command. ... continue reading

Send PowerShell Email: Send-MailMessage

Send PowerShell Email: Send-MailMessage

created: 2022-12-09 from Bernhard

... continue reading

Preview PowerShell: Prevent screen saver, lock: Move mouse regularly

PowerShell: Prevent screen saver, lock: Move mouse regularly

created: 2022-12-02 from Bernhard

Alternatively, if you can't change the screen lock settings, you can move the mouse regularly, or have a script move the mouse. Originally published as an AutoIt script, I recreated the script with a few PowerShell lines. Anyone who copies the following commands into a PowerShell session will prevent the computer from locking the screen or starting the screensaver: ... continue reading

By continuing to browse the site, you agree to our use of cookies. More Details