Reply To: Add Multiple values to existing Property
I need to specify my need. I have the following variable: $domain = test.com, test2.com I tried to execute it with the following command but it keeps deleting the last record: `$domain | %...
View ArticleReply To: The CIM namespace root/Microsoft/Windows/DesiredStateConfiguration...
I’ll keep looking but have not found anything. Thanks.
View ArticleReply To: Add Multiple values to existing Property
I think I’m probably still not understanding. $collection = Get-Transportrule test | select -expand RecipientAddressContainsWords $collection now contains the current rules, yes? $collection +=...
View ArticleReply To: Add Multiple values to existing Property
Sorry about the confusion. I was trying to modify a Transportrule based an all Domains with the Type of Internal Relay You helped me a lot with your inputs – I was aware how the...
View ArticleNeed a powershell script
Hi, Need a poweshell script for this simple requirement. I have one DL called “Example”. Here I wanted to set the Custom attribute 13 for this group members mailbox as Yes and rest of the mailbox...
View ArticleReply To: Getting HP Warranty Information
Hi Garth, You can find a copy of the script here: http://powershell.org/wp/forums/topic/invoke-webrequest-powershell-2-0/ It works fine on Powershell 3.0 I am just having some problems getting it to...
View ArticleReply To: Need a powershell script
You’ve got some PowerShell syntax issues there which I can offer some guidance on, but you’re also using Exchange cmdlets / objects, and I’m not familiar enough with them to give you a complete answer...
View ArticleReply To: Need a powershell script
Thanks Dave. Let me check and get back to you on this.
View ArticleFQDN
What’s that mean. Book Powershell in a month of Lunches says “forest root domain” but I don’t know what that means?
View ArticleAD module in window server 2008
Hi! i’ve a vm DC with 2008 32bit and unable to find the ad module?? ive have installed the powershell feature. Ive tried get-module -listavaible and i aint showing up there. Get-psdrive, no ad module...
View ArticleReply To: FQDN
E.g., “cn=DonJ,ou=Sales,dc=mycompany,dc=pri” is an FQDN. A “forest root domain” is the root domain of a forest, usually the first domain installed into a new forest.
View ArticleReply To: AD module in window server 2008
That module was first released with Windows Server 2008 R2, I believe. It would be present on a domain controller. On a client computer, you would get it by installing the Remote Server Administration...
View ArticleReply To: AD module in window server 2008
If I remember correctly, the AD module requires Server 2008 R2 or later (or Windows 7 / later), and it’s installed as part of the RSAT package.
View ArticleGet-ADComputer Script Best Practice
I am having an issue on adding a variable to my Get-ADComputer script. This one is failing: $PartialName = "3v1*" Get-ADComputer -Filter 'Name -like "$PartialName"' | select -ExpandProperty Name Here...
View ArticleReply To: Get-ADComputer Script Best Practice
Well, there’s mainly “the way that works.” In your first example, you’re sending the literal $PartialName to Active Directory. It has no idea what to do with it. In your last example, by surrounding...
View ArticleReply To: Logging an Event into Windows Event Logs
Hi Mike that works great, but im having a problem where there’s more than one drive with shadow copy enabled. I assume this is because there would be two .LatestShadowCopy in the output (one for each...
View ArticleNeed Help with Advanced Functions
I have a script that i wrote, but i would like to utilize advanced functions and i have never created one. The script that I have basically reads a userlist.txt file and a computerlist.txt file and it...
View ArticleReply To: Get-ADComputer Script Best Practice
Did you try $PartialName = “3v1*” Get-ADComputer -Filter “Name -like ‘$PartialName’” | select -ExpandProperty Name Alternatively use an LDAP filter – I think this should work & can’t test it at...
View ArticleReply To: Need Help with Advanced Functions
If you could post you current script it would be easier to help. I’d recommend reading these help files about_Functions about_Functions_Advanced about_Functions_Advanced_Methods...
View Article