Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

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 Article


Forum 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 Article


Powershell - 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 Article

Cannot 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 Article

Variable 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 Article


Powershell: 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 Article

AD 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 Article

Create a group using CSV File

How add members into a group using a csv file

View Article


Invoke-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 Article


sending 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 Article

Recommendation 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 Article

powershell 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 Article

Powershell: 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 Article


Get 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 Article

Change 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 Article


Get-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 Article

Powershell 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 Article


Set 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 Article

not 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 Article

Powershell 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
Browsing all 15370 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>