Struggling with google smtp
Hi. Im trying to make a script that pings certain IP addresses. If a Ping fails the script should send a email notification through smtp.gmail.com. The Ping part is working and the send mail working...
View ArticleIssue with Split-path -leaf and UNC paths I can’t figure out
So I’ve got a script that is supposed to take the last folder from a UNC path and turn that into a security group. I could swear this worked for me previously, but the last few times I’ve tried it,...
View ArticleLooking for this GUI tool: I-Comply 2.20 from PoshCamp.com…anyone have it?
As stated, I’m looking for this tool. Looks like it was released June of this year, but the download link seems to be pretty much gone when you try to go to it. Does anyone have this tool?? Any help...
View ArticleOld script works on one domain, need to make it work on both
I have two domains, A.Corp.net and B.Corp.Net. I want to remove broken SIDS from the local “Remote Desktop Users” group. The script below only works on A.Corp.Net (the domain im currently logged...
View ArticleActiveDirectory Module fails to load
I’ve reloaded RSAT a couple of times. I’ve tried loading it from this script. install AD Script I’ve tried cleaning up with: dism /online /Cleanup-Image /RestoreHealth All with no luck. Any ideas?...
View ArticleQuestion on logging.
If I run the following command is there and easy way to log out the outcome of the command to a text file? Enable-Mailbox -identity $samac -database "mbx1First Mailbox Database" -PrimarySmtpAddress...
View ArticleRobocopy and XXcopy
I am in need of some help I used to run xxcopy to copy files that were older than 30 days to another directory on my computer and ran this script “xxcopy C:Images2016orig.jpg C:NAS2016/DB#30/yy” is...
View ArticleHaving trouble with TCPClient and receiving data.
I am trying to write some scripts that connect to our Nagios server and retreives some information, such as which servers are in downtime and the comments on the downtimes. Nagios uses a language...
View ArticleBasic questions about using ImportExcel
This should be obvious, but I’m having some issues with the ImportExcel https://github.com/dfinke/ImportExcel tools and was hoping for some help. I just want to read the values and properites (like...
View ArticleServer QA Scripts
Hello all, I have spent the best part of 18 months creating and tweaking my QA scripts for the company I work for, and today I have released them to the public (with permission). It’s almost 8000...
View ArticleHelp with a Script listing AD Groups and their Members
Total newbie to Powershell warning. Trying to write a script to give me AD Groups and their members and export it out to some type of csv or txt file. Looked up a script online and trying to make it...
View ArticlePowershell to create outlook calendar events?
Hi folks. I do patching in my office and have a recurring event for patch Tuesday (2nd Tuesday of every month). What I want to do is set additional events based on that day. So for example, I need to...
View ArticleManaging Remote Registry Help
I’m pretty new with PowerShell but have done some online training to self teach. I’m in a field support role and I am trying to make a tool to help re-create windows local profiles on a machine. I’ve...
View ArticleUnable to send Email through Batch file or Cmd prompt or Task Scheduler
Hello All, I’ve been stuck at this same issue from past 5 days. The script has no issues and is sending email without any issues when executed from ISE directly. @ECHO OFF...
View ArticleDebugging a Visual Studio 2010 Project from Powershell?
I’m trying to automate some of my work. One process involves running the debugger on a project in Visual Studio 2010. So far, I’ve been able to create a program that starts the debugger, but that’s...
View ArticleSQLPS and Get-ChildItem
I’m trying to create a database restore script and have determined that when I Import-Module SQLPS it seems to interfere with Get-ChildItem. Specifically the -File option is no longer recognized. Is...
View ArticleHow to use get-acl without returning Audit and Sddl
I am trying to get a “report” of folder permissions to give to an end user. I feel like I should be able to take the command below, and run it against the desired folders and send to the end user. The...
View ArticleWhat on earth am I doing wrong(What I thought was a very simple powershell task)
So I’m trying to enable psremoting remotely via script, however, using psexec, I CANNOT run what I’m seeing on countless sites. For example PSEXEC hostname -s -h -d powershell.exe “enable-psremoting”...
View ArticleNeed some assistance for a loop
I have a CSV file with email addresses that I need to apply “Send As” permissions for my SMTP relay account. This is because I have some old software that spoofs the user’s email address for senders...
View ArticleNoob Question: I’m trying to ConvertTo-html and email it.
Hello all, I’m very new to powershell and I’m stuck.. I’m trying to email a script that grabs stale computers but I get no text in the body of the email. Could one of you guys take a look at tell me...
View Article