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

Server Health Check

Each month my team splits up 100 or so servers to patch.  Part of the patching process is to reboot the server after patching and then do a health check.  The idea came to me this morning to use...

View Article


AD PowerShell Bulk User Creation Question

Hello,Newbie to PowerShell!! So I have this script (don't remember from where to give them credit) that will create users based on CSV and will also look through and not add accounts with username...

View Article


Image may be NSFW.
Clik here to view.

Write an event to mimic the parameters

Hi,does anyone have any tips to create and event entry to mimic the following. I know about the commandhttps://technet.microsoft.com/en-us/library/hh849847.aspxbut can't see how to add the parameters...

View Article

Output List in Existing CSV comparing the two CSVs

I am trying to enter data into one csv. The datais a result of the comparison between the two csvs.For Example:CSV 1 saysTextHost TypeHost1 ServerHost2 SwitchHost3 HubHost4 RouterCSV 2 says:TextList of...

View Article

Image may be NSFW.
Clik here to view.

Issues with DFSMonitorWithHistory.ps1

Hi AllI am using the script available on this site for DFS monitoring. We had a corrupt DFS DB on a Server, which we have repaired and DFS is working, however our monitor displays this:Not sure why...

View Article


Powershell 2.0: Finding the latest subfolder that is empty

New the forum, and new to powershell, so here goes.. I am limited to Powershell 2.0 and cannot install newer at this time.I have a audio call recorder that places calls in a numbered folders that...

View Article

Getting files using Get-ChildItem

In my free time I like to contribute to a few open source projects. In one of these projects I recently found a bug that was happening when one of our scripts was running. The entire issue pretty much...

View Article

Powershell - Filter Output for HTML Report

I hoping you can help me or point me in the right direction. I'm trying to figure out how to filer the output of the command I'm using in my powershell script:$Description = Get-WmiObject -Class...

View Article


Server Health Check

Powershell$srv_logs=Get-Content"C:\HealthCheck\Server_Check.csv"foreach($computerin$srv_logs){New-ItemC:\HealthCheck\$computer-typeDirectory}foreach($computerin$srv_logs){$logs=get-eventlog-computernam...

View Article


Invoke-WebRequest from inside a loop

Hello, everyone. I am having a problem calling Invoke-WebRequest from inside a loop, and I both fail to understand why I'm having a problem or gaining info by googling the errors powershell gives to...

View Article

Using Powershell to tail log files

This may be totally common knowledge, but I thought this tip might help someone out there! You can use powershell to tail log files. It's a bit slow for larger files, and sometimes it will stop tailing...

View Article

What computer did a User Object last make an authentication call from?

I am working on finding a way to identify that last computer that an User object in active directory made an authentication call from. I have worked out out the powershell commands to get what the last...

View Article

PowerShell script issues

Looking to have my script search if a computer is or is not in AD, if it is, then delete the device then rename the computer. If it is not then just rename the computer. Here is what I have but it...

View Article


Remove Partial Data from Cell in CSV

I have a CSV with a bunch of information. In one of the columns I have cells with information that I want to remove.Sample:TextTotal Devices Comments3 Host1.Domain Host4.Domain Host5.Domain (Closed):...

View Article

File rename based on file size

Hi Spice Techs,I need help in creating a batch script which renames files based on the file size.> Company built tool will generate output files on daily basis> But there is no standard naming...

View Article


Set Registry Key To 'Full Control' For .\USERS

Hello,I am trying to use powershell to change the local 'USERS' groups permission level from 'Read' to 'Full Control' but every time I run this script it ends up assigning 'Special' permissions instead...

View Article

PowerShell - Add New User to AD Groups Based on Site

OK, so I'm in the final stages of recreating my New User script using AD instead of ADSI. I'm also trying to streamline it and take some of the guess work out of the process. So far, my best conversion...

View Article


A fastest way to write values to Excel cells?

Howdy Spicy and Powershelling friends,I'm (still ... gosh) working with PS and Excel to write down reports of folder analysis with robocopy.It's all working, but now I want to speed up the process.I've...

View Article

Powershell scripting preventing Crypto locker

For those of you that are good with powershell scripting.  I am looking for a powershell script that I can run locally on all my domain computers that will constantly run and monitor a few witness...

View Article

Would like to powershell a portion of the emailaddress within an OU

Hi team:Mark started this question a while back and I did not see an answer and now I need help too. https://community.spiceworks.com/topic/448250-changing-e-mail-address-in-adOur AD is for...

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>