filmov
tv
Trigger Flow when you log on, run from Windows Batch or PowerShell Script #PowerAutomate
Показать описание
Did you know you can call a Power Automate flow from your desktop? Either using the Premium HTTP trigger or by using the OneDrive Sync Client and creating a temporary file with Parameters? You can even call these scripts automatically when you first log on and automate your early morning cloud tasks! Let me show you how I built this and the tricks of the Windows Startup folder(s), Windows Command Line / DOS Batch and PowerShell.
Please like and subscribe and let me know what you have used this for.
#PowerShell #PowerAutomate #DosBatch #OneDrive #WindowsCommandLine
Individual User Startup Folder
C:\Users\*USERNAME*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
ALL USERS Startup Folder
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
Call PowerShell from Dos Batch
powershell C:\Scripts\HTTP.ps1
PowerShell HTTP Post
Dos BatchScript with ARRAY
echo {"date":"%DATE%" , "time":"%TIME%", "UN":"%username%", "Computer":"%ComputerName%", "status":"Client", "Client":"Microsoft"} **insert greater than symbol here *** C:\Users\*USERNAME*\OneDrive\*YOURCHOSENFOLDER*\%DATE:~0,2%_%DATE:~3,2%_%DATE:~6,4%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%.txt
ShutDown in 30 seconds....
Please like and subscribe and let me know what you have used this for.
#PowerShell #PowerAutomate #DosBatch #OneDrive #WindowsCommandLine
Individual User Startup Folder
C:\Users\*USERNAME*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
ALL USERS Startup Folder
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
Call PowerShell from Dos Batch
powershell C:\Scripts\HTTP.ps1
PowerShell HTTP Post
Dos BatchScript with ARRAY
echo {"date":"%DATE%" , "time":"%TIME%", "UN":"%username%", "Computer":"%ComputerName%", "status":"Client", "Client":"Microsoft"} **insert greater than symbol here *** C:\Users\*USERNAME*\OneDrive\*YOURCHOSENFOLDER*\%DATE:~0,2%_%DATE:~3,2%_%DATE:~6,4%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%.txt
ShutDown in 30 seconds....
Комментарии