0
votes
0answers
70 views

Why AD DS user is able to write to ADLDS(ADAM) container(user is neither imported nor added as foreignsecurityprincipal)?PS/dsacls cmd to fix it-DENY

I have installed 'AD LDS' instance on one of my windows server 2012 which is part of a domain. I brought few users (windows security principals to 'AD LDS') as 'ForeignSecurityPrincipals' from AD DS ...
0
votes
0answers
195 views

ldifde command is failing with "Invalid Parameter: Bad argument '-i'. And also any equivalent PS Cmdlet?

OS - Windows Server 2008 R2 Localhost: DC as well as running an AD LDS instance Here are the command(s) I used: ldifde -i -u -f differences.ldf -s localhost:50004 -b myUserAccount MyDomain ...
0
votes
0answers
78 views

scurity tab is missing in ADSI Edit for AD Lightweigh Service instancess. (authorizing users in AD LDS)

I am new to AD LDS. I have installed AD LDS instance in my Windows Server 2008 R2 and 2012 servers as I want to you use AD LDS instance for directory services for my app. I am able to install the ...
2
votes
2answers
1k views

Installing Powershell 3.0 or 4.0 on Windows 7 machines through Group Policy or SCCM

I am trying to update all of the Windows 7 machines that we have in one of our OUs in Active Directory with either Powershell 3.0 or 4.0. I would like to use either Group Policy or SCCM 2012 and would ...
1
vote
1answer
79 views

Is Microsoft .NET Framework Client Profile enough for PowerShell to work on a Windows XP workstation?

Is Microsoft .NET Framework Client Profile enough for PowerShell to work on a Windows XP workstation? Or is a full .NET version needed to be installed? Are there any advantages for the full ...
8
votes
4answers
9k views

How to properly add .NET assemblies to Powershell session?

I have a .NET assembly (a dll) which is an API to backup software we use here. It contains some properties and methods I would like to take advantage of in my Powershell script(s). However, I am ...
0
votes
1answer
482 views

How to retrieve names of all private MSMQ queues - efficiently?

How can I retrieve the names of all of the private MSMQ queues on the local machine, without using System.Messaging.MessageQueue.GetPrivateQueuesByMachine(".")? I'm using PowerShell so any solution ...
4
votes
2answers
2k views

Why does the .NET Folder.CopyHere Method not allow dialog suppression for .ZIP files when run within a SQL Server Agent PowerShell job step?

I am using PowerShell in a SQL Server Agent job step to automate the extraction of .ZIP file contents to a directory. Based upon highest-voted answer on this question: How to zip/unzip files in ...
0
votes
1answer
369 views

.Net SqlClient Data Provider error when comparing keys in powershell DB install

I am trying to install Databases on a new windows 7 machine with powershell code that was meant for windows xp. I have been able to fix most of the problems as I have come across them but I have been ...
-2
votes
2answers
388 views

Can Exchange Tasks be Automated via PowerShell?

I can't seem to find a way to run the various Exchange tasks (Establish E-mail Address, Remove Exchange Attributes, Create Mailbox, etc) from Powershell. It seems unlikely to me that Exchange tasks ...
1
vote
1answer
94 views

How can I manipulate Code Access Policy using Powershell?

I had a task today to add a new Code Group to my PC, using mscorcfg.msc. Having recently learned how to use Powershell, I thought, how can I do the same thing using Powershell (everything looks like ...
1
vote
2answers
2k views

PowerShell: Copy all AD users of an OU to another OU

I'm trying to copy all users of OU "A" to the OU "B". My PowerShell shot at this is $sourceEntry = [ADSI]"LDAP://OU=A,DC=demo,DC=com" $targetEntry = [ADSI]"LDAP://OU=B,DC=demo,DC=com" $searcher = ...
7
votes
2answers
3k views

Using namespaces in Powershell

Thought about it while answering this question. How can you avoid the need to fully qualify every single type in a namespace? It's really, really tedious to write ...
0
votes
1answer
400 views

problem with .Net xml importnode in powershell

Im trying to construct a powershell script that uses some XML. I have a XML document where I try to add some values with email addresses. The finished xml document should have this format: (I'm only ...