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

If/Else Statement stops ForEach from looping

Like most of my PowerShell questions this is probably some errant parenthesis or missing fundamental stemming from ignorance, but that's how you learn I guess.I have a script that takes a CSV file of...

View Article


Powershell group object return count as an array instead of as an integer

Hi everyone,I'm trying to graph some information using powershell, but I've hit a wall. I have an array named $phoneIssues, which holds tickets with the category of Phone Issues marked. What I would...

View Article


Powershell .count - Looking for other things to try.

I find this very useful to run a command and then view how many items are returned.Powershell(Get-Service).countI just have a couple of questions on this:Are there any other options with this syntax...

View Article

Has anybody actually started using PowerShell for their Mac/Linux machines?

Topic.. with PS being open source, how many have started using it in tandem with bash?

View Article

PowerShell Script t0 Enable Local Admin Account and Reset Password Domain Wide

I need some assistance.  I need a PowerShell script to enable the local "Administrator" account and reset the password.  I need to be able to do this on all computers in the domain.  I've done some...

View Article


Powershell send-mailmessage not authenticating credentials

So I've been playing around with email reports (free diskspace kind of stuff), and I've come into kind of an odd problem.I've made a user with limited access to only be authenticated to send emails...

View Article

Azure powershell script rdp portal cahnge

I have a script that create vm 2012 rw works great I like to add a line to it that change the port of rdp anyone can help with command or link Thanks in advance

View Article

Assigning permissions to Personal Certificate on 100+ computers

Very new to PowerShell and I'm trying to accomplish what is outlined in the following KB: https://support.microsoft.com/en-us/kb/2001849.Which is to assign permissions to personal cert on remote...

View Article


What did you accomplish with PowerShell in September 2016?

September! September!  A time to remember!Well guys, September has come and gone (and it finally ended--song reference) so time to talk PowerShell.  Here's where you get a free rein to talk about what...

View Article


Help with Fixing OfficeScan's Certificate error with PowerShell

Hey Spiceheads I'm in need of some help!I have a bit of a situation here that I'm not sure how to go about it. So we just recently deployed Trend Micro's Office Scan product to about 90% of our Windows...

View Article

New-PSDrive - Invoke-Command

Hi all,Scratching my head a little with this one.When I run the following command directly on my lab server (or when remoted in it works fine, and maps a new...

View Article

Powershell - Active Directory query users and disable account

I haven't put together any PowerShell in quite a few years so I was hoping someone could help me with a script I need. Basically I need it to:Get all users from a specific OU (and subs) where account...

View Article

How can I save DHCP Scopes and Reservations in PowerShell?

Hi Is someday having a PowerShell Script to save all existing DHCP Scopes & Reservations to a CSV file? Script 1: Text#Save Path $path = "C:\temp" PS C:\ Get-DhcpServerv4Scope -ComputerName...

View Article


PowerShell and network printer settings

Setup:Xerox 7845 WorkCentre Copier attach to the local networkWindows print server running on Windows 2008 R2. Printers are pushed out via Group Policy.Clients PCs are Win10 and Win7Goal:Set printer...

View Article

I would like ask for the little assistance relating to POWERSHELL-Request for he

I welcomeAs a novice Administrator I would like to ask a few questions: I would like to know If there are other types of configurations that can be applied by firewall iptables in GNU/linux for added...

View Article


Learning PowerShell.

A while ago, I came across a topic that had some good sites on what people usually do on their down time. Saw a good site that had some tutorials on PowerShell. Never was able to save it and i dont...

View Article

Truncating a field in a CSV file if it is too long

As my first PS project, I am trying to loop through a large CSV file (25k lines, circa 30Mb) and truncate the 'Query' field if it's character count is larger than a certain value (i.e. larger than...

View Article


Exchange 2010 Script

I need a script that will generate a csv file with the following information by pulling from all Hub Transport. I want to run for the past day and have opportunity to run for the past 7 days too if I...

View Article

Powershell/Scripting

Is there a list of power shell commands I can use to automate some of my issues through using power shell bat files? Like a System Admin toolbox someone is willing to share? Its only me and I support...

View Article

Powershell 5 Remote Stop-WebAppPool Failing

I have a deployment server which I use (among other things) to run a scheduled task to stop the WebAppPool on a different IIS server which isrunning Powershell 2 (*puke*) .I just upgraded the...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images