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

Powershell Match 2 CSV

So I got 2 spreadsheet, Users.CSV and Report.CSV. In both csv there is a column called username pulled out of AD, and in Report.csv there is an extra column called ComputerName.I'd like to match both...

View Article


What's in your Powershell Profile?

Besides the Imperial March someone posted a couple of weeks ago, is anyone doing anything cool in their PowerShell Profile? Mine is pretty simple. just a couple of functions. Anyone have any cool...

View Article


Image may be NSFW.
Clik here to view.

Report on specific servers and specific services

I believe this is now in the wrong location- I started out in Script Center to ask this question but it appears to have gone to the incorrect location and I don't know how to get it to the right...

View Article

Image may be NSFW.
Clik here to view.

Using Powershell to generate report

I am trying to create a report to run after our downtime reporting onspecific servers and specific services status.I cannot seem to get the correct information I wantout of the foreach Get-WmiObject...

View Article

Creating a powershell batch file to create a label from existing network shares

I'm trying to create a batch file using windows powershell that will look for existing persistent network shares and take their path to create a name, much like a custom disk label.I'm a novice but...

View Article


Com objects in Powershell

Hi Everyone,I'm starting to look at using Powershell to automate some of our processes that currently revolve around Word, templates and mailmerges (ideally I'd like to get rid of this altogether, but...

View Article

Intellisense Stopped Working In PowerShell 4.0

Intellisense was a happy little camper last week when I was using PowerShell, but today I noticed it quit working, though it is still a happy little camper in PowerShell ISE.I have researched but...

View Article

Convert-HTML Background cell color based on condition

I've looked at numerous postings and most recently have been trying Martin's set-cellcolor function but can't seem to get it working with my script. I am just looking to make the background cell color...

View Article


Using get-content with set-Aduser in Powershell

HI,I am trying to use get-content to read from a .txt and then change those users’ password expiration property with the following script in powershell.Get-Content “c:\testouusers.txt” | Set-ADUser...

View Article


Image may be NSFW.
Clik here to view.

Trouble running Get-FolderSizes.ps script

Hi all,I have downloaded the Get-FolderSizes script and saved it to my desktop. When I try to run the script with or without the switches it looks like it gets stuck in a loop of opening windows...

View Article

Image may be NSFW.
Clik here to view.

Transport Rules and -ApplyHTMLDisclaimerText

I started a thread about this in December, but I thought I'd start a new one rather than resurrecting the old. Inthis thread,I got some good advice that I'm trying to carry out.This is my script:...

View Article

Powershell: Print Multiple Copies of PDF File

Hi All,I have a PDF file that I want to print... easy enough:Start-Process -FilePath "PathToPDF.PDF" –Verb PrintMy problem is, I want to print 10 copies of this PDF file...I understand I could put it...

View Article

Using Power shell to Manage rooms in Office365 - syntax help needed

I've created a bunch of room distribution lists in Office365 and a bunch of roomsWhat I want to do now is find a quick way of1) Add rooms to a distribution list based on their namesGet-MailBox | Where...

View Article


AuthorizationManager check failed

Hi All,I'm having a problem with my Powershell. When I load either the ISE or command window I get the following error.AuthorizationManager check failed.At line:0 char:0$Error[0] | select * gives...

View Article

Delete files and folders with Exception

Hi Guys,I am trying to get a script todelete files and folders not modified from last 3 days from E:\ disk drive. Thescript should run as task scheduler and should not delete files AND folderswith .mn...

View Article


Help with copy script

I have four files on my PC I want to copy to multiple shares. On the shares the files are going in 3 locations. I also want to remove the old versions of the files on the shares. So far what I have is...

View Article

Neat PowerShell Trick for Getting Email Alerts on User Log On Events

http://www.howtogeek.com/141894/how-to-use-powershell-to-detect-logins-and-alert-through-email/I stumbled upon this guide helping another Spicehead in the Active Directory & GPO forum, thought it...

View Article


Powershell change dir - FTP

Hi all,I'm creating a powershell script to FTP to a server and check a folder. However, what commands are available in powershell to change directory whe connected to a FTP server? ThanksChris

View Article

Image may be NSFW.
Clik here to view.

Powershell remoting question

If I have a script saved on my local machine, can I run it on a remote machine?  I am using  invoke-command, but it seems to be looking for the script on the remote machine.  Maybe this is the way it...

View Article

PowerShell Table formatting...

Having a silly problem. I'm pulling Active directory information for this script. One array is Server names. The other array is the owner. I thought I could put these two arrays into a variable and...

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>