Using clip function on the powershell rocks
The process of moving your PowerShell scripts to Notion can be made easier by utilizing the 'clip' function which can be found at the end of your script. This function allows you to copy the contents of your script to the clipboard, which can then be pasted into Notion with ease. This can be especially helpful when dealing with large or complex scripts that would be difficult to manually transfer to Notion. By using the clip function, you can streamline your workflow and make the process of moving your PowerShell scripts to Notion more efficient and effortless.
For example my daily update script
choco upgrade all -y;Get-WindowsUpdate -AcceptAll -Install -AutoReboot; Get-EventLog -LogName System -EntryType Error -Newest 10 | Select-Object -Property * | clip

Imported from rifaterdemsahin.com · 2024