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 ArticleAD 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 ArticleWrite 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 ArticleOutput 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 ArticleIssues 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 ArticlePowershell 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 ArticleGetting 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 ArticlePowershell - 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 ArticleServer 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 ArticleInvoke-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 ArticleUsing 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 ArticleWhat 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 ArticlePowerShell 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 ArticleRemove 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 ArticleFile 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 ArticleSet 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 ArticlePowerShell - 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 ArticleA 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 ArticlePowershell 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 ArticleWould 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