Books
Translate This Blog
-
Recent Posts
Top Posts
- Changing Ownership of File or Folder Using PowerShell
- Querying UDP Ports with PowerShell
- Avoiding System.Object[] (or Similar Output) when using Export-Csv
- Starting,Stopping and Restarting Remote Services with PowerShell
- PowerShell and Excel: Adding Some Formatting To Your Report
- Locating Mount Points Using PowerShell
- Using PowerShell to Query Web Site Information
- Quick Hits: Finding Exception Types with PowerShell
- Speedy Ping using PowerShell
- Quick Hits: List All Available WMI Namespaces Using PowerShell
Archives
Categories
- .net
- api
- array
- background jobs
- binary
- book
- c#
- clock
- codeplex
- com object
- convert
- CTP
- database
- deep dive
- excel
- Favorites
- function
- groups
- guest blog
- hash table
- Internet Explorer
- ise
- mcpmag
- module
- MVP
- network
- news
- parameter
- patches
- performance
- pinvoke
- podcast
- port
- PoshChat
- poshpaig
- PoshRSJob
- poshwsus
- powercli
- powerscripting
- Powershell
- printers
- quickhits
- reflection
- regex
- registry
- Regular Expressions
- report
- resolution
- runspace
- runspaces
- scripting games 2012
- scripting games 2013
- scripting guy
- scripts
- SMO
- Speaker
- speaking
- SQL
- tcp
- tips
- tsql
- updates
- user group
- V3
- V4
- v5
- weather
- widget
- win32API
- winter scriting games 2014
- wmi
- word
- WPF
- wsus
- xaml
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
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
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 FlashWindowEx, pinvoke, Powershell, win32API, Window
2 Comments
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
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