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

Drive mapping script with duplicate drive letters

I work for a company that handles many sites meaning we have a lot of shared network drives, some temporary some permanent. This means we have a lot of duplicate drive letters in our logon script and...

View Article


Powershell Ad user feed to an array then used for a combobox.

Hi guys,I've recently had some fun with powershell and keep doing bigger and bigger project on it.The latest I'm working on is to feed an array with Ad CN users and Account Name.That array will then be...

View Article


Collecting Ethernet (only) MAC address and removing colons to pass to function

Hey there Spiceheads!I'm trying to collect the local Ethernet MAC address from a PC, remove the header & spaces etc. from it and pass it as a string to a function, which removes the delimiting...

View Article

Get-ADGroupMembers Emails?

I've been tasked with getting all the users of a particular distribution group and their email address? The members part is easy, but how would I pull all their emails into a document?

View Article

WMI Explorer

Hello All,What is the best WMI explorer tool for use with Powershell.Thanks

View Article


PowerShell: AD OU and Splitting or Substring

As i love this community, I would love to see the options I have for this issue.  I do believe it's not that hard and I'm probably just over complicating this, however, I would love your thoughts.Say...

View Article

Powershell script to trim the text file

Hello guys,Could you please help with looking for some PowerShell script that will be trim the text file into HTML and CSV formats?What I have:1. Text document, here is an example of strings and...

View Article

Carbon: A Nifty little PowerShell add-on

http://get-carbon.org/I ran across this last night whilst searching for a way to automate the creation of [local] user accounts. The Carbon Project adds a lot of custom cmdlets to make this stupidly...

View Article


export group members

Using dsquery I am able to easily get all the members of perticular group including users, computers & nested groupsPowershell1dsquerygroup-samid"ScreenSaver...

View Article


Modify Custom Attribute Powershell

I have 30+ users that I need to modify Custom Attribute 13 on their mailboxes. I've found a few commands like set-mailbox but the -customattribute is not working. Is there something I must import first?

View Article

PS Script data correct in manual run but incorrect when run through Task Schedul

Hi Guys,Bit of a weird one.  I've got a series of powershell scripts that run on all my servers to monitor resources (disk space, processor, Memory etc).  When I run the script manually all the data...

View Article

Event Log VB script modification required

Hi guys,I am not a scripting guy, i got a script to get a last 24 hours logs error and warnings event logs.It is in html format.for this html report i need to add columns and header and footer color,...

View Article

Powershell list of property values

In power-shell, how can I retrieve a list of acceptable values that a property can be set to? I know I can get the property's with get-member, but I want the values these properties can be set to.For...

View Article


Veeam Scripts - PowerShell 3.0 Win2012

Hi, I need to create a powershell script in order to execute a full backup on Sundays for our Prod server. Iddon't want to create a new veeam job for that I want that full backup to be part of the same...

View Article

Need to create an array of numbers with leading 0's

Okay, below is my code but I get an error that says "you cannot call a method on a null-valued expression".  Any ideas on how one would go about doing this?Powershell1 2...

View Article


Powershell - Creating a Outlook Signature

?So I am stuck... I am trying to follow this code and  I am getting a bunch of errors with "Unexpected Token" errors and I can't seem to figure out what I am doing wrong. This is my first PowerShell...

View Article

Launch Exchange Shell powershell script

Is there a way I can write a script to launch the exchange shell on a server and run a command? I cannot just use snapins or import modules because it's a hosted exchange.

View Article


How Can I Compare Employees from Excel with AD using PS

I want to compare employees with AD using Powershell Script.Employee info is in excel sheet.Also, I want to move employees from one group to another group using powershell script.I have started using...

View Article

How to Search Security Event Log for File Audit RE: Specific File/Path

I've had users delete things or move things by mistake one too many times...  so I finally got around to enabling auditing on my 2008 R2 file server.  I'm not very experienced with this, so I'm...

View Article

Raw text to powershell object question

Hey guys,I've been working with the network tool nmap, and I was thinking how great it would be if Nmap used an object based approach, as you know dealing with many hosts with just the raw nmap output...

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>