Category Archives: Windows Scripts

Sample Script to manage Windows

Windows: Set or edit environment variable from powershell

Hi,

powershell can set,edit or delete environment variables as well as cmd.exe command line interpreter.
Continue reading Windows: Set or edit environment variable from powershell

Advertisment to support michlstechblog.info

Powershell: Convert a string into a securestring and back to plaintext

Hi,

.Net and therefore the powershell has the ability to define a secure string. This means that the string is immediately deleted from memory if it is no longer needed.
Continue reading Powershell: Convert a string into a securestring and back to plaintext

Windows: Get, set or change the network access type or network category

Hi,

to get and the network access type and the network category use the powershell commandlets Continue reading Windows: Get, set or change the network access type or network category

Powershell: Write XML files with UNIX line endings

Hi,

if you want to create XML files with powershell which can be used on UNIX/Linux systems you need to write an own save function. Ths save() methode of the System.XML.XMLDocument class can only write Windows style XML files with Carriage return/New line endings.
Continue reading Powershell: Write XML files with UNIX line endings

Windows: Check if computer is joined to Azure AD

Hi,

if you want to check if a computer is joined ADFS and/or Azure AD use
Continue reading Windows: Check if computer is joined to Azure AD