~/talk

How can you use prompt engineering to debug PowerShell?

links:none on file
slides:none on file

Uses Azure OpenAI Studio and the gpt-4-32k model to debug real PowerShell snippets: finds a typo that prevents a users loop, explains using userPrincipalName instead of an object for mailbox commands, and identifies identical calendar events by comparing iCalUID comparison values. Demonstrates generated Mac PowerShell commands listing root folders, builds a for‑each loop that counts to 10, and shows making REST requests to Azure OpenAI from PowerShell; examples are pasted, corrected, and executed successfully.

AI-written summary · about

  1. 0:00Introduction to prompt engineering
  2. 1:06Debugging Active Directory script
  3. 2:10Fixing Azure AD user script
  4. 3:18Comparing calendar events with Graph API
  5. 6:22Writing PowerShell for Mac folders
  6. 8:14Creating PowerShell loops with AI
  7. 9:41Summary and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.