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

Powershell script output improperly formatted

Posted in 1st comment is a script I adapted to fetch stale users and PCs out of ADUC.If I run the commands by hand, everything looks shiny:  I can see all the output I select.  If I run the script,...

View Article


find font in document and output the file name if font is present

hello,i am starting powershell and i am trying to search some word document with a certain font used inside.then if one word with the font is present, write the file name/path to another file.so far, i...

View Article


Have Powershell Read and Execute commands based on MS SQL Table Data?

I am very new to Powershell and Powershell ISE. I have light experience with Object oriented programming languages and some SQL as well. Based on code examples I have found online, I have managed to...

View Article

Moving folder on remote server with powershell

I have having a difficult time with this script. I created a user termination script to automate removing users from our system. The issue I am having is, we have two servers where our users home...

View Article

Power Shell Use

Just wondering if their is a good tool out their to tell me if someone besides IT is trying to use power shell?

View Article


PowerShell HELP. Insert parameter into code

Hi I am trying to create a script that will accept input from the user for the subject of the message. I am okay with all parts except getting the parameter back into the line.The PS command below work...

View Article

Create file from forach when file counts greater than 250

Text$fso = New-Object -com "Scripting.FileSystemObject"$f = $fso.GetFolder("D:\websphere\logs")I have a directory called D:\websphere\logs, and D:\websphere\logs has many of sub-directories. I need to...

View Article

Mass remove inheritance on multiple folders with powershell

Hello. I have recently run into an issues with our user folders. I'm trying to remove a particular group from each user folder but wanting to keep that group in the parent folder. There are 410 user...

View Article


PowerShell $null Variable in an IF Statement

I know I'm going to be kicking myself, but since I still consider myself a n00b with PS, I'll try not to kick too hard.I've got a script for new hires that works intermittently. HR insists that AD...

View Article


Powershell change local IP printer

I have this script to change printer IP ports on a list of computers, it references a .csv file with ComputerName, Old_Port_Name, OldIP and NewIP and it works great except for when I come across a...

View Article

PowerShell Query to get Security Group's name and email address?

I was wondering if someone could help me with a task I've been assigned. We have several types of employees in my company, the biggest being FTE. I was tasked to get all full time employee's name and...

View Article

User editing script error checking

Hello all,Can someone please tell me why this bit of script does not create an error for get-aduser? I believe it might be because I am using a filter for EmployeeID.However although my script probably...

View Article

Put yourself off the lottery with Windows PowerShell

https://community.spiceworks.com/scripts/show/3546-lotterysimulatorFastest winner earns a new follower!

View Article


Removed array Item/s, cannot re-read?

I am quite new to Powershell and Powershell ISE but I am slowlying learning more and more by the day. I am working on a project where I generate a list of names in an array, powershell looks at each...

View Article

Split file csv by size

I have a csv file with a size that exceeds 4GB.I want to create a script powershell to plit the file into multiple files with a size of 600 MB each.Can you help me please ?thank you very much

View Article


Import eventlog to mySQL

Have done this in MSSQL but wanted to try in MySQL too, but how can i adapt this script to work for mysql on a ubuntu server? any ideas? i find new-object in powershell very hard to understand and to...

View Article

Image may be NSFW.
Clik here to view.

Double Powershell session error

i was wondering if it is possible to have 2 PS-Sessions in 1 CLI so :this is necassery to get trough a rough network.this is a example of what i mean :$password1 = ConvertTo-SecureString "******"...

View Article


Script to Check Computer Domain Membership - Check for Install - Install MSI

Hello All,I need help creating a script to..1. Check for computer domain membership2. If it is a member, check to see if an application is installed3. If it's not installed, install MSIPowershell would...

View Article

How to add reboot command to existing PowerShell command?

I have PowerShell script that is added to the RunOnce registry key for every new user that logs into a Windows 10 system.It clears the taskbar and replaces it with one that has an IE 11 shortcut...

View Article

Powershell Office 365 - Change Multiple User Passwords

Hi All,I'm currently struggling to change multiple users' passwords in Office 365 and I can't quite figure out what's wrong with my code. I have the...

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>