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

Powershell: one array 8 richTestBox's

I am working on a game and all I need to do is output an array to 8 richTestBox's the data only shows in one box not all....

View Article


suppress output when creating a DL - powershell Exchange Shell

When I run the following command, I get output, which then gets echo'ed into my script results log, which I don't...

View Article


New to powershell - Output to csv file.

Hey guys,Fresh in the IT world, especially new to powershell, and need to output the following to a csv file. Anyone know how to go about...

View Article

Powershell: Using Friendly Robocopy

From: http://powershell.com/cs/blogs/tips/archive/2016/08/30/using-friendly-robocopy.aspx"Robocopy is a tool of choice to copy files, and that does not change with PowerShell. You can, however, use...

View Article

What did you accomplish with PowerShell in August 2016?

By a demanding little green alien, I'm posting the accomplishment thread a day early!  Yet another month, yet more PowerShell goodness to be had!  What did you do this month that you'd like to brag about?

View Article


If statement not working!

Powershell$s=Get-Contentcomputers.txtRestart-Computer-ComputerName$s-Forceif($?-eq$false){echo"$($_.fullname)failed $s"|out-file-append"copy_fail - $(get-date-fdd-MMM_@hh).csv"}Hi All,How can i make...

View Article

Delete Files Older Than 90 Days Including Files In Sub Folders

Hi all, I need a script that will delete all files (not folders) older than 90 days in a specific location (including files in the sub folders), and keep anything newer that isn't 90 days old, has...

View Article

Finding files on remote machines with no knowledge of the specific file path

I'm looking for a script to find a text file on all of my network machines (I'm assuming PowerShell is the way to go here?). The tricky part is that the files can be located in hidden folders,...

View Article


Outputting to CSV file - results are truncated

Having issues outputting to a csv file. Script runs fine, but information within is truncated.So instead of looking likeText"User" [EX:/o=Domain/ou=Address..." We're...

View Article


Scripting to move over 650,000 files and index them in a MS SQL Database

Hello,I am trying to achieve the above.The story is that we are changing our ERP system, and in our old system we can save files against records, but this has been done in a cumbersome way. So we...

View Article

Inactive User PowerShell Script

I am looking for a PowerShell script that finds inactive users based on an arbitrary date and exports this to a filePreferably, this script will also disable the inactive users (and exports that action...

View Article

Need help with folder access script and output file.

Hi, I am writing a script that will give me list of groups that have access to specific folder. The script that I currently have is giving me the list of all users that have access to a folders but the...

View Article

PowerShell Format output with multiple wmi objects

I am collecting information on hard drive type as well as usage and have found that I have to use two WMI objects to gather all the required information. The below script is working for me but I would...

View Article


Powershell: Adding switches to functions calling another function

I'm guessing there is an easy way to do this even if there isn't an easy way to explain it.I have a function that uses the gShell powershell commands to remove a user from all of there groups. At the...

View Article

Hash table n00b: Looking to create .csv from Get-ADuser

I'm looking to export our student accounts to a .CSV file with a specific format that I can then import into ZenDesk. I've attached a sample .CSV file. I can export "name", "email", and "tags" from...

View Article


Windows 10 Start Layout

Hello!I'm looking to add to an existing powershell script that I run on new systems to install software and other configuration changes. The idea would be during the configurations have a stage in the...

View Article

Exporting to CSV with date/timestamp and opening the file

Right now I am using the following to export to CSV and...

View Article


Count the total emails sent and received per user/users - from 6:00 AM to 5:59

Dear all,I am looking for script which will generate report of Emails sent and received by multiple users from 6:00 AM to 5:59 AM next day and daily will send report in email.I have gone through...

View Article

Email List Help

Hi guys,I have been dipping in and out of this site for a while to help me with some scripts in work.  But i have come a bit stuck.I am pretty new to Powershell etc so be gentle.I have been given a...

View Article

Powershell script to view all users with Admin privileges.

Hi, we would like to know if there is a way through powershell to show all of the users in AD that have admin rights on the domain.

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images