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

How to add logs to my script? (PowerShell)

Hello,I am currently putting together a script to1-Copy folder structure2- Move files older than X days.This is what I currently have put together, nothing fancy as I'm new to power...

View Article


Checking prerequisites things before filling in parameters

I want to be able to check a few things like if it is running powershell in an elevated mode or a particular user account is being usede.gPowershellIf(-NOT([Security.Principal.WindowsPrincipal]...

View Article


Powershell Script to read .CSV file and set pwdlastset = 0

Hello All!I am new to Powershell. I created a script that pulls all active directory users and the date that there password was last set. It then prints this to a .CSV file. I separated the files...

View Article

Powershell script to robocopy data from multiple sources to multiple destination

Hi all,I'm having a grand old time at creating a powershell script that backs up data from one UNC path to a local removal drive. I've got a working script that copies from a single UNC path to a...

View Article

Exporting AD user, computer and group policy detailed information in CSV?

Dear Friends,I need to export my  AD user, computer and group policy detailed information in CSV to complete my AD audit and analysis of AD security on URGENT basis.will you guys please help me...

View Article


Local Admin Reset

Hey i'm fairly new to PowerShell but understand basic commands and outputs. I've gone through previous posts to no avail.I basically need to run a script that will reset the local admin password each...

View Article

Powershell copy multiple security groups with members...

Does anyone know how to make this work with a loop for multiple Groups?I have been tasked with re-creating 40-50 Security Groups as Distribution lists. I don't wish to mail-enable the current SG's.I...

View Article

parse file

Hi,I have this output inside a log file  log1.txt :   New File    1.9 m    \\ita-001-01fs000\ALFA\Consumatori\risposte\file1.pdf   New File    1.9 m    \\ita-001-01fs005\BETA\Fornitori\file2.doc   New...

View Article


PowerShell module for Hyper-V / PowerShell Management Library for Hyper-V

I've recently upgraded one of our Core servers to allow a new VM to be created and allocated sufficient resources -See bottom of this entry for Core specWe use Hyper-V as our virtualisation platform...

View Article


Where to get good power shell training?

What have you guys used to learn power shell scripting?I need to learn and I am not sure where to start?Basically, our SysAdmin's keep the AD as flat as possible and this causes an issue with a new...

View Article

Powershell Script to Send Backup Notification through Office 365 SMTP

Afternoon allAfter trying to setup a backup notification task schedule on Server 2012 i have come to realise that the Email option is no longer vaild, after reading around i have found that everyone...

View Article

Is there a way to inventory users' files and see total size of all files?

I'm using this script to 'inventory' users' files into an output file.  However I also need to figure out a way to inventory the size of total files owned by a user on the file share server.  I'd...

View Article

Powershell issue creating IIS directories

Hello,I am trying to automate using powershell and I am running into a dead end. I have 3 components to my solution.1. welcome.php - calls the powershell script.2. Input.html. - user submits a file...

View Article


changing datatypes

i have a script that is returning values as int and i want to change the value to string.Powershell$SNMP=new-object-ComObjectolePrn.OleSNMP$SNMP.open("127.0.0.1","public",1,6000)#get HP or...

View Article

IP to Hostname

Hi All,I am using the following script to filter 4771 event ID. This script is working fine, but when I try to resolve IP to Host name it takes at least 10 to 12 seconds per event. So is there any way...

View Article


Removing NTFS Permissions Via Powershell?

I've been tasked with a project that will be very tedious and time consuming if I cannot figure out a way to script it out in powershell.My company has a file server for shared folders between...

View Article

Problem with a Powershell Script on Several Machines

Hi together,I have a big Problem with a Script i get from here (Get a list of Installed Software from a remote computer fast as lightning - Author: Twon of An). I asked my question in the Comments...

View Article


Output monitor information of network attached hosts

Up front, I want to thank anyone who offers input.So here's what I got...I have a long list of workstations on my network. I need to ask each workstation to provide information about the monitor(s)...

View Article

Parse file

I need help to parse a text file where i have this fields:completion status: succeeded;end time: 1454878142;job id: 691698;job state: COMPLETED;NW Client name/id: PROVA1;start time:...

View Article

Get owner of process

Hello!I've using Powershell on Windows 2008r2 and I need to get owner of the process with Name and Surname from AD.Here's my...

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>