Tag Archives: win32API

Creating a Robust Services Function

I had a time when I needed to know whether or not a service had triggers, which would mean that the StartMode could be Auto (Triggered Start) so that the service might just stop for its own reason and if … Continue reading

Posted in powershell | Tagged , , , | 3 Comments

Changing Ownership of File or Folder Using PowerShell

While working on a project recently, I needed to find an easy way to take ownership of a profile folder and its subfolders to allow our support staff to either delete the profile or be able to traverse the folder … Continue reading

Posted in powershell | Tagged , , | 27 Comments

Make a Window Flash in Taskbar using PowerShell and PInvoke

While working on a different project, I came across the need to do some sort of notification when something happened during a script. I didn’t need popup or some loud noise to alert me, but something a little subtle to … Continue reading

Posted in powershell, scripts | Tagged , , , , | 1 Comment

Create a Hard Link Using PowerShell

Following on the heels of my last article where I talked about creating a symbolic link using PowerShell, I figured I would throw another script out there that will do what mklink.exe does with creating a hard link and do … Continue reading

Posted in powershell, scripts | Tagged , , , , | 2 Comments

Creating a Symbolic Link using PowerShell

Recently, I had a need to create a symbolic link while running a scan on some systems and found that there was not a native way in PowerShell to accomplish this. Now I can use mklink.exe to make this work, … Continue reading

Posted in powershell | Tagged , , , | 14 Comments