Exitcode0
  • Home
Subscribe
Tagged

scripts

A collection of 3 posts

powershell

Modifying Windows shortcuts is Powershell

I once faced a rather tedious task that involved recursively modifying a number of shortcut paths stored across a convoluted folder structure. There was approximately 100 shortcuts which needed part of their path modifying. The answer: Create a PowerShell script. The following code utilises regex to check for the existence

  • Tom
Tom Feb 13, 2019 • 1 min read
code

Powershell - Checking the Language Mode

For security purposes, it is possible to control the language mode in a given Powershell session. These language modes can constrict which modules can be loaded during the life of a powershell session. Learn mode about Powershell langeuage modes: About Language Modes – Microsoft Detect the Current Language Mode $sLangMode

  • Tom
Tom Feb 5, 2019 • 1 min read
code

'Copy, Paste' With Powershell Sendkeys

This is really quick nugget of Powershell for anyone who is struggling to copy and paste into a particular window or dialog box. Perhaps it is a case of a website which prevents text form being sent to a field from the clipboard, or in my case, a windows UAC

  • Tom
Tom Feb 2, 2019 • 1 min read
Exitcode0 © 2022
Powered by Ghost