Reply To: Get all the Exchange Server's in a Domain
hi, Assuming you have a single domain, there should be a group in Active Directory called “Exchange Servers”. The members of this group contains all the servers for the Exchange Organization. Please...
View ArticleReply To: Need help with two powershell scripts.
Wilson Acosta wrote: If you run it as I posted it above, you don’t need to manually create the email address by adding $alias and $domain. $_.PrimarySmtpAddress is already a property of the mailbox...
View ArticleReply To: Newb – Is what I want possible? SQL automation
Richard, Why do you need to connect to the webserver to run the SQL in the first place? Is the database residing on the webserver? If yes to the DB residing on the webserver then the first thing to do...
View ArticleReply To: Need help with two powershell scripts.
I am trying to break this down into smaller scripts since i am not that good with powershell yet! so i made some modifications to reuse the existing script (which i have bolded). when i run it in...
View ArticleReply To: Need help with two powershell scripts.
Hi, You need quotes in your if statement. Replace if ($CurrentVersion -le R18.2.51.0.0) { With if ($CurrentVersion -le 'R18.2.51.0.0') { Also you are using the -le operator on a string object. I am on...
View ArticleReply To: IIS Log File Maintenance
In the end… I cheated. I just do not have time, at the moment, to take this any further. Thank you for your help! Ironically, I can only use this on our Server 2008 R2 servers. Our current version of...
View ArticleReply To: Need help with two powershell scripts.
Damn Ipad… Oh by the way, this line: [int]$CurrentVersion = "$($FileVersionInfo.FileMajorPart).$($FileVersionInfo.FileMinorPart)" will never become an [INT] since you have a “.” on the right hand side...
View ArticleReply To: new-SelfsignedCertificate cmdlet
Hi, I’m watching the same course on MVA and I enjoy it a LOT! You guys make those things so easy and fun to understand that it’s a pleasure to learn! However, I’m running into the same problem, that...
View ArticleSeeking help using / combining two Powershell scripts
I’m a complete Powershell newb here so apologies for that upfront. I’m trying to restore multiple SQL bak files on a daily basis using Powershell and found this script:...
View ArticleReply To: Seeking help using / combining two Powershell scripts
Alright I’ve got this portion working now by combining a couple of other scripts. I now need to figure out how to fix all of the orphaned users after the DB restores are complete. I call everything...
View ArticleReply To: Need Help with Advanced Functions
Great! Thanks alot for your help Dave, I appreciate it.
View ArticleReply To: Seeking help using / combining two Powershell scripts
Couple of notes – Avoid replying to your own posts; a lot of us look for “unanswered posts” and by replying, you come off that list and don’t get noticed. Consider attaching (as a TXT file) long...
View ArticleNeed Help with Powershell Advance Function
Hi , I’m new to Powershell and I’m working on script to gather some hardware information . Script works fine only for single computer but is coming up with an error when I’m trying to get...
View ArticleReply To: Need Help with Powershell Advance Function
you will need a loop. either foreach($computer in $computername) { $BIOS = Get-WmiObject win32_bios -computername $computer …………… …………… $HDDinfo } or $computername | foreach-object { $BIOS =...
View ArticleReply To: DSC Lab using Brix
Just had a thought from a logistics perspective. You’re using it for demos, which means you’re changing networks constantly. Do you run it headless, and have it setup to do ad hoc networking or...
View ArticleReply To: DSC Lab using Brix
I do run it headless. I actually carry a small Apple Airport with me, which the BRIX and an Apple TV plug into. I usually position them near the projector, and then use AirPlay to send my laptop...
View ArticleReply To: DSC Lab using Brix
Wow.. Awesome info! Many many thanks! Gives me a lot of stuff to slowly build to when I get to that point, but also great ideas on how to deal with my situation currently as well.. Thanks again!
View ArticleReply To: Seeking help using / combining two Powershell scripts
Thanks for the heads up Don I will follow those practices in the future. As far as the orphaned users I decided to take the easy way out and just run an existing SQL script in conjunction with the...
View ArticleReply To: Seeking help using / combining two Powershell scripts
And to set an expectation, that’s exactly the kind of thing you SHOULD be running a SQL script for. The vast majority of admin things you’d want to do with SQL can be done with a query or T-SQL...
View ArticleQuerying Inner Text with Multiple Attributes
Please refer to the following node <GKENTD.ACDSEGMENT accounted=”DR” index=”1″>2000</GKENTD.ACDSEGMENT> I am stuck on how to query the inner text of ’2000′ into a variable, by filtering on...
View Article