Get-NetAdapter not available in powershell 4.0 on Windows 7
I upgraded to the latest and greatest Powershell 4.0 on my Win 7 box. I was mainly doing it to work with the Get-NetAdapter cmdlet, but it seems it is not available to me. Is this cmdlet specific to...
View ArticleForum Etiquette
Hi, and welcome to the PowerShell forum! I did this same list for the IT Programming forum and I thought it might help a little bit here too. So, without further fanfare!! Don’t apologize for being a...
View ArticlePowershell - Pass array from one function to another
All right, so the basics: I have a 1 button, the first button calls a function which returns an array. I have another button that needs to use the array from the first function. I've tried calling the...
View ArticleCannot change registry key with powershell script
I currently have a powershell script the disables the require smart card policy that works. The problem is that when I flip the bit to re-enable the smart card requirement by setting it back to '1', I...
View ArticleVariable in a comparison filter
I am writing a small script that finds all computer objects in ad that have a certain OS. It all seems to run fine, but I get no results back. I have a sneaking suspision that my variable is not being...
View ArticlePowershell: Export-Csv Main Heading
Hi again Spiceworks! Well thanks to some awesome people in here, my little script is working awesome, and exporting to CSV format very nicely. I did think that it would be nice to include a sort of...
View ArticleAD Account locked? Yes - Unlock and email - find machine that locked out
I am locking for a Powershell script that checks to see if a AD account is locked, if it is locked I would like for it to unlock and send me an email. I want to run this scrip as a schedule task on...
View ArticleInvoke-sqlcmd worked but now it doesn't
I am trying to query a MS sql server via powershell and I had the command work once, but now it doesn't anymore. Similarly I can run a very simple select statement but when I call a function or do a...
View Articlesending emails from a .csv without duplicating
Here is what i'm trying to do: I have a generated .csv file with an email column and an item column. I want to email everyone and tell them what item is assigned to them. Some people have more than...
View ArticleRecommendation for how to learn powershell?
So, I've decided I really need to learn powershell this year (after going to PowerShell session @ SW I realized "I kinda need this..."), beyond just making myself use it and googling things I want to...
View Articlepowershell check if users are a member of one of 3 ad groups?
I need to check if all users are at least in 1 of 3 groups. How can I do that in powershell? I don't really want a massive script, a one line piped query would be ideal
View ArticlePowershell: Get RD Gateway Manager Sessions (Client IP address)
Wondering if this is possible, I've been searching around, but haven't been able to find anything. I want to be able to get all session from the RD Gateway Server (not the sessions on the server...
View ArticleGet memeber count of common groups for hosted customer
We have a Cloud product for our customers. I would like to do a count on Data usage per customer. The Ad is as follow: Customers -------Company A -----------Users -----------Webmail Users...
View ArticleChange permissions and ownership Powershell
I have over 6000 directories I have to change permissions on. They are profiles with the directory with the same name as the user. I need to add modify read and write access as well as directory...
View ArticleGet-FolderSizes Troubleshooting
Hi SPadminWV, Got your comment on a problem with Get-FolderSizes:Great script! And just what I am looking for. But I am trying to fix a problem that happens when I run your script. The report totals...
View ArticlePowershell error.. not sure what is wrong here
I'm using a powershell script to modify the mail attribute for users in our AD, but I'm getting errors I never got before during testing and I cannot see why.. In the pastes below, keep in mind I...
View ArticleSet Telephone Number in Active Directory from CSV.
I am needing to create around 100 contacts in Active Directory. For each contact I need to set Telephone Number under the General tab. I want to do this with a CSV file. I have no issues creating the...
View Articlenot allowed to be the owner of this object PowerShell error
Thanks to Martin9700 I've been using a script to change permissions on several thousands of directories. I have been asked to change the ownership with the script, but get this "The security...
View ArticlePowershell Logon Script Run as Admin
I read through a few forum posts on this, but couldn't find exactly what I needed. I have a logon script written in powershell. It grabs various things, but one is the IP address of the user which it...
View Article