15 new PowerShell commands to make your DBA life easier, including...
submitted by /u/thebeersgoodnbelgium [link] [comments] The post 15 new PowerShell commands to make your DBA life easier, including Show-SqlWhoIsActive, Find-SqlDuplicateIndex &...
View Articlepassing an array to a function
If I have some code that does this: $corpall = Get-ADUser -filter * -properties company, extensionattribute8 $members = @() $members = $corpall | where {($_.company -like "blah*" -OR $_.company -like...
View ArticleRetrieving information from Exchange 2010 NDRs
Our company has various applications that send mail and occasionally generate NDRs when delivery is not possible. My task is to find a way to retrieve these NDRs to pull the original message subject,...
View ArticleAny known tools or scripts that can get names and e-mails by list of display...
I have a word doc full of display names, but some of the display names may not exactly match the corresponding user’s display name in Microsoft Exchange/AD. Is there any known tools or scripts that I...
View ArticleSt. Louis PSUG MeetUp: This Time Tomorrow Night!
submitted by /u/michaeltlombardi [link] [comments] The post St. Louis PSUG MeetUp: This Time Tomorrow Night! appeared first on How to Code .NET.
View ArticleMust have Exchange tool!
submitted by /u/techkrag [link] [comments] The post Must have Exchange tool! appeared first on How to Code .NET.
View Articleclearing out attributes – slow?
hey there, I’m trying to clear out a couple of attributes and wondering why it hangs when I run it? If I quit, and check, all the attributes are cleared out. Here’s my powershell script, maybe you can...
View ArticleUsing Powershell for the first time with Windows 10, but sometimes the...
So we’re deploying some Windows 10 machines now and to get rid of some of the built in stuff, you have to use Powershell. So this was the perfect chance for me to actually dive in and start using it...
View Article[Help] Read text file, extract data following :, populate SQL
Hi, i have several text files that range from 50k to 500k of lines that contain… over & over. Model: xxx123456 Part: zzz000123 Color: Red I only care about what follows after the colon (:) of...
View ArticleDrawing Image Pixels to Powershell Console
submitted by /u/Prateeksingh1590 [link] [comments] The post Drawing Image Pixels to Powershell Console appeared first on How to Code .NET.
View ArticleHosts file with a twist…
I’m not sure if this is even possible, but I figured I’d ask and see if anyone has come up with a solution for something similar. I’ve automated a lot of my deployment processes, but one things I...
View ArticleMy POSH $Profile — Hope this helps someone out there.
This is going to be a beefy post — however, I have here my personal PowerShell $Profile that I use in my work domain. I am sharing this in hopes that it can help anyone else. I’ve researched and put...
View ArticleAny technical differences in execution between piping to where-object verses...
as the title says, is there any technical difference, in resource consumption, between using: $collection | where {$_.property -eq "value"} | export-csv pathfile.csv verse:...
View ArticleHelp needed with finer points of WMIC process call:
I recently started using “WMIC /node:$Computer process call create” in my powershell scripts. Sometimes it works great, such as: WMIC /node:$Computer process call create “cmd.exe /c dir /s >...
View ArticleCopying files with the same name into a common directory. Basically need a...
We’re planning a file server migration/consolidation effort and have been directed to find all files of a specific type and move them into a common directory. Finding and copying them is easy enough...
View ArticleCheck if script is invoked via Scheduled Task
I have a script that I’d like to check if it has been launched via a Scheduled Task or manually. Does anyone know a way to check this? I’ve tried the callstack and $myinvocation without any luck so...
View ArticleHelp with credentials in powershell
Hello, I am using a script that is helping me change the computer names remotely within our domain through a .csv. I have tested this out on multiple computers and this has worked flawlessly. The only...
View ArticleHow to select the only variable that is not null?
Hi guys, My script needs to query a few registry locations on remote computers (so searching is not possible afaik). Only one result will have a value, but I’m struggling to select it without losing...
View Articleuninstalling with PS App Deployment Toolkit
Hello, I’m trying to learn to use the Powershell App Deployment Toolkit to manage deployments for my organization. I’m following the excellent beginner’s tutorial provided by /u/replicajunction, but...
View ArticleAutomated Server Build Utility (VMWARE)
Hey everyone. Today i wanted to share something I’ve been working on and off on for the last couple of weeks. It is a utility written completely in PowerShell that allows a technican to enter in some...
View Article