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

Absolutely lost - PowerShell to audit home share

Basically we have an old Home directory and I would like to dump the entire thing to a CSV file showing the below: Folder Name | Folder Size | Folder Owner Folder owner should reflect GUID if we've...

View Article


PowerShell -List of Group Names Beginning with xx - Another to rename the group

Good Morning/Day/Evening World, I am new to Powershell and think I can get halfway there, but would appreciate some help please? Basically I want to rename a bunch of groups and edit their description...

View Article


Powershell and Sharepoint - importing users using forms based authentication

I have been tasked with importing a list of users from a .csv file into a 2010 sharepoint environment and having them be setup via forms based authentication. I want to start this off letting you all...

View Article

new-vhd consumes all I/O, can I start it with lower I/O prority?

Powershell gurus... I use the powershell new-vhd command to create new vhdx files for my Unitrends UEB VM so that I can create and add them to my UEB storage without downtime. It works great. However...

View Article

Powershell script proof

I'm having an issue with a script I've been working on. The script should first load a number of modules, then load some stored creds and connect to the Office 365/Exchange Online environment. It then...

View Article


Try-Catch help

I'm building another report. This time it's getting all the folders in a specific location on multiple computers. I've got it fine working locally and am branching it out to remote computers. I pull...

View Article

Splitting pairs of charavters in Powershell, odd results

I am writing a script to take a list of characters for replacement and the replacement text for filename replacement. This will be for file name compatibility with skydrive pro. I am falling over...

View Article

VBA script to create shortcut and change start in path?

I have a VBA script to help with system setup and I have part of it working to create a new desktop shortcut but I can't seem to set both shortcut's start in and target path path in VBA. I would...

View Article


Powershell Scripting

Can someone please provide me with the exchange management powershell script for adding a PublicFolder in exchange?

View Article


POWERSHELL - MS Chart Controls

I have everything working except, the order they are displayed on a image. I want to to start with Monday $Pools = @{Monday=$MON1; Tuesday=$TUES1; Wednesday=$WED1; Thursday=$THURS1; Friday=$FRI1}...

View Article

Powershell- Stop Script in IF Statement

if (test-path ){ (Perform some actions here) } else { Write-Host "FILE NOT FOUND!" exit } Trying to stop a script if a file is missing (or any other conditions)... The above does not work. Any...

View Article

Powershell - Reusing Mail Function

I have a function stored in: sendmail.ps1 function sendMail ($errortype){ switch ($errortype) { "1" { $message = "Uh.. something's broken" } "2" { $message = "This can't be right!"} "3" { $message =...

View Article

Feeling pretty good, submitted my first script!

This is something I've always wanted to do, but programming and scripting intimidates me a little or it did. I've been learning a bit of powershell and created this gem! Probably 2000+ scripts just...

View Article


Powershell function: overwrite variable error?

I'm trying to write a powershell function, pretty simple, but I seem to be bumping up against something that I haven't been able to find. I suspect it's just my lack of powershell/windows programming....

View Article

Change the filename in target of shortcut (.lnk) files..

I have shortcuts in multiple folders that point to .dot files. The files have been upgraded to .dotx files. I would like to use the existing shortcut files and change the properties to reflect the...

View Article


Run Powershell from a notepad

Is there anyway to run a powershell script to change user rights from a notepad? Or if not whats the easiest way to mass change a list of users (Trying to take away admin rights)

View Article

Remove Local Admin via powershell

Hey guys, So just looking for the closer, I ran a powershell to pull all local administrators, I exported the txt documents, edited it, now I want to remove local admin from all the users in that...

View Article


SMTP Failure?

I have written a Powershell script which copies files from the server to an external USB drive using ROBOCOPY. When done it sends an email to me using "blat.exe". The emailing seems to work on and off...

View Article

Powershell Script to display Password Expiration

How do I add 90 days to the PasswordLastSet date & extract it to the output? Below is an excerpt from one of my script & what I attempted to do. Everything works but the section where I try to...

View Article

Powershell script to return value from even log event...

I'm trying to find/create a script that will query an even in windows even log and pull a value from it. I have server temp monitor that drops the temp in a windows even log. I'm trying to monitor...

View Article
Browsing all 15370 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>